From 5597af7d85e9ebb573454955717bee4834810663 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Tue, 13 Apr 2021 12:50:03 +0200 Subject: [PATCH] merged vnc from 3.0 --- .../src/uds/static/admin/3rdpartylicenses.txt | 66 ------------------- server/src/uds/static/admin/main.js | 2 +- server/src/uds/static/admin/polyfills-es5.js | 2 +- server/src/uds/static/admin/styles.css | 2 +- server/src/uds/templates/uds/admin/index.html | 4 +- 5 files changed, 5 insertions(+), 71 deletions(-) diff --git a/server/src/uds/static/admin/3rdpartylicenses.txt b/server/src/uds/static/admin/3rdpartylicenses.txt index 3ee7c1c8..18732250 100644 --- a/server/src/uds/static/admin/3rdpartylicenses.txt +++ b/server/src/uds/static/admin/3rdpartylicenses.txt @@ -140,30 +140,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -css-loader -MIT -Copyright JS Foundation and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - file-saver MIT The MIT License @@ -179,26 +155,6 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI [1]: http://eligrey.com -inherits -ISC -The ISC License - -Copyright (c) Isaac Z. Schlueter - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. - - - regenerator-runtime MIT MIT License @@ -445,28 +401,6 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -util -MIT -Copyright Joyent, Inc. and other Node contributors. All rights reserved. -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to -deal in the Software without restriction, including without limitation the -rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -sell copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -IN THE SOFTWARE. - - web-animations-js Apache-2.0 diff --git a/server/src/uds/static/admin/main.js b/server/src/uds/static/admin/main.js index c66edd8b..e2067f0b 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=a)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}}),l=i[n];n=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),p(n)?i.showHidden=n:n&&e._extend(i,n),y(i.showHidden)&&(i.showHidden=!1),y(i.depth)&&(i.depth=2),y(i.colors)&&(i.colors=!1),y(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=l),c(i,t,i.depth)}function l(t,e){var n=s.styles[e];return n?"\x1b["+s.colors[n][0]+"m"+t+"\x1b["+s.colors[n][1]+"m":t}function u(t,e){return t}function c(t,n,i){if(t.customInspect&&n&&C(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var r=n.inspect(i,t);return g(r)||(r=c(t,r,i)),r}var a=function(t,e){if(y(e))return t.stylize("undefined","undefined");if(g(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return v(e)?t.stylize(""+e,"number"):p(e)?t.stylize(""+e,"boolean"):m(e)?t.stylize("null","null"):void 0}(t,n);if(a)return a;var o=Object.keys(n),s=function(t){var e={};return t.forEach(function(t,n){e[t]=!0}),e}(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(n)),w(n)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return h(n);if(0===o.length){if(C(n))return t.stylize("[Function"+(n.name?": "+n.name:"")+"]","special");if(_(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(k(n))return t.stylize(Date.prototype.toString.call(n),"date");if(w(n))return h(n)}var l,u="",b=!1,S=["{","}"];return f(n)&&(b=!0,S=["[","]"]),C(n)&&(u=" [Function"+(n.name?": "+n.name:"")+"]"),_(n)&&(u=" "+RegExp.prototype.toString.call(n)),k(n)&&(u=" "+Date.prototype.toUTCString.call(n)),w(n)&&(u=" "+h(n)),0!==o.length||b&&0!=n.length?i<0?_(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),l=b?function(t,e,n,i,r){for(var a=[],o=0,s=e.length;o60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}(l,u,S)):S[0]+u+S[1]}function h(t){return"["+Error.prototype.toString.call(t)+"]"}function d(t,e,n,i,r,a){var o,s,l;if((l=Object.getOwnPropertyDescriptor(e,r)||{value:e[r]}).get?s=t.stylize(l.set?"[Getter/Setter]":"[Getter]","special"):l.set&&(s=t.stylize("[Setter]","special")),D(i,r)||(o="["+r+"]"),s||(t.seen.indexOf(l.value)<0?(s=m(n)?c(t,l.value,null):c(t,l.value,n-1)).indexOf("\n")>-1&&(s=a?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")),y(o)){if(a&&r.match(/^\d+$/))return s;(o=JSON.stringify(""+r)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=t.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=t.stylize(o,"string"))}return o+": "+s}function f(t){return Array.isArray(t)}function p(t){return"boolean"==typeof t}function m(t){return null===t}function v(t){return"number"==typeof t}function g(t){return"string"==typeof t}function y(t){return void 0===t}function _(t){return b(t)&&"[object RegExp]"===S(t)}function b(t){return"object"==typeof t&&null!==t}function k(t){return b(t)&&"[object Date]"===S(t)}function w(t){return b(t)&&("[object Error]"===S(t)||t instanceof Error)}function C(t){return"function"==typeof t}function S(t){return Object.prototype.toString.call(t)}function x(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(y(a)&&(a=process.env.NODE_DEBUG||""),t=t.toUpperCase(),!o[t])if(new RegExp("\\b"+t+"\\b","i").test(a)){var n=process.pid;o[t]=function(){var i=e.format.apply(e,arguments);console.error("%s %d: %s",t,n,i)}}else o[t]=function(){};return o[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=f,e.isBoolean=p,e.isNull=m,e.isNullOrUndefined=function(t){return null==t},e.isNumber=v,e.isString=g,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=y,e.isRegExp=_,e.isObject=b,e.isDate=k,e.isError=w,e.isFunction=C,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 E=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function A(){var t=new Date,e=[x(t.getHours()),x(t.getMinutes()),x(t.getSeconds())].join(":");return[t.getDate(),E[t.getMonth()],e].join(" ")}function D(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",A(),e.format.apply(e,arguments))},e.inherits=n("KKCa"),e._extend=function(t,e){if(!e||!b(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=[],a=0;a=200&&e.status<=299}function o(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,l=document.createElement("a");l.download=e=e||t.name||"download",l.rel="noopener","string"==typeof t?(l.href=t,l.origin!==location.origin?a(l.href)?r(t,e,n):o(l,l.target="_blank"):o(l)):(l.href=s.createObjectURL(t),setTimeout(function(){s.revokeObjectURL(l.href)},4e4),setTimeout(function(){o(l)},0))}:"msSaveOrOpenBlob"in navigator?function(t,e,n){if(e=e||t.name||"download","string"==typeof t)if(a(t))r(t,e,n);else{var i=document.createElement("a");i.href=t,i.target="_blank",setTimeout(function(){o(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,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),"string"==typeof t)return r(t,e,n);var o="application/octet-stream"===t.type,s=/constructor/i.test(i.HTMLElement)||i.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||o&&s)&&"object"==typeof FileReader){var u=new FileReader;u.onloadend=function(){var t=u.result;t=l?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=t:location=t,a=null},u.readAsDataURL(t)}else{var c=i.URL||i.webkitURL,h=c.createObjectURL(t);a?a.location=h:location.href=h,a=null,setTimeout(function(){c.revokeObjectURL(h)},4e4)}});i.saveAs=s.saveAs=s,t.exports=s},zUnb:function(t,e,n){"use strict";function i(t){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function r(t,e,n){return(r="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=i(t)););return t}(t,e);if(r){var a=Object.getOwnPropertyDescriptor(r,e);return a.get?a.get.call(n):a.value}})(t,e,n||t)}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return o=t.done,t},e:function(t){l=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw a}}}}function h(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||s(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function p(t,e,n){return(p=f()?Reflect.construct:function(t,e,n){var i=[null];i.push.apply(i,e);var r=new(Function.bind.apply(t,i));return n&&d(r,n.prototype),r}).apply(null,arguments)}function m(t,e){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof e?function(i){return i.pipe(st(function(n,i){return it(t(n,i)).pipe(G(function(t,r){return e(n,t,i,r)}))},n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new lt(t,n))})}var lt=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;g(this,t),this.project=e,this.concurrent=n}return v(t,[{key:"call",value:function(t,e){return e.subscribe(new ut(t,this.project,this.concurrent))}}]),t}(),ut=function(t){y(n,t);var e=k(n);function n(t,i){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return g(this,n),(r=e.call(this,t)).project=i,r.concurrent=a,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return v(n,[{key:"_next",value:function(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(at);function ct(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return st(N,t)}function ht(t,e){return e?nt(t,e):new j($(t))}function dt(){for(var t=Number.POSITIVE_INFINITY,e=null,n=arguments.length,i=new Array(n),r=0;r1&&"number"==typeof i[i.length-1]&&(t=i.pop())):"number"==typeof a&&(t=i.pop()),null===e&&1===i.length&&i[0]instanceof j?i[0]:ct(t)(ht(i,e))}function ft(){return function(t){return t.lift(new pt(t))}}var pt=function(){function t(e){g(this,t),this.connectable=e}return v(t,[{key:"call",value:function(t,e){var n=this.connectable;n._refCount++;var i=new mt(t,n),r=e.subscribe(i);return i.closed||(i.connection=n.connect()),r}}]),t}(),mt=function(t){y(n,t);var e=k(n);function n(t,i){var r;return g(this,n),(r=e.call(this,t)).connectable=i,r}return v(n,[{key:"_unsubscribe",value: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}}]),n}(M),vt=function(t){y(n,t);var e=k(n);function n(t,i){var r;return g(this,n),(r=e.call(this)).source=t,r.subjectFactory=i,r._refCount=0,r._isComplete=!1,r}return v(n,[{key:"_subscribe",value:function(t){return this.getSubject().subscribe(t)}},{key:"getSubject",value:function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new A).add(this.source.subscribe(new yt(this.getSubject(),this))),t.closed&&(this._connection=null,t=A.EMPTY)),t}},{key:"refCount",value:function(){return ft()(this)}}]),n}(j),gt=function(){var t=vt.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}}}(),yt=function(t){y(n,t);var e=k(n);function n(t,i){var r;return g(this,n),(r=e.call(this,t)).connectable=i,r}return v(n,[{key:"_error",value:function(t){this._unsubscribe(),r(i(n.prototype),"_error",this).call(this,t)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),r(i(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value: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()}}}]),n}(U);function _t(){return new q}function bt(t){for(var e in t)if(t[e]===bt)return e;throw Error("Could not find renamed property on target object.")}function kt(t,e){for(var n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function wt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(wt).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return"".concat(t.overriddenName);if(t.name)return"".concat(t.name);var e=t.toString();if(null==e)return""+e;var n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function Ct(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}var St=bt({__forward_ref__:bt});function xt(t){return t.__forward_ref__=xt,t.toString=function(){return wt(this())},t}function Et(t){return At(t)?t():t}function At(t){return"function"==typeof t&&t.hasOwnProperty(St)&&t.__forward_ref__===xt}function Dt(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Ot(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function It(t){return Tt(t,Mt)||Tt(t,Lt)}function Tt(t,e){return t.hasOwnProperty(e)?t[e]:null}function Rt(t){return t&&(t.hasOwnProperty(Ft)||t.hasOwnProperty(Nt))?t[Ft]:null}var Pt,Mt=bt({"\u0275prov":bt}),Ft=bt({"\u0275inj":bt}),Lt=bt({ngInjectableDef:bt}),Nt=bt({ngInjectorDef:bt}),Vt=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});function jt(){return Pt}function Bt(t){var e=Pt;return Pt=t,e}function zt(t,e,n){var i=It(t);if(i&&"root"==i.providedIn)return void 0===i.value?i.value=i.factory():i.value;if(n&Vt.Optional)return null;if(void 0!==e)return e;throw new Error("Injector: NOT_FOUND [".concat(wt(t),"]"))}function Ht(t){return{toString:t}.toString()}var Ut=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),qt=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({}),Wt="undefined"!=typeof globalThis&&globalThis,Yt="undefined"!=typeof window&&window,Gt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Kt="undefined"!=typeof global&&global,Zt=Wt||Kt||Yt||Gt,$t={},Xt=[],Qt=bt({"\u0275cmp":bt}),Jt=bt({"\u0275dir":bt}),te=bt({"\u0275pipe":bt}),ee=bt({"\u0275mod":bt}),ne=bt({"\u0275loc":bt}),ie=bt({"\u0275fac":bt}),re=bt({__NG_ELEMENT_ID__:bt}),ae=0;function oe(t){return Ht(function(){var e={},n={type:t.type,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:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===Ut.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Xt,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||qt.Emulated,id:"c",styles:t.styles||Xt,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,r=t.features,a=t.pipes;return n.id+=ae++,n.inputs=he(t.inputs,e),n.outputs=he(t.outputs),r&&r.forEach(function(t){return t(n)}),n.directiveDefs=i?function(){return("function"==typeof i?i():i).map(se)}:null,n.pipeDefs=a?function(){return("function"==typeof a?a():a).map(le)}:null,n})}function se(t){return pe(t)||function(t){return t[Jt]||null}(t)}function le(t){return function(t){return t[te]||null}(t)}var ue={};function ce(t){var e={type:t.type,bootstrap:t.bootstrap||Xt,declarations:t.declarations||Xt,imports:t.imports||Xt,exports:t.exports||Xt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&Ht(function(){ue[t.id]=t.type}),e}function he(t,e){if(null==t)return $t;var n={};for(var i in t)if(t.hasOwnProperty(i)){var r=t[i],a=r;Array.isArray(r)&&(a=r[1],r=r[0]),n[r]=i,e&&(e[r]=a)}return n}var de=oe;function fe(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function pe(t){return t[Qt]||null}function me(t,e){var n=t[ee]||null;if(!n&&!0===e)throw new Error("Type ".concat(wt(t)," does not have '\u0275mod' property."));return n}var ve=20,ge=10;function ye(t){return Array.isArray(t)&&"object"==typeof t[1]}function _e(t){return Array.isArray(t)&&!0===t[1]}function be(t){return 0!=(8&t.flags)}function ke(t){return 2==(2&t.flags)}function we(t){return 1==(1&t.flags)}function Ce(t){return null!==t.template}function Se(t,e){return t.hasOwnProperty(ie)?t[ie]:null}var xe=function(t){y(n,t);var e=k(n);function n(t,i){var r;return g(this,n),(r=e.call(this,function(t,e){var n=t?"NG0".concat(t,": "):"";return"".concat(n).concat(e)}(t,i))).code=t,r}return n}(w(Error));function Ee(t){return"string"==typeof t?t:null==t?"":String(t)}function Ae(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Ee(t)}function De(t,e){var n=e?" in ".concat(e):"";throw new xe("201","No provider for ".concat(Ae(t)," found").concat(n))}var Oe=function(){function t(e,n,i){g(this,t),this.previousValue=e,this.currentValue=n,this.firstChange=i}return v(t,[{key:"isFirstChange",value:function(){return this.firstChange}}]),t}();function Ie(){return Te}function Te(t){return t.type.prototype.ngOnChanges&&(t.setInput=Pe),Re}function Re(){var t=Me(this),e=null==t?void 0:t.current;if(e){var n=t.previous;if(n===$t)t.previous=e;else for(var i in e)n[i]=e[i];t.current=null,this.ngOnChanges(e)}}function Pe(t,e,n,i){var r=Me(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:$t,current:null}),a=r.current||(r.current={}),o=r.previous,s=this.declaredInputs[n],l=o[s];a[s]=new Oe(l&&l.currentValue,e,o===$t),t[i]=e}function Me(t){return t.__ngSimpleChanges__||null}Ie.ngInherit=!0;var Fe="http://www.w3.org/2000/svg",Le=void 0;function Ne(){return void 0!==Le?Le:"undefined"!=typeof document?document:void 0}function Ve(t){return!!t.listen}var je={createRenderer:function(t,e){return Ne()}};function Be(t){for(;Array.isArray(t);)t=t[0];return t}function ze(t,e){return Be(e[t])}function He(t,e){return Be(e[t.index])}function Ue(t,e){return t.data[e]}function qe(t,e){return t[e]}function We(t,e){var n=e[t];return ye(n)?n:n[0]}function Ye(t){var e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Ge(t){return 4==(4&t[2])}function Ke(t){return 128==(128&t[2])}function Ze(t,e){return null==e?null:t[e]}function $e(t){t[18]=0}function Xe(t,e){t[5]+=e;for(var n=t,i=t[3];null!==i&&(1===e&&1===n[5]||-1===e&&0===n[5]);)i[5]+=e,n=i,i=i[3]}var Qe={lFrame:Cn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Je(){return Qe.bindingsEnabled}function tn(){return Qe.lFrame.lView}function en(){return Qe.lFrame.tView}function nn(t){Qe.lFrame.contextLView=t}function rn(){for(var t=an();null!==t&&64===t.type;)t=t.parent;return t}function an(){return Qe.lFrame.currentTNode}function on(t,e){var n=Qe.lFrame;n.currentTNode=t,n.isParent=e}function sn(){return Qe.lFrame.isParent}function ln(){Qe.lFrame.isParent=!1}function un(){return Qe.isInCheckNoChangesMode}function cn(t){Qe.isInCheckNoChangesMode=t}function hn(){var t=Qe.lFrame,e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function dn(){return Qe.lFrame.bindingIndex}function fn(){return Qe.lFrame.bindingIndex++}function pn(t){var e=Qe.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function mn(t){Qe.lFrame.currentDirectiveIndex=t}function vn(t){var e=Qe.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function gn(){return Qe.lFrame.currentQueryIndex}function yn(t){Qe.lFrame.currentQueryIndex=t}function _n(t){var e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function bn(t,e,n){if(n&Vt.SkipSelf){for(var i=e,r=t;!(null!==(i=i.parent)||n&Vt.Host||null===(i=_n(r))||(r=r[15],10&i.type)););if(null===i)return!1;e=i,t=r}var a=Qe.lFrame=wn();return a.currentTNode=e,a.lView=t,!0}function kn(t){var e=wn(),n=t[1];Qe.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function wn(){var t=Qe.lFrame,e=null===t?null:t.child;return null===e?Cn(t):e}function Cn(t){var e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function Sn(){var t=Qe.lFrame;return Qe.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var xn=Sn;function En(){var t=Sn();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function An(t){return(Qe.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,Qe.lFrame.contextLView))[8]}function Dn(){return Qe.lFrame.selectedIndex}function On(t){Qe.lFrame.selectedIndex=t}function In(){var t=Qe.lFrame;return Ue(t.tView,t.selectedIndex)}function Tn(){Qe.lFrame.currentNamespace=Fe}function Rn(){Qe.lFrame.currentNamespace=null}function Pn(t,e){for(var n=e.directiveStart,i=e.directiveEnd;n=i)break}else e[s]<0&&(t[18]+=65536),(o>11>16&&(3&t[2])===e&&(t[2]+=2048,a.call(o)):a.call(o)}var jn=-1,Bn=function t(e,n,i){g(this,t),this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i};function zn(t,e,n){for(var i=Ve(t),r=0;re){o=a-1;break}}}for(;a>16,i=e;n>0;)i=i[15],n--;return i}var Zn=!0;function $n(t){var e=Zn;return Zn=t,e}var Xn=0;function Qn(t,e){var n=ti(t,e);if(-1!==n)return n;var i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,Jn(i.data,t),Jn(e,null),Jn(i.blueprint,null));var r=ei(t,e),a=t.injectorIndex;if(Yn(r))for(var o=Gn(r),s=Kn(r,e),l=s[1].data,u=0;u<8;u++)e[a+u]=s[o+u]|l[o+u];return e[a+8]=r,a}function Jn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function ti(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function ei(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;for(var n=0,i=null,r=e;null!==r;){var a=r[1],o=a.type;if(null===(i=2===o?a.declTNode:1===o?r[6]:null))return jn;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return jn}function ni(t,e,n){!function(t,e,n){var i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(re)&&(i=n[re]),null==i&&(i=n[re]=Xn++);var r=255&i,a=1<3&&void 0!==arguments[3]?arguments[3]:Vt.Default,r=arguments.length>4?arguments[4]:void 0;if(null!==t){var a=hi(n);if("function"==typeof a){if(!bn(e,t,i))return i&Vt.Host?ii(r,n,i):ri(e,n,i,r);try{var o=a();if(null!=o||i&Vt.Optional)return o;De(n)}finally{xn()}}else if("number"==typeof a){var s=null,l=ti(t,e),u=jn,c=i&Vt.Host?e[16][6]:null;for((-1===l||i&Vt.SkipSelf)&&((u=-1===l?ei(t,e):e[l+8])!==jn&&fi(i,!1)?(s=e[1],l=Gn(u),e=Kn(u,e)):l=-1);-1!==l;){var h=e[1];if(di(a,l,h.data)){var d=li(l,e,n,s,i,c);if(d!==oi)return d}(u=e[l+8])!==jn&&fi(i,e[1].data[l+8]===c)&&di(a,l,e)?(s=h,l=Gn(u),e=Kn(u,e)):l=-1}}}return ri(e,n,i,r)}var oi={};function si(){return new pi(rn(),tn())}function li(t,e,n,i,r,a){var o=e[1],s=o.data[t+8],l=ui(s,o,n,null==i?ke(s)&&Zn:i!=o&&0!=(3&s.type),r&Vt.Host&&a===s);return null!==l?ci(e,o,l,s):oi}function ui(t,e,n,i,r){for(var a=t.providerIndexes,o=e.data,s=1048575&a,l=t.directiveStart,u=a>>20,c=r?s+u:t.directiveEnd,h=i?s:s+u;h=l&&d.type===n)return h}if(r){var f=o[l];if(f&&Ce(f)&&f.type===n)return l}return null}function ci(t,e,n,i){var r=t[n],a=e.data;if(r instanceof Bn){var o=r;o.resolving&&function(t,e){throw new xe("200","Circular dependency in DI detected for ".concat(t).concat(""))}(Ae(a[n]));var s=$n(o.canSeeViewProviders);o.resolving=!0;var l=o.injectImpl?Bt(o.injectImpl):null;bn(t,i,Vt.Default);try{r=t[n]=o.factory(void 0,a,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){var i=e.type.prototype,r=i.ngOnInit,a=i.ngDoCheck;if(i.ngOnChanges){var o=Te(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,o)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,r),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,a))}(n,a[n],e)}finally{null!==l&&Bt(l),$n(s),o.resolving=!1,xn()}}return r}function hi(t){if("string"==typeof t)return t.charCodeAt(0)||0;var e=t.hasOwnProperty(re)?t[re]:void 0;return"number"==typeof e?e>=0?255&e:si:e}function di(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<=t.length?t.push(n):t.splice(e,0,n)}function Ei(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Ai(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 Oi(t,e){var n=Ii(t,e);if(n>=0)return t[1|n]}function Ii(t,e){return function(t,e,n){for(var i=0,r=t.length>>1;r!==i;){var a=i+(r-i>>1),o=t[a<<1];if(e===o)return a<<1;o>e?r=a:i=a+1}return~(r<<1)}(t,e)}var Ti=_i("Inject",function(t){return{token:t}}),Ri=_i("Optional"),Pi=_i("Self"),Mi=_i("SkipSelf"),Fi=_i("Host"),Li={},Ni=/\n/gm,Vi="__source",ji=bt({provide:String,useValue:bt}),Bi=void 0;function zi(t){var e=Bi;return Bi=t,e}function Hi(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Vt.Default;if(void 0===Bi)throw new Error("inject() must be called from an injection context");return null===Bi?zt(t,void 0,e):Bi.get(t,e&Vt.Optional?null:void 0,e)}function Ui(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Vt.Default;return(jt()||Hi)(Et(t),e)}var qi,Wi=Ui;function Yi(t){for(var e=[],n=0;n3&&void 0!==arguments[3]?arguments[3]:null;t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;var r=wt(e);if(Array.isArray(e))r=e.map(wt).join(" -> ");else if("object"==typeof e){var a=[];for(var o in e)if(e.hasOwnProperty(o)){var s=e[o];a.push(o+":"+("string"==typeof s?JSON.stringify(s):wt(s)))}r="{".concat(a.join(", "),"}")}return"".concat(n).concat(i?"("+i+")":"","[").concat(r,"]: ").concat(t.replace(Ni,"\n "))}("\n"+t.message,r,n,i),t.ngTokenPath=r,t.ngTempTokenPath=null,t}function Ki(t){var e;return(null===(e=function(){if(void 0===qi&&(qi=null,Zt.trustedTypes))try{qi=Zt.trustedTypes.createPolicy("angular",{createHTML:function(t){return t},createScript:function(t){return t},createScriptURL:function(t){return t}})}catch(e){}return qi}())||void 0===e?void 0:e.createHTML(t))||t}var Zi=function(){function t(e){g(this,t),this.changingThisBreaksApplicationSecurity=e}return v(t,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see https://g.co/ng/security#xss)"}}]),t}(),$i=function(t){y(n,t);var e=k(n);function n(){return g(this,n),e.apply(this,arguments)}return v(n,[{key:"getTypeName",value:function(){return"HTML"}}]),n}(Zi),Xi=function(t){y(n,t);var e=k(n);function n(){return g(this,n),e.apply(this,arguments)}return v(n,[{key:"getTypeName",value:function(){return"Style"}}]),n}(Zi),Qi=function(t){y(n,t);var e=k(n);function n(){return g(this,n),e.apply(this,arguments)}return v(n,[{key:"getTypeName",value:function(){return"Script"}}]),n}(Zi),Ji=function(t){y(n,t);var e=k(n);function n(){return g(this,n),e.apply(this,arguments)}return v(n,[{key:"getTypeName",value:function(){return"URL"}}]),n}(Zi),tr=function(t){y(n,t);var e=k(n);function n(){return g(this,n),e.apply(this,arguments)}return v(n,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),n}(Zi);function er(t){return t instanceof Zi?t.changingThisBreaksApplicationSecurity:t}function nr(t,e){var n=ir(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error("Required a safe ".concat(e,", got a ").concat(n," (see https://g.co/ng/security#xss)"))}return n===e}function ir(t){return t instanceof Zi&&t.getTypeName()||null}var rr=function(){function t(e){g(this,t),this.inertDocumentHelper=e}return v(t,[{key:"getInertBodyElement",value:function(t){t=""+t;try{var e=(new window.DOMParser).parseFromString(Ki(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(n){return null}}}]),t}(),ar=function(){function t(e){if(g(this,t),this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);var i=this.inertDocument.createElement("body");n.appendChild(i)}}return v(t,[{key:"getInertBodyElement",value:function(t){var e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Ki(t),e;var n=this.inertDocument.createElement("body");return n.innerHTML=Ki(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}},{key:"stripCustomNsAttrs",value:function(t){for(var e=t.attributes,n=e.length-1;0"),!0}},{key:"endElement",value:function(t){var e=t.nodeName.toLowerCase();vr.hasOwnProperty(e)&&!dr.hasOwnProperty(e)&&(this.buf.push(""))}},{key:"chars",value:function(t){this.buf.push(Sr(t))}},{key:"checkClobberedElement",value: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: ".concat(t.outerHTML));return e}}]),t}(),wr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Cr=/([^\#-~ |!])/g;function Sr(t){return t.replace(/&/g,"&").replace(wr,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Cr,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}function xr(t,e){var n=null;try{hr=hr||function(t){var e=new ar(t);return function(){try{return!!(new window.DOMParser).parseFromString(Ki(""),"text/html")}catch(t){return!1}}()?new rr(e):e}(t);var i=e?String(e):"";n=hr.getInertBodyElement(i);var r=5,a=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=a,a=n.innerHTML,n=hr.getInertBodyElement(i)}while(i!==a);return(new kr).sanitizeChildren(Er(n)||n)}finally{if(n)for(var o=Er(n)||n;o.firstChild;)o.removeChild(o.firstChild)}}function Er(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Ar=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}({});function Dr(t){var e=Ir();return e?e.sanitize(Ar.HTML,t)||"":nr(t,"HTML")?er(t):xr(Ne(),Ee(t))}function Or(t){var e=Ir();return e?e.sanitize(Ar.URL,t)||"":nr(t,"URL")?er(t):lr(Ee(t))}function Ir(){var t=tn();return t&&t[12]}function Tr(t){return t.ngDebugContext}function Rr(t){return t.ngOriginalError}function Pr(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i0&&(t[i-1][4]=r[4]);var o=Ei(t,ge+e);ua(r[1],n=r,n[11],2,null,null),n[0]=null,n[6]=null;var s=o[19];null!==s&&s.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function $r(t,e){if(!(256&e[2])){var n=e[11];Ve(n)&&n.destroyNode&&ua(t,e,n,3,null,null),function(t){var e=t[13];if(!e)return Xr(t[1],t);for(;e;){var n=null;if(ye(e))n=e[13];else{var i=e[10];i&&(n=i)}if(!n){for(;e&&!e[4]&&e!==t;)ye(e)&&Xr(e[1],e),e=e[3];null===e&&(e=t),ye(e)&&Xr(e[1],e),n=e&&e[4]}e=n}}(e)}}function Xr(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[r=u]():i[r=-u].unsubscribe(),a+=2}else{var c=i[r=n[a+1]];n[a].call(c)}if(null!==i){for(var h=r+1;ha?"":r[c+1].toLowerCase();var d=8&i?h:null;if(d&&-1!==pa(d,u,0)||2&i&&u!==h){if(ba(i))return!1;o=!0}}}}else{if(!o&&!ba(i)&&!ba(l))return!1;if(o&&ba(l))continue;o=!1,i=l|1&i}}return ba(i)||o}function ba(t){return 0==(1&t)}function ka(t,e,n,i){if(null===e)return-1;var r=0;if(i||!n){for(var a=!1;r-1)for(n++;n2&&void 0!==arguments[2]&&arguments[2],i=0;i0?'="'+s+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""===r||ba(o)||(e+=Sa(a,r),r=""),i=o,a=a||!ba(i);n++}return""!==r&&(e+=Sa(a,r)),e}var Ea={};function Aa(t){Da(en(),tn(),Dn()+t,un())}function Da(t,e,n,i){if(!i)if(3==(3&e[2])){var r=t.preOrderCheckHooks;null!==r&&Mn(e,r,n)}else{var a=t.preOrderHooks;null!==a&&Fn(e,a,0,n)}On(n)}function Oa(t,e){return t<<17|e<<2}function Ia(t){return t>>17&32767}function Ta(t){return 2|t}function Ra(t){return(131068&t)>>2}function Pa(t,e){return-131069&t|e<<2}function Ma(t){return 1|t}function Fa(t,e){var n=t.contentQueries;if(null!==n)for(var i=0;ive&&Da(t,e,ve,un()),n(i,r)}finally{On(a)}}function Ua(t,e,n){if(be(e))for(var i=e.directiveEnd,r=e.directiveStart;r2&&void 0!==arguments[2]?arguments[2]:He,i=e.localNames;if(null!==i)for(var r=e.index+1,a=0;a0;){var n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(s)!=l&&s.push(l),s.push(i,r,o)}}function Ja(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function to(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function eo(t,e,n){if(n){if(e.exportAs)for(var i=0;i0&&uo(n)}}function uo(t){for(var e=Hr(t);null!==e;e=Ur(e))for(var n=ge;n0&&uo(i)}var a=t[1].components;if(null!==a)for(var o=0;o0&&uo(s)}}function co(t,e){var n=We(e,t),i=n[1];!function(t,e){for(var n=e.length;n1&&void 0!==arguments[1]?arguments[1]:Li;if(e===Li){var n=new Error("NullInjectorError: No provider for ".concat(wt(t),"!"));throw n.name="NullInjectorError",n}return e}}]),t}(),Ao=new bi("Set Injector scope."),Do={},Oo={},Io=[],To=void 0;function Ro(){return void 0===To&&(To=new Eo),To}function Po(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return new Mo(t,n,e||Ro(),i)}var Mo=function(){function t(e,n,i){var r=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;g(this,t),this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var o=[];n&&Si(n,function(t){return r.processProvider(t,e,n)}),Si([e],function(t){return r.processInjectorType(t,[],o)}),this.records.set(xo,No(void 0,this));var s=this.records.get(Ao);this.scope=null!=s?s.value:null,this.source=a||("object"==typeof e?null:wt(e))}return v(t,[{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(t){return t.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Li,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Vt.Default;this.assertNotDestroyed();var i=zi(this);try{if(!(n&Vt.SkipSelf)){var r=this.records.get(t);if(void 0===r){var a=Bo(t)&&It(t);r=a&&this.injectableDefInScope(a)?No(Fo(t),Do):null,this.records.set(t,r)}if(null!=r)return this.hydrate(t,r)}var o=n&Vt.Self?Ro():this.parent;return o.get(t,e=n&Vt.Optional&&e===Li?null:e)}catch(l){if("NullInjectorError"===l.name){var s=l.ngTempTokenPath=l.ngTempTokenPath||[];if(s.unshift(wt(t)),i)throw l;return Gi(l,t,"R3InjectorError",this.source)}throw l}finally{zi(i)}}},{key:"_resolveInjectorDefTypes",value:function(){var t=this;this.injectorDefTypes.forEach(function(e){return t.get(e)})}},{key:"toString",value:function(){var t=[];return this.records.forEach(function(e,n){return t.push(wt(n))}),"R3Injector[".concat(t.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(t,e,n){var i=this;if(!(t=Et(t)))return!1;var r=Rt(t),a=null==r&&t.ngModule||void 0,o=void 0===a?t:a,s=-1!==n.indexOf(o);if(void 0!==a&&(r=Rt(a)),null==r)return!1;if(null!=r.imports&&!s){var l;n.push(o);try{Si(r.imports,function(t){i.processInjectorType(t,e,n)&&(void 0===l&&(l=[]),l.push(t))})}finally{}if(void 0!==l)for(var u=function(t){var e=l[t],n=e.ngModule,r=e.providers;Si(r,function(t){return i.processProvider(t,n,r||Io)})},c=0;c0){var n=Ai(e,"?");throw new Error("Can't resolve all parameters for ".concat(wt(t),": (").concat(n.join(", "),")."))}var i=function(t){var e=t&&(t[Mt]||t[Lt]);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 "'.concat(n,'" that inherits its @Injectable decorator but does not provide one itself.\n')+'This will become an error in a future version of Angular. Please add @Injectable() to the "'.concat(n,'" class.')),e}return null}(t);return null!==i?function(){return i.factory(t)}:function(){return new t}}(t);throw new Error("unreachable")}function Lo(t,e,n){var i,r=void 0;if(jo(t)){var a=Et(t);return Se(a)||Fo(a)}if(Vo(t))r=function(){return Et(t.useValue)};else if((i=t)&&i.useFactory)r=function(){return t.useFactory.apply(t,h(Yi(t.deps||[])))};else if(function(t){return!(!t||!t.useExisting)}(t))r=function(){return Ui(Et(t.useExisting))};else{var o=Et(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return Se(o)||Fo(o);r=function(){return p(o,h(Yi(t.deps)))}}return r}function No(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:t,value:e,multi:n?[]:void 0}}function Vo(t){return null!==t&&"object"==typeof t&&ji in t}function jo(t){return"function"==typeof t}function Bo(t){return"function"==typeof t||"object"==typeof t&&t instanceof bi}var zo=function(t,e,n){return function(t){var e=Po(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,arguments.length>3?arguments[3]:void 0);return e._resolveInjectorDefTypes(),e}({name:n},e,t,n)},Ho=function(){var t=function(){function t(){g(this,t)}return v(t,null,[{key:"create",value:function(t,e){return Array.isArray(t)?zo(t,e,""):zo(t.providers,t.parent,t.name||"")}}]),t}();return t.THROW_IF_NOT_FOUND=Li,t.NULL=new Eo,t.\u0275prov=Dt({token:t,providedIn:"any",factory:function(){return Ui(xo)}}),t.__NG_ELEMENT_ID__=-1,t}();function Uo(t,e){Pn(Ye(t)[1],rn())}function qo(t){for(var e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0,i=[t];e;){var r=void 0;if(Ce(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 a=t;a.inputs=Wo(t.inputs),a.declaredInputs=Wo(t.declaredInputs),a.outputs=Wo(t.outputs);var o=r.hostBindings;o&&Ko(t,o);var s=r.viewQuery,l=r.contentQueries;if(s&&Yo(t,s),l&&Go(t,l),kt(t.inputs,r.inputs),kt(t.declaredInputs,r.declaredInputs),kt(t.outputs,r.outputs),Ce(r)&&r.data.animation){var u=t.data;u.animation=(u.animation||[]).concat(r.data.animation)}}var c=r.features;if(c)for(var h=0;h=0;i--){var r=t[i];r.hostVars=e+=r.hostVars,r.hostAttrs=qn(r.hostAttrs,n=qn(n,r.hostAttrs))}}(i)}function Wo(t){return t===$t?{}:t===Xt?[]:t}function Yo(t,e){var n=t.viewQuery;t.viewQuery=n?function(t,i){e(t,i),n(t,i)}:e}function Go(t,e){var n=t.contentQueries;t.contentQueries=n?function(t,i,r){e(t,i,r),n(t,i,r)}:e}function Ko(t,e){var n=t.hostBindings;t.hostBindings=n?function(t,i){e(t,i),n(t,i)}:e}var Zo=null;function $o(){if(!Zo){var t=Zt.Symbol;if(t&&t.iterator)Zo=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),n=0;n1&&void 0!==arguments[1]?arguments[1]:Vt.Default,n=tn();if(null===n)return Ui(t,e);var i=rn();return ai(i,n,Et(t),e)}function ls(t,e,n){var i=tn();return es(i,fn(),e)&&$a(en(),In(),i,t,e,i[11],n,!1),ls}function us(t,e,n,i,r){var a=r?"class":"style";wo(t,n,e.inputs[a],a,i)}function cs(t,e,n,i){var r=tn(),a=en(),o=ve+t,s=r[11],l=r[o]=Gr(s,e,Qe.lFrame.currentNamespace),u=a.firstCreatePass?function(t,e,n,i,r,a,o){var s=e.consts,l=Na(e,t,2,r,Ze(s,a));return Xa(e,n,l,Ze(s,o)),null!==l.attrs&&So(l,l.attrs,!1),null!==l.mergedAttrs&&So(l,l.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,l),l}(o,a,r,0,e,n,i):a.data[o];on(u,!0);var c=u.mergedAttrs;null!==c&&zn(s,l,c);var h=u.classes;null!==h&&fa(s,l,h);var d=u.styles;null!==d&&da(s,l,d),64!=(64&u.flags)&&aa(a,r,l,u),0===Qe.lFrame.elementDepthCount&&Fr(l,r),Qe.lFrame.elementDepthCount++,we(u)&&(qa(a,r,u),Ua(a,u,r)),null!==i&&Wa(r,u)}function hs(){var t=rn();sn()?ln():on(t=t.parent,!1);var e=t;Qe.lFrame.elementDepthCount--;var n=en();n.firstCreatePass&&(Pn(n,t),be(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&us(n,e,tn(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&us(n,e,tn(),e.stylesWithoutHost,!1)}function ds(t,e,n,i){cs(t,e,n,i),hs()}function fs(t,e,n){var i=tn(),r=en(),a=t+ve,o=r.firstCreatePass?function(t,e,n,i,r){var a=e.consts,o=Ze(a,i),s=Na(e,t,8,"ng-container",o);return null!==o&&So(s,o,!0),Xa(e,n,s,Ze(a,r)),null!==e.queries&&e.queries.elementStart(e,s),s}(a,r,i,e,n):r.data[a];on(o,!0);var s=i[a]=i[11].createComment("");aa(r,i,s,o),Fr(s,i),we(o)&&(qa(r,i,o),Ua(r,o,i)),null!=n&&Wa(i,o)}function ps(){var t=rn(),e=en();sn()?ln():on(t=t.parent,!1),e.firstCreatePass&&(Pn(e,t),be(t)&&e.queries.elementEnd(t))}function ms(t,e,n){fs(t,e,n),ps()}function vs(){return tn()}function gs(t){return!!t&&"function"==typeof t.then}function ys(t){return!!t&&"function"==typeof t.subscribe}function _s(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,r=tn(),a=en(),o=rn();return ws(a,r,r[11],o,t,e,n,i),_s}function bs(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,r=rn(),a=tn(),o=en(),s=vn(o.data),l=bo(s,r,a);return ws(o,a,l,r,t,e,n,i),bs}function ks(t,e,n,i){var r=t.cleanup;if(null!=r)for(var a=0;al?s[l]:null}"string"==typeof o&&(a+=2)}return null}function ws(t,e,n,i,r,a){var o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7?arguments[7]:void 0,l=we(i),u=t.firstCreatePass,c=u&&_o(t),h=yo(e),d=!0;if(3&i.type){var f=He(i,e),p=s?s(f):$t,m=p.target||f,v=h.length,g=s?function(t){return s(Be(t[i.index])).target}:i.index;if(Ve(n)){var y=null;if(!s&&l&&(y=ks(t,e,r,i.index)),null!==y){var _=y.__ngLastListenerFn__||y;_.__ngNextListenerFn__=a,y.__ngLastListenerFn__=a,d=!1}else{a=Ss(i,e,a,!1);var b=n.listen(p.name||m,r,a);h.push(a,b),c&&c.push(r,g,v,v+1)}}else a=Ss(i,e,a,!0),m.addEventListener(r,a,o),h.push(a),c&&c.push(r,g,v,o)}else a=Ss(i,e,a,!1);var k,w=i.outputs;if(d&&null!==w&&(k=w[r])){var C=k.length;if(C)for(var S=0;S0&&void 0!==arguments[0]?arguments[0]:1;return An(t)}function Es(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;r1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=tn(),r=en(),a=Na(r,ve+t,16,null,n||null);null===a.projection&&(a.projection=e),ln(),64!=(64&a.flags)&&ca(r,i,a)}function Os(t,e,n){return Is(t,"",e,"",n),Os}function Is(t,e,n,i,r){var a=tn(),o=rs(a,e,n,i);return o!==Ea&&$a(en(),In(),a,t,o,a[11],r,!1),Is}var Ts=[];function Rs(t,e,n,i,r){for(var a=t[n+1],o=null===e,s=i?Ia(a):Ra(a),l=!1;0!==s&&(!1===l||o);){var u=t[s+1];Ps(t[s],e)&&(l=!0,t[s+1]=i?Ma(u):Ta(u)),s=i?Ia(u):Ra(u)}l&&(t[n+1]=i?Ta(a):Ma(a))}function Ps(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&Ii(t,e)>=0}var Ms={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Fs(t){return t.substring(Ms.key,Ms.keyEnd)}function Ls(t,e){var n=Ms.textEnd;return n===e?-1:(e=Ms.keyEnd=function(t,e,n){for(;e32;)e++;return e}(t,Ms.key=e,n),Ns(t,e,n))}function Ns(t,e,n){for(;e=0;n=Ls(e,n))Di(t,Fs(e),!0)}function zs(t,e,n,i){var r=tn(),a=en(),o=pn(2);a.firstUpdatePass&&Us(a,t,o,i),e!==Ea&&es(r,o,e)&&Ys(a,a.data[Dn()],r,r[11],t,r[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=wt(er(t)))),t}(e,n),i,o)}function Hs(t,e){return e>=t.expandoStartIndex}function Us(t,e,n,i){var r=t.data;if(null===r[n+1]){var a=r[Dn()],o=Hs(t,n);Zs(a,i)&&null===e&&!o&&(e=!1),e=function(t,e,n,i){var r=vn(t),a=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(n=Ws(n=qs(null,t,e,n,i),e.attrs,i),a=null);else{var o=e.directiveStylingLast;if(-1===o||t[o]!==r)if(n=qs(r,t,e,n,i),null===a){var s=function(t,e,n){var i=n?e.classBindings:e.styleBindings;if(0!==Ra(i))return t[Ia(i)]}(t,e,i);void 0!==s&&Array.isArray(s)&&function(t,e,n,i){t[Ia(n?e.classBindings:e.styleBindings)]=i}(t,e,i,s=Ws(s=qs(null,t,e,s[1],i),e.attrs,i))}else a=function(t,e,n){for(var i=void 0,r=e.directiveEnd,a=1+e.directiveStylingLast;a0)&&(c=!0):u=n,r)if(0!==l){var h=Ia(t[s+1]);t[i+1]=Oa(h,s),0!==h&&(t[h+1]=Pa(t[h+1],i)),t[s+1]=131071&t[s+1]|i<<17}else t[i+1]=Oa(s,0),0!==s&&(t[s+1]=Pa(t[s+1],i)),s=i;else t[i+1]=Oa(l,0),0===s?s=i:t[l+1]=Pa(t[l+1],i),l=i;c&&(t[i+1]=Ta(t[i+1])),Rs(t,u,i,!0),Rs(t,u,i,!1),function(t,e,n,i,r){var a=r?t.residualClasses:t.residualStyles;null!=a&&"string"==typeof e&&Ii(a,e)>=0&&(n[i+1]=Ma(n[i+1]))}(e,u,t,i,a),o=Oa(s,l),a?e.classBindings=o:e.styleBindings=o}(r,a,e,n,o,i)}}function qs(t,e,n,i,r){var a=null,o=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s0;){var l=t[r],u=Array.isArray(l),c=u?l[1]:l,h=null===c,d=n[r+1];d===Ea&&(d=h?Ts:void 0);var f=h?Oi(d,i):c===i?d:void 0;if(u&&!Ks(f)&&(f=Oi(l,i)),Ks(f)&&(s=f,o))return s;var p=t[r+1];r=o?Ia(p):Ra(p)}if(null!==e){var m=a?e.residualClasses:e.residualStyles;null!=m&&(s=Oi(m,i))}return s}function Ks(t){return void 0!==t}function Zs(t,e){return 0!=(t.flags&(e?16:32))}function $s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=tn(),i=en(),r=t+ve,a=i.firstCreatePass?Na(i,r,1,e,null):i.data[r],o=n[r]=Yr(n[11],e);aa(i,n,o,a),on(a,!1)}function Xs(t){return Qs("",t,""),Xs}function Qs(t,e,n){var i=tn(),r=rs(i,t,e,n);return r!==Ea&&Co(i,Dn(),r),Qs}function Js(t,e,n,i,r){var a=tn(),o=function(t,e,n,i,r,a){var o=ns(t,dn(),n,r);return pn(2),o?e+Ee(n)+i+Ee(r)+a:Ea}(a,t,e,n,i,r);return o!==Ea&&Co(a,Dn(),o),Js}function tl(t,e,n){var i=tn();return es(i,fn(),e)&&$a(en(),In(),i,t,e,i[11],n,!0),tl}function el(t,e,n){var i=tn();if(es(i,fn(),e)){var r=en(),a=In();$a(r,a,i,t,e,bo(vn(r.data),a,i),n,!0)}return el}var nl=void 0,il=["en",[["a","p"],["AM","PM"],nl],[["AM","PM"],nl,nl],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],nl,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],nl,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",nl,"{1} 'at' {0}",nl],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}],rl={};function al(t){return t in rl||(rl[t]=Zt.ng&&Zt.ng.common&&Zt.ng.common.locales&&Zt.ng.common.locales[t]),rl[t]}var ol=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({}),sl="en-US";function ll(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,i){throw new Error("ASSERTION ERROR: ".concat(t)+" [Expected=> ".concat(null," ").concat("!="," ").concat(e," <=Actual]"))}(n,e),"string"==typeof t&&t.toLowerCase().replace(/_/g,"-")}function ul(t,e,n){var i=en();if(i.firstCreatePass){var r=Ce(t);cl(n,i.data,i.blueprint,r,!0),cl(e,i.data,i.blueprint,r,!1)}}function cl(t,e,n,i,r){if(t=Et(t),Array.isArray(t))for(var a=0;a>20;if(jo(t)||!t.multi){var p=new Bn(u,r,ss),m=fl(l,e,r?h:h+f,d);-1===m?(ni(Qn(c,s),o,l),hl(o,t,e.length),e.push(l),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(p),s.push(p)):(n[m]=p,s[m]=p)}else{var v=fl(l,e,h+f,d),g=fl(l,e,h,h+f),y=g>=0&&n[g];if(r&&!y||!r&&!(v>=0&&n[v])){ni(Qn(c,s),o,l);var _=function(t,e,n,i,r){var a=new Bn(t,n,ss);return a.multi=[],a.index=e,a.componentProviders=0,dl(a,r,i&&!n),a}(r?ml:pl,n.length,r,i,u);!r&&y&&(n[g].providerFactory=_),hl(o,t,e.length,0),e.push(l),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(_),s.push(_)}else hl(o,t,v>-1?v:g,dl(n[r?g:v],u,!r&&i));!r&&i&&y&&n[g].componentProviders++}}}function hl(t,e,n,i){var r=jo(e);if(r||e.useClass){var a=(e.useClass||e).prototype.ngOnDestroy;if(a){var o=t.destroyHooks||(t.destroyHooks=[]);if(!r&&e.multi){var s=o.indexOf(n);-1===s?o.push(n,[i,a]):o[s+1].push(i,a)}else o.push(n,a)}}}function dl(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function fl(t,e,n,i){for(var r=n;r1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,i){return ul(n,i?i(t):t,e)}}}var yl=function t(){g(this,t)},_l=function t(){g(this,t)},bl=function(){function t(){g(this,t)}return v(t,[{key:"resolveComponentFactory",value:function(t){throw function(t){var e=Error("No component factory found for ".concat(wt(t),". Did you add it to @NgModule.entryComponents?"));return e.ngComponent=t,e}(t)}}]),t}(),kl=function(){var t=function t(){g(this,t)};return t.NULL=new bl,t}();function wl(){}function Cl(t,e){return new xl(He(t,e))}var Sl=function(){return Cl(rn(),tn())},xl=function(){var t=function t(e){g(this,t),this.nativeElement=e};return t.__NG_ELEMENT_ID__=Sl,t}(),El=function t(){g(this,t)},Al=function(){var t=function t(){g(this,t)};return t.__NG_ELEMENT_ID__=function(){return Dl()},t}(),Dl=function(){var t=tn(),e=We(rn().index,t);return function(t){return t[11]}(ye(e)?e:t)},Ol=function(){var t=function t(){g(this,t)};return t.\u0275prov=Dt({token:t,providedIn:"root",factory:function(){return null}}),t}(),Il=function t(e){g(this,t),this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")},Tl=new Il("11.0.9"),Rl=function(){function t(){g(this,t)}return v(t,[{key:"supports",value:function(t){return Qo(t)}},{key:"create",value:function(t){return new Ml(t)}}]),t}(),Pl=function(t,e){return e},Ml=function(){function t(e){g(this,t),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||Pl}return v(t,[{key:"forEachItem",value:function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)}},{key:"forEachOperation",value:function(t){for(var e=this._itHead,n=this._removalsHead,i=0,r=null;e||n;){var a=!n||e&&e.currentIndex4&&void 0!==arguments[4]&&arguments[4];null!==n;){var a=e[n.index];if(null!==a&&i.push(Be(a)),_e(a))for(var o=ge;o-1&&(Zr(t,n),Ei(e,n))}this._attachedToViewContainer=!1}$r(this._lView[1],this._lView)}},{key:"onDestroy",value:function(t){Ka(this._lView[1],this._lView,null,t)}},{key:"markForCheck",value:function(){fo(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){po(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(t,e,n){cn(!0);try{po(t,e,n)}finally{cn(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){var t;this._appRef=null,ua(this._lView[1],t=this._lView,t[11],2,null,null)}},{key:"attachToAppRef",value:function(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}},{key:"rootNodes",get:function(){var t=this._lView,e=t[1];return ql(e,t,e.firstChild,[])}},{key:"context",get:function(){return this._lView[8]}},{key:"destroyed",get:function(){return 256==(256&this._lView[2])}}]),t}(),Yl=function(t){y(n,t);var e=k(n);function n(t){var i;return g(this,n),(i=e.call(this,t))._view=t,i}return v(n,[{key:"detectChanges",value:function(){mo(this._view)}},{key:"checkNoChanges",value:function(){!function(t){cn(!0);try{mo(t)}finally{cn(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(Wl),Gl=Zl,Kl=function(){var t=function t(){g(this,t)};return t.__NG_ELEMENT_ID__=Gl,t.__ChangeDetectorRef__=!0,t}();function Zl(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return $l(rn(),tn(),t)}function $l(t,e,n){if(!n&&ke(t)){var i=We(t.index,e);return new Wl(i,i)}return 47&t.type?new Wl(e[16],e):null}var Xl=[new jl],Ql=new Hl([new Rl]),Jl=new Ul(Xl),tu=function(){return iu(rn(),tn())},eu=function(){var t=function t(){g(this,t)};return t.__NG_ELEMENT_ID__=tu,t}(),nu=function(t){y(n,t);var e=k(n);function n(t,i,r){var a;return g(this,n),(a=e.call(this))._declarationLView=t,a._declarationTContainer=i,a.elementRef=r,a}return v(n,[{key:"createEmbeddedView",value:function(t){var e=this._declarationTContainer.tViews,n=La(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(e)),ja(e,n,t),new Wl(n)}}]),n}(eu);function iu(t,e){return 4&t.type?new nu(e,t,Cl(t,e)):null}var ru=function t(){g(this,t)},au=function t(){g(this,t)},ou=function(){return hu(rn(),tn())},su=function(){var t=function t(){g(this,t)};return t.__NG_ELEMENT_ID__=ou,t}(),lu=function(t){y(n,t);var e=k(n);function n(t,i,r){var a;return g(this,n),(a=e.call(this))._lContainer=t,a._hostTNode=i,a._hostLView=r,a}return v(n,[{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(t){var e=uu(this._lContainer);return null!==e&&e[t]||null}},{key:"createEmbeddedView",value:function(t,e,n){var i=t.createEmbeddedView(e||{});return this.insert(i,n),i}},{key:"createComponent",value:function(t,e,n,i,r){var a=n||this.parentInjector;if(!r&&null==t.ngModule&&a){var o=a.get(ru,null);o&&(r=o)}var s=t.create(a,i,void 0,r);return this.insert(s.hostView,e),s}},{key:"insert",value:function(t,e){var n=t._lView,i=n[1];if(_e(n[3])){var r=this.indexOf(t);if(-1!==r)this.detach(r);else{var a=n[3],o=new lu(a,a[6],a[3]);o.detach(o.indexOf(t))}}var s=this._adjustIndex(e),l=this._lContainer;!function(t,e,n,i){var r=ge+i,a=n.length;i>0&&(n[r-1][4]=e),i1&&void 0!==arguments[1]?arguments[1]:0;return null==t?this.length+e:t}},{key:"element",get:function(){return Cl(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new pi(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var t=ei(this._hostTNode,this._hostLView);if(Yn(t)){var e=Kn(t,this._hostLView),n=Gn(t);return new pi(e[1].data[n+8],e)}return new pi(null,this._hostLView)}},{key:"length",get:function(){return this._lContainer.length-ge}}]),n}(su);function uu(t){return t[8]}function cu(t){return t[8]||(t[8]=[])}function hu(t,e){var n,i=e[t.index];if(_e(i))n=i;else{var r;if(8&t.type)r=Be(i);else{var a=e[11];r=a.createComment("");var o=He(t,e);Jr(a,na(a,o),r,function(t,e){return Ve(t)?t.nextSibling(e):e.nextSibling}(a,o),!1)}e[t.index]=n=so(i,e,r,t),ho(e,n)}return new lu(n,t,e)}var du={},fu=function(t){y(n,t);var e=k(n);function n(t){var i;return g(this,n),(i=e.call(this)).ngModule=t,i}return v(n,[{key:"resolveComponentFactory",value:function(t){var e=pe(t);return new vu(e,this.ngModule)}}]),n}(kl);function pu(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}var mu=new bi("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Lr}}),vu=function(t){y(n,t);var e=k(n);function n(t,i){var r;return g(this,n),(r=e.call(this)).componentDef=t,r.ngModule=i,r.componentType=t.type,r.selector=t.selectors.map(xa).join(","),r.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],r.isBoundToModule=!!i,r}return v(n,[{key:"create",value:function(t,e,n,i){var r,a,o=(i=i||this.ngModule)?function(t,e){return{get:function(n,i,r){var a=t.get(n,du,r);return a!==du||i===du?a:e.get(n,i,r)}}}(t,i.injector):t,s=o.get(El,je),l=o.get(Ol,null),u=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",h=n?function(t,e,n){if(Ve(t))return t.selectRootElement(e,n===qt.ShadowDom);var i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(u,n,this.componentDef.encapsulation):Gr(s.createRenderer(null,this.componentDef),c,function(t){var e=t.toLowerCase();return"svg"===e?Fe:"math"===e?"http://www.w3.org/1998/MathML/":null}(c)),d=this.componentDef.onPush?576:528,f={components:[],scheduler:Lr,clean:go,playerHandler:null,flags:0},p=Ga(0,null,null,1,0,null,null,null,null,null),m=La(null,p,f,d,null,null,s,u,l,o);kn(m);try{var v=function(t,e,n,i,r,a){var o=n[1];n[20]=t;var s=Na(o,20,2,"#host",null),l=s.mergedAttrs=e.hostAttrs;null!==l&&(So(s,l,!0),null!==t&&(zn(r,t,l),null!==s.classes&&fa(r,t,s.classes),null!==s.styles&&da(r,t,s.styles)));var u=i.createRenderer(t,e),c=La(n,Ya(e),null,e.onPush?64:16,n[20],s,i,u,null,null);return o.firstCreatePass&&(ni(Qn(s,n),o,e.type),to(o,s),no(s,n.length,1)),ho(n,c),n[20]=c}(h,this.componentDef,m,s,u);if(h)if(n)zn(u,h,["ng-version",Tl.full]);else{var g=function(t){for(var e=[],n=[],i=1,r=2;i0&&fa(u,h,_.join(" "))}if(a=Ue(p,ve),void 0!==e)for(var b=a.projection=[],k=0;k1&&void 0!==arguments[1]?arguments[1]:Ho.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Vt.Default;return t===Ho||t===ru||t===xo?this:this._r3Injector.get(t,e,n)}},{key:"destroy",value:function(){var t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(function(t){return t()}),this.destroyCbs=null}},{key:"onDestroy",value:function(t){this.destroyCbs.push(t)}}]),n}(ru),bu=function(t){y(n,t);var e=k(n);function n(t){var i,r,a;return g(this,n),(i=e.call(this)).moduleType=t,null!==me(t)&&(r=t,a=new Set,function t(e){var n=me(e,!0),i=n.id;null!==i&&(function(t,e,n){if(e&&e!==n)throw new Error("Duplicate module registered for ".concat(t," - ").concat(wt(e)," vs ").concat(wt(e.name)))}(i,yu.get(i),e),yu.set(i,e));var r,o=c(Vr(n.imports));try{for(o.s();!(r=o.n()).done;){var s=r.value;a.has(s)||(a.add(s),t(s))}}catch(l){o.e(l)}finally{o.f()}}(r)),i}return v(n,[{key:"create",value:function(t){return new _u(this.moduleType,t)}}]),n}(au);function ku(t,e,n){var i=hn()+t,r=tn();return r[i]===Ea?ts(r,i,n?e.call(n):e()):function(t,e){return t[e]}(r,i)}function wu(t,e,n,i){return xu(tn(),hn(),t,e,n,i)}function Cu(t,e,n,i,r){return Eu(tn(),hn(),t,e,n,i,r)}function Su(t,e){var n=t[e];return n===Ea?void 0:n}function xu(t,e,n,i,r,a){var o=e+n;return es(t,o,r)?ts(t,o+1,a?i.call(a,r):i(r)):Su(t,o+1)}function Eu(t,e,n,i,r,a,o){var s=e+n;return ns(t,s,r,a)?ts(t,s+2,o?i.call(o,r,a):i(r,a)):Su(t,s+2)}function Au(t,e){var n,i=en(),r=t+ve;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 xe("302","The pipe '".concat(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 a=n.factory||(n.factory=Se(n.type)),o=Bt(ss);try{var s=$n(!1),l=a();return $n(s),function(t,e,n,i){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=i}(i,tn(),r,l),l}finally{Bt(o)}}function Du(t,e,n){var i=t+ve,r=tn(),a=qe(r,i);return Tu(r,Iu(r,i)?xu(r,hn(),e,a.transform,n,a):a.transform(n))}function Ou(t,e,n,i){var r=t+ve,a=tn(),o=qe(a,r);return Tu(a,Iu(a,r)?Eu(a,hn(),e,o.transform,n,i,o):o.transform(n,i))}function Iu(t,e){return t[1].data[e].pure}function Tu(t,e){return Xo.isWrapped(e)&&(e=Xo.unwrap(e),t[dn()]=Ea),e}var Ru=function(t){y(n,t);var e=k(n);function n(){var t,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return g(this,n),(t=e.call(this)).__isAsync=i,t}return v(n,[{key:"emit",value:function(t){r(i(n.prototype),"next",this).call(this,t)}},{key:"subscribe",value:function(t,e,a){var o,s=function(t){return null},l=function(){return null};t&&"object"==typeof t?(o=this.__isAsync?function(e){setTimeout(function(){return t.next(e)})}:function(e){t.next(e)},t.error&&(s=this.__isAsync?function(e){setTimeout(function(){return t.error(e)})}:function(e){t.error(e)}),t.complete&&(l=this.__isAsync?function(){setTimeout(function(){return t.complete()})}:function(){t.complete()})):(o=this.__isAsync?function(e){setTimeout(function(){return t(e)})}:function(e){t(e)},e&&(s=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)}),a&&(l=this.__isAsync?function(){setTimeout(function(){return a()})}:function(){a()}));var u=r(i(n.prototype),"subscribe",this).call(this,o,s,l);return t instanceof A&&t.add(u),u}}]),n}(q);function Pu(){return this._results[$o()]()}var Mu=function(){function t(){g(this,t),this.dirty=!0,this._results=[],this.changes=new Ru,this.length=0;var e=$o(),n=t.prototype;n[e]||(n[e]=Pu)}return v(t,[{key:"map",value:function(t){return this._results.map(t)}},{key:"filter",value:function(t){return this._results.filter(t)}},{key:"find",value:function(t){return this._results.find(t)}},{key:"reduce",value:function(t,e){return this._results.reduce(t,e)}},{key:"forEach",value:function(t){this._results.forEach(t)}},{key:"some",value:function(t){return this._results.some(t)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(t){this._results=Ci(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}},{key:"notifyOnChanges",value:function(){this.changes.emit(this)}},{key:"setDirty",value:function(){this.dirty=!0}},{key:"destroy",value:function(){this.changes.complete(),this.changes.unsubscribe()}}]),t}(),Fu=function(){function t(e){g(this,t),this.queryList=e,this.matches=null}return v(t,[{key:"clone",value:function(){return new t(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),t}(),Lu=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];g(this,t),this.queries=e}return v(t,[{key:"createEmbeddedView",value:function(e){var n=e.queries;if(null!==n){for(var i=null!==e.contentQueries?e.contentQueries[0]:n.length,r=[],a=0;a3&&void 0!==arguments[3]?arguments[3]:null;g(this,t),this.predicate=e,this.descendants=n,this.isStatic=i,this.read=r},Vu=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];g(this,t),this.queries=e}return v(t,[{key:"elementStart",value:function(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;g(this,t),this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return v(t,[{key:"elementStart",value:function(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}},{key:"elementEnd",value:function(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(t,e){this.elementStart(t,e)}},{key:"embeddedTView",value:function(e,n){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,n),new t(this.metadata)):null}},{key:"isApplyingToNode",value:function(t){if(this._appliesToNextNode&&!1===this.metadata.descendants){for(var e=this._declarationNodeIndex,n=t.parent;null!==n&&8&n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(t,e){var n=this.metadata.predicate;if(Array.isArray(n))for(var i=0;i0)i.push(o[s/2]);else{for(var u=a[s+1],c=e[-l],h=ge;h0&&(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})}},{key:"whenStable",value: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()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(t,e,n){return[]}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Ui(Cc))},t.\u0275prov=Dt({token:t,factory:t.\u0275fac}),t}(),Rc=function(){var t=function(){function t(){g(this,t),this._applications=new Map,Pc.addToWindow(this)}return v(t,[{key:"registerApplication",value:function(t,e){this._applications.set(t,e)}},{key:"unregisterApplication",value:function(t){this._applications.delete(t)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(t){return this._applications.get(t)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Pc.findTestabilityInTree(this,t,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Dt({token:t,factory:t.\u0275fac}),t}(),Pc=new(function(){function t(){g(this,t)}return v(t,[{key:"addToWindow",value:function(t){}},{key:"findTestabilityInTree",value:function(t,e,n){return null}}]),t}()),Mc=!0,Fc=!1;function Lc(){return Fc=!0,Mc}var Nc=function(t,e,n){var i=new bu(n);return Promise.resolve(i)},Vc=new bi("AllowMultipleToken"),jc=function t(e,n){g(this,t),this.name=e,this.token=n};function Bc(t){if(Oc&&!Oc.destroyed&&!Oc.injector.get(Vc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Oc=t.get(qc);var e=t.get(sc,null);return e&&e.forEach(function(t){return t()}),Oc}function zc(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i="Platform: ".concat(e),r=new bi(i);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=Uc();if(!a||a.injector.get(Vc,!1))if(t)t(n.concat(e).concat({provide:r,useValue:!0}));else{var o=n.concat(e).concat({provide:r,useValue:!0},{provide:Ao,useValue:"platform"});Bc(Ho.create({providers:o,name:i}))}return Hc(r)}}function Hc(t){var e=Uc();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}function Uc(){return Oc&&!Oc.destroyed?Oc:null}var qc=function(){var t=function(){function t(e){g(this,t),this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return v(t,[{key:"bootstrapModuleFactory",value:function(t,e){var n,i,r=this,a=(i=e&&e.ngZoneEventCoalescing||!1,"noop"===(n=e?e.ngZone:void 0)?new Ic:("zone.js"===n?void 0:n)||new Cc({enableLongStackTrace:Lc(),shouldCoalesceEventChangeDetection:i})),o=[{provide:Cc,useValue:a}];return a.run(function(){var e=Ho.create({providers:o,parent:r.injector,name:t.moduleType.name}),n=t.create(e),i=n.injector.get(Mr,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return a.runOutsideAngular(function(){var t=a.onError.subscribe({next:function(t){i.handleError(t)}});n.onDestroy(function(){Gc(r._modules,n),t.unsubscribe()})}),function(t,e,i){try{var a=((o=n.injector.get(ic)).runInitializers(),o.donePromise.then(function(){return ll(n.injector.get(hc,sl)||sl),r._moduleDoBootstrap(n),n}));return gs(a)?a.catch(function(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}):a}catch(s){throw e.runOutsideAngular(function(){return t.handleError(s)}),s}var o}(i,a)})}},{key:"bootstrapModule",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=Wc({},n);return Nc(0,0,t).then(function(t){return e.bootstrapModuleFactory(t,i)})}},{key:"_moduleDoBootstrap",value:function(t){var e=t.injector.get(Yc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module ".concat(wt(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)}},{key:"onDestroy",value:function(t){this._destroyListeners.push(t)}},{key:"destroy",value: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}},{key:"injector",get:function(){return this._injector}},{key:"destroyed",get:function(){return this._destroyed}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Ui(Ho))},t.\u0275prov=Dt({token:t,factory:t.\u0275fac}),t}();function Wc(t,e){return Array.isArray(e)?e.reduce(Wc,t):Object.assign(Object.assign({},t),e)}var Yc=function(){var t=function(){function t(e,n,i,r,a,o){var s=this;g(this,t),this._zone=e,this._console=n,this._injector=i,this._exceptionHandler=r,this._componentFactoryResolver=a,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var l=new j(function(t){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){t.next(s._stable),t.complete()})}),u=new j(function(t){var e;s._zone.runOutsideAngular(function(){e=s._zone.onStable.subscribe(function(){Cc.assertNotInAngularZone(),wc(function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,t.next(!0))})})});var n=s._zone.onUnstable.subscribe(function(){Cc.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=dt(l,u.pipe(function(t){return ft()((e=_t,function(t){var n;n="function"==typeof e?e:function(){return e};var i=Object.create(t,gt);return i.source=t,i.subjectFactory=n,i})(t));var e}))}return v(t,[{key:"bootstrap",value: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 _l?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var r=n.isBoundToModule?void 0:this._injector.get(ru),a=n.create(Ho.NULL,[],e||n.selector,r),o=a.location.nativeElement,s=a.injector.get(Tc,null),l=s&&a.injector.get(Rc);return s&&l&&l.registerApplication(o,s),a.onDestroy(function(){i.detachView(a.hostView),Gc(i.components,a),l&&l.unregisterApplication(o)}),this._loadComponent(a),Lc()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),a}},{key:"tick",value:function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var e,n=c(this._views);try{for(n.s();!(e=n.n()).done;)e.value.detectChanges()}catch(i){n.e(i)}finally{n.f()}}catch(r){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(r)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(t){var e=t;this._views.push(e),e.attachToAppRef(this)}},{key:"detachView",value:function(t){var e=t;Gc(this._views,e),e.detachFromAppRef()}},{key:"_loadComponent",value:function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(uc,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(t){return t.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Ui(Cc),Ui(cc),Ui(Ho),Ui(Mr),Ui(kl),Ui(ic))},t.\u0275prov=Dt({token:t,factory:t.\u0275fac}),t}();function Gc(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var Kc=function t(){g(this,t)},Zc=function t(){g(this,t)},$c={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Xc=function(){var t=function(){function t(e,n){g(this,t),this._compiler=e,this._config=n||$c}return v(t,[{key:"load",value:function(t){return this.loadAndCompile(t)}},{key:"loadAndCompile",value:function(t){var e=this,i=l(t.split("#"),2),r=i[0],a=i[1];return void 0===a&&(a="default"),n("crnd")(r).then(function(t){return t[a]}).then(function(t){return Qc(t,r,a)}).then(function(t){return e._compiler.compileModuleAsync(t)})}},{key:"loadFactory",value:function(t){var e=l(t.split("#"),2),i=e[0],r=e[1],a="NgFactory";return void 0===r&&(r="default",a=""),n("crnd")(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(function(t){return t[r+a]}).then(function(t){return Qc(t,i,r)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Ui(bc),Ui(Zc,8))},t.\u0275prov=Dt({token:t,factory:t.\u0275fac}),t}();function Qc(t,e,n){if(!t)throw new Error("Cannot find '".concat(n,"' in '").concat(e,"'"));return t}var Jc=zc(null,"core",[{provide:lc,useValue:"unknown"},{provide:qc,deps:[Ho]},{provide:Rc,deps:[]},{provide:cc,deps:[]}]),th=[{provide:Yc,useClass:Yc,deps:[Cc,cc,Ho,Mr,kl,ic]},{provide:mu,deps:[Cc],useFactory:function(t){var e=[];return t.onStable.subscribe(function(){for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:ic,useClass:ic,deps:[[new Ri,nc]]},{provide:bc,useClass:bc,deps:[]},ac,{provide:Hl,useFactory:function(){return Ql},deps:[]},{provide:Ul,useFactory:function(){return Jl},deps:[]},{provide:hc,useFactory:function(t){return ll(t=t||"undefined"!=typeof $localize&&$localize.locale||sl),t},deps:[[new Ti(hc),new Ri,new Mi]]},{provide:dc,useValue:"USD"}],eh=function(){var t=function t(e){g(this,t)};return t.\u0275mod=ce({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)(Ui(Yc))},providers:th}),t}(),nh=null;function ih(){return nh}var rh=function t(){g(this,t)},ah=new bi("DocumentToken"),oh=function(){var t=function t(){g(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Dt({factory:sh,token:t,providedIn:"platform"}),t}();function sh(){return Ui(uh)}var lh=new bi("Location Initialized"),uh=function(){var t=function(t){y(n,t);var e=k(n);function n(t){var i;return g(this,n),(i=e.call(this))._doc=t,i._init(),i}return v(n,[{key:"_init",value:function(){this.location=ih().getLocation(),this._history=ih().getHistory()}},{key:"getBaseHrefFromDOM",value:function(){return ih().getBaseHref(this._doc)}},{key:"onPopState",value:function(t){ih().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}},{key:"onHashChange",value:function(t){ih().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}},{key:"pushState",value:function(t,e,n){ch()?this._history.pushState(t,e,n):this.location.hash=n}},{key:"replaceState",value:function(t,e,n){ch()?this._history.replaceState(t,e,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"getState",value:function(){return this._history.state}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(t){this.location.pathname=t}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}}]),n}(oh);return t.\u0275fac=function(e){return new(e||t)(Ui(ah))},t.\u0275prov=Dt({factory:hh,token:t,providedIn:"platform"}),t}();function ch(){return!!window.history.pushState}function hh(){return new uh(Ui(ah))}function dh(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 fh(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 ph(t){return t&&"?"!==t[0]?"?"+t:t}var mh=function(){var t=function t(){g(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Dt({factory:vh,token:t,providedIn:"root"}),t}();function vh(t){var e=Ui(ah).location;return new yh(Ui(oh),e&&e.origin||"")}var gh=new bi("appBaseHref"),yh=function(){var t=function(t){y(n,t);var e=k(n);function n(t,i){var r;if(g(this,n),(r=e.call(this))._platformLocation=t,null==i&&(i=r._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=i,r}return v(n,[{key:"onPopState",value:function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(t){return dh(this._baseHref,t)}},{key:"path",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this._platformLocation.pathname+ph(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?"".concat(e).concat(n):e}},{key:"pushState",value:function(t,e,n,i){var r=this.prepareExternalUrl(n+ph(i));this._platformLocation.pushState(t,e,r)}},{key:"replaceState",value:function(t,e,n,i){var r=this.prepareExternalUrl(n+ph(i));this._platformLocation.replaceState(t,e,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(mh);return t.\u0275fac=function(e){return new(e||t)(Ui(oh),Ui(gh,8))},t.\u0275prov=Dt({token:t,factory:t.\u0275fac}),t}(),_h=function(){var t=function(t){y(n,t);var e=k(n);function n(t,i){var r;return g(this,n),(r=e.call(this))._platformLocation=t,r._baseHref="",null!=i&&(r._baseHref=i),r}return v(n,[{key:"onPopState",value:function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}},{key:"prepareExternalUrl",value:function(t){var e=dh(this._baseHref,t);return e.length>0?"#"+e:e}},{key:"pushState",value:function(t,e,n,i){var r=this.prepareExternalUrl(n+ph(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(t,e,r)}},{key:"replaceState",value:function(t,e,n,i){var r=this.prepareExternalUrl(n+ph(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(mh);return t.\u0275fac=function(e){return new(e||t)(Ui(oh),Ui(gh,8))},t.\u0275prov=Dt({token:t,factory:t.\u0275fac}),t}(),bh=function(){var t=function(){function t(e,n){var i=this;g(this,t),this._subject=new Ru,this._urlChangeListeners=[],this._platformStrategy=e;var r=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=fh(wh(r)),this._platformStrategy.onPopState(function(t){i._subject.emit({url:i.path(!0),pop:!0,state:t.state,type:t.type})})}return v(t,[{key:"path",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(t))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(t+ph(e))}},{key:"normalize",value:function(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,wh(e)))}},{key:"prepareExternalUrl",value:function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}},{key:"go",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ph(e)),n)}},{key:"replaceState",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ph(e)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"onUrlChange",value:function(t){var e=this;this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(t){e._notifyUrlChangeListeners(t.url,t.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(n){return n(t,e)})}},{key:"subscribe",value:function(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Ui(mh),Ui(oh))},t.normalizeQueryParams=ph,t.joinWithSlash=dh,t.stripTrailingSlash=fh,t.\u0275prov=Dt({factory:kh,token:t,providedIn:"root"}),t}();function kh(){return new bh(Ui(mh),Ui(oh))}function wh(t){return t.replace(/\/index.html$/,"")}var Ch=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}({}),Sh=function t(){g(this,t)},xh=function(){var t=function(t){y(n,t);var e=k(n);function n(t){var i;return g(this,n),(i=e.call(this)).locale=t,i}return v(n,[{key:"getPluralCategory",value:function(t,e){switch(function(t){return function(t){var e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t),n=al(e);if(n)return n;var i=e.split("-")[0];if(n=al(i))return n;if("en"===i)return il;throw new Error('Missing locale data for the locale "'.concat(t,'".'))}(t)[ol.PluralCase]}(e||this.locale)(t)){case Ch.Zero:return"zero";case Ch.One:return"one";case Ch.Two:return"two";case Ch.Few:return"few";case Ch.Many:return"many";default:return"other"}}}]),n}(Sh);return t.\u0275fac=function(e){return new(e||t)(Ui(hc))},t.\u0275prov=Dt({token:t,factory:t.\u0275fac}),t}();function Eh(t,e){e=encodeURIComponent(e);var n,i=c(t.split(";"));try{for(i.s();!(n=i.n()).done;){var r=n.value,a=r.indexOf("="),o=l(-1==a?[r,""]:[r.slice(0,a),r.slice(a+1)],2),s=o[1];if(o[0].trim()===e)return decodeURIComponent(s)}}catch(u){i.e(u)}finally{i.f()}return null}var Ah=function(){var t=function(){function t(e,n,i,r){g(this,t),this._iterableDiffers=e,this._keyValueDiffers=n,this._ngEl=i,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return v(t,[{key:"ngDoCheck",value: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)}}},{key:"_applyKeyValueChanges",value: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)})}},{key:"_applyIterableChanges",value: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 ".concat(wt(t.item)));e._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return e._toggleClass(t.item,!1)})}},{key:"_applyClasses",value: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])}))}},{key:"_removeClasses",value: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)}))}},{key:"_toggleClass",value: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)})}},{key:"klass",set:function(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"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&&(Qo(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}}]),t}();return t.\u0275fac=function(e){return new(e||t)(ss(Hl),ss(Ul),ss(xl),ss(Al))},t.\u0275dir=de({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t}(),Dh=function(){function t(e,n,i,r){g(this,t),this.$implicit=e,this.ngForOf=n,this.index=i,this.count=r}return v(t,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),t}(),Oh=function(){var t=function(){function t(e,n,i){g(this,t),this._viewContainer=e,this._template=n,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return v(t,[{key:"ngDoCheck",value: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 '".concat(t,"' of type '").concat((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)}}},{key:"_applyChanges",value:function(t){var e=this,n=[];t.forEachOperation(function(t,i,r){if(null==t.previousIndex){var a=e._viewContainer.createEmbeddedView(e._template,new Dh(null,e._ngForOf,-1,-1),null===r?void 0:r),o=new Ih(t,a);n.push(o)}else if(null==r)e._viewContainer.remove(null===i?void 0:i);else if(null!==i){var s=e._viewContainer.get(i);e._viewContainer.move(s,r);var l=new Ih(t,s);n.push(l)}});for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:Vt.Default,e=Zl(!0);if(null!=e||t&Vt.Optional)return e;De("ChangeDetectorRef")}())},t.\u0275pipe=fe({name:"async",type:t,pure:!1}),t}();function Uh(t,e){return{key:t,value:e}}var qh=function(){var t=function(){function t(e){g(this,t),this.differs=e,this.keyValues=[]}return v(t,[{key:"transform",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Wh;if(!t||!(t instanceof Map)&&"object"!=typeof t)return null;this.differ||(this.differ=this.differs.find(t).create());var i=this.differ.diff(t);return i&&(this.keyValues=[],i.forEachItem(function(t){e.keyValues.push(Uh(t.key,t.currentValue))}),this.keyValues.sort(n)),this.keyValues}}]),t}();return t.\u0275fac=function(e){return new(e||t)(ss(Ul))},t.\u0275pipe=fe({name:"keyvalue",type:t,pure:!1}),t}();function Wh(t,e){var n=t.key,i=e.key;if(n===i)return 0;if(void 0===n)return 1;if(void 0===i)return-1;if(null===n)return 1;if(null===i)return-1;if("string"==typeof n&&"string"==typeof i)return n1&&void 0!==arguments[1])||arguments[1],i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},Zt.getAllAngularTestabilities=function(){return t.getAllTestabilities()},Zt.getAllAngularRootElements=function(){return t.getAllRootElements()},Zt.frameworkStabilizers||(Zt.frameworkStabilizers=[]),Zt.frameworkStabilizers.push(function(t){var e=Zt.getAllAngularTestabilities(),n=e.length,i=!1,r=function(e){i=i||e,0==--n&&t(i)};e.forEach(function(t){t.whenStable(r)})})}},{key:"findTestabilityInTree",value:function(t,e,n){if(null==e)return null;var i=t.getTestability(e);return null!=i?i:n?ih().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}],[{key:"init",value:function(){var e;e=new t,Pc=e}}]),t}(),nd=new bi("EventManagerPlugins"),id=function(){var t=function(){function t(e,n){var i=this;g(this,t),this._zone=n,this._eventNameToPlugin=new Map,e.forEach(function(t){return t.manager=i}),this._plugins=e.slice().reverse()}return v(t,[{key:"addEventListener",value:function(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}},{key:"addGlobalEventListener",value:function(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var n=this._plugins,i=0;i-1&&(e.splice(n,1),a+=t+".")}),a+=r,0!=e.length||0===r.length)return null;var o={};return o.domEventName=i,o.fullKey=a,o}},{key:"getEventFullKey",value: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&&kd.hasOwnProperty(e)&&(e=kd[e]))}return bd[e]||e}(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),_d.forEach(function(i){i!=n&&(0,wd[i])(t)&&(e+=i+".")}),e+=n}},{key:"eventCallback",value:function(t,e,i){return function(r){n.getEventFullKey(r)===t&&i.runGuarded(function(){return e(r)})}}},{key:"_normalizeKey",value:function(t){switch(t){case"esc":return"escape";default:return t}}}]),n}(rd);return t.\u0275fac=function(e){return new(e||t)(Ui(ah))},t.\u0275prov=Dt({token:t,factory:t.\u0275fac}),t}(),Sd=function(){var t=function t(){g(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Dt({factory:function(){return Ui(xd)},token:t,providedIn:"root"}),t}(),xd=function(){var t=function(t){y(n,t);var e=k(n);function n(t){var i;return g(this,n),(i=e.call(this))._doc=t,i}return v(n,[{key:"sanitize",value:function(t,e){if(null==e)return null;switch(t){case Ar.NONE:return e;case Ar.HTML:return nr(e,"HTML")?er(e):xr(this._doc,String(e));case Ar.STYLE:return nr(e,"Style")?er(e):e;case Ar.SCRIPT:if(nr(e,"Script"))return er(e);throw new Error("unsafe value used in a script context");case Ar.URL:return ir(e),nr(e,"URL")?er(e):lr(String(e));case Ar.RESOURCE_URL:if(nr(e,"ResourceURL"))return er(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(t," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(t){return new $i(t)}},{key:"bypassSecurityTrustStyle",value:function(t){return new Xi(t)}},{key:"bypassSecurityTrustScript",value:function(t){return new Qi(t)}},{key:"bypassSecurityTrustUrl",value:function(t){return new Ji(t)}},{key:"bypassSecurityTrustResourceUrl",value:function(t){return new tr(t)}}]),n}(Sd);return t.\u0275fac=function(e){return new(e||t)(Ui(ah))},t.\u0275prov=Dt({factory:function(){return t=Ui(xo),new xd(t.get(ah));var t},token:t,providedIn:"root"}),t}(),Ed=zc(Jc,"browser",[{provide:lc,useValue:"browser"},{provide:sc,useValue:function(){Xh.makeCurrent(),ed.init()},multi:!0},{provide:ah,useFactory:function(){return function(t){Le=t}(document),document},deps:[]}]),Ad=[[],{provide:Ao,useValue:"root"},{provide:Mr,useFactory:function(){return new Mr},deps:[]},{provide:nd,useClass:yd,multi:!0,deps:[ah,Cc,lc]},{provide:nd,useClass:Cd,multi:!0,deps:[ah]},[],{provide:pd,useClass:pd,deps:[id,od,rc]},{provide:El,useExisting:pd},{provide:ad,useExisting:od},{provide:od,useClass:od,deps:[ah]},{provide:Tc,useClass:Tc,deps:[Cc]},{provide:id,useClass:id,deps:[nd,Cc]},[]],Dd=function(){var t=function(){function t(e){if(g(this,t),e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return v(t,null,[{key:"withServerTransition",value:function(e){return{ngModule:t,providers:[{provide:rc,useValue:e.appId},{provide:Jh,useExisting:rc},td]}}}]),t}();return t.\u0275mod=ce({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)(Ui(t,12))},providers:Ad,imports:[Yh,eh]}),t}();function Od(){for(var t=arguments.length,e=new Array(t),n=0;n0){var i=t.slice(0,e),r=i.toLowerCase(),a=t.slice(e+1).trim();n.maybeSetNormalizedName(i,r),n.headers.has(r)?n.headers.get(r).push(a):n.headers.set(r,[a])}})}:function(){n.headers=new Map,Object.keys(e).forEach(function(t){var i=e[t],r=t.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(n.headers.set(r,i),n.maybeSetNormalizedName(t,r))})}:this.headers=new Map}return v(t,[{key:"has",value:function(t){return this.init(),this.headers.has(t.toLowerCase())}},{key:"get",value:function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(t){return this.init(),this.headers.get(t.toLowerCase())||null}},{key:"append",value:function(t,e){return this.clone({name:t,value:e,op:"a"})}},{key:"set",value:function(t,e){return this.clone({name:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({name:t,value:e,op:"d"})}},{key:"maybeSetNormalizedName",value:function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}},{key:"init",value: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))}},{key:"copyFrom",value: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))})}},{key:"clone",value: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}},{key:"applyUpdate",value: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,h(n)),this.headers.set(e,i);break;case"d":var r=t.value;if(r){var a=this.headers.get(e);if(!a)return;0===(a=a.filter(function(t){return-1===r.indexOf(t)})).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}else this.headers.delete(e),this.normalizedNames.delete(e)}}},{key:"forEach",value: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}(),Nd=function(){function t(){g(this,t)}return v(t,[{key:"encodeKey",value:function(t){return jd(t)}},{key:"encodeValue",value:function(t){return jd(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}]),t}();function Vd(t,e){var n=new Map;return t.length>0&&t.split("&").forEach(function(t){var i=t.indexOf("="),r=l(-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],2),a=r[0],o=r[1],s=n.get(a)||[];s.push(o),n.set(a,s)}),n}function jd(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 Bd=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(g(this,t),this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new Nd,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=Vd(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(function(t){var i=n.fromObject[t];e.map.set(t,Array.isArray(i)?i:[i])})):this.map=null}return v(t,[{key:"has",value:function(t){return this.init(),this.map.has(t)}},{key:"get",value:function(t){this.init();var e=this.map.get(t);return e?e[0]:null}},{key:"getAll",value:function(t){return this.init(),this.map.get(t)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(t,e){return this.clone({param:t,value:e,op:"a"})}},{key:"set",value:function(t,e){return this.clone({param:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({param:t,value:e,op:"d"})}},{key:"toString",value: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("&")}},{key:"clone",value:function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([e]),n}},{key:"init",value: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 zd(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function Hd(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Ud(t){return"undefined"!=typeof FormData&&t instanceof FormData}var qd=function(){function t(e,n,i,r){var a;if(g(this,t),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,a=r):a=i,a&&(this.reportProgress=!!a.reportProgress,this.withCredentials=!!a.withCredentials,a.responseType&&(this.responseType=a.responseType),a.headers&&(this.headers=a.headers),a.params&&(this.params=a.params)),this.headers||(this.headers=new Ld),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=n;else{var s=n.indexOf("?");this.urlWithParams=n+(-1===s?"?":s0&&void 0!==arguments[0]?arguments[0]:{},n=e.method||this.method,i=e.url||this.url,r=e.responseType||this.responseType,a=void 0!==e.body?e.body:this.body,o=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,s=void 0!==e.reportProgress?e.reportProgress:this.reportProgress,l=e.headers||this.headers,u=e.params||this.params;return void 0!==e.setHeaders&&(l=Object.keys(e.setHeaders).reduce(function(t,n){return t.set(n,e.setHeaders[n])},l)),e.setParams&&(u=Object.keys(e.setParams).reduce(function(t,n){return t.set(n,e.setParams[n])},u)),new t(n,i,a,{params:u,headers:l,reportProgress:s,responseType:r,withCredentials:o})}}]),t}(),Wd=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({}),Yd=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";g(this,t),this.headers=e.headers||new Ld,this.status=void 0!==e.status?e.status:n,this.statusText=e.statusText||i,this.url=e.url||null,this.ok=this.status>=200&&this.status<300},Gd=function(t){y(n,t);var e=k(n);function n(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return g(this,n),(t=e.call(this,i)).type=Wd.ResponseHeader,t}return v(n,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}]),n}(Yd),Kd=function(t){y(n,t);var e=k(n);function n(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return g(this,n),(t=e.call(this,i)).type=Wd.Response,t.body=void 0!==i.body?i.body:null,t}return v(n,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}]),n}(Yd),Zd=function(t){y(n,t);var e=k(n);function n(t){var i;return g(this,n),(i=e.call(this,t,0,"Unknown Error")).name="HttpErrorResponse",i.ok=!1,i.message=i.status>=200&&i.status<300?"Http failure during parsing for ".concat(t.url||"(unknown url)"):"Http failure response for ".concat(t.url||"(unknown url)",": ").concat(t.status," ").concat(t.statusText),i.error=t.error||null,i}return n}(Yd);function $d(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var Xd=function(){var t=function(){function t(e){g(this,t),this.handler=e}return v(t,[{key:"request",value:function(t,e){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t instanceof qd)n=t;else{var a=void 0;a=r.headers instanceof Ld?r.headers:new Ld(r.headers);var o=void 0;r.params&&(o=r.params instanceof Bd?r.params:new Bd({fromObject:r.params})),n=new qd(t,e,void 0!==r.body?r.body:null,{headers:a,params:o,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}var s=Od(n).pipe(Id(function(t){return i.handler.handle(t)}));if(t instanceof qd||"events"===r.observe)return s;var l=s.pipe(Td(function(t){return t instanceof Kd}));switch(r.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return l.pipe(G(function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return l.pipe(G(function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return l.pipe(G(function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return l.pipe(G(function(t){return t.body}))}case"response":return l;default:throw new Error("Unreachable: unhandled observe type ".concat(r.observe,"}"))}}},{key:"delete",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",t,e)}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",t,e)}},{key:"head",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",t,e)}},{key:"jsonp",value:function(t,e){return this.request("JSONP",t,{params:(new Bd).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",t,e)}},{key:"patch",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",t,$d(n,e))}},{key:"post",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",t,$d(n,e))}},{key:"put",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",t,$d(n,e))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Ui(Md))},t.\u0275prov=Dt({token:t,factory:t.\u0275fac}),t}(),Qd=function(){function t(e,n){g(this,t),this.next=e,this.interceptor=n}return v(t,[{key:"handle",value:function(t){return this.interceptor.intercept(t,this.next)}}]),t}(),Jd=new bi("HTTP_INTERCEPTORS"),tf=function(){var t=function(){function t(){g(this,t)}return v(t,[{key:"intercept",value:function(t,e){return e.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Dt({token:t,factory:t.\u0275fac}),t}(),ef=/^\)\]\}',?\n/,nf=function t(){g(this,t)},rf=function(){var t=function(){function t(){g(this,t)}return v(t,[{key:"build",value:function(){return new XMLHttpRequest}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Dt({token:t,factory:t.\u0275fac}),t}(),af=function(){var t=function(){function t(e){g(this,t),this.xhrFactory=e}return v(t,[{key:"handle",value:function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new j(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 a=t.responseType.toLowerCase();i.responseType="json"!==a?a:"text"}var o=t.serializeBody(),s=null,l=function(){if(null!==s)return s;var e=1223===i.status?204:i.status,n=i.statusText||"OK",r=new Ld(i.getAllResponseHeaders()),a=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 Gd({headers:r,status:e,statusText:n,url:a})},u=function(){var e=l(),r=e.headers,a=e.status,o=e.statusText,s=e.url,u=null;204!==a&&(u=void 0===i.response?i.responseText:i.response),0===a&&(a=u?200:0);var c=a>=200&&a<300;if("json"===t.responseType&&"string"==typeof u){var h=u;u=u.replace(ef,"");try{u=""!==u?JSON.parse(u):null}catch(d){u=h,c&&(c=!1,u={error:d,text:u})}}c?(n.next(new Kd({body:u,headers:r,status:a,statusText:o,url:s||void 0})),n.complete()):n.error(new Zd({error:u,headers:r,status:a,statusText:o,url:s||void 0}))},c=function(t){var e=l(),r=new Zd({error:t,status:i.status||0,statusText:i.statusText||"Unknown Error",url:e.url||void 0});n.error(r)},h=!1,d=function(e){h||(n.next(l()),h=!0);var r={type:Wd.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(r.total=e.total),"text"===t.responseType&&i.responseText&&(r.partialText=i.responseText),n.next(r)},f=function(t){var e={type:Wd.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return i.addEventListener("load",u),i.addEventListener("error",c),t.reportProgress&&(i.addEventListener("progress",d),null!==o&&i.upload&&i.upload.addEventListener("progress",f)),i.send(o),n.next({type:Wd.Sent}),function(){i.removeEventListener("error",c),i.removeEventListener("load",u),t.reportProgress&&(i.removeEventListener("progress",d),null!==o&&i.upload&&i.upload.removeEventListener("progress",f)),i.readyState!==i.DONE&&i.abort()}})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Ui(nf))},t.\u0275prov=Dt({token:t,factory:t.\u0275fac}),t}(),of=new bi("XSRF_COOKIE_NAME"),sf=new bi("XSRF_HEADER_NAME"),lf=function t(){g(this,t)},uf=function(){var t=function(){function t(e,n,i){g(this,t),this.doc=e,this.platform=n,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return v(t,[{key:"getToken",value:function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Eh(t,this.cookieName),this.lastCookieString=t),this.lastToken}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Ui(ah),Ui(lc),Ui(of))},t.\u0275prov=Dt({token:t,factory:t.\u0275fac}),t}(),cf=function(){var t=function(){function t(e,n){g(this,t),this.tokenService=e,this.headerName=n}return v(t,[{key:"intercept",value: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}();return t.\u0275fac=function(e){return new(e||t)(Ui(lf),Ui(sf))},t.\u0275prov=Dt({token:t,factory:t.\u0275fac}),t}(),hf=function(){var t=function(){function t(e,n){g(this,t),this.backend=e,this.injector=n,this.chain=null}return v(t,[{key:"handle",value:function(t){if(null===this.chain){var e=this.injector.get(Jd,[]);this.chain=e.reduceRight(function(t,e){return new Qd(t,e)},this.backend)}return this.chain.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Ui(Fd),Ui(Ho))},t.\u0275prov=Dt({token:t,factory:t.\u0275fac}),t}(),df=function(){var t=function(){function t(){g(this,t)}return v(t,null,[{key:"disable",value:function(){return{ngModule:t,providers:[{provide:cf,useClass:tf}]}}},{key:"withOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[e.cookieName?{provide:of,useValue:e.cookieName}:[],e.headerName?{provide:sf,useValue:e.headerName}:[]]}}}]),t}();return t.\u0275mod=ce({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[cf,{provide:Jd,useExisting:cf,multi:!0},{provide:lf,useClass:uf},{provide:of,useValue:"XSRF-TOKEN"},{provide:sf,useValue:"X-XSRF-TOKEN"}]}),t}(),ff=function(){var t=function t(){g(this,t)};return t.\u0275mod=ce({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[Xd,{provide:Md,useClass:hf},af,{provide:Fd,useExisting:af},rf,{provide:nf,useExisting:rf}],imports:[[df.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t}(),pf=function(t){y(n,t);var e=k(n);function n(t){var i;return g(this,n),(i=e.call(this))._value=t,i}return v(n,[{key:"_subscribe",value:function(t){var e=r(i(n.prototype),"_subscribe",this).call(this,t);return e&&!e.closed&&t.next(this._value),e}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new z;return this._value}},{key:"next",value:function(t){r(i(n.prototype),"next",this).call(this,this._value=t)}},{key:"value",get:function(){return this.getValue()}}]),n}(q),mf=function(t){y(n,t);var e=k(n);function n(){return g(this,n),e.apply(this,arguments)}return v(n,[{key:"notifyNext",value:function(t,e,n,i,r){this.destination.next(e)}},{key:"notifyError",value:function(t,e){this.destination.error(t)}},{key:"notifyComplete",value:function(t){this.destination.complete()}}]),n}(M),vf=function(t){y(n,t);var e=k(n);function n(t,i,r){var a;return g(this,n),(a=e.call(this)).parent=t,a.outerValue=i,a.outerIndex=r,a.index=0,a}return v(n,[{key:"_next",value:function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}},{key:"_error",value:function(t){this.parent.notifyError(t,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),n}(M);function gf(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new vf(t,n,i);if(!r.closed)return e instanceof j?e.subscribe(r):et(e)(r)}var yf={};function _f(){for(var t=arguments.length,e=new Array(t),n=0;n=2&&(n=!0),function(i){return i.lift(new Nf(t,e,n))}}var Nf=function(){function t(e,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];g(this,t),this.accumulator=e,this.seed=n,this.hasSeed=i}return v(t,[{key:"call",value:function(t,e){return e.subscribe(new Vf(t,this.accumulator,this.seed,this.hasSeed))}}]),t}(),Vf=function(t){y(n,t);var e=k(n);function n(t,i,r,a){var o;return g(this,n),(o=e.call(this,t)).accumulator=i,o._seed=r,o.hasSeed=a,o.index=0,o}return v(n,[{key:"_next",value:function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}},{key:"_tryNext",value: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)}},{key:"seed",get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t}}]),n}(M);function jf(t){return function(e){var n=new Bf(t),i=e.lift(n);return n.caught=i}}var Bf=function(){function t(e){g(this,t),this.selector=e}return v(t,[{key:"call",value:function(t,e){return e.subscribe(new zf(t,this.selector,this.caught))}}]),t}(),zf=function(t){y(n,t);var e=k(n);function n(t,i,r){var a;return g(this,n),(a=e.call(this,t)).selector=i,a.caught=r,a}return v(n,[{key:"error",value:function(t){if(!this.isStopped){var e;try{e=this.selector(t,this.caught)}catch(s){return void r(i(n.prototype),"error",this).call(this,s)}this._unsubscribeAndRecycle();var a=new rt(this);this.add(a);var o=ot(e,a);o!==a&&this.add(o)}}}]),n}(at);function Hf(t){return function(e){return 0===t?Ef():e.lift(new Uf(t))}}var Uf=function(){function t(e){if(g(this,t),this.total=e,this.total<0)throw new Tf}return v(t,[{key:"call",value:function(t,e){return e.subscribe(new qf(t,this.total))}}]),t}(),qf=function(t){y(n,t);var e=k(n);function n(t,i){var r;return g(this,n),(r=e.call(this,t)).total=i,r.ring=new Array,r.count=0,r}return v(n,[{key:"_next",value:function(t){var e=this.ring,n=this.total,i=this.count++;e.length0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,r=0;r0&&void 0!==arguments[0]?arguments[0]:Kf;return function(e){return e.lift(new Yf(t))}}var Yf=function(){function t(e){g(this,t),this.errorFactory=e}return v(t,[{key:"call",value:function(t,e){return e.subscribe(new Gf(t,this.errorFactory))}}]),t}(),Gf=function(t){y(n,t);var e=k(n);function n(t,i){var r;return g(this,n),(r=e.call(this,t)).errorFactory=i,r.hasValue=!1,r}return v(n,[{key:"_next",value:function(t){this.hasValue=!0,this.destination.next(t)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}]),n}(M);function Kf(){return new wf}function Zf(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(e){return e.lift(new $f(t))}}var $f=function(){function t(e){g(this,t),this.defaultValue=e}return v(t,[{key:"call",value:function(t,e){return e.subscribe(new Xf(t,this.defaultValue))}}]),t}(),Xf=function(t){y(n,t);var e=k(n);function n(t,i){var r;return g(this,n),(r=e.call(this,t)).defaultValue=i,r.isEmpty=!0,r}return v(n,[{key:"_next",value:function(t){this.isEmpty=!1,this.destination.next(t)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(M);function Qf(t,e){var n=arguments.length>=2;return function(i){return i.pipe(t?Td(function(e,n){return t(e,n,i)}):N,Rf(1),n?Zf(e):Wf(function(){return new wf}))}}function Jf(){}function tp(t,e,n){return function(i){return i.lift(new ep(t,e,n))}}var ep=function(){function t(e,n,i){g(this,t),this.nextOrObserver=e,this.error=n,this.complete=i}return v(t,[{key:"call",value:function(t,e){return e.subscribe(new np(t,this.nextOrObserver,this.error,this.complete))}}]),t}(),np=function(t){y(n,t);var e=k(n);function n(t,i,r,o){var s;return g(this,n),(s=e.call(this,t))._tapNext=Jf,s._tapError=Jf,s._tapComplete=Jf,s._tapError=r||Jf,s._tapComplete=o||Jf,x(i)?(s._context=a(s),s._tapNext=i):i&&(s._context=i,s._tapNext=i.next||Jf,s._tapError=i.error||Jf,s._tapComplete=i.complete||Jf),s}return v(n,[{key:"_next",value:function(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}},{key:"_error",value:function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}]),n}(M),ip=function(){function t(e){g(this,t),this.callback=e}return v(t,[{key:"call",value:function(t,e){return e.subscribe(new rp(t,this.callback))}}]),t}(),rp=function(t){y(n,t);var e=k(n);function n(t,i){var r;return g(this,n),(r=e.call(this,t)).add(new A(i)),r}return n}(M),ap=function t(e,n){g(this,t),this.id=e,this.url=n},op=function(t){y(n,t);var e=k(n);function n(t,i){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return g(this,n),(r=e.call(this,t,i)).navigationTrigger=a,r.restoredState=o,r}return v(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(ap),sp=function(t){y(n,t);var e=k(n);function n(t,i,r){var a;return g(this,n),(a=e.call(this,t,i)).urlAfterRedirects=r,a}return v(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(ap),lp=function(t){y(n,t);var e=k(n);function n(t,i,r){var a;return g(this,n),(a=e.call(this,t,i)).reason=r,a}return v(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(ap),up=function(t){y(n,t);var e=k(n);function n(t,i,r){var a;return g(this,n),(a=e.call(this,t,i)).error=r,a}return v(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(ap),cp=function(t){y(n,t);var e=k(n);function n(t,i,r,a){var o;return g(this,n),(o=e.call(this,t,i)).urlAfterRedirects=r,o.state=a,o}return v(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(ap),hp=function(t){y(n,t);var e=k(n);function n(t,i,r,a){var o;return g(this,n),(o=e.call(this,t,i)).urlAfterRedirects=r,o.state=a,o}return v(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(ap),dp=function(t){y(n,t);var e=k(n);function n(t,i,r,a,o){var s;return g(this,n),(s=e.call(this,t,i)).urlAfterRedirects=r,s.state=a,s.shouldActivate=o,s}return v(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}(ap),fp=function(t){y(n,t);var e=k(n);function n(t,i,r,a){var o;return g(this,n),(o=e.call(this,t,i)).urlAfterRedirects=r,o.state=a,o}return v(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(ap),pp=function(t){y(n,t);var e=k(n);function n(t,i,r,a){var o;return g(this,n),(o=e.call(this,t,i)).urlAfterRedirects=r,o.state=a,o}return v(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(ap),mp=function(){function t(e){g(this,t),this.route=e}return v(t,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),t}(),vp=function(){function t(e){g(this,t),this.route=e}return v(t,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),t}(),gp=function(){function t(e){g(this,t),this.snapshot=e}return v(t,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),yp=function(){function t(e){g(this,t),this.snapshot=e}return v(t,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),_p=function(){function t(e){g(this,t),this.snapshot=e}return v(t,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),bp=function(){function t(e){g(this,t),this.snapshot=e}return v(t,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),kp=function(){function t(e,n,i){g(this,t),this.routerEvent=e,this.position=n,this.anchor=i}return v(t,[{key:"toString",value:function(){var t=this.position?"".concat(this.position[0],", ").concat(this.position[1]):null;return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(t,"')")}}]),t}(),wp="primary",Cp=function(){function t(e){g(this,t),this.params=e||{}}return v(t,[{key:"has",value:function(t){return Object.prototype.hasOwnProperty.call(this.params,t)}},{key:"get",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null}},{key:"getAll",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),t}();function Sp(t){return new Cp(t)}function xp(t){var e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function Ep(t,e,n){var i=n.path.split("/");if(i.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||i.length0?t[t.length-1]:null}function Tp(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Rp(t){return ys(t)?t:gs(t)?it(Promise.resolve(t)):Od(t)}function Pp(t,e,n){return n?function(t,e){return Ap(t,e)}(t.queryParams,e.queryParams)&&Mp(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return Dp(t[n],e[n])})}(t.queryParams,e.queryParams)&&Fp(t.root,e.root)}function Mp(t,e){if(!Bp(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(var n in e.children){if(!t.children[n])return!1;if(!Mp(t.children[n],e.children[n]))return!1}return!0}function Fp(t,e){return Lp(t,e,e.segments)}function Lp(t,e,n){if(t.segments.length>n.length)return!!Bp(t.segments.slice(0,n.length),n)&&!e.hasChildren();if(t.segments.length===n.length){if(!Bp(t.segments,n))return!1;for(var i in e.children){if(!t.children[i])return!1;if(!Fp(t.children[i],e.children[i]))return!1}return!0}var r=n.slice(0,t.segments.length),a=n.slice(t.segments.length);return!!Bp(t.segments,r)&&!!t.children.primary&&Lp(t.children.primary,e,a)}var Np=function(){function t(e,n,i){g(this,t),this.root=e,this.queryParams=n,this.fragment=i}return v(t,[{key:"toString",value:function(){return Up.serialize(this)}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Sp(this.queryParams)),this._queryParamMap}}]),t}(),Vp=function(){function t(e,n){var i=this;g(this,t),this.segments=e,this.children=n,this.parent=null,Tp(n,function(t,e){return t.parent=i})}return v(t,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"toString",value:function(){return qp(this)}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}}]),t}(),jp=function(){function t(e,n){g(this,t),this.path=e,this.parameters=n}return v(t,[{key:"toString",value:function(){return Xp(this)}},{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=Sp(this.parameters)),this._parameterMap}}]),t}();function Bp(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}var zp=function t(){g(this,t)},Hp=function(){function t(){g(this,t)}return v(t,[{key:"parse",value:function(t){var e=new nm(t);return new Np(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}},{key:"serialize",value:function(t){var e,n,i="/".concat(Wp(t.root,!0)),r=(e=t.queryParams,(n=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(e){return"".concat(Gp(t),"=").concat(Gp(e))}).join("&"):"".concat(Gp(t),"=").concat(Gp(n))})).length?"?".concat(n.join("&")):""),a="string"==typeof t.fragment?"#".concat(encodeURI(t.fragment)):"";return"".concat(i).concat(r).concat(a)}}]),t}(),Up=new Hp;function qp(t){return t.segments.map(function(t){return Xp(t)}).join("/")}function Wp(t,e){if(!t.hasChildren())return qp(t);if(e){var n=t.children.primary?Wp(t.children.primary,!1):"",i=[];return Tp(t.children,function(t,e){e!==wp&&i.push("".concat(e,":").concat(Wp(t,!1)))}),i.length>0?"".concat(n,"(").concat(i.join("//"),")"):n}var r=function(t,e){var n=[];return Tp(t.children,function(t,i){i===wp&&(n=n.concat(e(t,i)))}),Tp(t.children,function(t,i){i!==wp&&(n=n.concat(e(t,i)))}),n}(t,function(e,n){return n===wp?[Wp(t.children.primary,!1)]:["".concat(n,":").concat(Wp(e,!1))]});return 1===Object.keys(t.children).length&&null!=t.children.primary?"".concat(qp(t),"/").concat(r[0]):"".concat(qp(t),"/(").concat(r.join("//"),")")}function Yp(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Gp(t){return Yp(t).replace(/%3B/gi,";")}function Kp(t){return Yp(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Zp(t){return decodeURIComponent(t)}function $p(t){return Zp(t.replace(/\+/g,"%20"))}function Xp(t){return"".concat(Kp(t.path)).concat((e=t.parameters,Object.keys(e).map(function(t){return";".concat(Kp(t),"=").concat(Kp(e[t]))}).join("")));var e}var Qp=/^[^\/()?;=#]+/;function Jp(t){var e=t.match(Qp);return e?e[0]:""}var tm=/^[^=?&#]+/,em=/^[^?&#]+/,nm=function(){function t(e){g(this,t),this.url=e,this.remaining=e}return v(t,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Vp([],{}):new Vp([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value: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 Vp(t,e)),n}},{key:"parseSegment",value:function(){var t=Jp(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(t),new jp(Zp(t),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t}},{key:"parseParam",value:function(t){var e=Jp(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var i=Jp(this.remaining);i&&this.capture(n=i)}t[Zp(e)]=Zp(n)}}},{key:"parseQueryParam",value:function(t){var e,n=(e=this.remaining.match(tm))?e[0]:"";if(n){this.capture(n);var i="";if(this.consumeOptional("=")){var r=function(t){var e=t.match(em);return e?e[0]:""}(this.remaining);r&&this.capture(i=r)}var a=$p(n),o=$p(i);if(t.hasOwnProperty(a)){var s=t[a];Array.isArray(s)||(t[a]=s=[s]),s.push(o)}else t[a]=o}}},{key:"parseParens",value:function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Jp(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '".concat(this.url,"'"));var r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):t&&(r=wp);var a=this.parseChildren();e[r]=1===Object.keys(a).length?a.primary:new Vp([],a),this.consumeOptional("//")}return e}},{key:"peekStartsWith",value:function(t){return this.remaining.startsWith(t)}},{key:"consumeOptional",value:function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}},{key:"capture",value:function(t){if(!this.consumeOptional(t))throw new Error('Expected "'.concat(t,'".'))}}]),t}(),im=function(){function t(e){g(this,t),this._root=e}return v(t,[{key:"parent",value:function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}},{key:"children",value:function(t){var e=rm(t,this._root);return e?e.children.map(function(t){return t.value}):[]}},{key:"firstChild",value:function(t){var e=rm(t,this._root);return e&&e.children.length>0?e.children[0].value:null}},{key:"siblings",value:function(t){var e=am(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(t){return t.value}).filter(function(e){return e!==t})}},{key:"pathFromRoot",value:function(t){return am(t,this._root).map(function(t){return t.value})}},{key:"root",get:function(){return this._root.value}}]),t}();function rm(t,e){if(t===e.value)return e;var n,i=c(e.children);try{for(i.s();!(n=i.n()).done;){var r=rm(t,n.value);if(r)return r}}catch(a){i.e(a)}finally{i.f()}return null}function am(t,e){if(t===e.value)return[e];var n,i=c(e.children);try{for(i.s();!(n=i.n()).done;){var r=am(t,n.value);if(r.length)return r.unshift(e),r}}catch(a){i.e(a)}finally{i.f()}return[]}var om=function(){function t(e,n){g(this,t),this.value=e,this.children=n}return v(t,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),t}();function sm(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}var lm=function(t){y(n,t);var e=k(n);function n(t,i){var r;return g(this,n),(r=e.call(this,t)).snapshot=i,mm(a(r),t),r}return v(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(im);function um(t,e){var n=function(t,e){var n=new fm([],{},{},"",{},wp,e,null,t.root,-1,{});return new pm("",new om(n,[]))}(t,e),i=new pf([new jp("",{})]),r=new pf({}),a=new pf({}),o=new pf({}),s=new pf(""),l=new cm(i,r,o,s,a,wp,e,n.root);return l.snapshot=n.root,new lm(new om(l,[]),n)}var cm=function(){function t(e,n,i,r,a,o,s,l){g(this,t),this.url=e,this.params=n,this.queryParams=i,this.fragment=r,this.data=a,this.outlet=o,this.component=s,this._futureSnapshot=l}return v(t,[{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}},{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(G(function(t){return Sp(t)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(G(function(t){return Sp(t)}))),this._queryParamMap}}]),t}();function hm(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",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 dm(n.slice(i))}function dm(t){return t.reduce(function(t,e){return{params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}},{params:{},data:{},resolve:{}})}var fm=function(){function t(e,n,i,r,a,o,s,l,u,c,h){g(this,t),this.url=e,this.params=n,this.queryParams=i,this.fragment=r,this.data=a,this.outlet=o,this.component=s,this.routeConfig=l,this._urlSegment=u,this._lastPathIndex=c,this._resolve=h}return v(t,[{key:"toString",value:function(){var t=this.url.map(function(t){return t.toString()}).join("/"),e=this.routeConfig?this.routeConfig.path:"";return"Route(url:'".concat(t,"', path:'").concat(e,"')")}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=Sp(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Sp(this.queryParams)),this._queryParamMap}}]),t}(),pm=function(t){y(n,t);var e=k(n);function n(t,i){var r;return g(this,n),(r=e.call(this,i)).url=t,mm(a(r),i),r}return v(n,[{key:"toString",value:function(){return vm(this._root)}}]),n}(im);function mm(t,e){e.value._routerState=t,e.children.forEach(function(e){return mm(t,e)})}function vm(t){var e=t.children.length>0?" { ".concat(t.children.map(vm).join(", ")," } "):"";return"".concat(t.value).concat(e)}function gm(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Ap(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Ap(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;nr;){if(a-=r,!(i=i.parent))throw new Error("Invalid number of '../'");r=i.segments.length}return new Am(i,!1,r-a)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(a,e,t),s=o.processChildren?Om(o.segmentGroup,o.index,a.commands):Dm(o.segmentGroup,o.index,a.commands);return Sm(o.segmentGroup,s,e,i,r)}function wm(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Cm(t){return"object"==typeof t&&null!=t&&t.outlets}function Sm(t,e,n,i,r){var a={};return i&&Tp(i,function(t,e){a[e]=Array.isArray(t)?t.map(function(t){return"".concat(t)}):"".concat(t)}),new Np(n.root===t?e:xm(n.root,t,e),a,r)}function xm(t,e,n){var i={};return Tp(t.children,function(t,r){i[r]=t===e?n:xm(t,e,n)}),new Vp(t.segments,i)}var Em=function(){function t(e,n,i){if(g(this,t),this.isAbsolute=e,this.numberOfDoubleDots=n,this.commands=i,e&&i.length>0&&wm(i[0]))throw new Error("Root segment cannot have matrix parameters");var r=i.find(Cm);if(r&&r!==Ip(i))throw new Error("{outlets:{}} has to be the last command")}return v(t,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),t}(),Am=function t(e,n,i){g(this,t),this.segmentGroup=e,this.processChildren=n,this.index=i};function Dm(t,e,n){if(t||(t=new Vp([],{})),0===t.segments.length&&t.hasChildren())return Om(t,e,n);var i=function(t,e,n){for(var i=0,r=e,a={match:!1,pathIndex:0,commandIndex:0};r=n.length)return a;var o=t.segments[r],s=n[i];if(Cm(s))break;var l="".concat(s),u=i0&&void 0===l)break;if(l&&u&&"object"==typeof u&&void 0===u.outlets){if(!Pm(l,u,o))return a;i+=2}else{if(!Pm(l,{},o))return a;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,e,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex1&&void 0!==arguments[1]?arguments[1]:"",n=0;n0)?Object.assign({},Km):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var r=(e.matcher||Ep)(n,t,e);if(!r)return Object.assign({},Km);var a={};Tp(r.posParams,function(t,e){a[e]=t.path});var o=r.consumed.length>0?Object.assign(Object.assign({},a),r.consumed[r.consumed.length-1].parameters):a;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function $m(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(n.length>0&&Jm(t,n,i)){var a=new Vp(e,Qm(t,e,i,new Vp(n,t.children)));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:[]}}if(0===n.length&&tv(t,n,i)){var o=new Vp(t.segments,Xm(t,e,n,i,t.children,r));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}var s=new Vp(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}function Xm(t,e,n,i,r,a){var o,s={},l=c(i);try{for(l.s();!(o=l.n()).done;){var u=o.value;if(ev(t,n,u)&&!r[Ym(u)]){var h=new Vp([],{});h._sourceSegment=t,h._segmentIndexShift="legacy"===a?t.segments.length:e.length,s[Ym(u)]=h}}}catch(d){l.e(d)}finally{l.f()}return Object.assign(Object.assign({},r),s)}function Qm(t,e,n,i){var r={};r.primary=i,i._sourceSegment=t,i._segmentIndexShift=e.length;var a,o=c(n);try{for(o.s();!(a=o.n()).done;){var s=a.value;if(""===s.path&&Ym(s)!==wp){var l=new Vp([],{});l._sourceSegment=t,l._segmentIndexShift=e.length,r[Ym(s)]=l}}}catch(u){o.e(u)}finally{o.f()}return r}function Jm(t,e,n){return n.some(function(n){return ev(t,e,n)&&Ym(n)!==wp})}function tv(t,e,n){return n.some(function(n){return ev(t,e,n)})}function ev(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function nv(t,e,n,i){return!!(Ym(t)===i||i!==wp&&ev(e,n,t))&&("**"===t.path||Zm(e,t,n).matched)}function iv(t,e,n){return 0===e.length&&!t.children[n]}var rv=function t(e){g(this,t),this.segmentGroup=e||null},av=function t(e){g(this,t),this.urlTree=e};function ov(t){return new j(function(e){return e.error(new rv(t))})}function sv(t){return new j(function(e){return e.error(new av(t))})}function lv(t){return new j(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(t,"'")))})}var uv=function(){function t(e,n,i,r,a){g(this,t),this.configLoader=n,this.urlSerializer=i,this.urlTree=r,this.config=a,this.allowRedirects=!0,this.ngModule=e.get(ru)}return v(t,[{key:"apply",value:function(){var t=this,e=$m(this.urlTree.root,[],[],this.config).segmentGroup,n=new Vp(e.segments,e.children);return this.expandSegmentGroup(this.ngModule,this.config,n,wp).pipe(G(function(e){return t.createUrlTree(cv(e),t.urlTree.queryParams,t.urlTree.fragment)})).pipe(jf(function(e){if(e instanceof av)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof rv)throw t.noMatchError(e);throw e}))}},{key:"match",value:function(t){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,wp).pipe(G(function(n){return e.createUrlTree(cv(n),t.queryParams,t.fragment)})).pipe(jf(function(t){if(t instanceof rv)throw e.noMatchError(t);throw t}))}},{key:"noMatchError",value:function(t){return new Error("Cannot match any routes. URL Segment: '".concat(t.segmentGroup,"'"))}},{key:"createUrlTree",value:function(t,e,n){var i=t.segments.length>0?new Vp([],u({},wp,t)):t;return new Np(i,e,n)}},{key:"expandSegmentGroup",value:function(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(G(function(t){return new Vp([],t)})):this.expandSegment(t,n,e,n.segments,i,!0)}},{key:"expandChildren",value:function(t,e,n){for(var i=this,r=[],a=0,o=Object.keys(n.children);a=2;return function(i){return i.pipe(t?Td(function(e,n){return t(e,n,i)}):N,Hf(1),n?Zf(e):Wf(function(){return new wf}))}}())}},{key:"expandSegment",value:function(t,e,n,i,r,a){var o=this;return it(n).pipe(Id(function(s){return o.expandSegmentAgainstRoute(t,e,n,s,i,r,a).pipe(jf(function(t){if(t instanceof rv)return Od(null);throw t}))}),Qf(function(t){return!!t}),jf(function(t,n){if(t instanceof wf||"EmptyError"===t.name){if(iv(e,i,r))return Od(new Vp([],{}));throw new rv(e)}throw t}))}},{key:"expandSegmentAgainstRoute",value:function(t,e,n,i,r,a,o){return nv(i,e,r,a)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,r,a):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,r,a):ov(e):ov(e)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(t,e,n,i,r,a){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,a):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,r,a)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(t,e,n,i){var r=this,a=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?sv(a):this.lineralizeSegments(n,a).pipe(st(function(n){var a=new Vp(n,{});return r.expandSegment(t,a,e,n,i,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(t,e,n,i,r,a){var o=this,s=Zm(e,i,r),l=s.consumedSegments,u=s.lastChild,c=s.positionalParamSegments;if(!s.matched)return ov(e);var h=this.applyRedirectCommands(l,i.redirectTo,c);return i.redirectTo.startsWith("/")?sv(h):this.lineralizeSegments(i,h).pipe(st(function(i){return o.expandSegment(t,e,n,i.concat(r.slice(u)),a,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(t,e,n,i,r){var a=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(G(function(t){return n._loadedConfig=t,new Vp(i,{})})):Od(new Vp(i,{}));var o=Zm(e,n,i),s=o.consumedSegments,l=o.lastChild;if(!o.matched)return ov(e);var u=i.slice(l);return this.getChildConfig(t,n,i).pipe(st(function(t){var i=t.module,o=t.routes,l=$m(e,s,u,o),c=l.segmentGroup,h=l.slicedSegments,d=new Vp(c.segments,c.children);if(0===h.length&&d.hasChildren())return a.expandChildren(i,o,d).pipe(G(function(t){return new Vp(s,t)}));if(0===o.length&&0===h.length)return Od(new Vp(s,{}));var f=Ym(n)===r;return a.expandSegment(i,d,o,h,f?wp:r,!0).pipe(G(function(t){return new Vp(s.concat(t.segments),t.children)}))}))}},{key:"getChildConfig",value:function(t,e,n){var i=this;return e.children?Od(new Lm(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Od(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(st(function(n){return n?i.configLoader.load(t.injector,e).pipe(G(function(t){return e._loadedConfig=t,t})):function(t){return new j(function(e){return e.error(xp("Cannot load children because the guard of the route \"path: '".concat(t.path,"'\" returned false")))})}(e)})):Od(new Lm([],t))}},{key:"runCanLoadGuards",value:function(t,e,n){var i=this,r=e.canLoad;return r&&0!==r.length?Od(r.map(function(i){var r,a=t.get(i);if(function(t){return t&&Nm(t.canLoad)}(a))r=a.canLoad(e,n);else{if(!Nm(a))throw new Error("Invalid CanLoad guard");r=a(e,n)}return Rp(r)})).pipe(Bm(),tp(function(t){if(Vm(t)){var e=xp('Redirecting to "'.concat(i.urlSerializer.serialize(t),'"'));throw e.url=t,e}}),G(function(t){return!0===t})):Od(!0)}},{key:"lineralizeSegments",value:function(t,e){for(var n=[],i=e.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Od(n);if(i.numberOfChildren>1||!i.children.primary)return lv(t.redirectTo);i=i.children.primary}}},{key:"applyRedirectCommands",value:function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}},{key:"applyRedirectCreatreUrlTree",value:function(t,e,n,i){var r=this.createSegmentGroup(t,e.root,n,i);return new Np(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}},{key:"createQueryParams",value:function(t,e){var n={};return Tp(t,function(t,i){if("string"==typeof t&&t.startsWith(":")){var r=t.substring(1);n[i]=e[r]}else n[i]=t}),n}},{key:"createSegmentGroup",value:function(t,e,n,i){var r=this,a=this.createSegments(t,e.segments,n,i),o={};return Tp(e.children,function(e,a){o[a]=r.createSegmentGroup(t,e,n,i)}),new Vp(a,o)}},{key:"createSegments",value: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)})}},{key:"findPosParam",value:function(t,e,n){var i=n[e.path.substring(1)];if(!i)throw new Error("Cannot redirect to '".concat(t,"'. Cannot find '").concat(e.path,"'."));return i}},{key:"findOrReturn",value:function(t,e){var n,i=0,r=c(e);try{for(r.s();!(n=r.n()).done;){var a=n.value;if(a.path===t.path)return e.splice(i),a;i++}}catch(o){r.e(o)}finally{r.f()}return t}}]),t}();function cv(t){for(var e={},n=0,i=Object.keys(t.children);n0||a.hasChildren())&&(e[r]=a)}return function(t){if(1===t.numberOfChildren&&t.children.primary){var e=t.children.primary;return new Vp(t.segments.concat(e.segments),e.children)}return t}(new Vp(t.segments,e))}var hv=function t(e){g(this,t),this.path=e,this.route=this.path[this.path.length-1]},dv=function t(e,n){g(this,t),this.component=e,this.route=n};function fv(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 pv(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=sm(e);return t.children.forEach(function(t){mv(t,a[t.value.outlet],n,i.concat([t.value]),r),delete a[t.value.outlet]}),Tp(a,function(t,e){return gv(t,n.getContext(e),r)}),r}function mv(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=t.value,o=e?e.value:null,s=n?n.getContext(t.value.outlet):null;if(o&&a.routeConfig===o.routeConfig){var l=vv(o,a,a.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new hv(i)):(a.data=o.data,a._resolvedData=o._resolvedData),pv(t,e,a.component?s?s.children:null:n,i,r),l&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new dv(s.outlet.component,o))}else o&&gv(e,s,r),r.canActivateChecks.push(new hv(i)),pv(t,null,a.component?s?s.children:null:n,i,r);return r}function vv(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Bp(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Bp(t.url,e.url)||!Ap(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ym(t,e)||!Ap(t.queryParams,e.queryParams);case"paramsChange":default:return!ym(t,e)}}function gv(t,e,n){var i=sm(t),r=t.value;Tp(i,function(t,i){gv(t,r.component?e?e.children.getContext(i):null:e,n)}),n.canDeactivateChecks.push(new dv(r.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,r))}var yv=function t(){g(this,t)};function _v(t){return new j(function(e){return e.error(t)})}var bv=function(){function t(e,n,i,r,a,o){g(this,t),this.rootComponentType=e,this.config=n,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=a,this.relativeLinkResolution=o}return v(t,[{key:"recognize",value:function(){var t=$m(this.urlTree.root,[],[],this.config.filter(function(t){return void 0===t.redirectTo}),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,wp);if(null===e)return null;var n=new fm([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},wp,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new om(n,e),r=new pm(this.url,i);return this.inheritParamsAndData(r._root),r}},{key:"inheritParamsAndData",value:function(t){var e=this,n=t.value,i=hm(n,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),t.children.forEach(function(t){return e.inheritParamsAndData(t)})}},{key:"processSegmentGroup",value:function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}},{key:"processChildren",value:function(t,e){for(var n=[],i=0,r=Object.keys(e.children);i0?Ip(n).parameters:{};r=new fm(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Cv(t),Ym(t),t.component,t,kv(e),wv(e)+n.length,Sv(t))}else{var l=Zm(e,t,n);if(!l.matched)return null;a=l.consumedSegments,o=n.slice(l.lastChild),r=new fm(a,l.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Cv(t),Ym(t),t.component,t,kv(e),wv(e)+a.length,Sv(t))}var u=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),c=$m(e,a,o,u.filter(function(t){return void 0===t.redirectTo}),this.relativeLinkResolution),h=c.segmentGroup,d=c.slicedSegments;if(0===d.length&&h.hasChildren()){var f=this.processChildren(u,h);return null===f?null:[new om(r,f)]}if(0===u.length&&0===d.length)return[new om(r,[])];var p=Ym(t)===i,m=this.processSegment(u,h,d,p?wp:i);return null===m?null:[new om(r,m)]}}]),t}();function kv(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function wv(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 Cv(t){return t.data||{}}function Sv(t){return t.resolve||{}}function xv(t){return Df(function(e){var n=t(e);return n?it(n).pipe(G(function(){return e})):Od(e)})}var Ev=function(t){y(n,t);var e=k(n);function n(){return g(this,n),e.apply(this,arguments)}return n}(function(){function t(){g(this,t)}return v(t,[{key:"shouldDetach",value:function(t){return!1}},{key:"store",value:function(t,e){}},{key:"shouldAttach",value:function(t){return!1}},{key:"retrieve",value:function(t){return null}},{key:"shouldReuseRoute",value:function(t,e){return t.routeConfig===e.routeConfig}}]),t}()),Av=new bi("ROUTES"),Dv=function(){function t(e,n,i,r){g(this,t),this.loader=e,this.compiler=n,this.onLoadStartListener=i,this.onLoadEndListener=r}return v(t,[{key:"load",value:function(t,e){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(G(function(i){n.onLoadEndListener&&n.onLoadEndListener(e);var r=i.create(t);return new Lm(Op(r.injector.get(Av)).map(Wm),r)}))}},{key:"loadModuleFactory",value:function(t){var e=this;return"string"==typeof t?it(this.loader.load(t)):Rp(t()).pipe(st(function(t){return t instanceof au?Od(t):it(e.compiler.compileModuleAsync(t))}))}}]),t}(),Ov=function t(){g(this,t),this.outlet=null,this.route=null,this.resolver=null,this.children=new Iv,this.attachRef=null},Iv=function(){function t(){g(this,t),this.contexts=new Map}return v(t,[{key:"onChildOutletCreated",value:function(t,e){var n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}},{key:"onChildOutletDestroyed",value:function(t){var e=this.getContext(t);e&&(e.outlet=null)}},{key:"onOutletDeactivated",value:function(){var t=this.contexts;return this.contexts=new Map,t}},{key:"onOutletReAttached",value:function(t){this.contexts=t}},{key:"getOrCreateContext",value:function(t){var e=this.getContext(t);return e||(e=new Ov,this.contexts.set(t,e)),e}},{key:"getContext",value:function(t){return this.contexts.get(t)||null}}]),t}(),Tv=function(){function t(){g(this,t)}return v(t,[{key:"shouldProcessUrl",value:function(t){return!0}},{key:"extract",value:function(t){return t}},{key:"merge",value:function(t,e){return t}}]),t}();function Rv(t){throw t}function Pv(t,e,n){return e.parse("/")}function Mv(t,e){return Od(null)}var Fv=function(){var t=function(){function t(e,n,i,r,a,o,s,l){var u=this;g(this,t),this.rootComponentType=e,this.urlSerializer=n,this.rootContexts=i,this.location=r,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new q,this.errorHandler=Rv,this.malformedUriErrorHandler=Pv,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Mv,afterPreactivation:Mv},this.urlHandlingStrategy=new Tv,this.routeReuseStrategy=new Ev,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=a.get(ru),this.console=a.get(cc);var c=a.get(Cc);this.isNgZoneEnabled=c instanceof Cc&&Cc.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=new Np(new Vp([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Dv(o,s,function(t){return u.triggerEvent(new mp(t))},function(t){return u.triggerEvent(new vp(t))}),this.routerState=um(this.currentUrlTree,this.rootComponentType),this.transitions=new pf({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 v(t,[{key:"setupNavigations",value:function(t){var e=this,n=this.events;return t.pipe(Td(function(t){return 0!==t.id}),G(function(t){return Object.assign(Object.assign({},t),{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})}),Df(function(t){var i,r,a,o,s=!1,l=!1;return Od(t).pipe(tp(function(t){e.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:e.lastSuccessfulNavigation?Object.assign(Object.assign({},e.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Df(function(t){var i,r,a,o,s=!e.navigated||t.extractedUrl.toString()!==e.browserUrlTree.toString();if(("reload"===e.onSameUrlNavigation||s)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Od(t).pipe(Df(function(t){var i=e.transitions.getValue();return n.next(new op(t.id,e.serializeUrl(t.extractedUrl),t.source,t.restoredState)),i!==e.transitions.getValue()?xf:Promise.resolve(t)}),(i=e.ngModule.injector,r=e.configLoader,a=e.urlSerializer,o=e.config,Df(function(t){return function(t,e,n,i,r){return new uv(t,e,n,i,r).apply()}(i,r,a,t.extractedUrl,o).pipe(G(function(e){return Object.assign(Object.assign({},t),{urlAfterRedirects:e})}))})),tp(function(t){e.currentNavigation=Object.assign(Object.assign({},e.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,n,i,r,a){return st(function(i){return function(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var o=new bv(t,e,n,i,r,a).recognize();return null===o?_v(new yv):Od(o)}catch(s){return _v(s)}}(t,n,i.urlAfterRedirects,(o=i.urlAfterRedirects,e.serializeUrl(o)),r,a).pipe(G(function(t){return Object.assign(Object.assign({},i),{targetSnapshot:t})}));var o})}(e.rootComponentType,e.config,0,e.paramsInheritanceStrategy,e.relativeLinkResolution),tp(function(t){"eager"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),e.browserUrlTree=t.urlAfterRedirects);var i=new cp(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);n.next(i)}));if(s&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var l=t.extractedUrl,u=t.source,c=t.restoredState,h=t.extras,d=new op(t.id,e.serializeUrl(l),u,c);n.next(d);var f=um(l,e.rootComponentType).snapshot;return Od(Object.assign(Object.assign({},t),{targetSnapshot:f,urlAfterRedirects:l,extras:Object.assign(Object.assign({},h),{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,e.browserUrlTree=t.urlAfterRedirects,t.resolve(null),xf}),xv(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})}),tp(function(t){var n=new hp(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),G(function(t){return Object.assign(Object.assign({},t),{guards:(n=t.targetSnapshot,i=t.currentSnapshot,r=e.rootContexts,a=n._root,pv(a,i?i._root:null,r,[a.value]))});var n,i,r,a}),function(t,e){return st(function(n){var i=n.targetSnapshot,r=n.currentSnapshot,a=n.guards,o=a.canActivateChecks,s=a.canDeactivateChecks;return 0===s.length&&0===o.length?Od(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return it(t).pipe(st(function(t){return function(t,e,n,i,r){var a=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return a&&0!==a.length?Od(a.map(function(a){var o,s=fv(a,e,r);if(function(t){return t&&Nm(t.canDeactivate)}(s))o=Rp(s.canDeactivate(t,e,n,i));else{if(!Nm(s))throw new Error("Invalid CanDeactivate guard");o=Rp(s(t,e,n,i))}return o.pipe(Qf())})).pipe(Bm()):Od(!0)}(t.component,t.route,n,e,i)}),Qf(function(t){return!0!==t},!0))}(s,i,r,t).pipe(st(function(n){return n&&"boolean"==typeof n?function(t,e,n,i){return it(e).pipe(Id(function(e){return Sf(function(t,e){return null!==t&&e&&e(new gp(t)),Od(!0)}(e.route.parent,i),function(t,e){return null!==t&&e&&e(new _p(t)),Od(!0)}(e.route,i),function(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 Af(function(){return Od(e.guards.map(function(r){var a,o=fv(r,e.node,n);if(function(t){return t&&Nm(t.canActivateChild)}(o))a=Rp(o.canActivateChild(i,t));else{if(!Nm(o))throw new Error("Invalid CanActivateChild guard");a=Rp(o(i,t))}return a.pipe(Qf())})).pipe(Bm())})});return Od(r).pipe(Bm())}(t,e.path,n),function(t,e,n){var i=e.routeConfig?e.routeConfig.canActivate:null;return i&&0!==i.length?Od(i.map(function(i){return Af(function(){var r,a=fv(i,e,n);if(function(t){return t&&Nm(t.canActivate)}(a))r=Rp(a.canActivate(e,t));else{if(!Nm(a))throw new Error("Invalid CanActivate guard");r=Rp(a(e,t))}return r.pipe(Qf())})})).pipe(Bm()):Od(!0)}(t,e.route,n))}),Qf(function(t){return!0!==t},!0))}(i,o,t,e):Od(n)}),G(function(t){return Object.assign(Object.assign({},n),{guardsResult:t})}))})}(e.ngModule.injector,function(t){return e.triggerEvent(t)}),tp(function(t){if(Vm(t.guardsResult)){var n=xp('Redirecting to "'.concat(e.serializeUrl(t.guardsResult),'"'));throw n.url=t.guardsResult,n}var i=new dp(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(i)}),Td(function(t){if(!t.guardsResult){e.resetUrlToCurrentUrlTree();var i=new lp(t.id,e.serializeUrl(t.extractedUrl),"");return n.next(i),t.resolve(!1),!1}return!0}),xv(function(t){if(t.guards.canActivateChecks.length)return Od(t).pipe(tp(function(t){var n=new fp(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),Df(function(t){var i,r,a=!1;return Od(t).pipe((i=e.paramsInheritanceStrategy,r=e.ngModule.injector,st(function(t){var e=t.targetSnapshot,n=t.guards.canActivateChecks;if(!n.length)return Od(t);var a=0;return it(n).pipe(Id(function(t){return function(t,e,n,i){return function(t,e,n,i){var r=Object.keys(t);if(0===r.length)return Od({});var a={};return it(r).pipe(st(function(r){return function(t,e,n,i){var r=fv(t,e,i);return Rp(r.resolve?r.resolve(e,n):r(e,n))}(t[r],e,n,i).pipe(tp(function(t){a[r]=t}))}),Hf(1),st(function(){return Object.keys(a).length===r.length?Od(a):xf}))}(t._resolve,t,e,i).pipe(G(function(e){return t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),hm(t,n).resolve),null}))}(t.route,e,i,r)}),tp(function(){return a++}),Hf(1),st(function(e){return a===n.length?Od(t):xf}))})),tp({next:function(){return a=!0},complete:function(){if(!a){var i=new lp(t.id,e.serializeUrl(t.extractedUrl),"At least one route resolver didn't emit any value.");n.next(i),t.resolve(!1)}}}))}),tp(function(t){var n=new pp(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}))}),xv(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})}),G(function(t){var n,i,r,a=(r=_m(e.routeReuseStrategy,(n=t.targetSnapshot)._root,(i=t.currentRouterState)?i._root:void 0),new lm(r,n));return Object.assign(Object.assign({},t),{targetRouterState:a})}),tp(function(t){e.currentUrlTree=t.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(e.currentUrlTree,t.rawUrl),e.routerState=t.targetRouterState,"deferred"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),e.browserUrlTree=t.urlAfterRedirects)}),(r=e.rootContexts,a=e.routeReuseStrategy,o=function(t){return e.triggerEvent(t)},G(function(t){return new Mm(a,t.targetRouterState,t.currentRouterState,o).activate(r),t})),tp({next:function(){s=!0},complete:function(){s=!0}}),(i=function(){if(!s&&!l){e.resetUrlToCurrentUrlTree();var i=new lp(t.id,e.serializeUrl(t.extractedUrl),"Navigation ID ".concat(t.id," is not equal to the current navigation id ").concat(e.navigationId));n.next(i),t.resolve(!1)}e.currentNavigation=null},function(t){return t.lift(new ip(i))}),jf(function(i){if(l=!0,(s=i)&&s.ngNavigationCancelingError){var r=Vm(i.url);r||(e.navigated=!0,e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));var a=new lp(t.id,e.serializeUrl(t.extractedUrl),i.message);n.next(a),r?setTimeout(function(){var n=e.urlHandlingStrategy.merge(i.url,e.rawUrlTree);e.scheduleNavigation(n,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);var o=new up(t.id,e.serializeUrl(t.extractedUrl),i);n.next(o);try{t.resolve(e.errorHandler(i))}catch(u){t.reject(u)}}var s;return xf}))}))}},{key:"resetRootComponentType",value:function(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}},{key:"setTransition",value:function(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(e){var n=t.extractLocationChangeInfoFromEvent(e);t.shouldScheduleNavigation(t.lastLocationChangeInfo,n)&&setTimeout(function(){var e=n.source,i=n.state,r=n.urlTree,a={replaceUrl:!0};if(i){var o=Object.assign({},i);delete o.navigationId,0!==Object.keys(o).length&&(a.state=o)}t.scheduleNavigation(r,e,i,a)},0),t.lastLocationChangeInfo=n}))}},{key:"extractLocationChangeInfoFromEvent",value:function(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(t,e){if(!t)return!0;var n=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&n&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(t){this.events.next(t)}},{key:"resetConfig",value:function(t){Hm(t),this.config=t.map(Wm),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0)}},{key:"createUrlTree",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.relativeTo,i=e.queryParams,r=e.fragment,a=e.queryParamsHandling,o=e.preserveFragment,s=n||this.routerState.root,l=o?this.currentUrlTree.fragment:r,u=null;switch(a){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=i||null}return null!==u&&(u=this.removeEmptyProps(u)),km(s,this.currentUrlTree,t,u,l)}},{key:"navigateByUrl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},n=Vm(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,e)}},{key:"navigate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return Lv(t),this.navigateByUrl(this.createUrlTree(t,e),e)}},{key:"serializeUrl",value:function(t){return this.urlSerializer.serialize(t)}},{key:"parseUrl",value:function(t){var e;try{e=this.urlSerializer.parse(t)}catch(n){e=this.malformedUriErrorHandler(n,this.urlSerializer,t)}return e}},{key:"isActive",value:function(t,e){if(Vm(t))return Pp(this.currentUrlTree,t,e);var n=this.parseUrl(t);return Pp(this.currentUrlTree,n,e)}},{key:"removeEmptyProps",value:function(t){return Object.keys(t).reduce(function(e,n){var i=t[n];return null!=i&&(e[n]=i),e},{})}},{key:"processNavigations",value:function(){var t=this;this.navigations.subscribe(function(e){t.navigated=!0,t.lastSuccessfulId=e.id,t.events.next(new sp(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(t.currentUrlTree))),t.lastSuccessfulNavigation=t.currentNavigation,t.currentNavigation=null,e.resolve(!0)},function(e){t.console.warn("Unhandled Navigation Error: ")})}},{key:"scheduleNavigation",value:function(t,e,n,i,r){var a,o,s,l=this.getTransition(),u="imperative"!==e&&"imperative"===(null==l?void 0:l.source),c=(this.lastSuccessfulId===l.id||this.currentNavigation?l.rawUrl:l.urlAfterRedirects).toString()===t.toString();if(u&&c)return Promise.resolve(!0);r?(a=r.resolve,o=r.reject,s=r.promise):s=new Promise(function(t,e){a=t,o=e});var h=++this.navigationId;return this.setTransition({id:h,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:a,reject:o,promise:s,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),s.catch(function(t){return Promise.reject(t)})}},{key:"setBrowserUrl",value:function(t,e,n,i){var r=this.urlSerializer.serialize(t);i=i||{},this.location.isCurrentPathEqualTo(r)||e?this.location.replaceState(r,"",Object.assign(Object.assign({},i),{navigationId:n})):this.location.go(r,"",Object.assign(Object.assign({},i),{navigationId:n}))}},{key:"resetStateAndUrl",value:function(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Ui(wi),Ui(zp),Ui(Iv),Ui(bh),Ui(Ho),Ui(Kc),Ui(bc),Ui(void 0))},t.\u0275prov=Dt({token:t,factory:t.\u0275fac}),t}();function Lv(t){for(var e=0;e2&&void 0!==arguments[2]?arguments[2]:{};g(this,t),this.router=e,this.viewportScroller=n,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}return v(t,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var t=this;return this.router.events.subscribe(function(e){e instanceof op?(t.store[t.lastId]=t.viewportScroller.getScrollPosition(),t.lastSource=e.navigationTrigger,t.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof sp&&(t.lastId=e.id,t.scheduleScrollEvent(e,t.router.parseUrl(e.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var t=this;return this.router.events.subscribe(function(e){e instanceof kp&&(e.position?"top"===t.options.scrollPositionRestoration?t.viewportScroller.scrollToPosition([0,0]):"enabled"===t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===t.options.anchorScrolling?t.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(t,e){this.router.triggerEvent(new kp(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Ui(Fv),Ui(Gh),Ui(void 0))},t.\u0275prov=Dt({token:t,factory:t.\u0275fac}),t}(),Gv=new bi("ROUTER_CONFIGURATION"),Kv=new bi("ROUTER_FORROOT_GUARD"),Zv=[bh,{provide:zp,useClass:Hp},{provide:Fv,useFactory:function(t,e,n,i,r,a,o){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},l=arguments.length>8?arguments[8]:void 0,u=arguments.length>9?arguments[9]:void 0,c=new Fv(null,t,e,n,i,r,a,Op(o));if(l&&(c.urlHandlingStrategy=l),u&&(c.routeReuseStrategy=u),ng(s,c),s.enableTracing){var h=ih();c.events.subscribe(function(t){h.logGroup("Router Event: ".concat(t.constructor.name)),h.log(t.toString()),h.log(t),h.logGroupEnd()})}return c},deps:[zp,Iv,bh,Ho,Kc,bc,Av,Gv,[function t(){g(this,t)},new Ri],[function t(){g(this,t)},new Ri]]},Iv,{provide:cm,useFactory:function(t){return t.routerState.root},deps:[Fv]},{provide:Kc,useClass:Xc},Wv,qv,Uv,{provide:Gv,useValue:{enableTracing:!1}}];function $v(){return new jc("Router",Fv)}var Xv=function(){var t=function(){function t(e,n){g(this,t)}return v(t,null,[{key:"forRoot",value:function(e,n){return{ngModule:t,providers:[Zv,eg(e),{provide:Kv,useFactory:tg,deps:[[Fv,new Ri,new Mi]]},{provide:Gv,useValue:n||{}},{provide:mh,useFactory:Jv,deps:[oh,[new Ti(gh),new Ri],Gv]},{provide:Yv,useFactory:Qv,deps:[Fv,Gh,Gv]},{provide:Hv,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:qv},{provide:jc,multi:!0,useFactory:$v},[ig,{provide:nc,multi:!0,useFactory:rg,deps:[ig]},{provide:og,useFactory:ag,deps:[ig]},{provide:uc,multi:!0,useExisting:og}]]}}},{key:"forChild",value:function(e){return{ngModule:t,providers:[eg(e)]}}}]),t}();return t.\u0275mod=ce({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)(Ui(Kv,8),Ui(Fv,8))}}),t}();function Qv(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Yv(t,e,n)}function Jv(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new _h(t,e):new yh(t,e)}function tg(t){return"guarded"}function eg(t){return[{provide:ki,multi:!0,useValue:t},{provide:Av,multi:!0,useValue:t}]}function ng(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}var ig=function(){var t=function(){function t(e){g(this,t),this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new q}return v(t,[{key:"appInitializer",value:function(){var t=this;return this.injector.get(lh,Promise.resolve(null)).then(function(){var e=null,n=new Promise(function(t){return e=t}),i=t.injector.get(Fv),r=t.injector.get(Gv);return"disabled"===r.initialNavigation?(i.setUpLocationChangeListener(),e(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(i.hooks.afterPreactivation=function(){return t.initNavigation?Od(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},i.initialNavigation()):e(!0),n})}},{key:"bootstrapListener",value:function(t){var e=this.injector.get(Gv),n=this.injector.get(Wv),i=this.injector.get(Yv),r=this.injector.get(Fv),a=this.injector.get(Yc);t===a.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||r.initialNavigation(),n.setUpPreloading(),i.init(),r.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Ui(Ho))},t.\u0275prov=Dt({token:t,factory:t.\u0275fac}),t}();function rg(t){return t.appInitializer.bind(t)}function ag(t){return t.bootstrapListener.bind(t)}var og=new bi("Router Initializer"),sg=function(){function t(t){this.user=t.user,this.role=t.role,this.admin=t.admin}return Object.defineProperty(t.prototype,"isStaff",{get:function(){return"staff"===this.role||"admin"===this.role},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAdmin",{get:function(){return"admin"===this.role},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLogged",{get:function(){return null!=this.user},enumerable:!1,configurable:!0}),t}();function lg(t){return null!=t&&"false"!=="".concat(t)}function ug(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return cg(t)?Number(t):e}function cg(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function hg(t){return Array.isArray(t)?t:[t]}function dg(t){return null==t?"":"string"==typeof t?t:"".concat(t,"px")}function fg(t){return t instanceof xl?t.nativeElement:t}function pg(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\s+/,n=[];if(null!=t){var i,r=Array.isArray(t)?t:"".concat(t).split(e),a=c(r);try{for(a.s();!(i=a.n()).done;){var o=i.value,s="".concat(o).trim();s&&n.push(s)}}catch(l){a.e(l)}finally{a.f()}}return n}function mg(t,e,n,i){return x(n)&&(i=n,n=void 0),i?mg(t,e,n).pipe(G(function(t){return C(t)?i.apply(void 0,h(t)):i(t)})):new j(function(i){vg(t,e,function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},i,n)})}function vg(t,e,n,i,r){var a;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){var o=t;t.addEventListener(e,n,r),a=function(){return o.removeEventListener(e,n,r)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){var s=t;t.on(e,n),a=function(){return s.off(e,n)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){var l=t;t.addListener(e,n),a=function(){return l.removeListener(e,n)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var u=0,c=t.length;u1&&void 0!==arguments[1]?arguments[1]:0;if(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}},{key:"requestAsyncId",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(t.flush.bind(t,this),n)}},{key:"recycleAsyncId",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}},{key:"execute",value: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))}},{key:"_execute",value: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}},{key:"_unsubscribe",value: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}}]),n}(function(t){y(n,t);var e=k(n);function n(t,i){return g(this,n),e.call(this)}return v(n,[{key:"schedule",value:function(t){return this}}]),n}(A)),yg=function(){var t=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.now;g(this,t),this.SchedulerAction=e,this.now=n}return v(t,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,t).schedule(n,e)}}]),t}();return t.now=function(){return Date.now()},t}(),_g=function(t){y(n,t);var e=k(n);function n(t){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yg.now;return g(this,n),(i=e.call(this,t,function(){return n.delegate&&n.delegate!==a(i)?n.delegate.now():r()})).actions=[],i.active=!1,i.scheduled=void 0,i}return v(n,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(t,e,a):r(i(n.prototype),"schedule",this).call(this,t,e,a)}},{key:"flush",value: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}}}}]),n}(yg),bg=1,kg=function(){return Promise.resolve()}(),wg={};function Cg(t){return t in wg&&(delete wg[t],!0)}var Sg=function(t){var e=bg++;return wg[e]=!0,kg.then(function(){return Cg(e)&&t()}),e},xg=function(t){Cg(t)},Eg=function(t){y(n,t);var e=k(n);function n(t,i){var r;return g(this,n),(r=e.call(this,t,i)).scheduler=t,r.work=i,r}return v(n,[{key:"requestAsyncId",value:function(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==a&&a>0?r(i(n.prototype),"requestAsyncId",this).call(this,t,e,a):(t.actions.push(this),t.scheduled||(t.scheduled=Sg(t.flush.bind(t,null))))}},{key:"recycleAsyncId",value:function(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==a&&a>0||null===a&&this.delay>0)return r(i(n.prototype),"recycleAsyncId",this).call(this,t,e,a);0===t.actions.length&&(xg(e),t.scheduled=void 0)}}]),n}(gg),Ag=new(function(t){y(n,t);var e=k(n);function n(){return g(this,n),e.apply(this,arguments)}return v(n,[{key:"flush",value: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 Lg(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=-1;return Fg(e)?i=Number(e)<1?1:Number(e):Y(e)&&(n=e),Y(n)||(n=Tg),new j(function(e){var r=Fg(t)?t:+t-n.now();return n.schedule(Ng,r,{index:0,period:i,subscriber:e})})}function Ng(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 Vg(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Tg;return Rg(function(){return Lg(t,e)})}function jg(t){return function(e){return e.lift(new Bg(t))}}var Bg=function(){function t(e){g(this,t),this.notifier=e}return v(t,[{key:"call",value:function(t,e){var n=new zg(t),i=ot(this.notifier,new rt(n));return i&&!n.seenValue?(n.add(i),e.subscribe(n)):n}}]),t}(),zg=function(t){y(n,t);var e=k(n);function n(t){var i;return g(this,n),(i=e.call(this,t)).seenValue=!1,i}return v(n,[{key:"notifyNext",value:function(){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),n}(at);function Hg(t,e){return new j(e?function(n){return e.schedule(Ug,0,{error:t,subscriber:n})}:function(e){return e.error(t)})}function Ug(t){t.subscriber.error(t.error)}var qg,Wg=function(){var t=function(){function t(e,n,i){g(this,t),this.kind=e,this.value=n,this.error=i,this.hasValue="N"===e}return v(t,[{key:"observe",value: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()}}},{key:"do",value: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()}}},{key:"accept",value:function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return Od(this.value);case"E":return Hg(this.error);case"C":return Ef()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}},{key:"createError",value:function(e){return new t("E",void 0,e)}},{key:"createComplete",value:function(){return t.completeNotification}}]),t}();return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();try{qg="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(RB){qg=!1}var Yg,Gg,Kg,Zg,$g=function(){var t=function t(e){g(this,t),this._platformId=e,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&&!qg)&&"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.\u0275fac=function(e){return new(e||t)(Ui(lc))},t.\u0275prov=Dt({factory:function(){return new t(Ui(lc))},token:t,providedIn:"root"}),t}(),Xg=function(){var t=function t(){g(this,t)};return t.\u0275mod=ce({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)}}),t}(),Qg=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Jg(){if(Yg)return Yg;if("object"!=typeof document||!document)return Yg=new Set(Qg);var t=document.createElement("input");return Yg=new Set(Qg.filter(function(e){return t.setAttribute("type",e),t.type===e}))}function ty(t){return function(){if(null==Gg&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Gg=!0}}))}finally{Gg=Gg||!1}return Gg}()?t:!!t.capture}function ey(){if(null==Kg){if("object"!=typeof document||!document)return Kg=!1;if("scrollBehavior"in document.documentElement.style)Kg=!0;else{var t=Element.prototype.scrollTo;Kg=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return Kg}function ny(t){if(function(){if(null==Zg){var t="undefined"!=typeof document?document.head:null;Zg=!(!t||!t.createShadowRoot&&!t.attachShadow)}return Zg}()){var e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}var iy=new bi("cdk-dir-doc",{providedIn:"root",factory:function(){return Wi(ah)}}),ry=function(){var t=function(){function t(e){if(g(this,t),this.value="ltr",this.change=new Ru,e){var n=(e.body?e.body.dir:null)||(e.documentElement?e.documentElement.dir:null);this.value="ltr"===n||"rtl"===n?n:"ltr"}}return v(t,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Ui(iy,8))},t.\u0275prov=Dt({factory:function(){return new t(Ui(iy,8))},token:t,providedIn:"root"}),t}(),ay=function(){var t=function t(){g(this,t)};return t.\u0275mod=ce({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)}}),t}(),oy=function t(){g(this,t)};function sy(t){return t&&"function"==typeof t.connect}var ly=function(){function t(){g(this,t)}return v(t,[{key:"applyChanges",value:function(t,e,n,i,r){t.forEachOperation(function(t,i,a){var o,s;if(null==t.previousIndex){var l=n(t,i,a);o=e.createEmbeddedView(l.templateRef,l.context,l.index),s=1}else null==a?(e.remove(i),s=3):(o=e.get(i),e.move(o,a),s=2);r&&r({context:null==o?void 0:o.context,operation:s,record:t})})}},{key:"detach",value:function(){}}]),t}(),uy=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1?arguments[1]:void 0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];g(this,t),this._multiple=n,this._emitChanges=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new q,i&&i.length&&(n?i.forEach(function(t){return e._markSelected(t)}):this._markSelected(i[0]),this._selectedToEmit.length=0)}return v(t,[{key:"select",value:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new j(function(n){t._globalSubscription||t._addGlobalListener();var i=e>0?t._scrolled.pipe(Vg(e)).subscribe(n):t._scrolled.subscribe(n);return t._scrolledCount++,function(){i.unsubscribe(),t._scrolledCount--,t._scrolledCount||t._removeGlobalListener()}}):Od()}},{key:"ngOnDestroy",value:function(){var t=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(e,n){return t.deregister(n)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(t,e){var n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Td(function(t){return!t||n.indexOf(t)>-1}))}},{key:"getAncestorScrollContainers",value:function(t){var e=this,n=[];return this.scrollContainers.forEach(function(i,r){e._scrollableContainsElement(r,t)&&n.push(r)}),n}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(t,e){var n=e.nativeElement,i=t.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var t=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return mg(t._getWindow().document,"scroll").subscribe(function(){return t._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Ui(Cc),Ui($g),Ui(ah,8))},t.\u0275prov=Dt({factory:function(){return new t(Ui(Cc),Ui($g),Ui(ah,8))},token:t,providedIn:"root"}),t}(),dy=function(){var t=function(){function t(e,n,i){var r=this;g(this,t),this._platform=e,this._change=new q,this._changeListener=function(t){r._change.next(t)},this._document=i,n.runOutsideAngular(function(){if(e.isBrowser){var t=r._getWindow();t.addEventListener("resize",r._changeListener),t.addEventListener("orientationchange",r._changeListener)}r.change().subscribe(function(){return r._updateViewportSize()})})}return v(t,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}},{key:"getViewportRect",value: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}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var t=this._document,e=this._getWindow(),n=t.documentElement,i=n.getBoundingClientRect();return{top:-i.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-i.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}},{key:"change",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return t>0?this._change.pipe(Vg(t)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Ui($g),Ui(Cc),Ui(ah,8))},t.\u0275prov=Dt({factory:function(){return new t(Ui($g),Ui(Cc),Ui(ah,8))},token:t,providedIn:"root"}),t}(),fy=function(){var t=function t(){g(this,t)};return t.\u0275mod=ce({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)}}),t}(),py=function(){var t=function t(){g(this,t)};return t.\u0275mod=ce({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},imports:[[ay,Xg,fy],ay,fy]}),t}(),my=function(){function t(){g(this,t)}return v(t,[{key:"attach",value:function(t){return this._attachedHost=t,t.attach(this)}},{key:"detach",value:function(){var t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}},{key:"setAttachedHost",value:function(t){this._attachedHost=t}},{key:"isAttached",get:function(){return null!=this._attachedHost}}]),t}(),vy=function(t){y(n,t);var e=k(n);function n(t,i,r,a){var o;return g(this,n),(o=e.call(this)).component=t,o.viewContainerRef=i,o.injector=r,o.componentFactoryResolver=a,o}return n}(my),gy=function(t){y(n,t);var e=k(n);function n(t,i,r){var a;return g(this,n),(a=e.call(this)).templateRef=t,a.viewContainerRef=i,a.context=r,a}return v(n,[{key:"attach",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=e,r(i(n.prototype),"attach",this).call(this,t)}},{key:"detach",value:function(){return this.context=void 0,r(i(n.prototype),"detach",this).call(this)}},{key:"origin",get:function(){return this.templateRef.elementRef}}]),n}(my),yy=function(t){y(n,t);var e=k(n);function n(t){var i;return g(this,n),(i=e.call(this)).element=t instanceof xl?t.nativeElement:t,i}return n}(my),_y=function(){function t(){g(this,t),this._isDisposed=!1,this.attachDomPortal=null}return v(t,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(t){return t instanceof vy?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof gy?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof yy?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(t){this._disposeFn=t}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),t}(),by=function(t){y(n,t);var e=k(n);function n(t,o,s,l,u){var c,h;return g(this,n),(h=e.call(this)).outletElement=t,h._componentFactoryResolver=o,h._appRef=s,h._defaultInjector=l,h.attachDomPortal=function(t){var e=t.element,o=h._document.createComment("dom-portal");e.parentNode.insertBefore(o,e),h.outletElement.appendChild(e),r((c=a(h),i(n.prototype)),"setDisposeFn",c).call(c,function(){o.parentNode&&o.parentNode.replaceChild(e,o)})},h._document=u,h}return v(n,[{key:"attachComponentPortal",value:function(t){var e,n=this,i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);return t.viewContainerRef?(e=t.viewContainerRef.createComponent(i,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(function(){return e.destroy()})):(e=i.create(t.injector||this._defaultInjector),this._appRef.attachView(e.hostView),this.setDisposeFn(function(){n._appRef.detachView(e.hostView),e.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(e)),e}},{key:"attachTemplatePortal",value:function(t){var e=this,n=t.viewContainerRef,i=n.createEmbeddedView(t.templateRef,t.context);return i.rootNodes.forEach(function(t){return e.outletElement.appendChild(t)}),i.detectChanges(),this.setDisposeFn(function(){var t=n.indexOf(i);-1!==t&&n.remove(t)}),i}},{key:"dispose",value:function(){r(i(n.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(t){return t.hostView.rootNodes[0]}}]),n}(_y),ky=function(){var t=function(t){y(n,t);var e=k(n);function n(t,i){return g(this,n),e.call(this,t,i)}return n}(gy);return t.\u0275fac=function(e){return new(e||t)(ss(eu),ss(su))},t.\u0275dir=de({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[qo]}),t}(),wy=function(){var t=function(t){y(n,t);var e=k(n);function n(t,o,s){var l,u;return g(this,n),(u=e.call(this))._componentFactoryResolver=t,u._viewContainerRef=o,u._isInitialized=!1,u.attached=new Ru,u.attachDomPortal=function(t){var e=t.element,o=u._document.createComment("dom-portal");t.setAttachedHost(a(u)),e.parentNode.insertBefore(o,e),u._getRootNode().appendChild(e),r((l=a(u),i(n.prototype)),"setDisposeFn",l).call(l,function(){o.parentNode&&o.parentNode.replaceChild(e,o)})},u._document=s,u}return v(n,[{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){r(i(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(t){t.setAttachedHost(this);var e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,a=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),o=e.createComponent(a,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),r(i(n.prototype),"setDisposeFn",this).call(this,function(){return o.destroy()}),this._attachedPortal=t,this._attachedRef=o,this.attached.emit(o),o}},{key:"attachTemplatePortal",value:function(t){var e=this;t.setAttachedHost(this);var a=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return r(i(n.prototype),"setDisposeFn",this).call(this,function(){return e._viewContainerRef.clear()}),this._attachedPortal=t,this._attachedRef=a,this.attached.emit(a),a}},{key:"_getRootNode",value:function(){var t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}},{key:"portal",get:function(){return this._attachedPortal},set:function(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&r(i(n.prototype),"detach",this).call(this),t&&r(i(n.prototype),"attach",this).call(this,t),this._attachedPortal=t)}},{key:"attachedRef",get:function(){return this._attachedRef}}]),n}(_y);return t.\u0275fac=function(e){return new(e||t)(ss(kl),ss(su),ss(ah))},t.\u0275dir=de({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[qo]}),t}(),Cy=function(){var t=function(t){y(n,t);var e=k(n);function n(){return g(this,n),e.apply(this,arguments)}return n}(wy);return t.\u0275fac=function(e){return Sy(e||t)},t.\u0275dir=de({type:t,selectors:[["","cdkPortalHost",""],["","portalHost",""]],inputs:{portal:["cdkPortalHost","portal"]},exportAs:["cdkPortalHost"],features:[gl([{provide:wy,useExisting:t}]),qo]}),t}(),Sy=vi(Cy),xy=function(){var t=function t(){g(this,t)};return t.\u0275mod=ce({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)}}),t}(),Ey=function(){function t(e,n){g(this,t),this.predicate=e,this.inclusive=n}return v(t,[{key:"call",value:function(t,e){return e.subscribe(new Ay(t,this.predicate,this.inclusive))}}]),t}(),Ay=function(t){y(n,t);var e=k(n);function n(t,i,r){var a;return g(this,n),(a=e.call(this,t)).predicate=i,a.inclusive=r,a.index=0,a}return v(n,[{key:"_next",value:function(t){var e,n=this.destination;try{e=this.predicate(t,this.index++)}catch(i){return void n.error(i)}this.nextOrComplete(t,e)}},{key:"nextOrComplete",value:function(t,e){var n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())}}]),n}(M),Dy=13,Oy=27,Iy=32,Ty=35,Ry=36,Py=37,My=38,Fy=39,Ly=40;function Ny(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;ie.height||t.scrollWidth>e.width}}]),t}(),By=function(){function t(e,n,i,r){var a=this;g(this,t),this._scrollDispatcher=e,this._ngZone=n,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=function(){a.disable(),a._overlayRef.hasAttached()&&a._ngZone.run(function(){return a._overlayRef.detach()})}}return v(t,[{key:"attach",value:function(t){this._overlayRef=t}},{key:"enable",value: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)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),t}(),zy=function(){function t(){g(this,t)}return v(t,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),t}();function Hy(t,e){return e.some(function(e){return t.bottome.bottom||t.righte.right})}function Uy(t,e){return e.some(function(e){return t.tope.bottom||t.lefte.right})}var qy=function(){function t(e,n,i,r){g(this,t),this._scrollDispatcher=e,this._viewportRuler=n,this._ngZone=i,this._config=r,this._scrollSubscription=null}return v(t,[{key:"attach",value:function(t){this._overlayRef=t}},{key:"enable",value: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;Hy(e,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(t.disable(),t._ngZone.run(function(){return t._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),t}(),Wy=function(){var t=function t(e,n,i,r){var a=this;g(this,t),this._scrollDispatcher=e,this._viewportRuler=n,this._ngZone=i,this.noop=function(){return new zy},this.close=function(t){return new By(a._scrollDispatcher,a._ngZone,a._viewportRuler,t)},this.block=function(){return new jy(a._viewportRuler,a._document)},this.reposition=function(t){return new qy(a._scrollDispatcher,a._viewportRuler,a._ngZone,t)},this._document=r};return t.\u0275fac=function(e){return new(e||t)(Ui(hy),Ui(dy),Ui(Cc),Ui(ah))},t.\u0275prov=Dt({factory:function(){return new t(Ui(hy),Ui(dy),Ui(Cc),Ui(ah))},token:t,providedIn:"root"}),t}(),Yy=function t(e){if(g(this,t),this.scrollStrategy=new zy,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e)for(var n=0,i=Object.keys(e);n-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Ui(ah))},t.\u0275prov=Dt({factory:function(){return new t(Ui(ah))},token:t,providedIn:"root"}),t}(),$y=function(){var t=function(t){y(n,t);var e=k(n);function n(t){var i;return g(this,n),(i=e.call(this,t))._keydownListener=function(t){for(var e=i._attachedOverlays,n=e.length-1;n>-1;n--)if(e[n]._keydownEvents.observers.length>0){e[n]._keydownEvents.next(t);break}},i}return v(n,[{key:"add",value:function(t){r(i(n.prototype),"add",this).call(this,t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),n}(Zy);return t.\u0275fac=function(e){return new(e||t)(Ui(ah))},t.\u0275prov=Dt({factory:function(){return new t(Ui(ah))},token:t,providedIn:"root"}),t}(),Xy=function(){var t=function(t){y(n,t);var e=k(n);function n(t,i){var r;return g(this,n),(r=e.call(this,t))._platform=i,r._cursorStyleIsSet=!1,r._clickListener=function(t){for(var e=t.composedPath?t.composedPath()[0]:t.target,n=r._attachedOverlays.slice(),i=n.length-1;i>-1;i--){var a=n[i];if(!(a._outsidePointerEvents.observers.length<1)&&a.hasAttached()){if(a.overlayElement.contains(e))break;a._outsidePointerEvents.next(t)}}},r}return v(n,[{key:"add",value:function(t){r(i(n.prototype),"add",this).call(this,t),this._isAttached||(this._document.body.addEventListener("click",this._clickListener,!0),this._document.body.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=this._document.body.style.cursor,this._document.body.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("click",this._clickListener,!0),this._document.body.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}}]),n}(Zy);return t.\u0275fac=function(e){return new(e||t)(Ui(ah),Ui($g))},t.\u0275prov=Dt({factory:function(){return new t(Ui(ah),Ui($g))},token:t,providedIn:"root"}),t}(),Qy=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine),Jy=function(){var t=function(){function t(e,n){g(this,t),this._platform=n,this._document=e}return v(t,[{key:"ngOnDestroy",value:function(){var t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var t="cdk-overlay-container";if(this._platform.isBrowser||Qy)for(var e=this._document.querySelectorAll(".".concat(t,'[platform="server"], ')+".".concat(t,'[platform="test"]')),n=0;np&&(p=g,f=v)}}catch(y){m.e(y)}finally{m.f()}return this._isPushed=!1,void this._applyPosition(f.position,f.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(t.position,t.originPoint);this._applyPosition(t.position,t.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&r_(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(e_),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value: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)}}},{key:"withScrollableContainers",value:function(t){return this._scrollables=t,this}},{key:"withPositions",value:function(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(t){return this._viewportMargin=t,this}},{key:"withFlexibleDimensions",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=t,this}},{key:"withGrowAfterOpen",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=t,this}},{key:"withPush",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=t,this}},{key:"withLockedPosition",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=t,this}},{key:"setOrigin",value:function(t){return this._origin=t,this}},{key:"withDefaultOffsetX",value:function(t){return this._offsetX=t,this}},{key:"withDefaultOffsetY",value:function(t){return this._offsetY=t,this}},{key:"withTransformOriginOn",value:function(t){return this._transformOriginSelector=t,this}},{key:"_getOriginPoint",value: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}}},{key:"_getOverlayPoint",value: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)}}},{key:"_getOverlayFit",value:function(t,e,n,i){var r=t.x,a=t.y,o=this._getOffset(i,"x"),s=this._getOffset(i,"y");o&&(r+=o),s&&(a+=s);var l=0-a,u=a+e.height-n.height,c=this._subtractOverflows(e.width,0-r,r+e.width-n.width),h=this._subtractOverflows(e.height,l,u),d=c*h;return{visibleArea:d,isCompletelyWithinViewport:e.width*e.height===d,fitsInViewportVertically:h===e.height,fitsInViewportHorizontally:c==e.width}}},{key:"_canFitWithFlexibleDimensions",value:function(t,e,n){if(this._hasFlexibleDimensions){var i=n.bottom-e.y,r=n.right-e.x,a=a_(this._overlayRef.getConfig().minHeight),o=a_(this._overlayRef.getConfig().minWidth);return(t.fitsInViewportVertically||null!=a&&a<=i)&&(t.fitsInViewportHorizontally||null!=o&&o<=r)}return!1}},{key:"_pushOverlayOnScreen",value: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,a=this._viewportRect,o=Math.max(t.x+e.width-a.width,0),s=Math.max(t.y+e.height-a.height,0),l=Math.max(a.top-n.top-t.y,0),u=Math.max(a.left-n.left-t.x,0);return this._previousPushAmount={x:i=e.width<=a.width?u||-o:t.xh&&!this._isInitialRender&&!this._growAfterOpen&&(i=t.y-h/2)}if("end"===e.overlayX&&!u||"start"===e.overlayX&&u)s=l.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!u||"end"===e.overlayX&&u)o=t.x,a=l.right-t.x;else{var d=Math.min(l.right-t.x+l.left,t.x),f=this._lastBoundingBoxSize.width;o=t.x-d,(a=2*d)>f&&!this._isInitialRender&&!this._growAfterOpen&&(o=t.x-f/2)}return{top:i,left:o,bottom:r,right:s,width:a,height:n}}},{key:"_setBoundingBoxStyles",value: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.maxHeight=i.maxWidth="",i.width=i.height="100%";else{var r=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;i.height=dg(n.height),i.top=dg(n.top),i.bottom=dg(n.bottom),i.width=dg(n.width),i.left=dg(n.left),i.right=dg(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=dg(r)),a&&(i.maxWidth=dg(a))}this._lastBoundingBoxSize=n,r_(this._boundingBox.style,i)}},{key:"_resetBoundingBoxStyles",value:function(){r_(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){r_(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(t,e){var n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(i){var o=this._viewportRuler.getViewportScrollPosition();r_(n,this._getExactOverlayY(e,t,o)),r_(n,this._getExactOverlayX(e,t,o))}else n.position="static";var s="",l=this._getOffset(e,"x"),u=this._getOffset(e,"y");l&&(s+="translateX(".concat(l,"px) ")),u&&(s+="translateY(".concat(u,"px)")),n.transform=s.trim(),a.maxHeight&&(i?n.maxHeight=dg(a.maxHeight):r&&(n.maxHeight="")),a.maxWidth&&(i?n.maxWidth=dg(a.maxWidth):r&&(n.maxWidth="")),r_(this._pane.style,n)}},{key:"_getExactOverlayY",value:function(t,e,n){var i={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));var a=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=a,"bottom"===t.overlayY?i.bottom="".concat(this._document.documentElement.clientHeight-(r.y+this._overlayRect.height),"px"):i.top=dg(r.y),i}},{key:"_getExactOverlayX",value:function(t,e,n){var i={left:"",right:""},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="".concat(this._document.documentElement.clientWidth-(r.x+this._overlayRect.width),"px"):i.left=dg(r.x),i}},{key:"_getScrollVisibility",value:function(){var t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(function(t){return t.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:Uy(t,n),isOriginOutsideView:Hy(t,n),isOverlayClipped:Uy(e,n),isOverlayOutsideView:Hy(e,n)}}},{key:"_subtractOverflows",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}},{key:"left",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}},{key:"right",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}},{key:"width",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}},{key:"height",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}},{key:"centerHorizontally",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(t),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(t),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),i=n.width,r=n.height,a=n.maxWidth,o=n.maxHeight,s=!("100%"!==i&&"100vw"!==i||a&&"100%"!==a&&"100vw"!==a),l=!("100%"!==r&&"100vh"!==r||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=s?"0":this._leftOffset,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,s?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=l?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(s_),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}}]),t}(),u_=function(){var t=function(){function t(e,n,i,r){g(this,t),this._viewportRuler=e,this._document=n,this._platform=i,this._overlayContainer=r}return v(t,[{key:"global",value:function(){return new l_}},{key:"connectedTo",value:function(t,e,n){return new o_(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(t){return new i_(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Ui(dy),Ui(ah),Ui($g),Ui(Jy))},t.\u0275prov=Dt({factory:function(){return new t(Ui(dy),Ui(ah),Ui($g),Ui(Jy))},token:t,providedIn:"root"}),t}(),c_=0,h_=function(){var t=function(){function t(e,n,i,r,a,o,s,l,u,c,h){g(this,t),this.scrollStrategies=e,this._overlayContainer=n,this._componentFactoryResolver=i,this._positionBuilder=r,this._keyboardDispatcher=a,this._injector=o,this._ngZone=s,this._document=l,this._directionality=u,this._location=c,this._outsideClickDispatcher=h}return v(t,[{key:"create",value:function(t){var e=this._createHostElement(),n=this._createPaneElement(e),i=this._createPortalOutlet(n),r=new Yy(t);return r.direction=r.direction||this._directionality.value,new t_(i,e,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(t){var e=this._document.createElement("div");return e.id="cdk-overlay-".concat(c_++),e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}},{key:"_createHostElement",value:function(){var t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}},{key:"_createPortalOutlet",value:function(t){return this._appRef||(this._appRef=this._injector.get(Yc)),new by(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Ui(Wy),Ui(Jy),Ui(kl),Ui(u_),Ui($y),Ui(Ho),Ui(Cc),Ui(ah),Ui(ry),Ui(bh),Ui(Xy))},t.\u0275prov=Dt({token:t,factory:t.\u0275fac}),t}(),d_=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],f_=new bi("cdk-connected-overlay-scroll-strategy"),p_=function(){var t=function t(e){g(this,t),this.elementRef=e};return t.\u0275fac=function(e){return new(e||t)(ss(xl))},t.\u0275dir=de({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t}(),m_=function(){var t=function(){function t(e,n,i,r,a){g(this,t),this._overlay=e,this._dir=a,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=A.EMPTY,this._attachSubscription=A.EMPTY,this._detachSubscription=A.EMPTY,this._positionSubscription=A.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new Ru,this.positionChange=new Ru,this.attach=new Ru,this.detach=new Ru,this.overlayKeydown=new Ru,this.overlayOutsideClick=new Ru,this._templatePortal=new gy(n,i),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}return v(t,[{key:"ngOnDestroy",value:function(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}},{key:"ngOnChanges",value:function(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var t=this;this.positions&&this.positions.length||(this.positions=d_);var e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(function(){return t.attach.emit()}),this._detachSubscription=e.detachments().subscribe(function(){return t.detach.emit()}),e.keydownEvents().subscribe(function(e){t.overlayKeydown.next(e),e.keyCode!==Oy||t.disableClose||Ny(e)||(e.preventDefault(),t._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(e){t.overlayOutsideClick.next(e)})}},{key:"_buildConfig",value:function(){var t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new Yy({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}},{key:"_updatePositionStrategy",value:function(t){var e=this,n=this.positions.map(function(t){return{originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||e.offsetX,offsetY:t.offsetY||e.offsetY,panelClass:t.panelClass||void 0}});return t.setOrigin(this.origin.elementRef).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t}},{key:"_attachOverlay",value:function(){var t=this;this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(function(e){t.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){return n.lift(new Ey(t,e))}}(function(){return t.positionChange.observers.length>0})).subscribe(function(e){t.positionChange.emit(e),0===t.positionChange.observers.length&&t._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}},{key:"offsetX",get:function(){return this._offsetX},set:function(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(t){this._hasBackdrop=lg(t)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(t){this._lockPosition=lg(t)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(t){this._flexibleDimensions=lg(t)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(t){this._growAfterOpen=lg(t)}},{key:"push",get:function(){return this._push},set:function(t){this._push=lg(t)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(ss(h_),ss(eu),ss(su),ss(f_),ss(ry,8))},t.\u0275dir=de({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Ie]}),t}(),v_={provide:f_,deps:[h_],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},g_=function(){var t=function t(){g(this,t)};return t.\u0275mod=ce({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[h_,v_],imports:[[ay,xy,py],py]}),t}();function y_(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Tg;return function(n){return n.lift(new __(t,e))}}var __=function(){function t(e,n){g(this,t),this.dueTime=e,this.scheduler=n}return v(t,[{key:"call",value:function(t,e){return e.subscribe(new b_(t,this.dueTime,this.scheduler))}}]),t}(),b_=function(t){y(n,t);var e=k(n);function n(t,i,r){var a;return g(this,n),(a=e.call(this,t)).dueTime=i,a.scheduler=r,a.debouncedSubscription=null,a.lastValue=null,a.hasValue=!1,a}return v(n,[{key:"_next",value:function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(k_,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}},{key:"clearDebounce",value:function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}]),n}(M);function k_(t){t.debouncedNext()}var w_=function(){var t=function(){function t(){g(this,t)}return v(t,[{key:"create",value:function(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Dt({factory:function(){return new t},token:t,providedIn:"root"}),t}(),C_=function(){var t=function(){function t(e){g(this,t),this._mutationObserverFactory=e,this._observedElements=new Map}return v(t,[{key:"ngOnDestroy",value:function(){var t=this;this._observedElements.forEach(function(e,n){return t._cleanupObserver(n)})}},{key:"observe",value:function(t){var e=this,n=fg(t);return new j(function(t){var i=e._observeElement(n).subscribe(t);return function(){i.unsubscribe(),e._unobserveElement(n)}})}},{key:"_observeElement",value:function(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{var e=new q,n=this._mutationObserverFactory.create(function(t){return e.next(t)});n&&n.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:n,stream:e,count:1})}return this._observedElements.get(t).stream}},{key:"_unobserveElement",value:function(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}},{key:"_cleanupObserver",value:function(t){if(this._observedElements.has(t)){var e=this._observedElements.get(t),n=e.observer,i=e.stream;n&&n.disconnect(),i.complete(),this._observedElements.delete(t)}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Ui(w_))},t.\u0275prov=Dt({factory:function(){return new t(Ui(w_))},token:t,providedIn:"root"}),t}(),S_=function(){var t=function(){function t(e,n,i){g(this,t),this._contentObserver=e,this._elementRef=n,this._ngZone=i,this.event=new Ru,this._disabled=!1,this._currentSubscription=null}return v(t,[{key:"ngAfterContentInit",value:function(){this._currentSubscription||this.disabled||this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var t=this;this._unsubscribe();var e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(function(){t._currentSubscription=(t.debounce?e.pipe(y_(t.debounce)):e).subscribe(t.event)})}},{key:"_unsubscribe",value:function(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=lg(t),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(t){this._debounce=ug(t),this._subscribe()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(ss(C_),ss(xl),ss(Cc))},t.\u0275dir=de({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t}(),x_=function(){var t=function t(){g(this,t)};return t.\u0275mod=ce({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[w_]}),t}();function E_(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}var A_="cdk-describedby-message-container",D_="cdk-describedby-message",O_="cdk-describedby-host",I_=0,T_=new Map,R_=null,P_=function(){var t=function(){function t(e,n){g(this,t),this._platform=n,this._document=e}return v(t,[{key:"describe",value:function(t,e){this._canBeDescribed(t,e)&&("string"!=typeof e?(this._setMessageId(e),T_.set(e,{messageElement:e,referenceCount:0})):T_.has(e)||this._createMessageElement(e),this._isElementDescribedByMessage(t,e)||this._addMessageReference(t,e))}},{key:"removeDescription",value:function(t,e){if(e&&this._isElementNode(t)){if(this._isElementDescribedByMessage(t,e)&&this._removeMessageReference(t,e),"string"==typeof e){var n=T_.get(e);n&&0===n.referenceCount&&this._deleteMessageElement(e)}R_&&0===R_.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var t=this._document.querySelectorAll("[".concat(O_,"]")),e=0;e-1&&e!==n._activeItemIndex&&(n._activeItemIndex=e)}})}return v(t,[{key:"skipPredicate",value:function(t){return this._skipPredicateFn=t,this}},{key:"withWrap",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=t,this}},{key:"withVerticalOrientation",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=t,this}},{key:"withHorizontalOrientation",value:function(t){return this._horizontal=t,this}},{key:"withAllowedModifierKeys",value:function(t){return this._allowedModifierKeys=t,this}},{key:"withTypeAhead",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(tp(function(e){return t._pressedLetters.push(e)}),y_(e),Td(function(){return t._pressedLetters.length>0}),G(function(){return t._pressedLetters.join("")})).subscribe(function(e){for(var n=t._getItemsArray(),i=1;i0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=t,this}},{key:"setActiveItem",value:function(t){var e=this._activeItem;this.updateActiveItem(t),this._activeItem!==e&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(t){var e=this,n=t.keyCode,i=["altKey","ctrlKey","metaKey","shiftKey"].every(function(n){return!t[n]||e._allowedModifierKeys.indexOf(n)>-1});switch(n){case 9:return void this.tabOut.next();case Ly:if(this._vertical&&i){this.setNextItemActive();break}return;case My:if(this._vertical&&i){this.setPreviousItemActive();break}return;case Fy:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case Py:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case Ry:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case Ty:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||Ny(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()}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value: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}},{key:"_setActiveItemByDelta",value:function(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}},{key:"_setActiveInWrapMode",value: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)}}},{key:"_setActiveInDefaultMode",value:function(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}},{key:"_setActiveItemByIndex",value:function(t,e){var n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}},{key:"_getItemsArray",value:function(){return this._items instanceof Mu?this._items.toArray():this._items}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}}]),t}(),F_=function(t){y(n,t);var e=k(n);function n(){return g(this,n),e.apply(this,arguments)}return v(n,[{key:"setActiveItem",value:function(t){this.activeItem&&this.activeItem.setInactiveStyles(),r(i(n.prototype),"setActiveItem",this).call(this,t),this.activeItem&&this.activeItem.setActiveStyles()}}]),n}(M_),L_=function(t){y(n,t);var e=k(n);function n(){var t;return g(this,n),(t=e.apply(this,arguments))._origin="program",t}return v(n,[{key:"setFocusOrigin",value:function(t){return this._origin=t,this}},{key:"setActiveItem",value:function(t){r(i(n.prototype),"setActiveItem",this).call(this,t),this.activeItem&&this.activeItem.focus(this._origin)}}]),n}(M_),N_=function(){var t=function(){function t(e){g(this,t),this._platform=e}return v(t,[{key:"isDisabled",value:function(t){return t.hasAttribute("disabled")}},{key:"isVisible",value:function(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}},{key:"isTabbable",value:function(t){if(!this._platform.isBrowser)return!1;var e,n=function(t){try{return t.frameElement}catch(RB){return null}}((e=t).ownerDocument&&e.ownerDocument.defaultView||window);if(n){if(-1===j_(n))return!1;if(!this.isVisible(n))return!1}var i=t.nodeName.toLowerCase(),r=j_(t);return t.hasAttribute("contenteditable")?-1!==r:"iframe"!==i&&"object"!==i&&!(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))&&("audio"===i?!!t.hasAttribute("controls")&&-1!==r:"video"===i?-1!==r&&(null!==r||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}},{key:"isFocusable",value:function(t,e){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")||V_(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Ui($g))},t.\u0275prov=Dt({factory:function(){return new t(Ui($g))},token:t,providedIn:"root"}),t}();function V_(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 j_(t){if(!V_(t))return null;var e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}var B_=function(){function t(e,n,i,r){var a=this,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];g(this,t),this._element=e,this._checker=n,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=function(){return a.focusLastTabbableElement()},this.endAnchorListener=function(){return a.focusFirstTabbableElement()},this._enabled=!0,o||this.attachAnchors()}return v(t,[{key:"destroy",value: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,this._hasAttached=!1}},{key:"attachAnchors",value: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)}},{key:"focusInitialElementWhenReady",value:function(){var t=this;return new Promise(function(e){t._executeOnStable(function(){return e(t.focusInitialElement())})})}},{key:"focusFirstTabbableElementWhenReady",value:function(){var t=this;return new Promise(function(e){t._executeOnStable(function(){return e(t.focusFirstTabbableElement())})})}},{key:"focusLastTabbableElementWhenReady",value:function(){var t=this;return new Promise(function(e){t._executeOnStable(function(){return e(t.focusLastTabbableElement())})})}},{key:"_getRegionBoundary",value:function(t){for(var e=this._element.querySelectorAll("[cdk-focus-region-".concat(t,"], ")+"[cdkFocusRegion".concat(t,"], ")+"[cdk-focus-".concat(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}},{key:"_createAnchor",value: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}},{key:"_toggleAnchorTabIndex",value:function(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}},{key:"_executeOnStable",value:function(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(Rf(1)).subscribe(t)}},{key:"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))}}]),t}(),z_=function(){var t=function(){function t(e,n,i){g(this,t),this._checker=e,this._ngZone=n,this._document=i}return v(t,[{key:"create",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new B_(t,this._checker,this._ngZone,this._document,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Ui(N_),Ui(Cc),Ui(ah))},t.\u0275prov=Dt({factory:function(){return new t(Ui(N_),Ui(Cc),Ui(ah))},token:t,providedIn:"root"}),t}(),H_=function(){var t=function(){function t(e,n,i){g(this,t),this._elementRef=e,this._focusTrapFactory=n,this._previouslyFocusedElement=null,this._document=i,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}return v(t,[{key:"ngOnDestroy",value:function(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}},{key:"ngAfterContentInit",value:function(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}},{key:"ngDoCheck",value:function(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}},{key:"ngOnChanges",value:function(t){var e=t.autoCapture;e&&!e.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}},{key:"_captureFocus",value:function(){this._previouslyFocusedElement=this._document.activeElement,this.focusTrap.focusInitialElementWhenReady()}},{key:"enabled",get:function(){return this.focusTrap.enabled},set:function(t){this.focusTrap.enabled=lg(t)}},{key:"autoCapture",get:function(){return this._autoCapture},set:function(t){this._autoCapture=lg(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(ss(xl),ss(z_),ss(ah))},t.\u0275dir=de({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[Ie]}),t}();"undefined"!=typeof Element&∈var U_=new bi("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),q_=new bi("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),W_=function(){var t=function(){function t(e,n,i,r){g(this,t),this._ngZone=n,this._defaultOptions=r,this._document=i,this._liveElement=e||this._createLiveElement()}return v(t,[{key:"announce",value:function(t){for(var e,n,i=this,r=this._defaultOptions,a=arguments.length,o=new Array(a>1?a-1:0),s=1;s1&&void 0!==arguments[1]&&arguments[1],n=fg(t);if(!this._platform.isBrowser||1!==n.nodeType)return Od(null);var i=ny(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return e&&(r.checkChildren=!0),r.subject;var a={checkChildren:e,subject:new q,rootNode:i};return this._elementInfo.set(n,a),this._registerGlobalListeners(a),a.subject}},{key:"stopMonitoring",value:function(t){var e=fg(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))}},{key:"focusVia",value:function(t,e,n){var i=this,r=fg(t);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(function(t){var n=l(t,2);return i._originChanged(n[0],e,n[1])}):(this._setOriginForCurrentEventQueue(e),"function"==typeof r.focus&&r.focus(n))}},{key:"ngOnDestroy",value:function(){var t=this;this._elementInfo.forEach(function(e,n){return t.stopMonitoring(n)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(t,e,n){n?t.classList.add(e):t.classList.remove(e)}},{key:"_getFocusOrigin",value:function(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}},{key:"_setClasses",value:function(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}},{key:"_setOriginForCurrentEventQueue",value:function(t){var e=this;this._ngZone.runOutsideAngular(function(){e._origin=t,0===e._detectionMode&&(e._originTimeoutId=setTimeout(function(){return e._origin=null},1))})}},{key:"_wasCausedByTouch",value:function(t){var e=X_(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}},{key:"_onFocus",value:function(t,e){var n=this._elementInfo.get(e);n&&(n.checkChildren||e===X_(t))&&this._originChanged(e,this._getFocusOrigin(t),n)}},{key:"_onBlur",value:function(t,e){var n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}},{key:"_emitOrigin",value:function(t,e){this._ngZone.run(function(){return t.next(e)})}},{key:"_registerGlobalListeners",value:function(t){var e=this;if(this._platform.isBrowser){var n=t.rootNode,i=this._rootNodeFocusListenerCount.get(n)||0;i||this._ngZone.runOutsideAngular(function(){n.addEventListener("focus",e._rootNodeFocusAndBlurListener,Z_),n.addEventListener("blur",e._rootNodeFocusAndBlurListener,Z_)}),this._rootNodeFocusListenerCount.set(n,i+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(function(){var t=e._getDocument(),n=e._getWindow();t.addEventListener("keydown",e._documentKeydownListener,Z_),t.addEventListener("mousedown",e._documentMousedownListener,Z_),t.addEventListener("touchstart",e._documentTouchstartListener,Z_),n.addEventListener("focus",e._windowFocusListener)})}}},{key:"_removeGlobalListeners",value:function(t){var e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){var n=this._rootNodeFocusListenerCount.get(e);n>1?this._rootNodeFocusListenerCount.set(e,n-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Z_),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Z_),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){var i=this._getDocument(),r=this._getWindow();i.removeEventListener("keydown",this._documentKeydownListener,Z_),i.removeEventListener("mousedown",this._documentMousedownListener,Z_),i.removeEventListener("touchstart",this._documentTouchstartListener,Z_),r.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}},{key:"_originChanged",value:function(t,e,n){this._setClasses(t,e),this._emitOrigin(n.subject,e),this._lastFocusOrigin=e}},{key:"_getClosestElementsInfo",value:function(t){var e=[];return this._elementInfo.forEach(function(n,i){(i===t||n.checkChildren&&i.contains(t))&&e.push([i,n])}),e}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Ui(Cc),Ui($g),Ui(ah,8),Ui(K_,8))},t.\u0275prov=Dt({factory:function(){return new t(Ui(Cc),Ui($g),Ui(ah,8),Ui(K_,8))},token:t,providedIn:"root"}),t}();function X_(t){return t.composedPath?t.composedPath()[0]:t.target}var Q_=function(){var t=function(){function t(e,n){g(this,t),this._elementRef=e,this._focusMonitor=n,this.cdkFocusChange=new Ru}return v(t,[{key:"ngAfterViewInit",value:function(){var t=this,e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(function(e){return t.cdkFocusChange.emit(e)})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(ss(xl),ss($_))},t.\u0275dir=de({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t}(),J_="cdk-high-contrast-black-on-white",tb="cdk-high-contrast-white-on-black",eb="cdk-high-contrast-active",nb=function(){var t=function(){function t(e,n){g(this,t),this._platform=e,this._document=n}return v(t,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);var e=this._document.defaultView||window,n=e&&e.getComputedStyle?e.getComputedStyle(t):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(this._platform.isBrowser&&this._document.body){var t=this._document.body.classList;t.remove(eb),t.remove(J_),t.remove(tb);var e=this.getHighContrastMode();1===e?(t.add(eb),t.add(J_)):2===e&&(t.add(eb),t.add(tb))}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Ui($g),Ui(ah))},t.\u0275prov=Dt({factory:function(){return new t(Ui($g),Ui(ah))},token:t,providedIn:"root"}),t}(),ib=function(){var t=function t(e){g(this,t),e._applyBodyHighContrastModeCssClasses()};return t.\u0275mod=ce({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)(Ui(nb))},imports:[[Xg,x_]]}),t}(),rb=new Il("11.0.4"),ab=function t(){g(this,t)},ob=function t(){g(this,t)},sb="*";function lb(t,e){return{type:7,name:t,definitions:e,options:{}}}function ub(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:e,timings:t}}function cb(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:t,options:e}}function hb(t){return{type:6,styles:t,offset:null}}function db(t,e,n){return{type:0,name:t,styles:e,options:n}}function fb(t){return{type:5,steps:t}}function pb(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:t,animation:e,options:n}}function mb(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:t}}function vb(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:t,animation:e,options:n}}function gb(t){Promise.resolve(null).then(t)}var yb=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;g(this,t),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+n}return v(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var t=this;gb(function(){return t._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){}},{key:"setPosition",value:function(t){this._position=this.totalTime?t*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}}]),t}(),_b=function(){function t(e){var n=this;g(this,t),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;var i=0,r=0,a=0,o=this.players.length;0==o?gb(function(){return n._onFinish()}):this.players.forEach(function(t){t.onDone(function(){++i==o&&n._onFinish()}),t.onDestroy(function(){++r==o&&n._onDestroy()}),t.onStart(function(){++a==o&&n._onStart()})}),this.totalTime=this.players.reduce(function(t,e){return Math.max(t,e.totalTime)},0)}return v(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(t){return t.init()})}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[])}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(t){return t.play()})}},{key:"pause",value:function(){this.players.forEach(function(t){return t.pause()})}},{key:"restart",value:function(){this.players.forEach(function(t){return t.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(t){return t.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(t){return t.destroy()}),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(t){var e=t*this.totalTime;this.players.forEach(function(t){var n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}},{key:"getPosition",value:function(){var t=this.players.reduce(function(t,e){return null===t||e.totalTime>t.totalTime?e:t},null);return null!=t?t.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(t){t.beforeDestroy&&t.beforeDestroy()})}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}}]),t}(),bb="!";function kb(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function wb(t){switch(t.length){case 0:return new yb;case 1:return t[0];default:return new _b(t)}}function Cb(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=[],s=[],l=-1,u=null;if(i.forEach(function(t){var n=t.offset,i=n==l,c=i&&u||{};Object.keys(t).forEach(function(n){var i=n,s=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,o),s){case bb:s=r[n];break;case sb:s=a[n];break;default:s=e.normalizeStyleValue(n,i,s,o)}c[i]=s}),i||s.push(c),u=c,l=n}),o.length){var c="\n - ";throw new Error("Unable to animate due to the following errors:".concat(c).concat(o.join(c)))}return s}function Sb(t,e,n,i){switch(e){case"start":t.onStart(function(){return i(n&&xb(n,"start",t))});break;case"done":t.onDone(function(){return i(n&&xb(n,"done",t))});break;case"destroy":t.onDestroy(function(){return i(n&&xb(n,"destroy",t))})}}function xb(t,e,n){var i=n.totalTime,r=Eb(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),a=t._data;return null!=a&&(r._data=a),r}function Eb(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=arguments.length>6?arguments[6]:void 0;return{element:t,triggerName:e,fromState:n,toState:i,phaseName:r,totalTime:a,disabled:!!o}}function Ab(t,e,n){var i;return t instanceof Map?(i=t.get(e))||t.set(e,i=n):(i=t[e])||(i=t[e]=n),i}function Db(t){var e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}var Ob=function(t,e){return!1},Ib=function(t,e){return!1},Tb=function(t,e,n){return[]},Rb=kb();(Rb||"undefined"!=typeof Element)&&(Ob=function(t,e){return t.contains(e)},Ib=function(){if(Rb||Element.prototype.matches)return function(t,e){return t.matches(e)};var t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?function(t,n){return e.apply(t,[n])}:Ib}(),Tb=function(t,e,n){var i=[];if(n)for(var r=t.querySelectorAll(e),a=0;a1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).forEach(function(n){e[n]=t[n]}),e}function Qb(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e)for(var i in t)n[i]=t[i];else Xb(t,n);return n}function Jb(t,e,n){return n?e+":"+n+";":""}function tk(t){for(var e="",n=0;n *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e) *"}}(t,n);if("function"==typeof 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 "'.concat(t,'" is not supported')),e;var a=r[1],o=r[2],s=r[3];e.push(gk(a,s)),"<"!=o[0]||a==pk&&s==pk||e.push(gk(s,a))}(t,r,i)}):r.push(n),r),animation:a,queryCount:e.queryCount,depCount:e.depCount,options:Sk(t.options)}}},{key:"visitSequence",value:function(t,e){var n=this;return{type:2,steps:t.steps.map(function(t){return dk(n,t,e)}),options:Sk(t.options)}}},{key:"visitGroup",value:function(t,e){var n=this,i=e.currentTime,r=0,a=t.steps.map(function(t){e.currentTime=i;var a=dk(n,t,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:a,options:Sk(t.options)}}},{key:"visitAnimate",value:function(t,e){var n,i=function(t,e){var n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return xk($b(t,e).duration,0,"");var i=t;if(i.split(/\s+/).some(function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)})){var r=xk(0,0,"");return r.dynamic=!0,r.strValue=i,r}return xk((n=n||$b(i,e)).duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;var r=t.styles?t.styles:hb({});if(5==r.type)n=this.visitKeyframes(r,e);else{var a=t.styles,o=!1;if(!a){o=!0;var s={};i.easing&&(s.easing=i.easing),a=hb(s)}e.currentTime+=i.duration+i.delay;var l=this.visitStyle(a,e);l.isEmptyStep=o,n=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}},{key:"visitStyle",value:function(t,e){var n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}},{key:"_makeStyleAst",value:function(t,e){var n=[];Array.isArray(t.styles)?t.styles.forEach(function(t){"string"==typeof t?t==sb?n.push(t):e.errors.push("The provided style string value ".concat(t," is not allowed.")):n.push(t)}):n.push(t.styles);var i=!1,r=null;return n.forEach(function(t){if(Ck(t)){var e=t,n=e.easing;if(n&&(r=n,delete e.easing),!i)for(var a in e)if(e[a].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:t.offset,containsDynamicStyles:i,options:null}}},{key:"_validateStyleAst",value:function(t,e){var n=this,i=e.currentAnimateTimings,r=e.currentTime,a=e.currentTime;i&&a>0&&(a-=i.duration+i.delay),t.styles.forEach(function(t){"string"!=typeof t&&Object.keys(t).forEach(function(i){if(n._driver.validateStyleProperty(i)){var o,s,l,u=e.collectedStyles[e.currentQuerySelector],c=u[i],h=!0;c&&(a!=r&&a>=c.startTime&&r<=c.endTime&&(e.errors.push('The CSS property "'.concat(i,'" that exists between the times of "').concat(c.startTime,'ms" and "').concat(c.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(a,'ms" and "').concat(r,'ms"')),h=!1),a=c.startTime),h&&(u[i]={startTime:a,endTime:r}),e.options&&(o=e.errors,s=e.options.params||{},(l=ak(t[i])).length&&l.forEach(function(t){s.hasOwnProperty(t)||o.push("Unable to resolve the local animation param ".concat(t," in the given list of values"))}))}else e.errors.push('The provided animation property "'.concat(i,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value: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,a=[],o=!1,s=!1,l=0,u=t.steps.map(function(t){var i=n._makeStyleAst(t,e),u=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(Ck(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}});else if(Ck(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}return e}(i.styles),c=0;return null!=u&&(r++,c=i.offset=u),s=s||c<0||c>1,o=o||c0&&r0?r==d?1:h*r:a[r],s=o*m;e.currentTime=f+p.delay+s,p.duration=s,n._validateStyleAst(t,e),t.offset=o,i.styles.push(t)}),i}},{key:"visitReference",value:function(t,e){return{type:8,animation:dk(this,ik(t.animation),e),options:Sk(t.options)}}},{key:"visitAnimateChild",value:function(t,e){return e.depCount++,{type:9,options:Sk(t.options)}}},{key:"visitAnimateRef",value:function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Sk(t.options)}}},{key:"visitQuery",value:function(t,e){var n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;var r=l(function(t){var e=!!t.split(/\s*,\s*/).find(function(t){return t==yk});return e&&(t=t.replace(_k,"")),[t=t.replace(/@\*/g,Wb).replace(/@\w+/g,function(t){return".ng-trigger-"+t.substr(1)}).replace(/:animating/g,Gb),e]}(t.selector),2),a=r[0],o=r[1];e.currentQuerySelector=n.length?n+" "+a:a,Ab(e.collectedStyles,e.currentQuerySelector,{});var s=dk(this,ik(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:a,limit:i.limit||0,optional:!!i.optional,includeSelf:o,animation:s,originalSelector:t.selector,options:Sk(t.options)}}},{key:"visitStagger",value: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"}:$b(t.timings,e.errors,!0);return{type:12,animation:dk(this,ik(t.animation),e),timings:n,options:null}}}]),t}(),wk=function t(e){g(this,t),this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function Ck(t){return!Array.isArray(t)&&"object"==typeof t}function Sk(t){var e;return t?(t=Xb(t)).params&&(t.params=(e=t.params)?Xb(e):null):t={},t}function xk(t,e,n){return{duration:t,delay:e,easing:n}}function Ek(t,e,n,i,r,a){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:r,delay:a,totalTime:r+a,easing:o,subTimeline:s}}var Ak=function(){function t(){g(this,t),this._map=new Map}return v(t,[{key:"consume",value:function(t){var e=this._map.get(t);return e?this._map.delete(t):e=[],e}},{key:"append",value:function(t,e){var n,i=this._map.get(t);i||this._map.set(t,i=[]),(n=i).push.apply(n,h(e))}},{key:"has",value:function(t){return this._map.has(t)}},{key:"clear",value:function(){this._map.clear()}}]),t}(),Dk=new RegExp(":enter","g"),Ok=new RegExp(":leave","g");function Ik(t,e,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0,u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new Tk).buildKeyframes(t,e,n,i,r,a,o,s,l,u)}var Tk=function(){function t(){g(this,t)}return v(t,[{key:"buildKeyframes",value:function(t,e,n,i,r,a,o,s,l){var u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];l=l||new Ak;var c=new Pk(t,e,l,i,r,u,[]);c.options=s,c.currentTimeline.setStyles([a],null,c.errors,s),dk(this,n,c);var h=c.timelines.filter(function(t){return t.containsAnimation()});if(h.length&&Object.keys(o).length){var d=h[h.length-1];d.allowOnlyTimelineStyles()||d.setStyles([o],null,c.errors,s)}return h.length?h.map(function(t){return t.buildKeyframes()}):[Ek(e,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(t,e){}},{key:"visitState",value:function(t,e){}},{key:"visitTransition",value:function(t,e){}},{key:"visitAnimateChild",value:function(t,e){var n=e.subInstructions.consume(e.element);if(n){var i=e.createSubContext(t.options),r=e.currentTimeline.currentTime,a=this._visitSubInstructions(n,i,i.options);r!=a&&e.transformIntoNewTimeline(a)}e.previousNode=t}},{key:"visitAnimateRef",value:function(t,e){var n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}},{key:"_visitSubInstructions",value:function(t,e,n){var i=e.currentTimeline.currentTime,r=null!=n.duration?Kb(n.duration):null,a=null!=n.delay?Kb(n.delay):null;return 0!==r&&t.forEach(function(t){var n=e.appendInstructionToTimeline(t,r,a);i=Math.max(i,n.duration+n.delay)}),i}},{key:"visitReference",value:function(t,e){e.updateOptions(t.options,!0),dk(this,t.animation,e),e.previousNode=t}},{key:"visitSequence",value:function(t,e){var n=this,i=e.subContextCount,r=e,a=t.options;if(a&&(a.params||a.delay)&&((r=e.createSubContext(a)).transformIntoNewTimeline(),null!=a.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Rk);var o=Kb(a.delay);r.delayNextStep(o)}t.steps.length&&(t.steps.forEach(function(t){return dk(n,t,r)}),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}},{key:"visitGroup",value:function(t,e){var n=this,i=[],r=e.currentTimeline.currentTime,a=t.options&&t.options.delay?Kb(t.options.delay):0;t.steps.forEach(function(o){var s=e.createSubContext(t.options);a&&s.delayNextStep(a),dk(n,o,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}},{key:"_visitTiming",value:function(t,e){if(t.dynamic){var n=t.strValue;return $b(e.params?ok(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}},{key:"visitAnimate",value: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}},{key:"visitStyle",value: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}},{key:"visitKeyframes",value:function(t,e){var n=e.currentAnimateTimings,i=e.currentTimeline.duration,r=n.duration,a=e.createSubContext().currentTimeline;a.easing=n.easing,t.styles.forEach(function(t){a.forwardTime((t.offset||0)*r),a.setStyles(t.styles,t.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(i+r),e.previousNode=t}},{key:"visitQuery",value:function(t,e){var n=this,i=e.currentTimeline.currentTime,r=t.options||{},a=r.delay?Kb(r.delay):0;a&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Rk);var o=i,s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=s.length;var l=null;s.forEach(function(i,r){e.currentQueryIndex=r;var s=e.createSubContext(t.options,i);a&&s.delayNextStep(a),i===e.element&&(l=s.currentTimeline),dk(n,t.animation,s),s.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,s.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}},{key:"visitStagger",value:function(t,e){var n=e.parentContext,i=e.currentTimeline,r=t.timings,a=Math.abs(r.duration),o=a*(e.currentQueryTotal-1),s=a*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":s=o-s;break;case"full":s=n.currentStaggerTime}var l=e.currentTimeline;s&&l.delayNextStep(s);var u=l.currentTime;dk(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-u+(i.startTime-n.currentTimeline.startTime)}}]),t}(),Rk={},Pk=function(){function t(e,n,i,r,a,o,s,l){g(this,t),this._driver=e,this.element=n,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=a,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Rk,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Mk(this._driver,n,0),s.push(this.currentTimeline)}return v(t,[{key:"updateOptions",value:function(t,e){var n=this;if(t){var i=t,r=this.options;null!=i.duration&&(r.duration=Kb(i.duration)),null!=i.delay&&(r.delay=Kb(i.delay));var a=i.params;if(a){var o=r.params;o||(o=this.options.params={}),Object.keys(a).forEach(function(t){e&&o.hasOwnProperty(t)||(o[t]=ok(a[t],o,n.errors))})}}}},{key:"_copyOptions",value: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}},{key:"createSubContext",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=n||this.element,a=new t(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return a.previousNode=this.previousNode,a.currentAnimateTimings=this.currentAnimateTimings,a.options=this._copyOptions(),a.updateOptions(e),a.currentQueryIndex=this.currentQueryIndex,a.currentQueryTotal=this.currentQueryTotal,a.parentContext=this,this.subContextCount++,a}},{key:"transformIntoNewTimeline",value:function(t){return this.previousNode=Rk,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value: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 Fk(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(r),i}},{key:"incrementTime",value:function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}},{key:"delayNextStep",value:function(t){t>0&&this.currentTimeline.delayNextStep(t)}},{key:"invokeQuery",value:function(t,e,n,i,r,a){var o=[];if(i&&o.push(this.element),t.length>0){t=(t=t.replace(Dk,"."+this._enterClassName)).replace(Ok,"."+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)),o.push.apply(o,h(s))}return r||0!=o.length||a.push('`query("'.concat(e,'")` returned zero elements. (Use `query("').concat(e,'", { optional: true })` if you wish to allow this.)')),o}},{key:"params",get:function(){return this.options.params}}]),t}(),Mk=function(){function t(e,n,i,r){g(this,t),this._driver=e,this.element=n,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return v(t,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"delayNextStep",value: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}},{key:"fork",value:function(e,n){return this.applyStylesToKeyframe(),new t(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value: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))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}},{key:"_updateStyle",value:function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(t){var e=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(function(t){e._backFill[t]=e._globalTimelineStyles[t]||sb,e._currentKeyframe[t]=sb}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(t,e,n,i){var r=this;e&&(this._previousKeyframe.easing=e);var a=i&&i.params||{},o=function(t,e){var n,i={};return t.forEach(function(t){"*"===t?(n=n||Object.keys(e)).forEach(function(t){i[t]=sb}):Qb(t,!1,i)}),i}(t,this._globalTimelineStyles);Object.keys(o).forEach(function(t){var e=ok(o[t],a,n);r._pendingStyles[t]=e,r._localTimelineStyles.hasOwnProperty(t)||(r._backFill[t]=r._globalTimelineStyles.hasOwnProperty(t)?r._globalTimelineStyles[t]:sb),r._updateStyle(t,e)})}},{key:"applyStylesToKeyframe",value: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])}))}},{key:"snapshotCurrentStyles",value:function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(e){var n=t._localTimelineStyles[e];t._pendingStyles[e]=n,t._updateStyle(e,n)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"mergeTimelineCollectedStyles",value: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)})}},{key:"buildKeyframes",value: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(a,o){var s=Qb(a,!0);Object.keys(s).forEach(function(t){var i=s[t];i==bb?e.add(t):i==sb&&n.add(t)}),i||(s.offset=o/t.duration),r.push(s)});var a=e.size?sk(e.values()):[],o=n.size?sk(n.values()):[];if(i){var s=r[0],l=Xb(s);s.offset=0,l.offset=1,r=[s,l]}return Ek(this.element,r,a,o,this.duration,this.startTime,this.easing,!1)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"properties",get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t}}]),t}(),Fk=function(t){y(n,t);var e=k(n);function n(t,i,r,a,o,s){var l,u=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return g(this,n),(l=e.call(this,t,i,s.delay)).element=i,l.keyframes=r,l.preStyleProps=a,l.postStyleProps=o,l._stretchStartingKeyframe=u,l.timings={duration:s.duration,delay:s.delay,easing:s.easing},l}return v(n,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var t=this.keyframes,e=this.timings,n=e.delay,i=e.duration,r=e.easing;if(this._stretchStartingKeyframe&&n){var a=[],o=i+n,s=n/o,l=Qb(t[0],!1);l.offset=0,a.push(l);var u=Qb(t[0],!1);u.offset=Lk(s),a.push(u);for(var c=t.length-1,h=1;h<=c;h++){var d=Qb(t[h],!1);d.offset=Lk((n+d.offset*i)/o),a.push(d)}i=o,n=0,r="",t=a}return Ek(this.element,t,this.preStyleProps,this.postStyleProps,i,n,r,!0)}}]),n}(Mk);function Lk(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,e-1);return Math.round(t*n)/n}var Nk=function t(){g(this,t)},Vk=function(t){y(n,t);var e=k(n);function n(){return g(this,n),e.apply(this,arguments)}return v(n,[{key:"normalizePropertyName",value:function(t,e){return uk(t)}},{key:"normalizeStyleValue",value:function(t,e,n,i){var r="",a=n.toString().trim();if(jk[e]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var o=n.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&0==o[1].length&&i.push("Please provide a CSS unit value for ".concat(t,":").concat(n))}return a+r}}]),n}(Nk),jk=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 Bk(t,e,n,i,r,a,o,s,l,u,c,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:n,fromStyles:a,toState:i,toStyles:o,timelines:s,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:h,errors:d}}var zk={},Hk=function(){function t(e,n,i){g(this,t),this._triggerName=e,this.ast=n,this._stateStyles=i}return v(t,[{key:"match",value: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)}},{key:"buildStyles",value:function(t,e,n){var i=this._stateStyles["*"],r=this._stateStyles[t],a=i?i.buildStyles(e,n):{};return r?r.buildStyles(e,n):a}},{key:"build",value:function(t,e,n,i,r,a,o,s,l,u){var c=[],h=this.ast.options&&this.ast.options.params||zk,d=this.buildStyles(n,o&&o.params||zk,c),f=s&&s.params||zk,p=this.buildStyles(i,f,c),m=new Set,v=new Map,g=new Map,y="void"===i,_={params:Object.assign(Object.assign({},h),f)},b=u?[]:Ik(t,e,this.ast.animation,r,a,d,p,_,l,c),k=0;if(b.forEach(function(t){k=Math.max(t.duration+t.delay,k)}),c.length)return Bk(e,this._triggerName,n,i,y,d,p,[],[],v,g,k,c);b.forEach(function(t){var n=t.element,i=Ab(v,n,{});t.preStyleProps.forEach(function(t){return i[t]=!0});var r=Ab(g,n,{});t.postStyleProps.forEach(function(t){return r[t]=!0}),n!==e&&m.add(n)});var w=sk(m.values());return Bk(e,this._triggerName,n,i,y,d,p,b,w,v,g,k)}}]),t}(),Uk=function(){function t(e,n){g(this,t),this.styles=e,this.defaultParams=n}return v(t,[{key:"buildStyles",value:function(t,e){var n={},i=Xb(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 a=r[t];a.length>1&&(a=ok(a,i,e)),n[t]=a})}}),n}}]),t}(),qk=function(){function t(e,n){var i=this;g(this,t),this.name=e,this.ast=n,this.transitionFactories=[],this.states={},n.states.forEach(function(t){i.states[t.name]=new Uk(t.style,t.options&&t.options.params||{})}),Wk(this.states,"true","1"),Wk(this.states,"false","0"),n.transitions.forEach(function(t){i.transitionFactories.push(new Hk(e,t,i.states))}),this.fallbackTransition=new Hk(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,e){return!0}],options:null,queryCount:0,depCount:0},this.states)}return v(t,[{key:"matchTransition",value:function(t,e,n,i){return this.transitionFactories.find(function(r){return r.match(t,e,n,i)})||null}},{key:"matchStyles",value:function(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}},{key:"containsQueries",get:function(){return this.ast.queryCount>0}}]),t}();function Wk(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}var Yk=new Ak,Gk=function(){function t(e,n,i){g(this,t),this.bodyNode=e,this._driver=n,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}return v(t,[{key:"register",value:function(t,e){var n=[],i=bk(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: ".concat(n.join("\n")));this._animations[t]=i}},{key:"_buildPlayer",value:function(t,e,n){var i=t.element,r=Cb(this._driver,this._normalizer,i,t.keyframes,e,n);return this._driver.animate(i,r,t.duration,t.delay,t.easing,[],!0)}},{key:"create",value:function(t,e){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=[],o=this._animations[t],s=new Map;if(o?(n=Ik(this._driver,e,o,Hb,Ub,{},{},r,Yk,a)).forEach(function(t){var e=Ab(s,t.element,{});t.postStyleProps.forEach(function(t){return e[t]=null})}):(a.push("The requested animation doesn't exist or has already been destroyed"),n=[]),a.length)throw new Error("Unable to create the animation due to the following errors: ".concat(a.join("\n")));s.forEach(function(t,e){Object.keys(t).forEach(function(n){t[n]=i._driver.computeStyle(e,n,sb)})});var l=n.map(function(t){var e=s.get(t.element);return i._buildPlayer(t,{},e)}),u=wb(l);return this._playersById[t]=u,u.onDestroy(function(){return i.destroy(t)}),this.players.push(u),u}},{key:"destroy",value: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)}},{key:"_getPlayer",value:function(t){var e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by ".concat(t));return e}},{key:"listen",value:function(t,e,n,i){var r=Eb(e,"","","");return Sb(this._getPlayer(t),n,r,i),function(){}}},{key:"command",value: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}(),Kk="ng-animate-queued",Zk="ng-animate-disabled",$k=".ng-animate-disabled",Xk="ng-star-inserted",Qk=[],Jk={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},tw={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ew=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";g(this,t),this.namespaceId=n;var i=e&&e.hasOwnProperty("value"),r=i?e.value:e;if(this.value=sw(r),i){var a=Xb(e);delete a.value,this.options=a}else this.options={};this.options.params||(this.options.params={})}return v(t,[{key:"absorbOptions",value: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])})}}},{key:"params",get:function(){return this.options.params}}]),t}(),nw="void",iw=new ew(nw),rw=function(){function t(e,n,i){g(this,t),this.id=e,this.hostElement=n,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,dw(n,this._hostClassName)}return v(t,[{key:"listen",value:function(t,e,n,i){var r,a=this;if(!this._triggers.hasOwnProperty(e))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(e,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(e,'" because the provided event is undefined!'));if("start"!=(r=n)&&"done"!=r)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(e,'" is not supported!'));var o=Ab(this._elementListeners,t,[]),s={name:e,phase:n,callback:i};o.push(s);var l=Ab(this._engine.statesByElement,t,{});return l.hasOwnProperty(e)||(dw(t,qb),dw(t,"ng-trigger-"+e),l[e]=iw),function(){a._engine.afterFlush(function(){var t=o.indexOf(s);t>=0&&o.splice(t,1),a._triggers[e]||delete l[e]})}}},{key:"register",value:function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}},{key:"_getTrigger",value:function(t){var e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'.concat(t,'" has not been registered!'));return e}},{key:"trigger",value:function(t,e,n){var i=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=this._getTrigger(e),o=new ow(this.id,e,t),s=this._engine.statesByElement.get(t);s||(dw(t,qb),dw(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,s={}));var l=s[e],u=new ew(n,this.id),c=n&&n.hasOwnProperty("value");!c&&l&&u.absorbOptions(l.options),s[e]=u,l||(l=iw);var h=u.value===nw;if(h||l.value!==u.value){var d=Ab(this._engine.playersByElement,t,[]);d.forEach(function(t){t.namespaceId==i.id&&t.triggerName==e&&t.queued&&t.destroy()});var f=a.matchTransition(l.value,u.value,t,u.params),p=!1;if(!f){if(!r)return;f=a.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:f,fromState:l,toState:u,player:o,isFallbackTransition:p}),p||(dw(t,Kk),o.onStart(function(){fw(t,Kk)})),o.onDone(function(){var e=i.players.indexOf(o);e>=0&&i.players.splice(e,1);var n=i._engine.playersByElement.get(t);if(n){var r=n.indexOf(o);r>=0&&n.splice(r,1)}}),this.players.push(o),d.push(o),o}if(!vw(l.params,u.params)){var m=[],v=a.matchStyles(l.value,l.params,m),g=a.matchStyles(u.value,u.params,m);m.length?this._engine.reportError(m):this._engine.afterFlush(function(){nk(t,v),ek(t,g)})}}},{key:"deregister",value:function(t){var e=this;delete this._triggers[t],this._engine.statesByElement.forEach(function(e,n){delete e[t]}),this._elementListeners.forEach(function(n,i){e._elementListeners.set(i,n.filter(function(e){return e.name!=t}))})}},{key:"clearElementCache",value:function(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);var e=this._engine.playersByElement.get(t);e&&(e.forEach(function(t){return t.destroy()}),this._engine.playersByElement.delete(t))}},{key:"_signalRemovalForInnerTriggers",value:function(t,e){var n=this,i=this._engine.driver.query(t,Wb,!0);i.forEach(function(t){if(!t.__ng_removed){var i=n._engine.fetchNamespacesByElement(t);i.size?i.forEach(function(n){return n.triggerLeaveAnimation(t,e,!1,!0)}):n.clearElementCache(t)}}),this._engine.afterFlushAnimationsDone(function(){return i.forEach(function(t){return n.clearElementCache(t)})})}},{key:"triggerLeaveAnimation",value:function(t,e,n,i){var r=this,a=this._engine.statesByElement.get(t);if(a){var o=[];if(Object.keys(a).forEach(function(e){if(r._triggers[e]){var n=r.trigger(t,e,nw,i);n&&o.push(n)}}),o.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&wb(o).onDone(function(){return r._engine.processLeaveNode(t)}),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(t){var e=this,n=this._elementListeners.get(t);if(n){var i=new Set;n.forEach(function(n){var r=n.name;if(!i.has(r)){i.add(r);var a=e._triggers[r].fallbackTransition,o=e._engine.statesByElement.get(t)[r]||iw,s=new ew(nw),l=new ow(e.id,r,t);e._engine.totalQueuedPlayers++,e._queue.push({element:t,triggerName:r,transition:a,fromState:o,toState:s,player:l,isFallbackTransition:!0})}})}}},{key:"removeNode",value:function(t,e){var n=this,i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),!this.triggerLeaveAnimation(t,e,!0)){var r=!1;if(i.totalAnimations){var a=i.players.length?i.playersByQueriedElement.get(t):[];if(a&&a.length)r=!0;else for(var o=t;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{var s=t.__ng_removed;s&&s!==Jk||(i.afterFlush(function(){return n.clearElementCache(t)}),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}}},{key:"insertNode",value:function(t,e){dw(t,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(t){var e=this,n=[];return this._queue.forEach(function(i){var r=i.player;if(!r.destroyed){var a=i.element,o=e._elementListeners.get(a);o&&o.forEach(function(e){if(e.name==i.triggerName){var n=Eb(a,i.triggerName,i.fromState.value,i.toState.value);n._data=t,Sb(i.player,e.phase,n,e.callback)}}),r.markedForDestroy?e._engine.afterFlush(function(){r.destroy()}):n.push(i)}}),this._queue=[],n.sort(function(t,n){var i=t.transition.ast.depCount,r=n.transition.ast.depCount;return 0==i||0==r?i-r:e._engine.driver.containsElement(t.element,n.element)?1:-1})}},{key:"destroy",value:function(t){this.players.forEach(function(t){return t.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,t)}},{key:"elementContainsData",value:function(t){var e=!1;return this._elementListeners.has(t)&&(e=!0),!!this._queue.find(function(e){return e.element===t})||e}}]),t}(),aw=function(){function t(e,n,i){g(this,t),this.bodyNode=e,this.driver=n,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=function(t,e){}}return v(t,[{key:"_onRemovalComplete",value:function(t,e){this.onRemovalComplete(t,e)}},{key:"createNamespace",value:function(t,e){var n=new rw(t,e,this);return e.parentNode?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}},{key:"_balanceNamespaceList",value:function(t,e){var n=this._namespaceList.length-1;if(n>=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}},{key:"register",value:function(t,e){var n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}},{key:"registerTrigger",value:function(t,e,n){var i=this._namespaceLookup[t];i&&i.register(e,n)&&this.totalAnimations++}},{key:"destroy",value: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)})}}},{key:"_fetchNamespace",value:function(t){return this._namespaceLookup[t]}},{key:"fetchNamespacesByElement",value: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(a,1)}if(t){var o=this._fetchNamespace(t);o&&o.insertNode(e,n)}i&&this.collectEnterElement(e)}}},{key:"collectEnterElement",value:function(t){this.collectedEnterElements.push(t)}},{key:"markElementAsDisabled",value:function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),dw(t,Zk)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),fw(t,Zk))}},{key:"removeNode",value:function(t,e,n,i){if(lw(e)){var r=t?this._fetchNamespace(t):null;if(r?r.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){var a=this.namespacesByHostElement.get(e);a&&a.id!==t&&a.removeNode(e,i)}}else this._onRemovalComplete(e,i)}},{key:"markElementAsRemoved",value:function(t,e,n,i){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(t,e,n,i,r){return lw(e)?this._fetchNamespace(t).listen(e,n,i,r):function(){}}},{key:"_buildInstruction",value: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)}},{key:"destroyInnerAnimations",value:function(t){var e=this,n=this.driver.query(t,Wb,!0);n.forEach(function(t){return e.destroyActiveAnimationsForElement(t)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(t,Gb,!0)).forEach(function(t){return e.finishActiveQueriedAnimationOnElement(t)})}},{key:"destroyActiveAnimationsForElement",value:function(t){var e=this.playersByElement.get(t);e&&e.forEach(function(t){t.queued?t.markedForDestroy=!0:t.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(t){var e=this.playersByQueriedElement.get(t);e&&e.forEach(function(t){return t.finish()})}},{key:"whenRenderingDone",value:function(){var t=this;return new Promise(function(e){if(t.players.length)return wb(t.players).onDone(function(){return e()});e()})}},{key:"processLeaveNode",value:function(t){var e=this,n=t.__ng_removed;if(n&&n.setForRemoval){if(t.__ng_removed=Jk,n.namespaceId){this.destroyInnerAnimations(t);var i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}this.driver.matchesElement(t,$k)&&this.markElementAsDisabled(t,!1),this.driver.query(t,$k,!0).forEach(function(t){e.markElementAsDisabled(t,!1)})}},{key:"flush",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(e,n){return t._balanceNamespaceList(e,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var i=0;i=0;A--)this._namespaceList[A].drainQueuedTransitions(e).forEach(function(t){var e=t.player,a=t.element;if(x.push(e),n.collectedEnterElements.length){var c=a.__ng_removed;if(c&&c.setForMove)return void e.destroy()}var h=!d||!n.driver.containsElement(d,a),f=C.get(a),p=m.get(a),v=n._buildInstruction(t,i,p,f,h);if(v.errors&&v.errors.length)E.push(v);else{if(h)return e.onStart(function(){return nk(a,v.fromStyles)}),e.onDestroy(function(){return ek(a,v.toStyles)}),void r.push(e);if(t.isFallbackTransition)return e.onStart(function(){return nk(a,v.fromStyles)}),e.onDestroy(function(){return ek(a,v.toStyles)}),void r.push(e);v.timelines.forEach(function(t){return t.stretchStartingKeyframe=!0}),i.append(a,v.timelines),o.push({instruction:v,player:e,element:a}),v.queriedElements.forEach(function(t){return Ab(s,t,[]).push(e)}),v.preStyleProps.forEach(function(t,e){var n=Object.keys(t);if(n.length){var i=l.get(e);i||l.set(e,i=new Set),n.forEach(function(t){return i.add(t)})}}),v.postStyleProps.forEach(function(t,e){var n=Object.keys(t),i=u.get(e);i||u.set(e,i=new Set),n.forEach(function(t){return i.add(t)})})}});if(E.length){var D=[];E.forEach(function(t){D.push("@".concat(t.triggerName," has failed due to:\n")),t.errors.forEach(function(t){return D.push("- ".concat(t,"\n"))})}),x.forEach(function(t){return t.destroy()}),this.reportError(D)}var O=new Map,I=new Map;o.forEach(function(t){var e=t.element;i.has(e)&&(I.set(e,e),n._beforeAnimationBuild(t.player.namespaceId,t.instruction,O))}),r.forEach(function(t){var e=t.element;n._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(function(t){Ab(O,e,[]).push(t),t.destroy()})});var T=g.filter(function(t){return gw(t,l,u)}),R=new Map;cw(R,this.driver,_,u,sb).forEach(function(t){gw(t,l,u)&&T.push(t)});var P=new Map;p.forEach(function(t,e){cw(P,n.driver,new Set(t),l,bb)}),T.forEach(function(t){var e=R.get(t),n=P.get(t);R.set(t,Object.assign(Object.assign({},e),n))});var M=[],F=[],L={};o.forEach(function(t){var e=t.element,o=t.player,s=t.instruction;if(i.has(e)){if(c.has(e))return o.onDestroy(function(){return ek(e,s.toStyles)}),o.disabled=!0,o.overrideTotalTime(s.totalTime),void r.push(o);var l=L;if(I.size>1){for(var u=e,h=[];u=u.parentNode;){var d=I.get(u);if(d){l=d;break}h.push(u)}h.forEach(function(t){return I.set(t,l)})}var f=n._buildAnimation(o.namespaceId,s,O,a,P,R);if(o.setRealPlayer(f),l===L)M.push(o);else{var p=n.playersByElement.get(l);p&&p.length&&(o.parentPlayer=wb(p)),r.push(o)}}else nk(e,s.fromStyles),o.onDestroy(function(){return ek(e,s.toStyles)}),F.push(o),c.has(e)&&r.push(o)}),F.forEach(function(t){var e=a.get(t.element);if(e&&e.length){var n=wb(e);t.setRealPlayer(n)}}),r.forEach(function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(var N=0;N0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new yb(t.duration,t.delay)}},{key:"queuedPlayers",get:function(){var t=[];return this._namespaceList.forEach(function(e){e.players.forEach(function(e){e.queued&&t.push(e)})}),t}}]),t}(),ow=function(){function t(e,n,i){g(this,t),this.namespaceId=e,this.triggerName=n,this.element=i,this._player=new yb,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return v(t,[{key:"setRealPlayer",value:function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(function(n){e._queuedCallbacks[n].forEach(function(e){return Sb(t,n,void 0,e)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(t){this.totalTime=t}},{key:"syncPlayerEvents",value: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()})}},{key:"_queueEvent",value:function(t,e){Ab(this._queuedCallbacks,t,[]).push(e)}},{key:"onDone",value:function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}},{key:"onStart",value:function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}},{key:"onDestroy",value:function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(t){this.queued||this._player.setPosition(t)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(t){var e=this._player;e.triggerCallback&&e.triggerCallback(t)}}]),t}();function sw(t){return null!=t?t:null}function lw(t){return t&&1===t.nodeType}function uw(t,e){var n=t.style.display;return t.style.display=null!=e?e:"none",n}function cw(t,e,n,i,r){var a=[];n.forEach(function(t){return a.push(uw(t))});var o=[];i.forEach(function(n,i){var a={};n.forEach(function(t){var n=a[t]=e.computeStyle(i,t,r);n&&0!=n.length||(i.__ng_removed=tw,o.push(i))}),t.set(i,a)});var s=0;return n.forEach(function(t){return uw(t,a[s++])}),o}function hw(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;function a(t){if(!t)return 1;var e=r.get(t);if(e)return e;var o=t.parentNode;return e=n.has(o)?o:i.has(o)?1:a(o),r.set(t,e),e}return e.forEach(function(t){var e=a(t);1!==e&&n.get(e).push(t)}),n}function dw(t,e){if(t.classList)t.classList.add(e);else{var n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function fw(t,e){if(t.classList)t.classList.remove(e);else{var n=t.$$classes;n&&delete n[e]}}function pw(t,e,n){wb(n).onDone(function(){return t.processLeaveNode(e)})}function mw(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(t)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}}]),t}();function _w(t,e){var n=null,i=null;return Array.isArray(e)&&e.length?(n=kw(e[0]),e.length>1&&(i=kw(e[e.length-1]))):e&&(n=kw(e)),n||i?new bw(t,n,i):null}var bw=function(){var t=function(){function t(e,n,i){g(this,t),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 v(t,[{key:"start",value:function(){this._state<1&&(this._startStyles&&ek(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(ek(this._element,this._initialStyles),this._endStyles&&(ek(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(nk(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(nk(this._element,this._endStyles),this._endStyles=null),ek(this._element,this._initialStyles),this._state=3)}}]),t}();return t.initialStylesByElement=new WeakMap,t}();function kw(t){for(var e=null,n=Object.keys(t),i=0;i=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),Ow(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var t,e,n,i;this._destroyed||(this._destroyed=!0,this.finish(),e=this._name,(i=Dw(n=Tw(t=this._element,"").split(","),e))>=0&&(n.splice(i,1),Iw(t,"",n.join(","))))}}]),t}();function Ew(t,e,n){Iw(t,"PlayState",n,Aw(t,e))}function Aw(t,e){var n=Tw(t,"");return n.indexOf(",")>0?Dw(n.split(","),e):Dw([n],e)}function Dw(t,e){for(var n=0;n=0)return n;return-1}function Ow(t,e,n){n?t.removeEventListener(Sw,e):t.addEventListener(Sw,e)}function Iw(t,e,n,i){var r=Cw+e;if(null!=i){var a=t.style[r];if(a.length){var o=a.split(",");o[i]=n,n=o.join(",")}}t.style[r]=n}function Tw(t,e){return t.style[Cw+e]||""}var Rw=function(){function t(e,n,i,r,a,o,s,l){g(this,t),this.element=e,this.keyframes=n,this.animationName=i,this._duration=r,this._delay=a,this._finalStyles=s,this._specialStyles=l,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=r+a,this._buildStyler()}return v(t,[{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"destroy",value: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=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(t){this._styler.setPosition(t)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var t=this;this._styler=new xw(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return t.finish()})}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}},{key:"beforeDestroy",value: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]:fk(t.element,i))})}this.currentSnapshot=e}}]),t}(),Pw=function(t){y(n,t);var e=k(n);function n(t,i){var r;return g(this,n),(r=e.call(this)).element=t,r._startingStyles={},r.__initialized=!1,r._styles=jb(i),r}return v(n,[{key:"init",value:function(){var t=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(e){t._startingStyles[e]=t.element.style[e]}),r(i(n.prototype),"init",this).call(this))}},{key:"play",value:function(){var t=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(e){return t.element.style.setProperty(e,t._styles[e])}),r(i(n.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var t=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(e){var n=t._startingStyles[e];n?t.element.style.setProperty(e,n):t.element.style.removeProperty(e)}),this._startingStyles=null,r(i(n.prototype),"destroy",this).call(this))}}]),n}(yb),Mw="gen_css_kf_",Fw=function(){function t(){g(this,t),this._count=0,this._head=document.querySelector("head")}return v(t,[{key:"validateStyleProperty",value:function(t){return Fb(t)}},{key:"matchesElement",value:function(t,e){return Lb(t,e)}},{key:"containsElement",value:function(t,e){return Nb(t,e)}},{key:"query",value:function(t,e,n){return Vb(t,e,n)}},{key:"computeStyle",value:function(t,e,n){return window.getComputedStyle(t)[e]}},{key:"buildKeyframeElement",value:function(t,e,n){n=n.map(function(t){return jb(t)});var i="@keyframes ".concat(e," {\n"),r="";n.forEach(function(t){r=" ";var e=parseFloat(t.offset);i+="".concat(r).concat(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+="".concat(r,"animation-timing-function: ").concat(n,";\n")));default:return void(i+="".concat(r).concat(e,": ").concat(n,";\n"))}}),i+="".concat(r,"}\n")}),i+="}\n";var a=document.createElement("style");return a.textContent=i,a}},{key:"animate",value:function(t,e,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],o=a.filter(function(t){return t instanceof Rw}),s={};ck(n,i)&&o.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return s[t]=e[t]})});var l=Lw(e=hk(t,e,s));if(0==n)return new Pw(t,l);var u="".concat(Mw).concat(this._count++),c=this.buildKeyframeElement(t,u,e);document.querySelector("head").appendChild(c);var h=_w(t,e),d=new Rw(t,e,u,n,i,r,l,h);return d.onDestroy(function(){return Nw(c)}),d}}]),t}();function Lw(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}function Nw(t){t.parentNode.removeChild(t)}var Vw=function(){function t(e,n,i,r){g(this,t),this.element=e,this.keyframes=n,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}return v(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value: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()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(t,e,n){return t.animate(e,n)}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"play",value: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()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(t){this.domPlayer.currentTime=t*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"beforeDestroy",value:function(){var t=this,e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(e[n]=t._finished?t._finalKeyframe[n]:fk(t.element,n))}),this.currentSnapshot=e}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}},{key:"totalTime",get:function(){return this._delay+this._duration}}]),t}(),jw=function(){function t(){g(this,t),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Bw().toString()),this._cssKeyframesDriver=new Fw}return v(t,[{key:"validateStyleProperty",value:function(t){return Fb(t)}},{key:"matchesElement",value:function(t,e){return Lb(t,e)}},{key:"containsElement",value:function(t,e){return Nb(t,e)}},{key:"query",value:function(t,e,n){return Vb(t,e,n)}},{key:"computeStyle",value:function(t,e,n){return window.getComputedStyle(t)[e]}},{key:"overrideWebAnimationsSupport",value:function(t){this._isNativeImpl=t}},{key:"animate",value:function(t,e,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],o=arguments.length>6?arguments[6]:void 0,s=!o&&!this._isNativeImpl;if(s)return this._cssKeyframesDriver.animate(t,e,n,i,r,a);var l=0==i?"both":"forwards",u={duration:n,delay:i,fill:l};r&&(u.easing=r);var c={},h=a.filter(function(t){return t instanceof Vw});ck(n,i)&&h.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return c[t]=e[t]})});var d=_w(t,e=hk(t,e=e.map(function(t){return Qb(t,!1)}),c));return new Vw(t,e,u,d)}}]),t}();function Bw(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var zw=function(){var t=function(t){y(n,t);var e=k(n);function n(t,i){var r;return g(this,n),(r=e.call(this))._nextAnimationId=0,r._renderer=t.createRenderer(i.body,{id:"0",encapsulation:qt.None,styles:[],data:{animation:[]}}),r}return v(n,[{key:"build",value:function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(t)?cb(t):t;return qw(this._renderer,null,e,"register",[n]),new Hw(e,this._renderer)}}]),n}(ab);return t.\u0275fac=function(e){return new(e||t)(Ui(El),Ui(ah))},t.\u0275prov=Dt({token:t,factory:t.\u0275fac}),t}(),Hw=function(t){y(n,t);var e=k(n);function n(t,i){var r;return g(this,n),(r=e.call(this))._id=t,r._renderer=i,r}return v(n,[{key:"create",value:function(t,e){return new Uw(this._id,t,e||{},this._renderer)}}]),n}(ob),Uw=function(){function t(e,n,i,r){g(this,t),this.id=e,this.element=n,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}return v(t,[{key:"_listen",value:function(t,e){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(t),e)}},{key:"_command",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i=0&&t3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,i)}},{key:"removeChild",value:function(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}},{key:"selectRootElement",value:function(t,e){return this.delegate.selectRootElement(t,e)}},{key:"parentNode",value:function(t){return this.delegate.parentNode(t)}},{key:"nextSibling",value:function(t){return this.delegate.nextSibling(t)}},{key:"setAttribute",value:function(t,e,n,i){this.delegate.setAttribute(t,e,n,i)}},{key:"removeAttribute",value:function(t,e,n){this.delegate.removeAttribute(t,e,n)}},{key:"addClass",value:function(t,e){this.delegate.addClass(t,e)}},{key:"removeClass",value:function(t,e){this.delegate.removeClass(t,e)}},{key:"setStyle",value:function(t,e,n,i){this.delegate.setStyle(t,e,n,i)}},{key:"removeStyle",value:function(t,e,n){this.delegate.removeStyle(t,e,n)}},{key:"setProperty",value:function(t,e,n){e.charAt(0)==Ww&&e==Yw?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}},{key:"setValue",value:function(t,e){this.delegate.setValue(t,e)}},{key:"listen",value:function(t,e,n){return this.delegate.listen(t,e,n)}},{key:"disableAnimations",value:function(t,e){this.engine.disableAnimations(t,e)}},{key:"data",get:function(){return this.delegate.data}}]),t}(),Zw=function(t){y(n,t);var e=k(n);function n(t,i,r,a){var o;return g(this,n),(o=e.call(this,i,r,a)).factory=t,o.namespaceId=i,o}return v(n,[{key:"setProperty",value:function(t,e,n){e.charAt(0)==Ww?"."==e.charAt(1)&&e==Yw?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}},{key:"listen",value:function(t,e,n){var i,r,a=this;if(e.charAt(0)==Ww){var o=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t),s=e.substr(1),u="";if(s.charAt(0)!=Ww){var c=l((r=(i=s).indexOf("."),[i.substring(0,r),i.substr(r+1)]),2);s=c[0],u=c[1]}return this.engine.listen(this.namespaceId,o,s,u,function(t){a.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}]),n}(Kw),$w=function(){var t=function(t){y(n,t);var e=k(n);function n(t,i,r){return g(this,n),e.call(this,t.body,i,r)}return n}(yw);return t.\u0275fac=function(e){return new(e||t)(Ui(ah),Ui(zb),Ui(Nk))},t.\u0275prov=Dt({token:t,factory:t.\u0275fac}),t}(),Xw=new bi("AnimationModuleType"),Qw=[{provide:ab,useClass:zw},{provide:Nk,useFactory:function(){return new Vk}},{provide:yw,useClass:$w},{provide:El,useFactory:function(t,e,n){return new Gw(t,e,n)},deps:[pd,yw,Cc]}],Jw=[{provide:zb,useFactory:function(){return"function"==typeof Bw()?new jw:new Fw}},{provide:Xw,useValue:"BrowserAnimations"}].concat(Qw),tC=([{provide:zb,useClass:Bb},{provide:Xw,useValue:"NoopAnimations"}].concat(Qw),function(){var t=function t(){g(this,t)};return t.\u0275mod=ce({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:Jw,imports:[Dd]}),t}());function eC(t,e){if(1&t&&ds(0,"mat-pseudo-checkbox",3),2&t){var n=xs();ls("state",n.selected?"checked":"unchecked")("disabled",n.disabled)}}var nC=["*"],iC=function(){var t=function t(){g(this,t)};return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t}(),rC=function(){var t=function t(){g(this,t)};return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t}(),aC=new Il("11.0.4"),oC=new bi("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),sC=function(){var t=function(){function t(e,n,i){g(this,t),this._hasDoneGlobalChecks=!1,this._document=i,e._applyBodyHighContrastModeCssClasses(),this._sanityChecks=n,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return v(t,[{key:"_getWindow",value:function(){var t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}},{key:"_checksAreEnabled",value:function(){return Lc()&&!this._isTestEnv()}},{key:"_isTestEnv",value:function(){var t=this._getWindow();return t&&(t.__karma__||t.jasmine)}},{key:"_checkDoctypeIsDefined",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}},{key:"_checkThemeIsPresent",value:function(){if(this._checksAreEnabled()&&!1!==this._sanityChecks&&this._sanityChecks.theme&&this._document.body&&"function"==typeof getComputedStyle){var t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);var e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}}},{key:"_checkCdkVersionMatch",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&aC.full!==rb.full&&console.warn("The Angular Material version ("+aC.full+") does not match the Angular CDK version ("+rb.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),t}();return t.\u0275mod=ce({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)(Ui(nb),Ui(oC,8),Ui(ah))},imports:[[ay],ay]}),t}();function lC(t){return function(t){y(n,t);var e=k(n);function n(){var t;g(this,n);for(var i=arguments.length,r=new Array(i),a=0;a1&&void 0!==arguments[1]?arguments[1]:0,n=function(t){y(i,t);var n=k(i);function i(){var t;g(this,i);for(var r=arguments.length,a=new Array(r),o=0;o0?n:t}}]),t}(),gC=new bi("mat-date-formats");try{pC="undefined"!=typeof Intl}catch(RB){pC=!1}var yC={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"]},_C=wC(31,function(t){return String(t+1)}),bC={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},kC=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function wC(t,e){for(var n=Array(t),i=0;i9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign(Object.assign({},e),{timeZone:"utc"});var n=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(n,t))}return this._stripDirectionalityCharacters(t.toDateString())}},{key:"addCalendarYears",value:function(t,e){return this.addCalendarMonths(t,12*e)}},{key:"addCalendarMonths",value: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}},{key:"addCalendarDays",value:function(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}},{key:"toIso8601",value:function(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}},{key:"deserialize",value:function(t){if("string"==typeof t){if(!t)return null;if(kC.test(t)){var e=new Date(t);if(this.isValid(e))return e}}return r(i(n.prototype),"deserialize",this).call(this,t)}},{key:"isDateInstance",value:function(t){return t instanceof Date}},{key:"isValid",value:function(t){return!isNaN(t.getTime())}},{key:"invalid",value:function(){return new Date(NaN)}},{key:"_createDateWithOverflow",value:function(t,e,n){var i=new Date;return i.setFullYear(t,e,n),i.setHours(0,0,0,0),i}},{key:"_2digit",value:function(t){return("00"+t).slice(-2)}},{key:"_stripDirectionalityCharacters",value:function(t){return t.replace(/[\u200e\u200f]/g,"")}},{key:"_format",value:function(t,e){var n=new Date;return n.setUTCFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setUTCHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t.format(n)}}]),n}(vC);return t.\u0275fac=function(e){return new(e||t)(Ui(mC,8),Ui($g))},t.\u0275prov=Dt({token:t,factory:t.\u0275fac}),t}(),SC=function(){var t=function t(){g(this,t)};return t.\u0275mod=ce({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[{provide:vC,useClass:CC}],imports:[[Xg]]}),t}(),xC={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"}}},EC=function(){var t=function t(){g(this,t)};return t.\u0275mod=ce({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[{provide:gC,useValue:xC}],imports:[[SC]]}),t}(),AC=function(){var t=function(){function t(){g(this,t)}return v(t,[{key:"isErrorState",value:function(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Dt({factory:function(){return new t},token:t,providedIn:"root"}),t}(),DC=function(){function t(e,n,i){g(this,t),this._renderer=e,this.element=n,this.config=i,this.state=3}return v(t,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),t}(),OC={enterDuration:450,exitDuration:400},IC=ty({passive:!0}),TC=["mousedown","touchstart"],RC=["mouseup","mouseleave","touchend","touchcancel"],PC=function(){function t(e,n,i,r){g(this,t),this._target=e,this._ngZone=n,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=fg(i))}return v(t,[{key:"fadeInRipple",value:function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),a=Object.assign(Object.assign({},OC),i.animation);i.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);var o=i.radius||FC(t,e,r),s=t-r.left,l=e-r.top,u=a.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left="".concat(s-o,"px"),c.style.top="".concat(l-o,"px"),c.style.height="".concat(2*o,"px"),c.style.width="".concat(2*o,"px"),null!=i.color&&(c.style.backgroundColor=i.color),c.style.transitionDuration="".concat(u,"ms"),this._containerElement.appendChild(c),MC(c),c.style.transform="scale(1)";var h=new DC(this,c,i);return h.state=0,this._activeRipples.add(h),i.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(function(){var t=h===n._mostRecentTransientRipple;h.state=1,i.persistent||t&&n._isPointerDown||h.fadeOut()},u),h}},{key:"fadeOutRipple",value:function(t){var e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),e){var n=t.element,i=Object.assign(Object.assign({},OC),t.config.animation);n.style.transitionDuration="".concat(i.exitDuration,"ms"),n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(function(){t.state=3,n.parentNode.removeChild(n)},i.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(t){return t.fadeOut()})}},{key:"setupTriggerEvents",value:function(t){var e=fg(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(TC))}},{key:"handleEvent",value:function(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(RC),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(t){var e=G_(t),n=this._lastTouchStartEvent&&Date.now()1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(t,e)})}},{key:"_registerEvents",value:function(t){var e=this;this._ngZone.runOutsideAngular(function(){t.forEach(function(t){e._triggerElement.addEventListener(t,e,IC)})})}},{key:"_removeTriggerEvents",value:function(){var t=this;this._triggerElement&&(TC.forEach(function(e){t._triggerElement.removeEventListener(e,t,IC)}),this._pointerUpEventsRegistered&&RC.forEach(function(e){t._triggerElement.removeEventListener(e,t,IC)}))}}]),t}();function MC(t){window.getComputedStyle(t).getPropertyValue("opacity")}function FC(t,e,n){var i=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),r=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(i*i+r*r)}var LC=new bi("mat-ripple-global-options"),NC=function(){var t=function(){function t(e,n,i,r,a){g(this,t),this._elementRef=e,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new PC(this,n,e,i)}return v(t,[{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=t,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}}]),t}();return t.\u0275fac=function(e){return new(e||t)(ss(xl),ss(Cc),ss($g),ss(LC,8),ss(Xw,8))},t.\u0275dir=de({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&js("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t}(),VC=function(){var t=function t(){g(this,t)};return t.\u0275mod=ce({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},imports:[[sC,Xg],sC]}),t}(),jC=function(){var t=function t(e){g(this,t),this._animationMode=e,this.state="unchecked",this.disabled=!1};return t.\u0275fac=function(e){return new(e||t)(ss(Xw,8))},t.\u0275cmp=oe({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&js("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),t}(),BC=function(){var t=function t(){g(this,t)};return t.\u0275mod=ce({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},imports:[[sC]]}),t}(),zC=lC(function t(){g(this,t)}),HC=0,UC=function(){var t=function(t){y(n,t);var e=k(n);function n(){var t;return g(this,n),(t=e.apply(this,arguments))._labelId="mat-optgroup-label-".concat(HC++),t}return n}(zC);return t.\u0275fac=function(e){return qC(e||t)},t.\u0275dir=de({type:t,inputs:{label:"label"},features:[qo]}),t}(),qC=vi(UC),WC=new bi("MatOptgroup"),YC=0,GC=function t(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];g(this,t),this.source=e,this.isUserInput=n},KC=new bi("MAT_OPTION_PARENT_COMPONENT"),ZC=function(){var t=function(){function t(e,n,i,r){g(this,t),this._element=e,this._changeDetectorRef=n,this._parent=i,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-".concat(YC++),this.onSelectionChange=new Ru,this._stateChanges=new q}return v(t,[{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(t,e){var n=this._getHostElement();"function"==typeof n.focus&&n.focus(e)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(t){t.keyCode!==Dy&&t.keyCode!==Iy||Ny(t)||(this._selectViaInteraction(),t.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new GC(this,t))}},{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(t){this._disabled=lg(t)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(ss(xl),ss(Kl),ss(void 0),ss(UC))},t.\u0275dir=de({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t}(),$C=function(){var t=function(t){y(n,t);var e=k(n);function n(t,i,r,a){return g(this,n),e.call(this,t,i,r,a)}return n}(ZC);return t.\u0275fac=function(e){return new(e||t)(ss(xl),ss(Kl),ss(KC,8),ss(WC,8))},t.\u0275cmp=oe({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&_s("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(tl("id",e.id),is("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),js("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[qo],ngContentSelectors:nC,decls:4,vars:3,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"]],template:function(t,e){1&t&&(As(),as(0,eC,1,2,"mat-pseudo-checkbox",0),cs(1,"span",1),Ds(2),hs(),ds(3,"div",2)),2&t&&(ls("ngIf",e.multiple),Aa(3),ls("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[Th,NC,jC],styles:[".mat-option{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;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.cdk-high-contrast-active .mat-option .mat-option-ripple{opacity:.5}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t}();function XC(t,e,n){if(n.length){for(var i=e.toArray(),r=n.toArray(),a=0,o=0;on+i?Math.max(0,t-i+e):n}var JC=function(){var t=function t(){g(this,t)};return t.\u0275mod=ce({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},imports:[[VC,Yh,sC,BC]]}),t}();function tS(t,e){}var eS=function t(){g(this,t),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},nS={dialogContainer:lb("dialogContainer",[db("void, exit",hb({opacity:0,transform:"scale(0.7)"})),db("enter",hb({transform:"none"})),pb("* => enter",ub("150ms cubic-bezier(0, 0, 0.2, 1)",hb({transform:"none",opacity:1}))),pb("* => void, * => exit",ub("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",hb({opacity:0})))])},iS=function(){var t=function(t){y(n,t);var e=k(n);function n(t,i,r,a,o,s){var l;return g(this,n),(l=e.call(this))._elementRef=t,l._focusTrapFactory=i,l._changeDetectorRef=r,l._config=o,l._focusMonitor=s,l._animationStateChanged=new Ru,l._elementFocusedBeforeDialogWasOpened=null,l._closeInteractionType=null,l.attachDomPortal=function(t){return l._portalOutlet.hasAttached(),l._portalOutlet.attachDomPortal(t)},l._ariaLabelledBy=o.ariaLabelledBy||null,l._document=a,l}return v(n,[{key:"_initializeWithAttachedContent",value:function(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}},{key:"attachComponentPortal",value:function(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(t)}},{key:"attachTemplatePortal",value:function(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(t)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){var e=this._document.activeElement,n=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==n&&!n.contains(e)||(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}},{key:"_capturePreviouslyFocusedElement",value:function(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement)}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var t=this._elementRef.nativeElement,e=this._document.activeElement;return t===e||t.contains(e)}}]),n}(_y);return t.\u0275fac=function(e){return new(e||t)(ss(xl),ss(z_),ss(Kl),ss(ah,8),ss(eS),ss($_))},t.\u0275dir=de({type:t,viewQuery:function(t,e){var n;1&t&&Wu(wy,!0),2&t&&qu(n=Xu())&&(e._portalOutlet=n.first)},features:[qo]}),t}(),rS=function(){var t=function(t){y(n,t);var e=k(n);function n(){var t;return g(this,n),(t=e.apply(this,arguments))._state="enter",t}return v(n,[{key:"_onAnimationDone",value:function(t){var e=t.toState,n=t.totalTime;"enter"===e?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:n})):"exit"===e&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:n}))}},{key:"_onAnimationStart",value:function(t){var e=t.toState,n=t.totalTime;"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:n}):"exit"!==e&&"void"!==e||this._animationStateChanged.next({state:"closing",totalTime:n})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),n}(iS);return t.\u0275fac=function(e){return aS(e||t)},t.\u0275cmp=oe({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&bs("@dialogContainer.start",function(t){return e._onAnimationStart(t)})("@dialogContainer.done",function(t){return e._onAnimationDone(t)}),2&t&&(tl("id",e._id),is("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),el("@dialogContainer",e._state))},features:[qo],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&as(0,tS,0,0,"ng-template",0)},directives:[wy],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}.cdk-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;box-sizing:content-box;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,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[nS.dialogContainer]}}),t}(),aS=vi(rS),oS=0,sS=function(){function t(e,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-".concat(oS++);g(this,t),this._overlayRef=e,this._containerInstance=n,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new q,this._afterClosed=new q,this._beforeClosed=new q,this._state=0,n._id=r,n._animationStateChanged.pipe(Td(function(t){return"opened"===t.state}),Rf(1)).subscribe(function(){i._afterOpened.next(),i._afterOpened.complete()}),n._animationStateChanged.pipe(Td(function(t){return"closed"===t.state}),Rf(1)).subscribe(function(){clearTimeout(i._closeFallbackTimeout),i._finishDialogClose()}),e.detachments().subscribe(function(){i._beforeClosed.next(i._result),i._beforeClosed.complete(),i._afterClosed.next(i._result),i._afterClosed.complete(),i.componentInstance=null,i._overlayRef.dispose()}),e.keydownEvents().pipe(Td(function(t){return t.keyCode===Oy&&!i.disableClose&&!Ny(t)})).subscribe(function(t){t.preventDefault(),lS(i,"keyboard")}),e.backdropClick().subscribe(function(){i.disableClose?i._containerInstance._recaptureFocus():lS(i,"mouse")})}return v(t,[{key:"close",value:function(t){var e=this;this._result=t,this._containerInstance._animationStateChanged.pipe(Td(function(t){return"closing"===t.state}),Rf(1)).subscribe(function(n){e._beforeClosed.next(t),e._beforeClosed.complete(),e._overlayRef.detachBackdrop(),e._closeFallbackTimeout=setTimeout(function(){return e._finishDialogClose()},n.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"afterClosed",value:function(){return this._afterClosed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value: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}},{key:"updateSize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._getPositionStrategy().width(t).height(e),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(t){return this._overlayRef.addPanelClass(t),this}},{key:"removePanelClass",value:function(t){return this._overlayRef.removePanelClass(t),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),t}();function lS(t,e,n){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(n)}var uS=new bi("MatDialogData"),cS=new bi("mat-dialog-default-options"),hS=new bi("mat-dialog-scroll-strategy"),dS={provide:hS,deps:[h_],useFactory:function(t){return function(){return t.scrollStrategies.block()}}},fS=function(){var t=function(){function t(e,n,i,r,a,o,s,l,u){var c=this;g(this,t),this._overlay=e,this._injector=n,this._defaultOptions=i,this._parentDialog=r,this._overlayContainer=a,this._dialogRefConstructor=s,this._dialogContainerType=l,this._dialogDataToken=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new q,this._afterOpenedAtThisLevel=new q,this._ariaHiddenElements=new Map,this.afterAllClosed=Af(function(){return c.openDialogs.length?c._getAfterAllClosed():c._getAfterAllClosed().pipe(Ff(void 0))}),this._scrollStrategy=o}return v(t,[{key:"_getAfterAllClosed",value:function(){var t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(t,e){var n=this;(e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new eS)).id&&this.getDialogById(e.id);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),r._initializeWithAttachedContent(),a}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(t){return this.openDialogs.find(function(e){return e.id===t})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(t){var e=this._getOverlayConfig(t);return this._overlay.create(e)}},{key:"_getOverlayConfig",value:function(t){var e=new Yy({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}},{key:"_attachDialogContainer",value:function(t,e){var n=Ho.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:eS,useValue:e}]}),i=new vy(this._dialogContainerType,e.viewContainerRef,n,e.componentFactoryResolver);return t.attach(i).instance}},{key:"_attachDialogContent",value:function(t,e,n,i){var r=new this._dialogRefConstructor(n,e,i.id);if(t instanceof eu)e.attachTemplatePortal(new gy(t,null,{$implicit:i.data,dialogRef:r}));else{var a=this._createInjector(i,r,e),o=e.attachComponentPortal(new vy(t,i.viewContainerRef,a));r.componentInstance=o.instance}return r.updateSize(i.width,i.height).updatePosition(i.position),r}},{key:"_createInjector",value:function(t,e,n){var i=t&&t.viewContainerRef&&t.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return!t.direction||i&&i.get(ry,null)||r.push({provide:ry,useValue:{value:t.direction,change:Od()}}),Ho.create({parent:i||this._injector,providers:r})}},{key:"_removeOpenDialog",value: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._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value: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"))}}},{key:"_closeDialogs",value:function(t){for(var e=t.length;e--;)t[e].close()}},{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}}]),t}();return t.\u0275fac=function(e){return new(e||t)(ss(h_),ss(Ho),ss(void 0),ss(void 0),ss(Jy),ss(void 0),ss(wi),ss(wi),ss(bi))},t.\u0275dir=de({type:t}),t}(),pS=function(){var t=function(t){y(n,t);var e=k(n);function n(t,i,r,a,o,s,l){return g(this,n),e.call(this,t,i,a,s,l,o,sS,rS,uS)}return n}(fS);return t.\u0275fac=function(e){return new(e||t)(Ui(h_),Ui(Ho),Ui(bh,8),Ui(cS,8),Ui(hS),Ui(t,12),Ui(Jy))},t.\u0275prov=Dt({token:t,factory:t.\u0275fac}),t}(),mS=0,vS=function(){var t=function(){function t(e,n,i){g(this,t),this.dialogRef=e,this._elementRef=n,this._dialog=i,this.type="button"}return v(t,[{key:"ngOnInit",value:function(){this.dialogRef||(this.dialogRef=bS(this._elementRef,this._dialog.openDialogs))}},{key:"ngOnChanges",value:function(t){var e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)}},{key:"_onButtonClick",value:function(t){lS(this.dialogRef,0===t.screenX&&0===t.screenY?"keyboard":"mouse",this.dialogResult)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(ss(sS,8),ss(xl),ss(pS))},t.\u0275dir=de({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,e){1&t&&_s("click",function(t){return e._onButtonClick(t)}),2&t&&is("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:[Ie]}),t}(),gS=function(){var t=function(){function t(e,n,i){g(this,t),this._dialogRef=e,this._elementRef=n,this._dialog=i,this.id="mat-dialog-title-".concat(mS++)}return v(t,[{key:"ngOnInit",value:function(){var t=this;this._dialogRef||(this._dialogRef=bS(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var e=t._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=t.id)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(ss(sS,8),ss(xl),ss(pS))},t.\u0275dir=de({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&tl("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t}(),yS=function(){var t=function t(){g(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=de({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t}(),_S=function(){var t=function t(){g(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=de({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t}();function bS(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 kS=function(){var t=function t(){g(this,t)};return t.\u0275mod=ce({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[pS,dS],imports:[[g_,xy,sC],sC]}),t}();function wS(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 CS=["mat-button",""],SS=["*"],xS=".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-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:none;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-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-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,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-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:none;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 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-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-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{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:none;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 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 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.mat-button-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:none;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 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 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.mat-button-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 i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{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 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .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}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n",ES=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],AS=uC(lC(cC(function t(e){g(this,t),this._elementRef=e}))),DS=function(){var t=function(t){y(n,t);var e=k(n);function n(t,i,r){var a;g(this,n),(a=e.call(this,t))._focusMonitor=i,a._animationMode=r,a.isRoundButton=a._hasHostAttributes("mat-fab","mat-mini-fab"),a.isIconButton=a._hasHostAttributes("mat-icon-button");var o,s=c(ES);try{for(s.s();!(o=s.n()).done;){var l=o.value;a._hasHostAttributes(l)&&a._getHostElement().classList.add(l)}}catch(u){s.e(u)}finally{s.f()}return t.nativeElement.classList.add("mat-button-base"),a.isRoundButton&&(a.color="accent"),a}return v(n,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",e=arguments.length>1?arguments[1]:void 0;this._focusMonitor.focusVia(this._getHostElement(),t,e)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i0&&(this.dialogRef.afterClosed().subscribe(function(e){t.closed()}),this.setExtra(this.data.autoclose),this.subscription=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Tg;return(!Fg(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=Tg),new j(function(n){return n.add(e.schedule(wS,t,{subscriber:n,counter:0,period:t})),n})}(1e3).subscribe(function(e){var n=t.data.autoclose-1e3*(e+1);t.setExtra(n),n<=0&&t.close()}))},t.prototype.initYesNo=function(){},t.prototype.ngOnInit=function(){!0===this.data.warnOnYes&&(this.yesColor="warn",this.noColor="primary"),this.data.type===LS.yesno?this.initYesNo():this.initAlert()},t.\u0275fac=function(e){return new(e||t)(ss(sS),ss(uS))},t.\u0275cmp=oe({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&&(ds(0,"h4",0),Au(1,"safeHtml"),ds(2,"mat-dialog-content",1),Au(3,"safeHtml"),cs(4,"mat-dialog-actions"),as(5,PS,4,1,"button",2),as(6,MS,3,1,"button",3),as(7,FS,3,1,"button",3),hs()),2&t&&(ls("innerHtml",Du(1,5,e.data.title),Dr),Aa(2),ls("innerHTML",Du(3,7,e.data.body),Dr),Aa(3),ls("ngIf",0==e.data.type),Aa(1),ls("ngIf",1==e.data.type),Aa(1),ls("ngIf",1==e.data.type))},directives:[gS,yS,_S,Th,DS,vS,TS],pipes:[RS],styles:[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}(),VS=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}({}),jS=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 BS(t,e){return new j(function(n){var i=t.length;if(0!==i)for(var r=new Array(i),a=0,o=0,s=function(s){var l=it(t[s]),u=!1;n.add(l.subscribe({next:function(t){u||(u=!0,o++),r[s]=t},error:function(t){return n.error(t)},complete:function(){++a!==i&&u||(o===i&&n.next(e?e.reduce(function(t,e,n){return t[e]=r[n],t},{}):r),n.complete())}}))},l=0;lt?{max:{max:t,actual:e.value}}:null}}},{key:"required",value:function(t){return GS(t.value)?{required:!0}:null}},{key:"requiredTrue",value:function(t){return!0===t.value?null:{required:!0}}},{key:"email",value:function(t){return GS(t.value)||XS.test(t.value)?null:{email:!0}}},{key:"minLength",value:function(t){return function(e){return GS(e.value)||!KS(e.value)?null:e.value.lengtht?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}}},{key:"pattern",value: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(GS(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:i,actualValue:e}}}):t.nullValidator;var n,i}},{key:"nullValidator",value:function(t){return null}},{key:"compose",value:function(t){if(!t)return null;var e=t.filter(JS);return 0==e.length?null:function(t){return ex(nx(t,e))}}},{key:"composeAsync",value:function(t){if(!t)return null;var e=t.filter(JS);return 0==e.length?null:function(t){return function(){for(var t=arguments.length,e=new Array(t),n=0;n0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(t)}},{key:"hasError",value:function(t,e){return!!this.control&&this.control.hasError(t,e)}},{key:"getError",value:function(t,e){return this.control?this.control.getError(t,e):null}},{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=de({type:t}),t}(),cx=function(){var t=function(t){y(n,t);var e=k(n);function n(){return g(this,n),e.apply(this,arguments)}return v(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(ux);return t.\u0275fac=function(e){return hx(e||t)},t.\u0275dir=de({type:t,features:[qo]}),t}(),hx=vi(cx),dx=function(t){y(n,t);var e=k(n);function n(){var t;return g(this,n),(t=e.apply(this,arguments))._parent=null,t.name=null,t.valueAccessor=null,t}return n}(ux),fx=function(){function t(e){g(this,t),this._cd=e}return v(t,[{key:"ngClassUntouched",get:function(){var t,e,n;return null!==(n=null===(e=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===e?void 0:e.untouched)&&void 0!==n&&n}},{key:"ngClassTouched",get:function(){var t,e,n;return null!==(n=null===(e=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===e?void 0:e.touched)&&void 0!==n&&n}},{key:"ngClassPristine",get:function(){var t,e,n;return null!==(n=null===(e=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===e?void 0:e.pristine)&&void 0!==n&&n}},{key:"ngClassDirty",get:function(){var t,e,n;return null!==(n=null===(e=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===e?void 0:e.dirty)&&void 0!==n&&n}},{key:"ngClassValid",get:function(){var t,e,n;return null!==(n=null===(e=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===e?void 0:e.valid)&&void 0!==n&&n}},{key:"ngClassInvalid",get:function(){var t,e,n;return null!==(n=null===(e=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===e?void 0:e.invalid)&&void 0!==n&&n}},{key:"ngClassPending",get:function(){var t,e,n;return null!==(n=null===(e=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===e?void 0:e.pending)&&void 0!==n&&n}}]),t}(),px=function(){var t=function(t){y(n,t);var e=k(n);function n(t){return g(this,n),e.call(this,t)}return n}(fx);return t.\u0275fac=function(e){return new(e||t)(ss(dx,2))},t.\u0275dir=de({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&js("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[qo]}),t}(),mx=function(){var t=function(t){y(n,t);var e=k(n);function n(t){return g(this,n),e.call(this,t)}return n}(fx);return t.\u0275fac=function(e){return new(e||t)(ss(cx,10))},t.\u0275dir=de({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&js("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[qo]}),t}(),vx={provide:zS,useExisting:xt(function(){return gx}),multi:!0},gx=function(){var t=function(){function t(e,n){g(this,t),this._renderer=e,this._elementRef=n,this.onChange=function(t){},this.onTouched=function(){}}return v(t,[{key:"writeValue",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}},{key:"registerOnChange",value:function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(ss(Al),ss(xl))},t.\u0275dir=de({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&_s("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[gl([vx])]}),t}(),yx={provide:zS,useExisting:xt(function(){return bx}),multi:!0},_x=function(){var t=function(){function t(){g(this,t),this._accessors=[]}return v(t,[{key:"add",value:function(t,e){this._accessors.push([t,e])}},{key:"remove",value:function(t){for(var e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}},{key:"select",value:function(t){var e=this;this._accessors.forEach(function(n){e._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)})}},{key:"_isSameGroup",value:function(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Dt({token:t,factory:t.\u0275fac}),t}(),bx=function(){var t=function(){function t(e,n,i,r){g(this,t),this._renderer=e,this._elementRef=n,this._registry=i,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return v(t,[{key:"ngOnInit",value:function(){this._control=this._injector.get(dx),this._checkName(),this._registry.add(this._control,this)}},{key:"ngOnDestroy",value:function(){this._registry.remove(this)}},{key:"writeValue",value:function(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}},{key:"registerOnChange",value:function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}}},{key:"fireUncheck",value:function(t){this.writeValue(t)}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}},{key:"_checkName",value:function(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(ss(Al),ss(xl),ss(_x),ss(Ho))},t.\u0275dir=de({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&_s("change",function(){return e.onChange()})("blur",function(){return e.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[gl([yx])]}),t}(),kx={provide:zS,useExisting:xt(function(){return wx}),multi:!0},wx=function(){var t=function(){function t(e,n){g(this,t),this._renderer=e,this._elementRef=n,this.onChange=function(t){},this.onTouched=function(){}}return v(t,[{key:"writeValue",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}},{key:"registerOnChange",value:function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(ss(Al),ss(xl))},t.\u0275dir=de({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&_s("change",function(t){return e.onChange(t.target.value)})("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[gl([kx])]}),t}(),Cx={provide:zS,useExisting:xt(function(){return Sx}),multi:!0},Sx=function(){var t=function(){function t(e,n){g(this,t),this._renderer=e,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=Object.is}return v(t,[{key:"writeValue",value:function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=function(t,e){return null==t?"".concat(e):(e&&"object"==typeof e&&(e="Object"),"".concat(t,": ").concat(e).slice(0,50))}(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}},{key:"registerOnChange",value:function(t){var e=this;this.onChange=function(n){e.value=e._getOptionValue(n),t(e.value)}}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(t){for(var e=0,n=Array.from(this._optionMap.keys());e-1)}}else e=function(t,e){t._setSelected(!1)};this._optionMap.forEach(e)}},{key:"registerOnChange",value:function(t){var e=this;this.onChange=function(n){var i=[];if(void 0!==n.selectedOptions)for(var r=n.selectedOptions,a=0;a0&&t.setValidators(i.filter(function(t){return t!==e.validator}))}if(null!==e.asyncValidator){var r=lx(t);Array.isArray(r)&&r.length>0&&t.setAsyncValidators(r.filter(function(t){return t!==e.asyncValidator}))}}if(n){var a=function(){};Dx(e._rawValidators,a),Dx(e._rawAsyncValidators,a)}}function Tx(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Rx(t,e){Ox(t,e,!1)}var Px=[US,wx,gx,Sx,Ex,bx];function Mx(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 Fx(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var Lx="VALID",Nx="INVALID",Vx="PENDING",jx="DISABLED";function Bx(t){return(qx(t)?t.validators:t)||null}function zx(t){return Array.isArray(t)?rx(t):t||null}function Hx(t,e){return(qx(e)?e.asyncValidators:t)||null}function Ux(t){return Array.isArray(t)?ax(t):t||null}function qx(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var Wx=function(){function t(e,n){g(this,t),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=n,this._composedValidatorFn=zx(this._rawValidators),this._composedAsyncValidatorFn=Ux(this._rawAsyncValidators)}return v(t,[{key:"setValidators",value:function(t){this._rawValidators=t,this._composedValidatorFn=zx(t)}},{key:"setAsyncValidators",value:function(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=Ux(t)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(t){return t.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(t){t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"markAsDirty",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}},{key:"markAsPristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(t){t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"markAsPending",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=Vx,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}},{key:"disable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status=jx,this.errors=null,this._forEachChild(function(e){e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(function(t){return t(!0)})}},{key:"enable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status=Lx,this._forEachChild(function(e){e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(function(t){return t(!1)})}},{key:"_updateAncestors",value:function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(t){this._parent=t}},{key:"updateValueAndValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==Lx&&this.status!==Vx||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)}},{key:"_updateTreeValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(e){return e._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?jx:Lx}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(t){var e=this;if(this.asyncValidator){this.status=Vx,this._hasOwnPendingAsyncValidator=!0;var n=tx(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){e._hasOwnPendingAsyncValidator=!1,e.setErrors(n,{emitEvent:t})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}},{key:"get",value: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 Gx?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof Kx&&i.at(t)||null}),i}(this,t)}},{key:"getError",value:function(t,e){var n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}},{key:"hasError",value:function(t,e){return!!this.getError(t,e)}},{key:"_updateControlsErrors",value:function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}},{key:"_initObservables",value:function(){this.valueChanges=new Ru,this.statusChanges=new Ru}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?jx:this.errors?Nx:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Vx)?Vx:this._anyControlsHaveStatus(Nx)?Nx:Lx}},{key:"_anyControlsHaveStatus",value:function(t){return this._anyControls(function(e){return e.status===t})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(t){return t.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(t){return t.touched})}},{key:"_updatePristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"_updateTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"_isBoxedValue",value:function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}},{key:"_registerOnCollectionChange",value:function(t){this._onCollectionChange=t}},{key:"_setUpdateStrategy",value:function(t){qx(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}},{key:"_parentMarkedDirty",value:function(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}},{key:"validator",get:function(){return this._composedValidatorFn},set:function(t){this._rawValidators=this._composedValidatorFn=t}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===Lx}},{key:"invalid",get:function(){return this.status===Nx}},{key:"pending",get:function(){return this.status==Vx}},{key:"disabled",get:function(){return this.status===jx}},{key:"enabled",get:function(){return this.status!==jx}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"root",get:function(){for(var t=this;t._parent;)t=t._parent;return t}}]),t}(),Yx=function(t){y(n,t);var e=k(n);function n(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0;return g(this,n),(t=e.call(this,Bx(r),Hx(a,r)))._onChange=[],t._applyFormState(i),t._setUpdateStrategy(r),t._initObservables(),t.updateValueAndValidity({onlySelf:!0,emitEvent:!!a}),t}return v(n,[{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=t,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(function(t){return t(e.value,!1!==n.emitViewToModelChange)}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(t,e)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(t){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(t){this._onChange.push(t)}},{key:"_unregisterOnChange",value:function(t){Fx(this._onChange,t)}},{key:"registerOnDisabledChange",value:function(t){this._onDisabledChange.push(t)}},{key:"_unregisterOnDisabledChange",value:function(t){Fx(this._onDisabledChange,t)}},{key:"_forEachChild",value:function(t){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}]),n}(Wx),Gx=function(t){y(n,t);var e=k(n);function n(t,i,r){var a;return g(this,n),(a=e.call(this,Bx(i),Hx(r,i))).controls=t,a._initObservables(),a._setUpdateStrategy(i),a._setUpControls(),a.updateValueAndValidity({onlySelf:!0,emitEvent:!!r}),a}return v(n,[{key:"registerControl",value:function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}},{key:"addControl",value:function(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"removeControl",value:function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setControl",value:function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"contains",value:function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}},{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),Object.keys(t).forEach(function(i){e._throwIfControlMissing(i),e.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(t).forEach(function(i){e.controls[i]&&e.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(t,e,n){return t[n]=e instanceof Yx?e.value:e.getRawValue(),t})}},{key:"_syncPendingControls",value:function(){var t=this._reduceChildren(!1,function(t,e){return!!e._syncPendingControls()||t});return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value: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: ".concat(t,"."))}},{key:"_forEachChild",value:function(t){var e=this;Object.keys(this.controls).forEach(function(n){return t(e.controls[n],n)})}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild(function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(t){for(var e=0,n=Object.keys(this.controls);e0||this.disabled}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))})}}]),n}(Wx),Kx=function(t){y(n,t);var e=k(n);function n(t,i,r){var a;return g(this,n),(a=e.call(this,Bx(i),Hx(r,i))).controls=t,a._initObservables(),a._setUpdateStrategy(i),a._setUpControls(),a.updateValueAndValidity({onlySelf:!0,emitEvent:!!r}),a}return v(n,[{key:"at",value:function(t){return this.controls[t]}},{key:"push",value:function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"insert",value:function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}},{key:"removeAt",value:function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity()}},{key:"setControl",value: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()}},{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),t.forEach(function(t,i){e._throwIfControlMissing(i),e.at(i).setValue(t,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.forEach(function(t,i){e.at(i)&&e.at(i).patchValue(t,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this.controls.map(function(t){return t instanceof Yx?t.value:t.getRawValue()})}},{key:"clear",value:function(){this.controls.length<1||(this._forEachChild(function(t){return t._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity())}},{key:"_syncPendingControls",value:function(){var t=this.controls.reduce(function(t,e){return!!e._syncPendingControls()||t},!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value: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 ".concat(t))}},{key:"_forEachChild",value:function(t){this.controls.forEach(function(e,n){t(e,n)})}},{key:"_updateValue",value:function(){var t=this;this.value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})}},{key:"_anyControls",value:function(t){return this.controls.some(function(e){return e.enabled&&t(e)})}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))})}},{key:"_allControlsDisabled",value:function(){var t,e=c(this.controls);try{for(e.s();!(t=e.n()).done;)if(t.value.enabled)return!1}catch(n){e.e(n)}finally{e.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}},{key:"length",get:function(){return this.controls.length}}]),n}(Wx),Zx={provide:cx,useExisting:xt(function(){return Xx})},$x=function(){return Promise.resolve(null)}(),Xx=function(){var t=function(t){y(n,t);var e=k(n);function n(t,i){var r;return g(this,n),(r=e.call(this)).submitted=!1,r._directives=[],r.ngSubmit=new Ru,r.form=new Gx({},rx(t),ax(i)),r}return v(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"addControl",value:function(t){var e=this;$x.then(function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),Ax(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)})}},{key:"getControl",value:function(t){return this.form.get(t.path)}},{key:"removeControl",value:function(t){var e=this;$x.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name),Fx(e._directives,t)})}},{key:"addFormGroup",value:function(t){var e=this;$x.then(function(){var n=e._findContainer(t.path),i=new Gx({});Rx(i,t),n.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(t){var e=this;$x.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})}},{key:"getFormGroup",value:function(t){return this.form.get(t.path)}},{key:"updateModel",value:function(t,e){var n=this;$x.then(function(){n.form.get(t.path).setValue(e)})}},{key:"setValue",value:function(t){this.control.setValue(t)}},{key:"onSubmit",value:function(t){return this.submitted=!0,Mx(this.form,this._directives),this.ngSubmit.emit(t),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(t),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(t){return t.pop(),t.length?this.form.get(t):this.form}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}}]),n}(cx);return t.\u0275fac=function(e){return new(e||t)(ss(ZS,10),ss($S,10))},t.\u0275dir=de({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&_s("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[gl([Zx]),qo]}),t}(),Qx={provide:dx,useExisting:xt(function(){return tE})},Jx=function(){return Promise.resolve(null)}(),tE=function(){var t=function(t){y(n,t);var e=k(n);function n(t,i,r,o){var s;return g(this,n),(s=e.call(this)).control=new Yx,s._registered=!1,s.update=new Ru,s._parent=t,s._setValidators(i),s._setAsyncValidators(r),s.valueAccessor=function(t,e){if(!e)return null;Array.isArray(e);var n=void 0,i=void 0,r=void 0;return e.forEach(function(t){var e;t.constructor===YS?n=t:(e=t,Px.some(function(t){return e.constructor===t})?i=t:r=t)}),r||i||n||null}(a(s),o),s}return v(n,[{key:"ngOnChanges",value:function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),function(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){Ax(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(t){var e=this;Jx.then(function(){e.control.setValue(t,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(t){var e=this,n=t.isDisabled.currentValue,i=""===n||n&&"false"!==n;Jx.then(function(){i&&!e.control.disabled?e.control.disable():!i&&e.control.disabled&&e.control.enable()})}},{key:"path",get:function(){return this._parent?(t=this.name,[].concat(h(this._parent.path),[t])):[this.name];var t}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}}]),n}(dx);return t.\u0275fac=function(e){return new(e||t)(ss(cx,9),ss(ZS,10),ss($S,10),ss(zS,10))},t.\u0275dir=de({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[gl([Qx]),qo,Ie]}),t}(),eE=function(){var t=function t(){g(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=de({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t}(),nE=new bi("NgModelWithFormControlWarning"),iE={provide:cx,useExisting:xt(function(){return rE})},rE=function(){var t=function(t){y(n,t);var e=k(n);function n(t,i){var r;return g(this,n),(r=e.call(this)).validators=t,r.asyncValidators=i,r.submitted=!1,r.directives=[],r.form=null,r.ngSubmit=new Ru,r._setValidators(t),r._setAsyncValidators(i),r}return v(n,[{key:"ngOnChanges",value:function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"addControl",value:function(t){var e=this.form.get(t.path);return Ax(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}},{key:"getControl",value:function(t){return this.form.get(t.path)}},{key:"removeControl",value:function(t){Fx(this.directives,t)}},{key:"addFormGroup",value:function(t){var e=this.form.get(t.path);Rx(e,t),e.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormGroup",value:function(t){}},{key:"getFormGroup",value:function(t){return this.form.get(t.path)}},{key:"addFormArray",value:function(t){var e=this.form.get(t.path);Rx(e,t),e.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormArray",value:function(t){}},{key:"getFormArray",value:function(t){return this.form.get(t.path)}},{key:"updateModel",value:function(t,e){this.form.get(t.path).setValue(e)}},{key:"onSubmit",value:function(t){return this.submitted=!0,Mx(this.form,this.directives),this.ngSubmit.emit(t),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(t),this.submitted=!1}},{key:"_updateDomValue",value:function(){var t=this;this.directives.forEach(function(e){var n=t.form.get(e.path);e.control!==n&&(function(t,e){var n=function(){};e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n),Ix(t,e,!0),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(function(){}))}(e.control||null,e),n&&Ax(n,e),e.control=n)}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_updateRegistrations",value:function(){var t=this;this.form._registerOnCollectionChange(function(){return t._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){Ox(this.form,this,!1),this._oldForm&&Ix(this._oldForm,this,!1)}},{key:"_checkFormPresent",value:function(){}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}}]),n}(cx);return t.\u0275fac=function(e){return new(e||t)(ss(ZS,10),ss($S,10))},t.\u0275dir=de({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&_s("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[gl([iE]),qo,Ie]}),t}(),aE={provide:ZS,useExisting:xt(function(){return sE}),multi:!0},oE={provide:ZS,useExisting:xt(function(){return lE}),multi:!0},sE=function(){var t=function(){function t(){g(this,t),this._required=!1}return v(t,[{key:"validate",value:function(t){return this.required?QS.required(t):null}},{key:"registerOnValidatorChange",value:function(t){this._onChange=t}},{key:"required",get:function(){return this._required},set:function(t){this._required=null!=t&&!1!==t&&"false"!=="".concat(t),this._onChange&&this._onChange()}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=de({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&&is("required",e.required?"":null)},inputs:{required:"required"},features:[gl([aE])]}),t}(),lE=function(){var t=function(t){y(n,t);var e=k(n);function n(){return g(this,n),e.apply(this,arguments)}return v(n,[{key:"validate",value:function(t){return this.required?QS.requiredTrue(t):null}}]),n}(sE);return t.\u0275fac=function(e){return uE(e||t)},t.\u0275dir=de({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&is("required",e.required?"":null)},features:[gl([oE]),qo]}),t}(),uE=vi(lE),cE={provide:ZS,useExisting:xt(function(){return hE}),multi:!0},hE=function(){var t=function(){function t(){g(this,t),this._validator=QS.nullValidator}return v(t,[{key:"ngOnChanges",value:function(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(t){return null!=this.maxlength?this._validator(t):null}},{key:"registerOnValidatorChange",value:function(t){this._onChange=t}},{key:"_createValidator",value:function(){this._validator=QS.maxLength("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=de({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&is("maxlength",e.maxlength?e.maxlength:null)},inputs:{maxlength:"maxlength"},features:[gl([cE]),Ie]}),t}(),dE=function(){var t=function t(){g(this,t)};return t.\u0275mod=ce({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)}}),t}();function fE(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}var pE=function(){var t=function(){function t(){g(this,t)}return v(t,[{key:"group",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this._reduceControls(t),i=null,r=null,a=void 0;return null!=e&&(fE(e)?(i=null!=e.validators?e.validators:null,r=null!=e.asyncValidators?e.asyncValidators:null,a=null!=e.updateOn?e.updateOn:void 0):(i=null!=e.validator?e.validator:null,r=null!=e.asyncValidator?e.asyncValidator:null)),new Gx(n,{asyncValidators:r,updateOn:a,validators:i})}},{key:"control",value:function(t,e,n){return new Yx(t,e,n)}},{key:"array",value:function(t,e,n){var i=this,r=t.map(function(t){return i._createControl(t)});return new Kx(r,e,n)}},{key:"_reduceControls",value:function(t){var e=this,n={};return Object.keys(t).forEach(function(i){n[i]=e._createControl(t[i])}),n}},{key:"_createControl",value:function(t){return t instanceof Yx||t instanceof Gx||t instanceof Kx?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Dt({token:t,factory:t.\u0275fac}),t}(),mE=function(){var t=function t(){g(this,t)};return t.\u0275mod=ce({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[_x],imports:[dE]}),t}(),vE=function(){var t=function(){function t(){g(this,t)}return v(t,null,[{key:"withConfig",value:function(e){return{ngModule:t,providers:[{provide:nE,useValue:e.warnOnNgModelWithFormControl}]}}}]),t}();return t.\u0275mod=ce({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[pE,_x],imports:[dE]}),t}();function gE(t,e){1&t&&Ds(0)}var yE=["*"];function _E(t,e){}var bE=function(t){return{animationDuration:t}},kE=function(t,e){return{value:t,params:e}},wE=["tabBodyWrapper"],CE=["tabHeader"];function SE(t,e){}function xE(t,e){1&t&&as(0,SE,0,0,"ng-template",9),2&t&&ls("cdkPortalOutlet",xs().$implicit.templateLabel)}function EE(t,e){1&t&&$s(0),2&t&&Xs(xs().$implicit.textLabel)}function AE(t,e){if(1&t){var n=vs();cs(0,"div",6),_s("click",function(){nn(n);var t=e.$implicit,i=e.index,r=xs(),a=os(1);return r._handleClick(t,a,i)}),cs(1,"div",7),as(2,xE,1,1,"ng-template",8),as(3,EE,1,1,"ng-template",8),hs(),hs()}if(2&t){var i=e.$implicit,r=e.index,a=xs();js("mat-tab-label-active",a.selectedIndex==r),ls("id",a._getTabLabelId(r))("disabled",i.disabled)("matRippleDisabled",i.disabled||a.disableRipple),is("tabIndex",a._getTabIndex(i,r))("aria-posinset",r+1)("aria-setsize",a._tabs.length)("aria-controls",a._getTabContentId(r))("aria-selected",a.selectedIndex==r)("aria-label",i.ariaLabel||null)("aria-labelledby",!i.ariaLabel&&i.ariaLabelledby?i.ariaLabelledby:null),Aa(2),ls("ngIf",i.templateLabel),Aa(1),ls("ngIf",!i.templateLabel)}}function DE(t,e){if(1&t){var n=vs();cs(0,"mat-tab-body",10),_s("_onCentered",function(){return nn(n),xs()._removeTabBodyWrapperHeight()})("_onCentering",function(t){return nn(n),xs()._setTabBodyWrapperHeight(t)}),hs()}if(2&t){var i=e.$implicit,r=e.index,a=xs();js("mat-tab-body-active",a.selectedIndex==r),ls("id",a._getTabContentId(r))("content",i.content)("position",i.position)("origin",i.origin)("animationDuration",a.animationDuration),is("aria-labelledby",a._getTabLabelId(r))}}var OE=["tabListContainer"],IE=["tabList"],TE=["nextPaginator"],RE=["previousPaginator"],PE=new bi("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(t){return{left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"}}}}),ME=function(){var t=function(){function t(e,n,i,r){g(this,t),this._elementRef=e,this._ngZone=n,this._inkBarPositioner=i,this._animationMode=r}return v(t,[{key:"alignToElement",value:function(t){var e=this;this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return e._setStyles(t)})}):this._setStyles(t)}},{key:"show",value:function(){this._elementRef.nativeElement.style.visibility="visible"}},{key:"hide",value:function(){this._elementRef.nativeElement.style.visibility="hidden"}},{key:"_setStyles",value:function(t){var e=this._inkBarPositioner(t),n=this._elementRef.nativeElement;n.style.left=e.left,n.style.width=e.width}}]),t}();return t.\u0275fac=function(e){return new(e||t)(ss(xl),ss(Cc),ss(PE),ss(Xw,8))},t.\u0275dir=de({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&js("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),t}(),FE=new bi("MatTabContent"),LE=new bi("MatTabLabel"),NE=function(){var t=function(t){y(n,t);var e=k(n);function n(){return g(this,n),e.apply(this,arguments)}return n}(ky);return t.\u0275fac=function(e){return VE(e||t)},t.\u0275dir=de({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[gl([{provide:LE,useExisting:t}]),qo]}),t}(),VE=vi(NE),jE=lC(function t(){g(this,t)}),BE=new bi("MAT_TAB_GROUP"),zE=function(){var t=function(t){y(n,t);var e=k(n);function n(t,i){var r;return g(this,n),(r=e.call(this))._viewContainerRef=t,r._closestTabGroup=i,r.textLabel="",r._contentPortal=null,r._stateChanges=new q,r.position=null,r.origin=null,r.isActive=!1,r}return v(n,[{key:"ngOnChanges",value:function(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"ngOnInit",value:function(){this._contentPortal=new gy(this._explicitContent||this._implicitContent,this._viewContainerRef)}},{key:"_setTemplateLabelInput",value:function(t){t&&(this._templateLabel=t)}},{key:"templateLabel",get:function(){return this._templateLabel},set:function(t){this._setTemplateLabelInput(t)}},{key:"content",get:function(){return this._contentPortal}}]),n}(jE);return t.\u0275fac=function(e){return new(e||t)(ss(su),ss(BE))},t.\u0275cmp=oe({type:t,selectors:[["mat-tab"]],contentQueries:function(t,e,n){var i;1&t&&(Ku(n,LE,!0),Zu(n,FE,!0,eu)),2&t&&(qu(i=Xu())&&(e.templateLabel=i.first),qu(i=Xu())&&(e._explicitContent=i.first))},viewQuery:function(t,e){var n;1&t&&Wu(eu,!0),2&t&&qu(n=Xu())&&(e._implicitContent=n.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[qo,Ie],ngContentSelectors:yE,decls:1,vars:0,template:function(t,e){1&t&&(As(),as(0,gE,1,0,"ng-template"))},encapsulation:2}),t}(),HE={translateTab:lb("translateTab",[db("center, void, left-origin-center, right-origin-center",hb({transform:"none"})),db("left",hb({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),db("right",hb({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),pb("* => left, * => right, left => center, right => center",ub("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),pb("void => left-origin-center",[hb({transform:"translate3d(-100%, 0, 0)"}),ub("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),pb("void => right-origin-center",[hb({transform:"translate3d(100%, 0, 0)"}),ub("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},UE=function(){var t=function(t){y(n,t);var e=k(n);function n(t,i,r,a){var o;return g(this,n),(o=e.call(this,t,i,a))._host=r,o._centeringSub=A.EMPTY,o._leavingSub=A.EMPTY,o}return v(n,[{key:"ngOnInit",value:function(){var t=this;r(i(n.prototype),"ngOnInit",this).call(this),this._centeringSub=this._host._beforeCentering.pipe(Ff(this._host._isCenterPosition(this._host._position))).subscribe(function(e){e&&!t.hasAttached()&&t.attach(t._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(function(){t.detach()})}},{key:"ngOnDestroy",value:function(){r(i(n.prototype),"ngOnDestroy",this).call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}]),n}(wy);return t.\u0275fac=function(e){return new(e||t)(ss(kl),ss(su),ss(xt(function(){return WE})),ss(ah))},t.\u0275dir=de({type:t,selectors:[["","matTabBodyHost",""]],features:[qo]}),t}(),qE=function(){var t=function(){function t(e,n,i){var r=this;g(this,t),this._elementRef=e,this._dir=n,this._dirChangeSubscription=A.EMPTY,this._translateTabComplete=new q,this._onCentering=new Ru,this._beforeCentering=new Ru,this._afterLeavingCenter=new Ru,this._onCentered=new Ru(!0),this.animationDuration="500ms",n&&(this._dirChangeSubscription=n.change.subscribe(function(t){r._computePositionAnimationState(t),i.markForCheck()})),this._translateTabComplete.pipe(Dg(function(t,e){return t.fromState===e.fromState&&t.toState===e.toState})).subscribe(function(t){r._isCenterPosition(t.toState)&&r._isCenterPosition(r._position)&&r._onCentered.emit(),r._isCenterPosition(t.fromState)&&!r._isCenterPosition(r._position)&&r._afterLeavingCenter.emit()})}return v(t,[{key:"ngOnInit",value:function(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}},{key:"ngOnDestroy",value:function(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}},{key:"_onTranslateTabStarted",value:function(t){var e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_isCenterPosition",value:function(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t}},{key:"_computePositionAnimationState",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._getLayoutDirection();this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"}},{key:"_computePositionFromOrigin",value:function(t){var e=this._getLayoutDirection();return"ltr"==e&&t<=0||"rtl"==e&&t>0?"left-origin-center":"right-origin-center"}},{key:"position",set:function(t){this._positionIndex=t,this._computePositionAnimationState()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(ss(xl),ss(ry,8),ss(Kl))},t.\u0275dir=de({type:t,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t}(),WE=function(){var t=function(t){y(n,t);var e=k(n);function n(t,i,r){return g(this,n),e.call(this,t,i,r)}return n}(qE);return t.\u0275fac=function(e){return new(e||t)(ss(xl),ss(ry,8),ss(Kl))},t.\u0275cmp=oe({type:t,selectors:[["mat-tab-body"]],viewQuery:function(t,e){var n;1&t&&Yu(Cy,!0),2&t&&qu(n=Xu())&&(e._portalHost=n.first)},hostAttrs:[1,"mat-tab-body"],features:[qo],decls:3,vars:6,consts:[[1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){1&t&&(cs(0,"div",0,1),_s("@translateTab.start",function(t){return e._onTranslateTabStarted(t)})("@translateTab.done",function(t){return e._translateTabComplete.next(t)}),as(2,_E,0,0,"ng-template",2),hs()),2&t&&ls("@translateTab",Cu(3,kE,e._position,wu(1,bE,e.animationDuration)))},directives:[UE],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[HE.translateTab]}}),t}(),YE=new bi("MAT_TABS_CONFIG"),GE=0,KE=function t(){g(this,t)},ZE=uC(cC(function t(e){g(this,t),this._elementRef=e}),"primary"),$E=function(){var t=function(t){y(n,t);var e=k(n);function n(t,i,r,a){var o;return g(this,n),(o=e.call(this,t))._changeDetectorRef=i,o._animationMode=a,o._tabs=new Mu,o._indexToSelect=0,o._tabBodyWrapperHeight=0,o._tabsSubscription=A.EMPTY,o._tabLabelSubscription=A.EMPTY,o._selectedIndex=null,o.headerPosition="above",o.selectedIndexChange=new Ru,o.focusChange=new Ru,o.animationDone=new Ru,o.selectedTabChange=new Ru(!0),o._groupId=GE++,o.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",o.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,o.dynamicHeight=!(!r||null==r.dynamicHeight)&&r.dynamicHeight,o}return v(n,[{key:"ngAfterContentChecked",value: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())}},{key:"ngAfterContentInit",value:function(){var t=this;this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(function(){if(t._clampTabIndex(t._indexToSelect)===t._selectedIndex)for(var e=t._tabs.toArray(),n=0;n.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 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}\n"],encapsulation:2}),t}(),QE=lC(function t(){g(this,t)}),JE=function(){var t=function(t){y(n,t);var e=k(n);function n(t){var i;return g(this,n),(i=e.call(this)).elementRef=t,i}return v(n,[{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"getOffsetLeft",value:function(){return this.elementRef.nativeElement.offsetLeft}},{key:"getOffsetWidth",value:function(){return this.elementRef.nativeElement.offsetWidth}}]),n}(QE);return t.\u0275fac=function(e){return new(e||t)(ss(xl))},t.\u0275dir=de({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,e){2&t&&(is("aria-disabled",!!e.disabled),js("mat-tab-disabled",e.disabled))},inputs:{disabled:"disabled"},features:[qo]}),t}(),tA=ty({passive:!0}),eA=function(){var t=function(){function t(e,n,i,r,a,o,s){var l=this;g(this,t),this._elementRef=e,this._changeDetectorRef=n,this._viewportRuler=i,this._dir=r,this._ngZone=a,this._platform=o,this._animationMode=s,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new q,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new q,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new Ru,this.indexFocused=new Ru,a.runOutsideAngular(function(){mg(e.nativeElement,"mouseleave").pipe(jg(l._destroyed)).subscribe(function(){l._stopInterval()})})}return v(t,[{key:"ngAfterViewInit",value:function(){var t=this;mg(this._previousPaginator.nativeElement,"touchstart",tA).pipe(jg(this._destroyed)).subscribe(function(){t._handlePaginatorPress("before")}),mg(this._nextPaginator.nativeElement,"touchstart",tA).pipe(jg(this._destroyed)).subscribe(function(){t._handlePaginatorPress("after")})}},{key:"ngAfterContentInit",value:function(){var t=this,e=this._dir?this._dir.change:Od(null),n=this._viewportRuler.change(150),i=function(){t.updatePagination(),t._alignInkBarToSelectedTab()};this._keyManager=new L_(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(i):i(),dt(e,n,this._items.changes).pipe(jg(this._destroyed)).subscribe(function(){Promise.resolve().then(i),t._keyManager.withHorizontalOrientation(t._getLayoutDirection())}),this._keyManager.change.pipe(jg(this._destroyed)).subscribe(function(e){t.indexFocused.emit(e),t._setTabFocus(e)})}},{key:"ngAfterContentChecked",value:function(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}},{key:"_handleKeydown",value:function(t){if(!Ny(t))switch(t.keyCode){case Dy:case Iy:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t));break;default:this._keyManager.onKeydown(t)}}},{key:"_onContentChanges",value:function(){var t=this,e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(function(){t.updatePagination(),t._alignInkBarToSelectedTab(),t._changeDetectorRef.markForCheck()}))}},{key:"updatePagination",value:function(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}},{key:"_isValidIndex",value:function(t){if(!this._items)return!0;var e=this._items?this._items.toArray()[t]:null;return!!e&&!e.disabled}},{key:"_setTabFocus",value:function(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();var e=this._tabListContainer.nativeElement,n=this._getLayoutDirection();e.scrollLeft="ltr"==n?0:e.scrollWidth-e.offsetWidth}}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_updateTabScrollPosition",value:function(){if(!this.disablePagination){var t=this.scrollDistance,e="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform="translateX(".concat(Math.round(e),"px)"),(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}}},{key:"_scrollHeader",value:function(t){return this._scrollTo(this._scrollDistance+("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}},{key:"_handlePaginatorClick",value:function(t){this._stopInterval(),this._scrollHeader(t)}},{key:"_scrollToLabel",value:function(t){if(!this.disablePagination){var e=this._items?this._items.toArray()[t]:null;if(e){var n,i,r=this._tabListContainer.nativeElement.offsetWidth,a=e.elementRef.nativeElement,o=a.offsetLeft,s=a.offsetWidth;"ltr"==this._getLayoutDirection()?i=(n=o)+s:n=(i=this._tabList.nativeElement.offsetWidth-o)-s;var l=this.scrollDistance,u=this.scrollDistance+r;nu&&(this.scrollDistance+=i-u+60)}}}},{key:"_checkPaginationEnabled",value:function(){if(this.disablePagination)this._showPaginationControls=!1;else{var t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}}},{key:"_checkScrollingControls",value:function(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}},{key:"_getMaxScrollDistance",value:function(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}},{key:"_alignInkBarToSelectedTab",value: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()}},{key:"_stopInterval",value:function(){this._stopScrolling.next()}},{key:"_handlePaginatorPress",value:function(t,e){var n=this;e&&null!=e.button&&0!==e.button||(this._stopInterval(),Lg(650,100).pipe(jg(dt(this._stopScrolling,this._destroyed))).subscribe(function(){var e=n._scrollHeader(t),i=e.distance;(0===i||i>=e.maxScrollDistance)&&n._stopInterval()}))}},{key:"_scrollTo",value:function(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(t){t=ug(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}},{key:"focusIndex",get:function(){return this._keyManager?this._keyManager.activeItemIndex:0},set:function(t){this._isValidIndex(t)&&this.focusIndex!==t&&this._keyManager&&this._keyManager.setActiveItem(t)}},{key:"scrollDistance",get:function(){return this._scrollDistance},set:function(t){this._scrollTo(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(ss(xl),ss(Kl),ss(dy),ss(ry,8),ss(Cc),ss($g),ss(Xw,8))},t.\u0275dir=de({type:t,inputs:{disablePagination:"disablePagination"}}),t}(),nA=function(){var t=function(t){y(n,t);var e=k(n);function n(t,i,r,a,o,s,l){var u;return g(this,n),(u=e.call(this,t,i,r,a,o,s,l))._disableRipple=!1,u}return v(n,[{key:"_itemSelected",value:function(t){t.preventDefault()}},{key:"disableRipple",get:function(){return this._disableRipple},set:function(t){this._disableRipple=lg(t)}}]),n}(eA);return t.\u0275fac=function(e){return new(e||t)(ss(xl),ss(Kl),ss(dy),ss(ry,8),ss(Cc),ss($g),ss(Xw,8))},t.\u0275dir=de({type:t,inputs:{disableRipple:"disableRipple"},features:[qo]}),t}(),iA=function(){var t=function(t){y(n,t);var e=k(n);function n(t,i,r,a,o,s,l){return g(this,n),e.call(this,t,i,r,a,o,s,l)}return n}(nA);return t.\u0275fac=function(e){return new(e||t)(ss(xl),ss(Kl),ss(dy),ss(ry,8),ss(Cc),ss($g),ss(Xw,8))},t.\u0275cmp=oe({type:t,selectors:[["mat-tab-header"]],contentQueries:function(t,e,n){var i;1&t&&Ku(n,JE,!1),2&t&&qu(i=Xu())&&(e._items=i)},viewQuery:function(t,e){var n;1&t&&(Wu(ME,!0),Wu(OE,!0),Wu(IE,!0),Yu(TE,!0),Yu(RE,!0)),2&t&&(qu(n=Xu())&&(e._inkBar=n.first),qu(n=Xu())&&(e._tabListContainer=n.first),qu(n=Xu())&&(e._tabList=n.first),qu(n=Xu())&&(e._nextPaginator=n.first),qu(n=Xu())&&(e._previousPaginator=n.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e){2&t&&js("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[qo],ngContentSelectors:yE,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&&(As(),cs(0,"div",0,1),_s("click",function(){return e._handlePaginatorClick("before")})("mousedown",function(t){return e._handlePaginatorPress("before",t)})("touchend",function(){return e._stopInterval()}),ds(2,"div",2),hs(),cs(3,"div",3,4),_s("keydown",function(t){return e._handleKeydown(t)}),cs(5,"div",5,6),_s("cdkObserveContent",function(){return e._onContentChanges()}),cs(7,"div",7),Ds(8),hs(),ds(9,"mat-ink-bar"),hs(),hs(),cs(10,"div",8,9),_s("mousedown",function(t){return e._handlePaginatorPress("after",t)})("click",function(){return e._handlePaginatorClick("after")})("touchend",function(){return e._stopInterval()}),ds(12,"div",2),hs()),2&t&&(js("mat-tab-header-pagination-disabled",e._disableScrollBefore),ls("matRippleDisabled",e._disableScrollBefore||e.disableRipple),Aa(5),js("_mat-animation-noopable","NoopAnimations"===e._animationMode),Aa(5),js("mat-tab-header-pagination-disabled",e._disableScrollAfter),ls("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[NC,S_,ME],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-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .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 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 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}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .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:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-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}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),t}(),rA=function(){var t=function t(){g(this,t)};return t.\u0275mod=ce({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},imports:[[Yh,sC,xy,VC,x_,ib],sC]}),t}();function aA(t,e){if(1&t){var n=vs();cs(0,"uds-field-text",2),_s("changed",function(t){return nn(n),xs().changed.emit(t)}),hs()}2&t&&ls("field",xs().field)}function oA(t,e){if(1&t){var n=vs();cs(0,"uds-field-textbox",2),_s("changed",function(t){return nn(n),xs().changed.emit(t)}),hs()}2&t&&ls("field",xs().field)}function sA(t,e){if(1&t){var n=vs();cs(0,"uds-field-numeric",2),_s("changed",function(t){return nn(n),xs().changed.emit(t)}),hs()}2&t&&ls("field",xs().field)}function lA(t,e){if(1&t){var n=vs();cs(0,"uds-field-password",2),_s("changed",function(t){return nn(n),xs().changed.emit(t)}),hs()}2&t&&ls("field",xs().field)}function uA(t,e){if(1&t){var n=vs();cs(0,"uds-field-hidden",2),_s("changed",function(t){return nn(n),xs().changed.emit(t)}),hs()}2&t&&ls("field",xs().field)}function cA(t,e){if(1&t){var n=vs();cs(0,"uds-field-choice",2),_s("changed",function(t){return nn(n),xs().changed.emit(t)}),hs()}2&t&&ls("field",xs().field)}function hA(t,e){if(1&t){var n=vs();cs(0,"uds-field-multichoice",2),_s("changed",function(t){return nn(n),xs().changed.emit(t)}),hs()}2&t&&ls("field",xs().field)}function dA(t,e){if(1&t){var n=vs();cs(0,"uds-field-editlist",2),_s("changed",function(t){return nn(n),xs().changed.emit(t)}),hs()}2&t&&ls("field",xs().field)}function fA(t,e){if(1&t){var n=vs();cs(0,"uds-field-checkbox",2),_s("changed",function(t){return nn(n),xs().changed.emit(t)}),hs()}2&t&&ls("field",xs().field)}function pA(t,e){if(1&t){var n=vs();cs(0,"uds-field-imgchoice",2),_s("changed",function(t){return nn(n),xs().changed.emit(t)}),hs()}2&t&&ls("field",xs().field)}function mA(t,e){if(1&t){var n=vs();cs(0,"uds-field-date",2),_s("changed",function(t){return nn(n),xs().changed.emit(t)}),hs()}2&t&&ls("field",xs().field)}function vA(t,e){if(1&t){var n=vs();cs(0,"uds-field-tags",2),_s("changed",function(t){return nn(n),xs().changed.emit(t)}),hs()}2&t&&ls("field",xs().field)}var gA=function(){function t(){this.UDSGuiFieldType=VS,this.changed=new Ru}return t.prototype.ngOnInit=function(){},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=oe({type:t,selectors:[["uds-field"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:13,vars:14,consts:[["matTooltipShowDelay","1000",1,"field",3,"ngSwitch","matTooltip"],[3,"field","changed",4,"ngSwitchCase"],[3,"field","changed"]],template:function(t,e){1&t&&(cs(0,"div",0),as(1,aA,1,1,"uds-field-text",1),as(2,oA,1,1,"uds-field-textbox",1),as(3,sA,1,1,"uds-field-numeric",1),as(4,lA,1,1,"uds-field-password",1),as(5,uA,1,1,"uds-field-hidden",1),as(6,cA,1,1,"uds-field-choice",1),as(7,hA,1,1,"uds-field-multichoice",1),as(8,dA,1,1,"uds-field-editlist",1),as(9,fA,1,1,"uds-field-checkbox",1),as(10,pA,1,1,"uds-field-imgchoice",1),as(11,mA,1,1,"uds-field-date",1),as(12,vA,1,1,"uds-field-tags",1),hs()),2&t&&(ls("ngSwitch",e.field.gui.type)("matTooltip",e.field.gui.tooltip),Aa(1),ls("ngSwitchCase",e.UDSGuiFieldType.TEXT),Aa(1),ls("ngSwitchCase",e.UDSGuiFieldType.TEXTBOX),Aa(1),ls("ngSwitchCase",e.UDSGuiFieldType.NUMERIC),Aa(1),ls("ngSwitchCase",e.UDSGuiFieldType.PASSWORD),Aa(1),ls("ngSwitchCase",e.UDSGuiFieldType.HIDDEN),Aa(1),ls("ngSwitchCase",e.UDSGuiFieldType.CHOICE),Aa(1),ls("ngSwitchCase",e.UDSGuiFieldType.MULTI_CHOICE),Aa(1),ls("ngSwitchCase",e.UDSGuiFieldType.EDITLIST),Aa(1),ls("ngSwitchCase",e.UDSGuiFieldType.CHECKBOX),Aa(1),ls("ngSwitchCase",e.UDSGuiFieldType.IMAGECHOICE),Aa(1),ls("ngSwitchCase",e.UDSGuiFieldType.DATE),Aa(1),ls("ngSwitchCase",e.UDSGuiFieldType.TAGLIST))},styles:["uds-field[_ngcontent-%COMP%]{flex:1 50%} .mat-form-field{width:calc(100% - 1px)} .mat-form-field-flex{padding-top:0!important} .mat-tooltip{font-size:.9rem!important;margin:0!important;max-width:26em!important}"]}),t}();function yA(t,e){1&t&&$s(0),2&t&&Qs(" ",xs().$implicit," ")}function _A(t,e){if(1&t){var n=vs();cs(0,"uds-field",7),_s("changed",function(t){return nn(n),xs(3).changed.emit(t)}),hs()}2&t&&ls("field",e.$implicit)}function bA(t,e){if(1&t&&(cs(0,"mat-tab"),as(1,yA,1,1,"ng-template",4),cs(2,"div",5),as(3,_A,1,1,"uds-field",6),hs(),hs()),2&t){var n=e.$implicit,i=xs(2);Aa(3),ls("ngForOf",i.fieldsByTab[n])}}function kA(t,e){if(1&t&&(cs(0,"mat-tab-group",2),as(1,bA,4,1,"mat-tab",3),hs()),2&t){var n=xs();ls("disableRipple",!0)("@.disabled",!0),Aa(1),ls("ngForOf",n.tabs)}}function wA(t,e){if(1&t&&(cs(0,"div"),ds(1,"uds-field",8),hs()),2&t){var n=e.$implicit;Aa(1),ls("field",n)}}function CA(t,e){1&t&&as(0,wA,2,1,"div",3),2&t&&ls("ngForOf",xs().fields)}var SA=django.gettext("Main"),xA=function(){function t(){this.changed=new Ru}return t.prototype.ngOnInit=function(){var t=this;this.tabs=new Array,this.fieldsByTab={},this.fields.forEach(function(e){var n=void 0===e.gui.tab?SA:e.gui.tab;t.tabs.includes(n)||(t.tabs.push(n),t.fieldsByTab[n]=new Array),t.fieldsByTab[n].push(e)})},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=oe({type:t,selectors:[["uds-form"]],inputs:{fields:"fields"},outputs:{changed:"changed"},decls:3,vars:2,consts:[[3,"disableRipple",4,"ngIf","ngIfElse"],["onlyone",""],[3,"disableRipple"],[4,"ngFor","ngForOf"],["mat-tab-label",""],[1,"content"],[3,"field","changed",4,"ngFor","ngForOf"],[3,"field","changed"],[3,"field"]],template:function(t,e){if(1&t&&(as(0,kA,2,3,"mat-tab-group",0),as(1,CA,1,1,"ng-template",null,1,ec)),2&t){var n=os(2);ls("ngIf",e.tabs.length>1)("ngIfElse",n)}},directives:[Th,XE,Oh,zE,NE,gA],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 EA(t,e){if(1&t){var n=vs();cs(0,"button",10),_s("click",function(){return nn(n),xs().customButtonClicked()}),$s(1),hs()}if(2&t){var i=xs();Aa(1),Xs(i.data.customButton)}}var AA,DA=function(){function t(t,e){this.dialogRef=t,this.data=e,this.onEvent=new Ru(!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;n.gui.required&&0!==i&&(!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)(ss(sS),ss(uS))},t.\u0275cmp=oe({type:t,selectors:[["uds-modal-form"]],decls:17,vars:7,consts:[["mat-dialog-title","",3,"innerHtml"],["vc",""],["autocomplete","off"],[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&&(ds(0,"h4",0),Au(1,"safeHtml"),cs(2,"mat-dialog-content",null,1),cs(4,"form",2),cs(5,"uds-form",3),_s("changed",function(t){return e.changed(t)}),hs(),hs(),hs(),cs(6,"mat-dialog-actions"),cs(7,"div",4),cs(8,"div",5),as(9,EA,2,1,"button",6),hs(),cs(10,"div",7),cs(11,"button",8),_s("click",function(){return e.dialogRef.close()}),cs(12,"uds-translate"),$s(13,"Discard & close"),hs(),hs(),cs(14,"button",9),_s("click",function(){return e.save()}),cs(15,"uds-translate"),$s(16,"Save"),hs(),hs(),hs(),hs(),hs()),2&t&&(ls("innerHtml",Du(1,5,e.data.title),Dr),Aa(5),ls("fields",e.data.guiFields),Aa(4),ls("ngIf",null!=e.data.customButton),Aa(2),ls("disabled",e.saving),Aa(3),ls("disabled",e.saving))},directives:[gS,yS,eE,mx,Xx,xA,_S,Th,DS,TS,Ah],pipes:[RS],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}(),OA=function(){function t(t){this.gui=t}return t.prototype.executeCallback=function(t,e,n,i){var r=this;void 0===i&&(i={});var a=new Array;e.gui.fills.parameters.forEach(function(t){a.push(t+"="+encodeURIComponent(n[t].value))}),t.table.rest.callback(e.gui.fills.callbackName,a.join("&")).subscribe(function(e){var a=new Array;e.forEach(function(t){var e=n[t.name];void 0!==e&&(void 0!==e.gui.fills&&a.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:""))}),a.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===VS.TEXT&&t.gui.multiline&&(t.gui.type=VS.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 a=window.innerWidth<800?"80%":"50%";return this.gui.dialog.open(DA,{position:{top:"64px"},width:a,data:{title:t,guiFields:e,customButton:i,gui:this.gui},disableClose:!0}).componentInstance.onEvent},t.prototype.typedForm=function(t,e,n,i,r,a,o){var s=this;o=o||{};var l=new Ru,u=n?"test":void 0,c={},h={},d=function(e){h.hasOwnProperty(e.name)&&""!==e.value&&void 0!==e.value&&s.executeCallback(t,e,c)};return o.snack||(o.snack=this.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss"))),t.table.rest.gui(a).subscribe(function(n){o.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&&(h[t.name]=t.gui.fills)}),s.modalForm(e,n,r,u).subscribe(function(e){switch(e.data&&(e.data.data_type=a),e.type){case u: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(a,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,h=n;i"+i.join(", ")+"";this.gui.yesno(e,a,!0).subscribe(function(e){if(e){var i=r.length,a=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&&a()},function(t){0==--i&&a()})})}})},t}(),IA=function(){function t(t,e){this.dialog=t,this.snackbar=e,this.forms=new OA(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(NS,{width:r,data:{title:t,body:e,autoclose:n,type:LS.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(NS,{width:i,data:{title:t,body:e,type:LS.yesno,warnOnYes:n},disableClose:!0}).componentInstance.yesno},t.prototype.icon=function(t,e){return void 0===e&&(e="24px"),''},t}(),TA=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}({}),RA=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}({}),PA="provider",MA="service",FA="pool",LA="user",NA="group",VA="transport",jA="osmanager",BA="calendar",zA="poolgroup",HA={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")},UA=function(){function t(t){this.router=t}return t.getGotoButton=function(t,e,n){return{id:t,html:'link'+django.gettext("Go to")+" "+HA[t]+"",type:RA.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 PA:this.gotoProvider(i(0));break;case MA:this.gotoService(i(0),i(1));break;case FA:this.gotoServicePool(i(0));break;case"authenticator":this.gotoAuthenticator(i(0));break;case LA:this.gotoUser(i(0),i(1));break;case NA:this.gotoGroup(i(0),i(1));break;case VA:this.gotoTransport(i(0));break;case jA:this.gotoOSManager(i(0));break;case BA:this.gotoCalendar(i(0));break;case zA:this.gotoPoolGroup(i(0))}}catch(r){}},t}(),qA=function(){function t(e){g(this,t),this.total=e}return v(t,[{key:"call",value:function(t,e){return e.subscribe(new WA(t,this.total))}}]),t}(),WA=function(t){y(n,t);var e=k(n);function n(t,i){var r;return g(this,n),(r=e.call(this,t)).total=i,r.count=0,r}return v(n,[{key:"_next",value:function(t){++this.count>this.total&&this.destination.next(t)}}]),n}(M),YA=new Set,GA=function(){var t=function(){function t(e){g(this,t),this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):KA}return v(t,[{key:"matchMedia",value:function(t){return this._platform.WEBKIT&&function(t){if(!YA.has(t))try{AA||((AA=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(AA)),AA.sheet&&(AA.sheet.insertRule("@media ".concat(t," {.fx-query-test{ }}"),0),YA.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Ui($g))},t.\u0275prov=Dt({factory:function(){return new t(Ui($g))},token:t,providedIn:"root"}),t}();function KA(t){return{matches:"all"===t||""===t,media:t,addListener:function(){},removeListener:function(){}}}var ZA=function(){var t=function(){function t(e,n){g(this,t),this._mediaMatcher=e,this._zone=n,this._queries=new Map,this._destroySubject=new q}return v(t,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(t){var e=this;return $A(hg(t)).some(function(t){return e._registerQuery(t).mql.matches})}},{key:"observe",value:function(t){var e=this,n=_f($A(hg(t)).map(function(t){return e._registerQuery(t).observable}));return(n=Sf(n.pipe(Rf(1)),n.pipe(function(t){return t.lift(new qA(1))},y_(0)))).pipe(G(function(t){var e={matches:!1,breakpoints:{}};return t.forEach(function(t){var n=t.matches,i=t.query;e.matches=e.matches||n,e.breakpoints[i]=n}),e}))}},{key:"_registerQuery",value:function(t){var e=this;if(this._queries.has(t))return this._queries.get(t);var n=this._mediaMatcher.matchMedia(t),i={observable:new j(function(t){var i=function(n){return e._zone.run(function(){return t.next(n)})};return n.addListener(i),function(){n.removeListener(i)}}).pipe(Ff(n),G(function(e){return{query:t,matches:e.matches}}),jg(this._destroySubject)),mql:n};return this._queries.set(t,i),i}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Ui(GA),Ui(Cc))},t.\u0275prov=Dt({factory:function(){return new t(Ui(GA),Ui(Cc))},token:t,providedIn:"root"}),t}();function $A(t){return t.map(function(t){return t.split(",")}).reduce(function(t,e){return t.concat(e)}).map(function(t){return t.trim()})}function XA(t,e){if(1&t){var n=vs();cs(0,"div",1),cs(1,"button",2),_s("click",function(){return nn(n),xs().action()}),$s(2),hs(),hs()}if(2&t){var i=xs();Aa(2),Xs(i.data.action)}}function QA(t,e){}var JA=new bi("MatSnackBarData"),tD=function t(){g(this,t),this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"},eD=Math.pow(2,31)-1,nD=function(){function t(e,n){var i=this;g(this,t),this._overlayRef=n,this._afterDismissed=new q,this._afterOpened=new q,this._onAction=new q,this._dismissedByAction=!1,this.containerInstance=e,this.onAction().subscribe(function(){return i.dismiss()}),e._onExit.subscribe(function(){return i._finishDismiss()})}return v(t,[{key:"dismiss",value:function(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}},{key:"dismissWithAction",value:function(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete())}},{key:"closeWithAction",value:function(){this.dismissWithAction()}},{key:"_dismissAfter",value:function(t){var e=this;this._durationTimeoutId=setTimeout(function(){return e.dismiss()},Math.min(t,eD))}},{key:"_open",value:function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}},{key:"_finishDismiss",value:function(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}},{key:"afterDismissed",value:function(){return this._afterDismissed}},{key:"afterOpened",value:function(){return this.containerInstance._onEnter}},{key:"onAction",value:function(){return this._onAction}}]),t}(),iD=function(){var t=function(){function t(e,n){g(this,t),this.snackBarRef=e,this.data=n}return v(t,[{key:"action",value:function(){this.snackBarRef.dismissWithAction()}},{key:"hasAction",get:function(){return!!this.data.action}}]),t}();return t.\u0275fac=function(e){return new(e||t)(ss(nD),ss(JA))},t.\u0275cmp=oe({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&&(cs(0,"span"),$s(1),hs(),as(2,XA,3,1,"div",0)),2&t&&(Aa(1),Xs(e.data.message),Aa(1),ls("ngIf",e.hasAction))},directives:[Th,DS],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}\n"],encapsulation:2,changeDetection:0}),t}(),rD={snackBarState:lb("state",[db("void, hidden",hb({transform:"scale(0.8)",opacity:0})),db("visible",hb({transform:"scale(1)",opacity:1})),pb("* => visible",ub("150ms cubic-bezier(0, 0, 0.2, 1)")),pb("* => void, * => hidden",ub("75ms cubic-bezier(0.4, 0.0, 1, 1)",hb({opacity:0})))])},aD=function(){var t=function(t){y(n,t);var e=k(n);function n(t,i,r,a,o){var s;return g(this,n),(s=e.call(this))._ngZone=t,s._elementRef=i,s._changeDetectorRef=r,s._platform=a,s.snackBarConfig=o,s._announceDelay=150,s._destroyed=!1,s._onAnnounce=new q,s._onExit=new q,s._onEnter=new q,s._animationState="void",s.attachDomPortal=function(t){return s._assertNotAttached(),s._applySnackBarClasses(),s._portalOutlet.attachDomPortal(t)},s._live="assertive"!==o.politeness||o.announcementMessage?"off"===o.politeness?"off":"polite":"assertive",s}return v(n,[{key:"attachComponentPortal",value:function(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(t)}},{key:"attachTemplatePortal",value:function(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(t)}},{key:"onAnimationEnd",value: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()})}}},{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}},{key:"exit",value:function(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._onExit}},{key:"ngOnDestroy",value:function(){this._destroyed=!0,this._completeExit()}},{key:"_completeExit",value:function(){var t=this;this._ngZone.onMicrotaskEmpty.pipe(Rf(1)).subscribe(function(){t._onExit.next(),t._onExit.complete()})}},{key:"_applySnackBarClasses",value: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")}},{key:"_assertNotAttached",value:function(){this._portalOutlet.hasAttached()}},{key:"_screenReaderAnnounce",value:function(){var t=this;this._announceTimeoutId||this._ngZone.runOutsideAngular(function(){t._announceTimeoutId=setTimeout(function(){var e=t._elementRef.nativeElement.querySelector("[aria-hidden]"),n=t._elementRef.nativeElement.querySelector("[aria-live]");if(e&&n){var i=null;t._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(i=document.activeElement),e.removeAttribute("aria-hidden"),n.appendChild(e),null==i||i.focus(),t._onAnnounce.next(),t._onAnnounce.complete()}},t._announceDelay)})}}]),n}(_y);return t.\u0275fac=function(e){return new(e||t)(ss(Cc),ss(xl),ss(Kl),ss($g),ss(tD))},t.\u0275cmp=oe({type:t,selectors:[["snack-bar-container"]],viewQuery:function(t,e){var n;1&t&&Wu(wy,!0),2&t&&qu(n=Xu())&&(e._portalOutlet=n.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(t,e){1&t&&bs("@state.done",function(t){return e.onAnimationEnd(t)}),2&t&&el("@state",e._animationState)},features:[qo],decls:3,vars:1,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(t,e){1&t&&(cs(0,"div",0),as(1,QA,0,0,"ng-template",1),hs(),ds(2,"div")),2&t&&(Aa(2),is("aria-live",e._live))},directives:[wy],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}.cdk-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%}\n"],encapsulation:2,data:{animation:[rD.snackBarState]}}),t}(),oD=function(){var t=function t(){g(this,t)};return t.\u0275mod=ce({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},imports:[[g_,xy,Yh,IS,sC],sC]}),t}(),sD=new bi("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new tD}}),lD=function(){var t=function(){function t(e,n,i,r,a,o){g(this,t),this._overlay=e,this._live=n,this._injector=i,this._breakpointObserver=r,this._parentSnackBar=a,this._defaultConfig=o,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=iD,this.snackBarContainerComponent=aD,this.handsetCssClass="mat-snack-bar-handset"}return v(t,[{key:"openFromComponent",value:function(t,e){return this._attach(t,e)}},{key:"openFromTemplate",value:function(t,e){return this._attach(t,e)}},{key:"open",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,i=Object.assign(Object.assign({},this._defaultConfig),n);return i.data={message:t,action:e},i.announcementMessage===t&&(i.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,i)}},{key:"dismiss",value:function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}},{key:"ngOnDestroy",value:function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}},{key:"_attachSnackBarContainer",value:function(t,e){var n=Ho.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:tD,useValue:e}]}),i=new vy(this.snackBarContainerComponent,e.viewContainerRef,n),r=t.attach(i);return r.instance.snackBarConfig=e,r.instance}},{key:"_attach",value:function(t,e){var n=this,i=Object.assign(Object.assign(Object.assign({},new tD),this._defaultConfig),e),r=this._createOverlay(i),a=this._attachSnackBarContainer(r,i),o=new nD(a,r);if(t instanceof eu){var s=new gy(t,null,{$implicit:i.data,snackBarRef:o});o.instance=a.attachTemplatePortal(s)}else{var l=this._createInjector(i,o),u=new vy(t,void 0,l),c=a.attachComponentPortal(u);o.instance=c.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(jg(r.detachments())).subscribe(function(t){var e=r.overlayElement.classList;t.matches?e.add(n.handsetCssClass):e.remove(n.handsetCssClass)}),i.announcementMessage&&a._onAnnounce.subscribe(function(){n._live.announce(i.announcementMessage,i.politeness)}),this._animateSnackBar(o,i),this._openedSnackBarRef=o,this._openedSnackBarRef}},{key:"_animateSnackBar",value: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)})}},{key:"_createOverlay",value:function(t){var e=new Yy;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,a=!r&&"center"!==t.horizontalPosition;return r?n.left("0"):a?n.right("0"):n.centerHorizontally(),"top"===t.verticalPosition?n.top("0"):n.bottom("0"),e.positionStrategy=n,this._overlay.create(e)}},{key:"_createInjector",value:function(t,e){return Ho.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:nD,useValue:e},{provide:JA,useValue:t.data}]})}},{key:"_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}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Ui(h_),Ui(W_),Ui(Ho),Ui(ZA),Ui(t,12),Ui(sD))},t.\u0275prov=Dt({factory:function(){return new t(Ui(h_),Ui(W_),Ui(xo),Ui(ZA),Ui(t,12),Ui(sD))},token:t,providedIn:oD}),t}(),uD=function(){function t(t,e,n,i,r,a){this.http=t,this.router=e,this.dialog=n,this.snackbar=i,this.sanitizer=r,this.dateAdapter=a,this.user=new sg(udsData.profile),this.navigation=new UA(this.router),this.gui=new IA(this.dialog,this.snackbar),this.dateAdapter.setLocale(this.config.language)}return Object.defineProperty(t.prototype,"config",{get:function(){return udsData.config},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"notices",{get:function(){return udsData.errors},enumerable:!1,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=Dt({token:t,factory:t.\u0275fac=function(e){return new(e||t)(Ui(Xd),Ui(Fv),Ui(pS),Ui(lD),Ui(Sd),Ui(vC))},providedIn:"root"}),t}(),cD=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=Dt({token:t,factory:t.\u0275fac=function(e){return new(e||t)(Ui(uD))},providedIn:"root"}),t}(),hD=function(t,e){return(hD=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 dD(t,e){function n(){this.constructor=t}hD(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var fD=function(t){return t[t.NONE=0]="NONE",t[t.READ=32]="READ",t[t.MANAGEMENT=64]="MANAGEMENT",t[t.ALL=96]="ALL",t}({}),pD=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 Ld).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),Hg(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(jf(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(jf(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(jf(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(jf(function(t){return e.handleError(t)}))},t.prototype.permision=function(){return this.api.user.isAdmin?fD.ALL:fD.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,a=this.getPath("permissions/"+this.paths.base+"/"+t+"/"+e+"/add/"+n);return this.api.http.put(a,{perm:i},{headers:this.headers}).pipe(jf(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(jf(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 mD(this,t,e)},t.prototype.invoke=function(t,e){var n=t;return e&&(n=n+"?"+e),this.get(n)},t}(),mD=function(t){function e(e,n,i,r){var a=t.call(this,e.api,[e.paths.base,n,i].join("/"))||this;return a.parentModel=e,a.parentId=n,a.model=i,a.perm=r,a}return dD(e,t),e.prototype.permision=function(){return this.perm||fD.ALL},e}(pD),vD=function(t){function e(e){var n=t.call(this,e,"providers")||this;return n.api=e,n}return dD(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}(pD),gD=function(t){function e(e){var n=t.call(this,e,"authenticators")||this;return n.api=e,n}return dD(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}(pD),yD=function(t){function e(e){var n=t.call(this,e,"osmanagers")||this;return n.api=e,n}return dD(e,t),e}(pD),_D=function(t){function e(e){var n=t.call(this,e,"transports")||this;return n.api=e,n}return dD(e,t),e}(pD),bD=function(t){function e(e){var n=t.call(this,e,"networks")||this;return n.api=e,n}return dD(e,t),e}(pD),kD=function(t){function e(e){var n=t.call(this,e,"servicespools")||this;return n.api=e,n}return dD(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}(pD),wD=function(t){function e(e){var n=t.call(this,e,"metapools")||this;return n.api=e,n}return dD(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}(pD),CD=function(t){function e(e){var n=t.call(this,e,"config")||this;return n.api=e,n}return dD(e,t),e}(pD),SD=function(t){function e(e){var n=t.call(this,e,"gallery/images")||this;return n.api=e,n}return dD(e,t),e}(pD),xD=function(t){function e(e){var n=t.call(this,e,"gallery/servicespoolgroups")||this;return n.api=e,n}return dD(e,t),e}(pD),ED=function(t){function e(e){var n=t.call(this,e,"system")||this;return n.api=e,n}return dD(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}(pD),AD=function(t){function e(e){var n=t.call(this,e,"reports")||this;return n.api=e,n}return dD(e,t),e.prototype.types=function(){return Od([])},e}(pD),DD=function(t){function e(e){var n=t.call(this,e,"calendars")||this;return n.api=e,n}return dD(e,t),e}(pD),OD=function(t){function e(e){var n=t.call(this,e,"accounts")||this;return n.api=e,n}return dD(e,t),e.prototype.timemark=function(t){return this.get(t+"/timemark")},e}(pD),ID=function(t){function e(e){var n=t.call(this,e,"proxies")||this;return n.api=e,n}return dD(e,t),e}(pD),TD=function(t){function e(e){var n=t.call(this,e,"actortokens")||this;return n.api=e,n}return dD(e,t),e}(pD),RD=function(){function t(t){this.api=t,this.providers=new vD(t),this.authenticators=new gD(t),this.osManagers=new yD(t),this.transports=new _D(t),this.networks=new bD(t),this.servicesPools=new kD(t),this.metaPools=new wD(t),this.gallery=new SD(t),this.servicesPoolGroups=new xD(t),this.calendars=new DD(t),this.accounts=new OD(t),this.proxy=new ID(t),this.system=new ED(t),this.configuration=new CD(t),this.actorToken=new TD(t),this.reports=new AD(t)}return t.\u0275prov=Dt({token:t,factory:t.\u0275fac=function(e){return new(e||t)(Ui(uD))},providedIn:"root"}),t}();function PD(t,e){if(1&t&&(cs(0,"div",17),cs(1,"div",11),ds(2,"img",3),cs(3,"div",12),$s(4),hs(),hs(),cs(5,"div",13),cs(6,"a",15),cs(7,"uds-translate"),$s(8,"View service pools"),hs(),hs(),hs(),hs()),2&t){var n=xs(2);Aa(2),ls("src",n.api.staticURL("admin/img/icons/logs.png"),Or),Aa(2),Qs(" ",n.data.restrained," ")}}function MD(t,e){if(1&t&&(cs(0,"div"),cs(1,"div",8),cs(2,"div",9),cs(3,"div",10),cs(4,"div",11),ds(5,"img",3),cs(6,"div",12),$s(7),hs(),hs(),cs(8,"div",13),cs(9,"a",14),cs(10,"uds-translate"),$s(11,"View authenticators"),hs(),hs(),hs(),hs(),cs(12,"div",10),cs(13,"div",11),ds(14,"img",3),cs(15,"div",12),$s(16),hs(),hs(),cs(17,"div",13),cs(18,"a",15),cs(19,"uds-translate"),$s(20,"View service pools"),hs(),hs(),hs(),hs(),cs(21,"div",10),cs(22,"div",11),ds(23,"img",3),cs(24,"div",12),$s(25),hs(),hs(),cs(26,"div",13),cs(27,"a",15),cs(28,"uds-translate"),$s(29,"View service pools"),hs(),hs(),hs(),hs(),as(30,PD,9,2,"div",16),hs(),hs(),hs()),2&t){var n=xs();Aa(5),ls("src",n.api.staticURL("admin/img/icons/authenticators.png"),Or),Aa(2),Qs(" ",n.data.users," "),Aa(7),ls("src",n.api.staticURL("admin/img/icons/pools.png"),Or),Aa(2),Qs(" ",n.data.pools," "),Aa(7),ls("src",n.api.staticURL("admin/img/icons/services.png"),Or),Aa(2),Qs(" ",n.data.user_services," "),Aa(5),ls("ngIf",n.data.restrained)}}function FD(t,e){1&t&&(cs(0,"div",18),cs(1,"div",19),cs(2,"div",20),cs(3,"uds-translate"),$s(4,"UDS Administration"),hs(),hs(),cs(5,"div",21),cs(6,"p"),cs(7,"uds-translate"),$s(8,"You are accessing UDS Administration as staff member."),hs(),hs(),cs(9,"p"),cs(10,"uds-translate"),$s(11,"This means that you have restricted access to elements."),hs(),hs(),cs(12,"p"),cs(13,"uds-translate"),$s(14,"In order to increase your access privileges, please contact your local UDS administrator. "),hs(),hs(),ds(15,"br"),cs(16,"p"),cs(17,"uds-translate"),$s(18,"Thank you."),hs(),hs(),hs(),hs(),hs())}var LD=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)(ss(uD),ss(RD))},t.\u0275cmp=oe({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-container"],[1,"staff","mat-elevation-z8"],[1,"staff-header"],[1,"staff-content"]],template:function(t,e){if(1&t&&(cs(0,"div",0),cs(1,"div",1),cs(2,"div",2),ds(3,"img",3),cs(4,"uds-translate"),$s(5,"Dashboard"),hs(),hs(),ds(6,"div",4),hs(),cs(7,"div",5),as(8,MD,31,7,"div",6),as(9,FD,19,0,"ng-template",null,7,ec),hs(),hs()),2&t){var n=os(10);Aa(3),ls("src",e.api.staticURL("admin/img/icons/dashboard-monitor.png"),Or),Aa(5),ls("ngIf",e.api.user.isAdmin)("ngIfElse",n)}},directives:[TS,Th,OS,Vv],styles:[".card[_ngcontent-%COMP%]{height:80%}.staff-container[_ngcontent-%COMP%]{margin-top:2rem;display:flex;justify-content:center}.staff[_ngcontent-%COMP%]{border:#337ab7;border-width:1px;border-style:solid}.staff-header[_ngcontent-%COMP%]{display:flex;justify-content:center;background-color:#337ab7;color:#fff;font-weight:700}.staff-content[_ngcontent-%COMP%], .staff-header[_ngcontent-%COMP%]{padding:.5rem 1rem}.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}(),ND=["underline"],VD=["connectionContainer"],jD=["inputContainer"],BD=["label"];function zD(t,e){1&t&&(fs(0),cs(1,"div",14),ds(2,"div",15),ds(3,"div",16),ds(4,"div",17),hs(),cs(5,"div",18),ds(6,"div",15),ds(7,"div",16),ds(8,"div",17),hs(),ps())}function HD(t,e){1&t&&(cs(0,"div",19),Ds(1,1),hs())}function UD(t,e){if(1&t&&(fs(0),Ds(1,2),cs(2,"span"),$s(3),hs(),ps()),2&t){var n=xs(2);Aa(3),Xs(n._control.placeholder)}}function qD(t,e){1&t&&Ds(0,3,["*ngSwitchCase","true"])}function WD(t,e){1&t&&(cs(0,"span",23),$s(1," *"),hs())}function YD(t,e){if(1&t){var n=vs();cs(0,"label",20,21),_s("cdkObserveContent",function(){return nn(n),xs().updateOutlineGap()}),as(2,UD,4,1,"ng-container",12),as(3,qD,1,0,"ng-content",12),as(4,WD,2,0,"span",22),hs()}if(2&t){var i=xs();js("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),ls("cdkObserveContentDisabled","outline"!=i.appearance)("id",i._labelId)("ngSwitch",i._hasLabel()),is("for",i._control.id)("aria-owns",i._control.id),Aa(2),ls("ngSwitchCase",!1),Aa(1),ls("ngSwitchCase",!0),Aa(1),ls("ngIf",!i.hideRequiredMarker&&i._control.required&&!i._control.disabled)}}function GD(t,e){1&t&&(cs(0,"div",24),Ds(1,4),hs())}function KD(t,e){if(1&t&&(cs(0,"div",25,26),ds(2,"span",27),hs()),2&t){var n=xs();Aa(2),js("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function ZD(t,e){1&t&&(cs(0,"div"),Ds(1,5),hs()),2&t&&ls("@transitionMessages",xs()._subscriptAnimationState)}function $D(t,e){if(1&t&&(cs(0,"div",31),$s(1),hs()),2&t){var n=xs(2);ls("id",n._hintLabelId),Aa(1),Xs(n.hintLabel)}}function XD(t,e){if(1&t&&(cs(0,"div",28),as(1,$D,2,2,"div",29),Ds(2,6),ds(3,"div",30),Ds(4,7),hs()),2&t){var n=xs();ls("@transitionMessages",n._subscriptAnimationState),Aa(1),ls("ngIf",n.hintLabel)}}var QD=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],JD=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],tO=new bi("MatError"),eO={transitionMessages:lb("transitionMessages",[db("enter",hb({opacity:1,transform:"translateY(0%)"})),pb("void => enter",[hb({opacity:0,transform:"translateY(-100%)"}),ub("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},nO=function(){var t=function t(){g(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=de({type:t}),t}(),iO=new bi("MatHint"),rO=function(){var t=function t(){g(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=de({type:t,selectors:[["mat-label"]]}),t}(),aO=function(){var t=function t(){g(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=de({type:t,selectors:[["mat-placeholder"]]}),t}(),oO=new bi("MatPrefix"),sO=new bi("MatSuffix"),lO=function(){var t=function t(){g(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=de({type:t,selectors:[["","matSuffix",""]],features:[gl([{provide:sO,useExisting:t}])]}),t}(),uO=0,cO=uC(function t(e){g(this,t),this._elementRef=e},"primary"),hO=new bi("MAT_FORM_FIELD_DEFAULT_OPTIONS"),dO=new bi("MatFormField"),fO=function(){var t=function(t){y(n,t);var e=k(n);function n(t,i,r,a,o,s,l,u){var c;return g(this,n),(c=e.call(this,t))._elementRef=t,c._changeDetectorRef=i,c._dir=a,c._defaults=o,c._platform=s,c._ngZone=l,c._outlineGapCalculationNeededImmediately=!1,c._outlineGapCalculationNeededOnStable=!1,c._destroyed=new q,c._showAlwaysAnimate=!1,c._subscriptAnimationState="",c._hintLabel="",c._hintLabelId="mat-hint-".concat(uO++),c._labelId="mat-form-field-label-".concat(uO++),c.floatLabel=c._getDefaultFloatLabelState(),c._animationsEnabled="NoopAnimations"!==u,c.appearance=o&&o.appearance?o.appearance:"legacy",c._hideRequiredMarker=!(!o||null==o.hideRequiredMarker)&&o.hideRequiredMarker,c}return v(n,[{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var t=this;this._validateControlChild();var e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(e.controlType)),e.stateChanges.pipe(Ff(null)).subscribe(function(){t._validatePlaceholders(),t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(jg(this._destroyed)).subscribe(function(){return t._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){t._ngZone.onStable.pipe(jg(t._destroyed)).subscribe(function(){t._outlineGapCalculationNeededOnStable&&t.updateOutlineGap()})}),dt(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){t._outlineGapCalculationNeededOnStable=!0,t._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Ff(null)).subscribe(function(){t._processHints(),t._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Ff(null)).subscribe(function(){t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(jg(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?t._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return t.updateOutlineGap()})}):t.updateOutlineGap()})}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(t){var e=this._control?this._control.ngControl:null;return e&&e[t]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var t=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,mg(this._label.nativeElement,"transitionend").pipe(Rf(1)).subscribe(function(){t._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push.apply(t,h(this._control.userAriaDescribedBy.split(" "))),"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.push.apply(t,h(this._errorChildren.map(function(t){return t.id})));this._control.setDescribedByIds(t)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var t=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&t&&t.children.length&&t.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var e=0,n=0,i=this._connectionContainerRef.nativeElement,r=i.querySelectorAll(".mat-form-field-outline-start"),a=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var o=i.getBoundingClientRect();if(0===o.width&&0===o.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var s=this._getStartEnd(o),l=t.children,u=this._getStartEnd(l[0].getBoundingClientRect()),c=0,h=0;h0?.75*c+10:0}for(var d=0;d void",vb("@transformPanel",[mb()],{optional:!0}))]),transformPanel:lb("transformPanel",[db("void",hb({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),db("showing",hb({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),db("showing-multiple",hb({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),pb("void => *",ub("120ms cubic-bezier(0, 0, 0.2, 1)")),pb("* => void",ub("100ms 25ms linear",hb({opacity:0})))])},xO=0,EO=256,AO=new bi("mat-select-scroll-strategy"),DO=new bi("MAT_SELECT_CONFIG"),OO={provide:AO,deps:[h_],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},IO=function t(e,n){g(this,t),this.source=e,this.value=n},TO=cC(hC(lC(dC(function t(e,n,i,r,a){g(this,t),this._elementRef=e,this._defaultErrorStateMatcher=n,this._parentForm=i,this._parentFormGroup=r,this.ngControl=a})))),RO=new bi("MatSelectTrigger"),PO=function(){var t=function t(){g(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=de({type:t,selectors:[["mat-select-trigger"]],features:[gl([{provide:RO,useExisting:t}])]}),t}(),MO=function(){var t=function(t){y(n,t);var e=k(n);function n(t,i,r,o,s,l,u,c,d,f,p,m,v,y){var _,b,k,w;return g(this,n),(_=e.call(this,s,o,u,c,f))._viewportRuler=t,_._changeDetectorRef=i,_._ngZone=r,_._dir=l,_._parentFormField=d,_.ngControl=f,_._liveAnnouncer=v,_._defaultOptions=y,_._panelOpen=!1,_._compareWith=function(t,e){return t===e},_._uid="mat-select-".concat(xO++),_._triggerAriaLabelledBy=null,_._destroy=new q,_._onChange=function(){},_._onTouched=function(){},_._valueId="mat-select-value-".concat(xO++),_._panelDoneAnimatingStream=new q,_._overlayPanelClass=(null===(b=_._defaultOptions)||void 0===b?void 0:b.overlayPanelClass)||"",_._focused=!1,_.controlType="mat-select",_._required=!1,_._multiple=!1,_._disableOptionCentering=null!==(w=null===(k=_._defaultOptions)||void 0===k?void 0:k.disableOptionCentering)&&void 0!==w&&w,_.ariaLabel="",_.optionSelectionChanges=Af(function(){var t=_.options;return t?t.changes.pipe(Ff(t),Df(function(){return dt.apply(void 0,h(t.map(function(t){return t.onSelectionChange})))})):_._ngZone.onStable.pipe(Rf(1),Df(function(){return _.optionSelectionChanges}))}),_.openedChange=new Ru,_._openedStream=_.openedChange.pipe(Td(function(t){return t}),G(function(){})),_._closedStream=_.openedChange.pipe(Td(function(t){return!t}),G(function(){})),_.selectionChange=new Ru,_.valueChange=new Ru,_.ngControl&&(_.ngControl.valueAccessor=a(_)),null!=(null==y?void 0:y.typeaheadDebounceInterval)&&(_._typeaheadDebounceInterval=y.typeaheadDebounceInterval),_._scrollStrategyFactory=m,_._scrollStrategy=_._scrollStrategyFactory(),_.tabIndex=parseInt(p)||0,_.id=_.id,_}return v(n,[{key:"ngOnInit",value:function(){var t=this;this._selectionModel=new uy(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Dg(),jg(this._destroy)).subscribe(function(){return t._panelDoneAnimating(t.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var t=this;this._initKeyManager(),this._selectionModel.changed.pipe(jg(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(Ff(null),jg(this._destroy)).subscribe(function(){t._resetOptions(),t._initializeSelection()})}},{key:"ngDoCheck",value:function(){var t=this._getTriggerAriaLabelledby();if(t!==this._triggerAriaLabelledBy){var e=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?e.setAttribute("aria-labelledby",t):e.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(t){t.disabled&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}},{key:"ngOnDestroy",value:function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}},{key:"toggle",value:function(){this.panelOpen?this.close():this.open()}},{key:"open",value:function(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(t){this.value=t}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}},{key:"_handleClosedKeydown",value:function(t){var e=t.keyCode,n=e===Ly||e===My||e===Py||e===Fy,i=e===Dy||e===Iy,r=this._keyManager;if(!r.isTyping()&&i&&!Ny(t)||(this.multiple||t.altKey)&&n)t.preventDefault(),this.open();else if(!this.multiple){var a=this.selected;r.onKeydown(t);var o=this.selected;o&&a!==o&&this._liveAnnouncer.announce(o.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(t){var e=this._keyManager,n=t.keyCode,i=n===Ly||n===My,r=e.isTyping();if(i&&t.altKey)t.preventDefault(),this.close();else if(r||n!==Dy&&n!==Iy||!e.activeItem||Ny(t))if(!r&&this._multiple&&65===n&&t.ctrlKey){t.preventDefault();var a=this.options.some(function(t){return!t.disabled&&!t.selected});this.options.forEach(function(t){t.disabled||(a?t.select():t.deselect())})}else{var o=e.activeItemIndex;e.onKeydown(t),this._multiple&&i&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==o&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var t=this;this.overlayDir.positionChange.pipe(Rf(1)).subscribe(function(){t._changeDetectorRef.detectChanges(),t._positioningSettled()})}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{key:"_initializeSelection",value:function(){var t=this;Promise.resolve().then(function(){t._setSelectionByValue(t.ngControl?t.ngControl.value:t._value),t.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(t){var e=this;if(this._selectionModel.selected.forEach(function(t){return t.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(function(t){return e._selectValue(t)}),this._sortValues();else{var n=this._selectValue(t);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(t){var e=this,n=this.options.find(function(n){try{return null!=n.value&&e._compareWith(n.value,t)}catch(i){return!1}});return n&&this._selectionModel.select(n),n}},{key:"_initKeyManager",value:function(){var t=this;this._keyManager=new F_(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(jg(this._destroy)).subscribe(function(){t.panelOpen&&(!t.multiple&&t._keyManager.activeItem&&t._keyManager.activeItem._selectViaInteraction(),t.focus(),t.close())}),this._keyManager.change.pipe(jg(this._destroy)).subscribe(function(){t._panelOpen&&t.panel?t._scrollOptionIntoView(t._keyManager.activeItemIndex||0):t._panelOpen||t.multiple||!t._keyManager.activeItem||t._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var t=this,e=dt(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(jg(e)).subscribe(function(e){t._onSelect(e.source,e.isUserInput),e.isUserInput&&!t.multiple&&t._panelOpen&&(t.close(),t.focus())}),dt.apply(void 0,h(this.options.map(function(t){return t._stateChanges}))).pipe(jg(e)).subscribe(function(){t._changeDetectorRef.markForCheck(),t.stateChanges.next()})}},{key:"_onSelect",value: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(),null!=this.value&&this._propagateChanges(t.value)),n!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value: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()}}},{key:"_propagateChanges",value: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(this._getChangeEvent(e)),this._changeDetectorRef.markForCheck()}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_canOpen",value:function(){var t;return!this._panelOpen&&!this.disabled&&(null===(t=this.options)||void 0===t?void 0:t.length)>0}},{key:"focus",value:function(t){this._elementRef.nativeElement.focus(t)}},{key:"_getPanelAriaLabelledby",value:function(){if(this.ariaLabel)return null;var t=this._getLabelId();return this.ariaLabelledby?t+" "+this.ariaLabelledby:t}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getLabelId",value:function(){var t;return(null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId())||""}},{key:"_getTriggerAriaLabelledby",value:function(){if(this.ariaLabel)return null;var t=this._getLabelId()+" "+this._valueId;return this.ariaLabelledby&&(t+=" "+this.ariaLabelledby),t}},{key:"_panelDoneAnimating",value:function(t){this.openedChange.emit(t)}},{key:"setDescribedByIds",value:function(t){this._ariaDescribedby=t.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(t){this._placeholder=t,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(t){this._required=lg(t),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(t){this._multiple=lg(t)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(t){this._disableOptionCentering=lg(t)}},{key:"compareWith",get:function(){return this._compareWith},set:function(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(t){t!==this._value&&(this.options&&this._setSelectionByValue(t),this._value=t)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(t){this._typeaheadDebounceInterval=ug(t)}},{key:"id",get:function(){return this._id},set:function(t){this._id=t||this._uid,this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"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}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty}}]),n}(TO);return t.\u0275fac=function(e){return new(e||t)(ss(dy),ss(Kl),ss(Cc),ss(AC),ss(xl),ss(ry,8),ss(Xx,8),ss(rE,8),ss(dO,8),ss(dx,10),gi("tabindex"),ss(AO),ss(W_),ss(DO,8))},t.\u0275dir=de({type:t,viewQuery:function(t,e){var n;1&t&&(Yu(mO,!0),Yu(vO,!0),Yu(m_,!0)),2&t&&(qu(n=Xu())&&(e.trigger=n.first),qu(n=Xu())&&(e.panel=n.first),qu(n=Xu())&&(e.overlayDir=n.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[qo,Ie]}),t}(),FO=function(){var t=function(t){y(n,t);var e=k(n);function n(){var t;return g(this,n),(t=e.apply(this,arguments))._scrollTop=0,t._triggerFontSize=0,t._transformOrigin="top",t._offsetY=0,t._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],t}return v(n,[{key:"_calculateOverlayScroll",value:function(t,e,n){var i=this._getItemHeight();return Math.min(Math.max(0,i*t-e+i/2),n)}},{key:"ngOnInit",value:function(){var t=this;r(i(n.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe(jg(this._destroy)).subscribe(function(){t.panelOpen&&(t._triggerRect=t.trigger.nativeElement.getBoundingClientRect(),t._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var t=this;r(i(n.prototype),"_canOpen",this).call(this)&&(r(i(n.prototype),"open",this).call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(Rf(1)).subscribe(function(){t._triggerFontSize&&t.overlayDir.overlayRef&&t.overlayDir.overlayRef.overlayElement&&(t.overlayDir.overlayRef.overlayElement.style.fontSize="".concat(t._triggerFontSize,"px"))}))}},{key:"_scrollOptionIntoView",value:function(t){var e=XC(t,this.options,this.optionGroups),n=this._getItemHeight();this.panel.nativeElement.scrollTop=QC((t+e)*n,n,this.panel.nativeElement.scrollTop,EO)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(t){this.panelOpen?this._scrollTop=0:(this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),r(i(n.prototype),"_panelDoneAnimating",this).call(this,t)}},{key:"_getChangeEvent",value:function(t){return new IO(this,t)}},{key:"_calculateOverlayOffsetX",value: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 a=this._selectionModel.selected[0]||this.options.first;t=a&&a.group?32:16}i||(t*=-1);var o=0-(e.left+t-(i?r:0)),s=e.right+t-n.width+(i?0:r);o>0?t+=o+8:s>0&&(t-=s+8),this.overlayDir.offsetX=Math.round(t),this.overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(t,e,n){var i,r=this._getItemHeight(),a=(r-this._triggerRect.height)/2,o=Math.floor(EO/r);return this.disableOptionCentering?0:(i=0===this._scrollTop?t*r:this._scrollTop===n?(t-(this._getItemCount()-o))*r+(r-(this._getItemCount()*r-EO)%r):e-r/2,Math.round(-1*i-a))}},{key:"_checkOverlayWithinViewport",value:function(t){var e=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,a=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*e,EO)-a-this._triggerRect.height;o>r?this._adjustPanelUp(o,r):a>i?this._adjustPanelDown(a,i,t):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value: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")}},{key:"_adjustPanelDown",value: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")}},{key:"_calculateOverlayPosition",value:function(){var t,e=this._getItemHeight(),n=this._getItemCount(),i=Math.min(n*e,EO),r=n*e-i;t=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),t+=XC(t,this.options,this.optionGroups);var a=i/2;this._scrollTop=this._calculateOverlayScroll(t,a,r),this._offsetY=this._calculateOverlayOffsetY(t,a,r),this._checkOverlayWithinViewport(r)}},{key:"_getOriginBasedOnOption",value:function(){var t=this._getItemHeight(),e=(t-this._triggerRect.height)/2,n=Math.abs(this._offsetY)-e+t/2;return"50% ".concat(n,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),n}(MO);return t.\u0275fac=function(e){return LO(e||t)},t.\u0275cmp=oe({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,n){var i;1&t&&(Ku(n,RO,!0),Ku(n,$C,!0),Ku(n,WC,!0)),2&t&&(qu(i=Xu())&&(e.customTrigger=i.first),qu(i=Xu())&&(e.options=i),qu(i=Xu())&&(e.optionGroups=i))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,e){1&t&&_s("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e._onFocus()})("blur",function(){return e._onBlur()}),2&t&&(is("id",e.id)("tabindex",e.tabIndex)("aria-controls",e.panelOpen?e.id+"-panel":null)("aria-expanded",e.panelOpen)("aria-label",e.ariaLabel||null)("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),js("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty)("mat-select-multiple",e.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[gl([{provide:nO,useExisting:t},{provide:KC,useExisting:t}]),qo],ngContentSelectors:CO,decls:9,vars:12,consts:[["cdk-overlay-origin","",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,"cdkConnectedOverlayPanelClass","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"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(t,e){if(1&t&&(As(wO),cs(0,"div",0,1),_s("click",function(){return e.toggle()}),cs(3,"div",2),as(4,gO,2,1,"span",3),as(5,bO,3,2,"span",4),hs(),cs(6,"div",5),ds(7,"div",6),hs(),hs(),as(8,kO,4,14,"ng-template",7),_s("backdropClick",function(){return e.close()})("attach",function(){return e._onAttached()})("detach",function(){return e.close()})),2&t){var n=os(1);is("aria-owns",e.panelOpen?e.id+"-panel":null),Aa(3),ls("ngSwitch",e.empty),is("id",e._valueId),Aa(1),ls("ngSwitchCase",!0),Aa(1),ls("ngSwitchCase",!1),Aa(3),ls("cdkConnectedOverlayPanelClass",e._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",n)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[p_,Fh,Lh,m_,Nh,Ah],styles:[".mat-select{display:inline-block;width:100%;outline:none}.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 400ms cubic-bezier(0.25, 0.8, 0.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;outline:0}.cdk-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 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.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}\n"],encapsulation:2,data:{animation:[SO.transformPanelWrap,SO.transformPanel]},changeDetection:0}),t}(),LO=vi(FO),NO=function(){var t=function t(){g(this,t)};return t.\u0275mod=ce({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[OO],imports:[[Yh,g_,JC,sC],fy,pO,JC,sC]}),t}(),VO={tooltipState:lb("state",[db("initial, void, hidden",hb({opacity:0,transform:"scale(0)"})),db("visible",hb({transform:"scale(1)"})),pb("* => visible",ub("200ms cubic-bezier(0, 0, 0.2, 1)",fb([hb({opacity:0,transform:"scale(0)",offset:0}),hb({opacity:.5,transform:"scale(0.99)",offset:.5}),hb({opacity:1,transform:"scale(1)",offset:1})]))),pb("* => hidden",ub("100ms cubic-bezier(0, 0, 0.2, 1)",hb({opacity:0})))])},jO=ty({passive:!0}),BO=new bi("mat-tooltip-scroll-strategy"),zO={provide:BO,deps:[h_],useFactory:function(t){return function(){return t.scrollStrategies.reposition({scrollThrottle:20})}}},HO=new bi("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),UO=function(){var t=function(){function t(e,n,i,r,a,o,s,l,u,c,h){var d=this;g(this,t),this._overlay=e,this._elementRef=n,this._scrollDispatcher=i,this._viewContainerRef=r,this._ngZone=a,this._platform=o,this._ariaDescriber=s,this._focusMonitor=l,this._dir=c,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new q,this._handleKeydown=function(t){d._isTooltipVisible()&&t.keyCode===Oy&&!Ny(t)&&(t.preventDefault(),t.stopPropagation(),d._ngZone.run(function(){return d.hide(0)}))},this._scrollStrategy=u,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),a.runOutsideAngular(function(){n.nativeElement.addEventListener("keydown",d._handleKeydown)})}return v(t,[{key:"ngAfterViewInit",value:function(){var t=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(jg(this._destroyed)).subscribe(function(e){e?"keyboard"===e&&t._ngZone.run(function(){return t.show()}):t._ngZone.run(function(){return t.hide(0)})})}},{key:"ngOnDestroy",value:function(){var t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(function(e){var n=l(e,2);t.removeEventListener(n[0],n[1],jO)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message),this._focusMonitor.stopMonitoring(t)}},{key:"show",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var n=this._createOverlay();this._detach(),this._portal=this._portal||new vy(qO,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(jg(this._destroyed)).subscribe(function(){return t._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(e)}}},{key:"hide",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(t)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value: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(jg(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(jg(this._destroyed)).subscribe(function(){return t._detach()}),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(){var t=this._overlayRef.getConfig().positionStrategy,e=this._getOrigin(),n=this._getOverlayPosition();t.withPositions([Object.assign(Object.assign({},e.main),n.main),Object.assign(Object.assign({},e.fallback),n.fallback)])}},{key:"_getOrigin",value:function(){var t,e=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n||"below"==n?t={originX:"center",originY:"above"==n?"top":"bottom"}:"before"==n||"left"==n&&e||"right"==n&&!e?t={originX:"start",originY:"center"}:("after"==n||"right"==n&&e||"left"==n&&!e)&&(t={originX:"end",originY:"center"});var i=this._invertPosition(t.originX,t.originY);return{main:t,fallback:{originX:i.x,originY:i.y}}}},{key:"_getOverlayPosition",value:function(){var t,e=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n?t={overlayX:"center",overlayY:"bottom"}:"below"==n?t={overlayX:"center",overlayY:"top"}:"before"==n||"left"==n&&e||"right"==n&&!e?t={overlayX:"end",overlayY:"center"}:("after"==n||"right"==n&&e||"left"==n&&!e)&&(t={overlayX:"start",overlayY:"center"});var i=this._invertPosition(t.overlayX,t.overlayY);return{main:t,fallback:{overlayX:i.x,overlayY:i.y}}}},{key:"_updateTooltipMessage",value:function(){var t=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Rf(1),jg(this._destroyed)).subscribe(function(){t._tooltipInstance&&t._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value: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}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var t=this;!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){t._setupPointerExitEventsIfNeeded(),t.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){t._setupPointerExitEventsIfNeeded(),clearTimeout(t._touchstartTimeout),t._touchstartTimeout=setTimeout(function(){return t.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var t,e=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var n=[];if(this._platformSupportsMouseEvents())n.push(["mouseleave",function(){return e.hide()}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var i=function(){clearTimeout(e._touchstartTimeout),e.hide(e._defaultOptions.touchendHideDelay)};n.push(["touchend",i],["touchcancel",i])}this._addListeners(n),(t=this._passiveListeners).push.apply(t,n)}}},{key:"_addListeners",value:function(t){var e=this;t.forEach(function(t){var n=l(t,2);e._elementRef.nativeElement.addEventListener(n[0],n[1],jO)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_disableNativeGesturesIfNecessary",value:function(){var t=this.touchGestures;if("off"!==t){var e=this._elementRef.nativeElement,n=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),"on"!==t&&e.draggable||(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}},{key:"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()))}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=lg(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"message",get:function(){return this._message},set:function(t){var e=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),this._message=null!=t?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){e._ariaDescriber.describe(e._elementRef.nativeElement,e.message)})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(ss(h_),ss(xl),ss(hy),ss(su),ss(Cc),ss($g),ss(P_),ss($_),ss(BO),ss(ry,8),ss(HO,8))},t.\u0275dir=de({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),t}(),qO=function(){var t=function(){function t(e,n){g(this,t),this._changeDetectorRef=e,this._breakpointObserver=n,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new q,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}return v(t,[{key:"show",value: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)}},{key:"hide",value: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)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(t){var e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(ss(Kl),ss(ZA))},t.\u0275cmp=oe({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&_s("click",function(){return e._handleBodyInteraction()},!1,Nr),2&t&&Vs("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){var n;1&t&&(cs(0,"div",0),_s("@state.start",function(){return e._animationStart()})("@state.done",function(t){return e._animationDone(t)}),Au(1,"async"),$s(2),hs()),2&t&&(js("mat-tooltip-handset",null==(n=Du(1,5,e._isHandset))?null:n.matches),ls("ngClass",e.tooltipClass)("@state",e._visibility),Aa(2),Xs(e.message))},directives:[Ah],pipes:[Hh],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}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[VO.tooltipState]},changeDetection:0}),t}(),WO=function(){var t=function t(){g(this,t)};return t.\u0275mod=ce({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[zO],imports:[[ib,Yh,g_,sC],sC,fy]}),t}();function YO(t,e){if(1&t&&(cs(0,"mat-option",19),$s(1),hs()),2&t){var n=e.$implicit;ls("value",n),Aa(1),Qs(" ",n," ")}}function GO(t,e){if(1&t){var n=vs();cs(0,"mat-form-field",16),cs(1,"mat-select",17),_s("selectionChange",function(t){return nn(n),xs(2)._changePageSize(t.value)}),as(2,YO,2,2,"mat-option",18),hs(),hs()}if(2&t){var i=xs(2);ls("appearance",i._formFieldAppearance)("color",i.color),Aa(1),ls("value",i.pageSize)("disabled",i.disabled)("aria-label",i._intl.itemsPerPageLabel),Aa(1),ls("ngForOf",i._displayedPageSizeOptions)}}function KO(t,e){if(1&t&&(cs(0,"div",20),$s(1),hs()),2&t){var n=xs(2);Aa(1),Xs(n.pageSize)}}function ZO(t,e){if(1&t&&(cs(0,"div",12),cs(1,"div",13),$s(2),hs(),as(3,GO,3,6,"mat-form-field",14),as(4,KO,2,1,"div",15),hs()),2&t){var n=xs();Aa(2),Qs(" ",n._intl.itemsPerPageLabel," "),Aa(1),ls("ngIf",n._displayedPageSizeOptions.length>1),Aa(1),ls("ngIf",n._displayedPageSizeOptions.length<=1)}}function $O(t,e){if(1&t){var n=vs();cs(0,"button",21),_s("click",function(){return nn(n),xs().firstPage()}),Tn(),cs(1,"svg",7),ds(2,"path",22),hs(),hs()}if(2&t){var i=xs();ls("matTooltip",i._intl.firstPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),is("aria-label",i._intl.firstPageLabel)}}function XO(t,e){if(1&t){var n=vs();Tn(),Rn(),cs(0,"button",23),_s("click",function(){return nn(n),xs().lastPage()}),Tn(),cs(1,"svg",7),ds(2,"path",24),hs(),hs()}if(2&t){var i=xs();ls("matTooltip",i._intl.lastPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),is("aria-label",i._intl.lastPageLabel)}}var QO=function(){var t=function t(){g(this,t),this.changes=new q,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 ".concat(n);var i=t*e,r=i<(n=Math.max(n,0))?Math.min(i+e,n):i+e;return"".concat(i+1," \u2013 ").concat(r," of ").concat(n)}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Dt({factory:function(){return new t},token:t,providedIn:"root"}),t}(),JO={provide:QO,deps:[[new Ri,new Mi,QO]],useFactory:function(t){return t||new QO}},tI=new bi("MAT_PAGINATOR_DEFAULT_OPTIONS"),eI=lC(fC(function t(){g(this,t)})),nI=function(){var t=function(t){y(n,t);var e=k(n);function n(t,i,r){var a;if(g(this,n),(a=e.call(this))._intl=t,a._changeDetectorRef=i,a._pageIndex=0,a._length=0,a._pageSizeOptions=[],a._hidePageSize=!1,a._showFirstLastButtons=!1,a.page=new Ru,a._intlChanges=t.changes.subscribe(function(){return a._changeDetectorRef.markForCheck()}),r){var o=r.pageSize,s=r.pageSizeOptions,l=r.hidePageSize,u=r.showFirstLastButtons;null!=o&&(a._pageSize=o),null!=s&&(a._pageSizeOptions=s),null!=l&&(a._hidePageSize=l),null!=u&&(a._showFirstLastButtons=u)}return a}return v(n,[{key:"ngOnInit",value:function(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}},{key:"ngOnDestroy",value:function(){this._intlChanges.unsubscribe()}},{key:"nextPage",value:function(){if(this.hasNextPage()){var t=this.pageIndex;this.pageIndex++,this._emitPageEvent(t)}}},{key:"previousPage",value:function(){if(this.hasPreviousPage()){var t=this.pageIndex;this.pageIndex--,this._emitPageEvent(t)}}},{key:"firstPage",value:function(){if(this.hasPreviousPage()){var t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}}},{key:"lastPage",value:function(){if(this.hasNextPage()){var t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}}},{key:"hasPreviousPage",value:function(){return this.pageIndex>=1&&0!=this.pageSize}},{key:"hasNextPage",value:function(){var t=this.getNumberOfPages()-1;return this.pageIndex=i.length&&(r=0),i[r]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"direction",get:function(){return this._direction},set:function(t){this._direction=t}},{key:"disableClear",get:function(){return this._disableClear},set:function(t){this._disableClear=lg(t)}}]),n}(lI);return t.\u0275fac=function(e){return cI(e||t)},t.\u0275dir=de({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[qo,Ie]}),t}(),cI=vi(uI),hI=rC.ENTERING+" "+iC.STANDARD_CURVE,dI={indicator:lb("indicator",[db("active-asc, asc",hb({transform:"translateY(0px)"})),db("active-desc, desc",hb({transform:"translateY(10px)"})),pb("active-asc <=> active-desc",ub(hI))]),leftPointer:lb("leftPointer",[db("active-asc, asc",hb({transform:"rotate(-45deg)"})),db("active-desc, desc",hb({transform:"rotate(45deg)"})),pb("active-asc <=> active-desc",ub(hI))]),rightPointer:lb("rightPointer",[db("active-asc, asc",hb({transform:"rotate(45deg)"})),db("active-desc, desc",hb({transform:"rotate(-45deg)"})),pb("active-asc <=> active-desc",ub(hI))]),arrowOpacity:lb("arrowOpacity",[db("desc-to-active, asc-to-active, active",hb({opacity:1})),db("desc-to-hint, asc-to-hint, hint",hb({opacity:.54})),db("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",hb({opacity:0})),pb("* => asc, * => desc, * => active, * => hint, * => void",ub("0ms")),pb("* <=> *",ub(hI))]),arrowPosition:lb("arrowPosition",[pb("* => desc-to-hint, * => desc-to-active",ub(hI,fb([hb({transform:"translateY(-25%)"}),hb({transform:"translateY(0)"})]))),pb("* => hint-to-desc, * => active-to-desc",ub(hI,fb([hb({transform:"translateY(0)"}),hb({transform:"translateY(25%)"})]))),pb("* => asc-to-hint, * => asc-to-active",ub(hI,fb([hb({transform:"translateY(25%)"}),hb({transform:"translateY(0)"})]))),pb("* => hint-to-asc, * => active-to-asc",ub(hI,fb([hb({transform:"translateY(0)"}),hb({transform:"translateY(-25%)"})]))),db("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",hb({transform:"translateY(0)"})),db("hint-to-desc, active-to-desc, desc",hb({transform:"translateY(-25%)"})),db("hint-to-asc, active-to-asc, asc",hb({transform:"translateY(25%)"}))]),allowChildren:lb("allowChildren",[pb("* <=> *",[vb("@*",mb(),{optional:!0})])])},fI=function(){var t=function t(){g(this,t),this.changes=new q,this.sortButtonLabel=function(t){return"Change sorting for ".concat(t)}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Dt({factory:function(){return new t},token:t,providedIn:"root"}),t}(),pI={provide:fI,deps:[[new Ri,new Mi,fI]],useFactory:function(t){return t||new fI}},mI=lC(function t(){g(this,t)}),vI=function(){var t=function(t){y(n,t);var e=k(n);function n(t,i,r,a,o,s){var l;return g(this,n),(l=e.call(this))._intl=t,l._changeDetectorRef=i,l._sort=r,l._columnDef=a,l._focusMonitor=o,l._elementRef=s,l._showIndicatorHint=!1,l._arrowDirection="",l._disableViewStateAnimation=!1,l.arrowPosition="after",l._rerenderSubscription=dt(r.sortChange,r._stateChanges,t.changes).subscribe(function(){l._isSorted()&&l._updateArrowDirection(),!l._isSorted()&&l._viewState&&"active"===l._viewState.toState&&(l._disableViewStateAnimation=!1,l._setAnimationTransitionState({fromState:"active",toState:l._arrowDirection})),i.markForCheck()}),l}return v(n,[{key:"ngOnInit",value:function(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}},{key:"ngAfterViewInit",value:function(){var t=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(e){var n=!!e;n!==t._showIndicatorHint&&(t._setIndicatorHintVisible(n),t._changeDetectorRef.markForCheck())})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}},{key:"_setIndicatorHintVisible",value: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})))}},{key:"_setAnimationTransitionState",value:function(t){this._viewState=t,this._disableViewStateAnimation&&(this._viewState={toState:t.toState})}},{key:"_toggleOnInteraction",value:function(){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}},{key:"_handleClick",value:function(){this._isDisabled()||this._toggleOnInteraction()}},{key:"_handleKeydown",value:function(t){this._isDisabled()||t.keyCode!==Iy&&t.keyCode!==Dy||(t.preventDefault(),this._toggleOnInteraction())}},{key:"_isSorted",value:function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}},{key:"_getArrowDirectionState",value:function(){return"".concat(this._isSorted()?"active-":"").concat(this._arrowDirection)}},{key:"_getArrowViewState",value:function(){var t=this._viewState.fromState;return(t?"".concat(t,"-to-"):"")+this._viewState.toState}},{key:"_updateArrowDirection",value:function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}},{key:"_isDisabled",value:function(){return this._sort.disabled||this.disabled}},{key:"_getAriaSortAttribute",value:function(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}},{key:"_renderArrow",value:function(){return!this._isDisabled()||this._isSorted()}},{key:"disableClear",get:function(){return this._disableClear},set:function(t){this._disableClear=lg(t)}}]),n}(mI);return t.\u0275fac=function(e){return new(e||t)(ss(fI),ss(Kl),ss(uI,8),ss("MAT_SORT_HEADER_COLUMN_DEF",8),ss($_),ss(xl))},t.\u0275cmp=oe({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,e){1&t&&_s("click",function(){return e._handleClick()})("keydown",function(t){return e._handleKeydown(t)})("mouseenter",function(){return e._setIndicatorHintVisible(!0)})("mouseleave",function(){return e._setIndicatorHintVisible(!1)}),2&t&&(is("aria-sort",e._getAriaSortAttribute()),js("mat-sort-header-disabled",e._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[qo],attrs:aI,ngContentSelectors:sI,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["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&&(As(),cs(0,"div",0),cs(1,"div",1),Ds(2),hs(),as(3,oI,6,6,"div",2),hs()),2&t&&(js("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"==e.arrowPosition),is("tabindex",e._isDisabled()?null:0),Aa(3),ls("ngIf",e._renderArrow()))},directives:[Th],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.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}.cdk-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)}.cdk-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}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .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}\n"],encapsulation:2,data:{animation:[dI.indicator,dI.leftPointer,dI.rightPointer,dI.arrowOpacity,dI.arrowPosition,dI.allowChildren]},changeDetection:0}),t}(),gI=function(){var t=function t(){g(this,t)};return t.\u0275mod=ce({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[pI],imports:[[Yh,sC]]}),t}(),yI=[[["caption"]],[["colgroup"],["col"]]],_I=["caption","colgroup, col"];function bI(t){return function(t){y(n,t);var e=k(n);function n(){var t;g(this,n);for(var i=arguments.length,r=new Array(i),a=0;a4&&void 0!==arguments[4])||arguments[4],o=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];g(this,t),this._isNativeHtmlTable=e,this._stickCellCss=n,this.direction=i,this._coalescedStyleScheduler=r,this._isBrowser=a,this._needsPositionStickyOnElement=o,this._cachedCellWidths=[]}return v(t,[{key:"clearStickyPositioning",value:function(t,e){var n,i=this,r=[],a=c(t);try{for(a.s();!(n=a.n()).done;){var o=n.value;if(o.nodeType===o.ELEMENT_NODE){r.push(o);for(var s=0;s3&&void 0!==arguments[3])||arguments[3];if(t.length&&this._isBrowser&&(e.some(function(t){return t})||n.some(function(t){return t}))){var a=t[0],o=a.children.length,s=this._getCellWidths(a,r),l=this._getStickyStartColumnPositions(s,e),u=this._getStickyEndColumnPositions(s,n);this._scheduleStyleChanges(function(){var r,a="rtl"===i.direction,s=a?"right":"left",h=a?"left":"right",d=c(t);try{for(d.s();!(r=d.n()).done;)for(var f=r.value,p=0;p1&&void 0!==arguments[1])||arguments[1];if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;for(var n=[],i=t.children,r=0;r0;r--)e[r]&&(n[r]=i,i+=t[r]);return n}},{key:"_scheduleStyleChanges",value:function(t){this._coalescedStyleScheduler?this._coalescedStyleScheduler.schedule(t):t()}}]),t}(),WI=function(){var t=function t(e,n){g(this,t),this.viewContainer=e,this.elementRef=n};return t.\u0275fac=function(e){return new(e||t)(ss(su),ss(xl))},t.\u0275dir=de({type:t,selectors:[["","rowOutlet",""]]}),t}(),YI=function(){var t=function t(e,n){g(this,t),this.viewContainer=e,this.elementRef=n};return t.\u0275fac=function(e){return new(e||t)(ss(su),ss(xl))},t.\u0275dir=de({type:t,selectors:[["","headerRowOutlet",""]]}),t}(),GI=function(){var t=function t(e,n){g(this,t),this.viewContainer=e,this.elementRef=n};return t.\u0275fac=function(e){return new(e||t)(ss(su),ss(xl))},t.\u0275dir=de({type:t,selectors:[["","footerRowOutlet",""]]}),t}(),KI=function(){var t=function t(e,n){g(this,t),this.viewContainer=e,this.elementRef=n};return t.\u0275fac=function(e){return new(e||t)(ss(su),ss(xl))},t.\u0275dir=de({type:t,selectors:[["","noDataRowOutlet",""]]}),t}(),ZI=function(){var t=function(){function t(e,n,i,r,a,o,s,l,u,c){g(this,t),this._differs=e,this._changeDetectorRef=n,this._elementRef=i,this._dir=a,this._platform=s,this._viewRepeater=l,this._coalescedStyleScheduler=u,this._viewportRuler=c,this._onDestroy=new q,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._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.viewChange=new pf({start:0,end:Number.MAX_VALUE}),r||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=o,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return v(t,[{key:"ngOnInit",value: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}),this._viewportRuler&&this._viewportRuler.change().pipe(jg(this._onDestroy)).subscribe(function(){t._forceRecalculateCellWidths=!0})}},{key:"ngAfterContentChecked",value:function(){this._cacheRowDefs(),this._cacheColumnDefs();var t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||t,this._forceRecalculateCellWidths=t,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._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}},{key:"ngOnDestroy",value:function(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),sy(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var t=this;this._renderRows=this._getAllRenderRows();var e=this._dataDiffer.diff(this._renderRows);if(e){var n=this._rowOutlet.viewContainer;this._viewRepeater?this._viewRepeater.applyChanges(e,n,function(e,n,i){return t._getEmbeddedViewArgs(e.item,i)},function(t){return t.item.data},function(e){1===e.operation&&e.context&&t._renderCellTemplateForItem(e.record.item.rowDef,e.context)}):e.forEachOperation(function(e,i,r){if(null==e.previousIndex){var a=e.item;t._renderRow(t._rowOutlet,a.rowDef,r,{$implicit:a.data})}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._updateNoDataRow(),this.updateStickyColumnStyles()}else this._updateNoDataRow()}},{key:"addColumnDef",value:function(t){this._customColumnDefs.add(t)}},{key:"removeColumnDef",value:function(t){this._customColumnDefs.delete(t)}},{key:"addRowDef",value:function(t){this._customRowDefs.add(t)}},{key:"removeRowDef",value:function(t){this._customRowDefs.delete(t)}},{key:"addHeaderRowDef",value:function(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}},{key:"setNoDataRow",value:function(t){this._customNoDataRow=t}},{key:"updateStickyHeaderRowStyles",value: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()})}},{key:"updateStickyFooterRowStyles",value: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()})}},{key:"updateStickyColumnStyles",value:function(){var t=this,e=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([].concat(h(e),h(n),h(i)),["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach(function(e,n){t._addStickyColumnStyles([e],t._headerRowDefs[n])}),this._rowDefs.forEach(function(e){for(var i=[],r=0;r0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach(function(e,n){return t._renderRow(t._headerRowOutlet,e,n)}),this.updateStickyHeaderRowStyles()}},{key:"_forceRenderFooterRows",value: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()}},{key:"_addStickyColumnStyles",value:function(t,e){var n=this,i=Array.from(e.columns||[]).map(function(t){return n._columnDefsByName.get(t)}),r=i.map(function(t){return t.sticky}),a=i.map(function(t){return t.stickyEnd});this._stickyStyler.updateStickyColumns(t,r,a,!this._fixedLayout||this._forceRecalculateCellWidths)}},{key:"_getRenderedRows",value:function(t){for(var e=[],n=0;n3&&void 0!==arguments[3]?arguments[3]:{},r=t.viewContainer.createEmbeddedView(e.template,i,n);return this._renderCellTemplateForItem(e,i),r}},{key:"_renderCellTemplateForItem",value:function(t,e){var n,i=c(this._getCellTemplates(t));try{for(i.s();!(n=i.n()).done;)jI.mostRecentCellOutlet&&jI.mostRecentCellOutlet._viewContainer.createEmbeddedView(n.value,e)}catch(r){i.e(r)}finally{i.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var t=this._rowOutlet.viewContainer,e=0,n=t.length;e0&&void 0!==arguments[0]?arguments[0]:[];return g(this,n),(t=e.call(this))._renderData=new pf([]),t._filter=new pf(""),t._internalPageChanges=new q,t._renderChangesSubscription=A.EMPTY,t.sortingDataAccessor=function(t,e){var n=t[e];if(cg(n)){var i=Number(n);return io?u=1:a0)){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())}})}},{key:"connect",value:function(){return this._renderData}},{key:"disconnect",value:function(){}},{key:"data",get:function(){return this._data.value},set:function(t){this._data.next(t)}},{key:"filter",get:function(){return this._filter.value},set:function(t){this._filter.next(t)}},{key:"sort",get:function(){return this._sort},set:function(t){this._sort=t,this._updateChangeSubscription()}},{key:"paginator",get:function(){return this._paginator},set:function(t){this._paginator=t,this._updateChangeSubscription()}}]),n}(oy);function CT(t){return t instanceof Date&&!isNaN(+t)}function ST(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Tg,n=CT(t),i=n?+t-e.now():Math.abs(t);return function(t){return t.lift(new xT(i,e))}}var xT=function(){function t(e,n){g(this,t),this.delay=e,this.scheduler=n}return v(t,[{key:"call",value:function(t,e){return e.subscribe(new ET(t,this.delay,this.scheduler))}}]),t}(),ET=function(t){y(n,t);var e=k(n);function n(t,i,r){var a;return g(this,n),(a=e.call(this,t)).delay=i,a.scheduler=r,a.queue=[],a.active=!1,a.errored=!1,a}return v(n,[{key:"_schedule",value:function(t){this.active=!0,this.destination.add(t.schedule(n.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}},{key:"scheduleNotification",value:function(t){if(!0!==this.errored){var e=this.scheduler,n=new AT(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}}},{key:"_next",value:function(t){this.scheduleNotification(Wg.createNext(t))}},{key:"_error",value:function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(Wg.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value: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 a=Math.max(0,n[0].time-i.now());this.schedule(t,a)}else this.unsubscribe(),e.active=!1}}]),n}(M),AT=function t(e,n){g(this,t),this.time=e,this.notification=n},DT=ty({passive:!0}),OT=function(){var t=function(){function t(e,n){g(this,t),this._platform=e,this._ngZone=n,this._monitoredElements=new Map}return v(t,[{key:"monitor",value:function(t){var e=this;if(!this._platform.isBrowser)return xf;var n=fg(t),i=this._monitoredElements.get(n);if(i)return i.subject;var r=new q,a="cdk-text-field-autofilled",o=function(t){"cdk-text-field-autofill-start"!==t.animationName||n.classList.contains(a)?"cdk-text-field-autofill-end"===t.animationName&&n.classList.contains(a)&&(n.classList.remove(a),e._ngZone.run(function(){return r.next({target:t.target,isAutofilled:!1})})):(n.classList.add(a),e._ngZone.run(function(){return r.next({target:t.target,isAutofilled:!0})}))};return this._ngZone.runOutsideAngular(function(){n.addEventListener("animationstart",o,DT),n.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(n,{subject:r,unlisten:function(){n.removeEventListener("animationstart",o,DT)}}),r}},{key:"stopMonitoring",value:function(t){var e=fg(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))}},{key:"ngOnDestroy",value:function(){var t=this;this._monitoredElements.forEach(function(e,n){return t.stopMonitoring(n)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Ui($g),Ui(Cc))},t.\u0275prov=Dt({factory:function(){return new t(Ui($g),Ui(Cc))},token:t,providedIn:"root"}),t}(),IT=function(){var t=function t(){g(this,t)};return t.\u0275mod=ce({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},imports:[[Xg]]}),t}(),TT=new bi("MAT_INPUT_VALUE_ACCESSOR"),RT=["button","checkbox","file","hidden","image","radio","range","reset","submit"],PT=0,MT=dC(function t(e,n,i,r){g(this,t),this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r}),FT=function(){var t=function(t){y(n,t);var e=k(n);function n(t,i,r,a,o,s,l,u,c,h){var d;g(this,n),(d=e.call(this,s,a,o,r))._elementRef=t,d._platform=i,d.ngControl=r,d._autofillMonitor=u,d._formField=h,d._uid="mat-input-".concat(PT++),d.focused=!1,d.stateChanges=new q,d.controlType="mat-input",d.autofilled=!1,d._disabled=!1,d._required=!1,d._type="text",d._readonly=!1,d._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(t){return Jg().has(t)});var f=d._elementRef.nativeElement,p=f.nodeName.toLowerCase();return d._inputValueAccessor=l||f,d._previousNativeValue=d.value,d.id=d.id,i.IOS&&c.runOutsideAngular(function(){t.nativeElement.addEventListener("keyup",function(t){var e=t.target;e.value||e.selectionStart||e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),d._isServer=!d._platform.isBrowser,d._isNativeSelect="select"===p,d._isTextarea="textarea"===p,d._isNativeSelect&&(d.controlType=f.multiple?"mat-native-select-multiple":"mat-native-select"),d}return v(n,[{key:"ngAfterViewInit",value:function(){var t=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(e){t.autofilled=e.isAutofilled,t.stateChanges.next()})}},{key:"ngOnChanges",value:function(){this.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}},{key:"focus",value:function(t){this._elementRef.nativeElement.focus(t)}},{key:"_focusChanged",value:function(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}},{key:"_onInput",value:function(){}},{key:"_dirtyCheckPlaceholder",value:function(){var t,e,n=(null===(e=null===(t=this._formField)||void 0===t?void 0:t._hideControlPlaceholder)||void 0===e?void 0:e.call(t))?null:this.placeholder;if(n!==this._previousPlaceholder){var i=this._elementRef.nativeElement;this._previousPlaceholder=n,n?i.setAttribute("placeholder",n):i.removeAttribute("placeholder")}}},{key:"_dirtyCheckNativeValue",value:function(){var t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}},{key:"_validateType",value:function(){RT.indexOf(this._type)}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var t=this._elementRef.nativeElement.validity;return t&&t.badInput}},{key:"setDescribedByIds",value:function(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}},{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(t){this._disabled=lg(t),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function(){return this._id},set:function(t){this._id=t||this._uid}},{key:"required",get:function(){return this._required},set:function(t){this._required=lg(t)}},{key:"type",get:function(){return this._type},set:function(t){this._type=t||"text",this._validateType(),!this._isTextarea&&Jg().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function(){return this._inputValueAccessor.value},set:function(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}},{key:"readonly",get:function(){return this._readonly},set:function(t){this._readonly=lg(t)}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"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}}]),n}(MT);return t.\u0275fac=function(e){return new(e||t)(ss(xl),ss($g),ss(dx,10),ss(Xx,8),ss(rE,8),ss(AC),ss(TT,10),ss(OT),ss(Cc),ss(dO,8))},t.\u0275dir=de({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,e){1&t&&_s("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&t&&(tl("disabled",e.disabled)("required",e.required),is("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.errorState)("aria-required",e.required.toString()),js("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[gl([{provide:nO,useExisting:t}]),qo,Ie]}),t}(),LT=function(){var t=function t(){g(this,t)};return t.\u0275mod=ce({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[AC],imports:[[IT,pO,sC],IT,pO]}),t}(),NT=["searchSelectInput"],VT=["innerSelectSearch"];function jT(t,e){if(1&t){var n=vs();cs(0,"button",6),_s("click",function(){return nn(n),xs()._reset(!0)}),cs(1,"i",7),$s(2,"close"),hs(),hs()}}var BT=function(t){return{"mat-select-search-inner-multiple":t}},zT=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 Ru,this.overlayClassSet=!1,this.change=new Ru,this._onDestroy=new q}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!1,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(ST(1),jg(this._onDestroy)).subscribe(function(e){e?(t.getWidth(),t.disableInitialFocus||t._focus()):t.clearSearchInput&&t._reset()}),this.matSelect.openedChange.pipe(Rf(1)).pipe(jg(this._onDestroy)).subscribe(function(){t._options=t.matSelect.options,t._options.changes.pipe(jg(t._onDestroy)).subscribe(function(){var e=t.matSelect._keyManager;e&&t.matSelect.panelOpen&&setTimeout(function(){e.setFirstItemActive(),t.getWidth()},1)})}),this.change.pipe(jg(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(Rf(1),jg(this._onDestroy)).subscribe(function(){t.matSelect.options.changes.pipe(jg(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||t.keyCode===Iy)&&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(jg(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(jg(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)(ss(FO),ss(Kl))},t.\u0275cmp=oe({type:t,selectors:[["uds-mat-select-search"]],viewQuery:function(t,e){if(1&t&&(Wu(NT,!0,xl),Wu(VT,!0,xl)),2&t){var n=void 0;qu(n=Xu())&&(e.searchSelectInput=n.first),qu(n=Xu())&&(e.innerSelectSearch=n.first)}},inputs:{placeholderLabel:"placeholderLabel",noEntriesFoundLabel:"noEntriesFoundLabel",clearSearchInput:"clearSearchInput",disableInitialFocus:"disableInitialFocus"},outputs:{changed:"changed"},features:[gl([{provide:zS,useExisting:xt(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&&(ds(0,"input",0),cs(1,"div",1,2),cs(3,"input",3,4),_s("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)}),hs(),as(5,jT,3,0,"button",5),hs()),2&t&&(Aa(1),ls("ngClass",wu(3,BT,e.matSelect.multiple)),Aa(2),ls("placeholder",e.placeholderLabel),Aa(2),ls("ngIf",e.value))},directives:[FT,Ah,Th,DS],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 HT(t,e){1&t&&(cs(0,"uds-translate"),$s(1,"New user permission for"),hs())}function UT(t,e){1&t&&(cs(0,"uds-translate"),$s(1,"New group permission for"),hs())}function qT(t,e){if(1&t&&(cs(0,"mat-option",11),$s(1),hs()),2&t){var n=e.$implicit;ls("value",n.id),Aa(1),Xs(n.text)}}function WT(t,e){if(1&t){var n=vs();cs(0,"uds-mat-select-search",12),_s("changed",function(t){return nn(n),xs().filterUser=t}),hs()}}function YT(t,e){if(1&t&&(cs(0,"mat-option",11),$s(1),hs()),2&t){var n=e.$implicit;ls("value",n.id),Aa(1),Xs(n.text)}}function GT(t,e){if(1&t&&(cs(0,"mat-option",11),$s(1),hs()),2&t){var n=e.$implicit;ls("value",n.id),Aa(1),Xs(n.text)}}var KT=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 Ru(!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)(ss(uD),ss(RD),ss(sS),ss(uS))},t.\u0275cmp=oe({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&&(cs(0,"h4",0),as(1,HT,2,0,"uds-translate",1),ds(2,"b",2),as(3,UT,2,0,"ng-template",null,3,ec),hs(),cs(5,"mat-dialog-content"),cs(6,"div",4),cs(7,"mat-form-field"),cs(8,"mat-select",5),_s("valueChange",function(t){return e.changeAuth(t)})("ngModelChange",function(t){return e.authenticator=t}),as(9,qT,2,2,"mat-option",6),hs(),hs(),cs(10,"mat-form-field"),cs(11,"mat-select",7),_s("ngModelChange",function(t){return e.entity=t}),as(12,WT,1,0,"uds-mat-select-search",8),as(13,YT,2,2,"mat-option",6),hs(),hs(),cs(14,"mat-form-field"),cs(15,"mat-select",7),_s("ngModelChange",function(t){return e.permission=t}),as(16,GT,2,2,"mat-option",6),hs(),hs(),hs(),hs(),cs(17,"mat-dialog-actions"),cs(18,"button",9),cs(19,"uds-translate"),$s(20,"Cancel"),hs(),hs(),cs(21,"button",10),_s("click",function(){return e.save()}),cs(22,"uds-translate"),$s(23,"Ok"),hs(),hs(),hs()),2&t){var n=os(4);Aa(1),ls("ngIf","user"===e.data.type)("ngIfElse",n),Aa(1),ls("innerHTML",e.data.item.name,Dr),Aa(6),ls("placeholder",e.getFieldLabel("auth"))("ngModel",e.authenticator),Aa(1),ls("ngForOf",e.authenticators),Aa(2),ls("placeholder",e.getFieldLabel(e.data.type))("ngModel",e.entity),Aa(1),ls("ngIf",e.entities.length>10),Aa(1),ls("ngForOf",e.filteredEntities()),Aa(2),ls("placeholder",e.getFieldLabel("perm"))("ngModel",e.permission),Aa(1),ls("ngForOf",e.permissions)}},directives:[gS,Th,yS,fO,FO,px,tE,Oh,_S,DS,vS,TS,$C,zT],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 ZT(t,e){if(1&t){var n=vs();cs(0,"div",11),cs(1,"div",12),$s(2),hs(),cs(3,"div",13),$s(4),cs(5,"a",14),_s("click",function(){nn(n);var t=e.$implicit;return xs(2).revokePermission(t)}),cs(6,"i",15),$s(7,"close"),hs(),hs(),hs(),hs()}if(2&t){var i=e.$implicit;Aa(2),Js(" ",i.entity_name,"@",i.auth_name," "),Aa(2),Qs(" ",i.perm_name," \xa0")}}function $T(t,e){if(1&t){var n=vs();cs(0,"div",7),cs(1,"div",8),cs(2,"div",9),_s("click",function(t){nn(n);var i=e.$implicit;return xs().newPermission(i),t.preventDefault()}),cs(3,"uds-translate"),$s(4,"New permission..."),hs(),hs(),as(5,ZT,8,3,"div",10),hs(),hs()}if(2&t){var i=e.$implicit;Aa(5),ls("ngForOf",i)}}var XT=function(t,e){return[t,e]},QT=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";KT.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)(ss(uD),ss(sS),ss(uS))},t.\u0275cmp=oe({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&&(cs(0,"h4",0),cs(1,"uds-translate"),$s(2,"Permissions for"),hs(),$s(3,"\xa0"),ds(4,"b",1),hs(),cs(5,"mat-dialog-content"),cs(6,"div",2),cs(7,"uds-translate",3),$s(8,"Users"),hs(),cs(9,"uds-translate",3),$s(10,"Groups"),hs(),hs(),cs(11,"div",4),as(12,$T,6,1,"div",5),hs(),hs(),cs(13,"mat-dialog-actions"),cs(14,"button",6),cs(15,"uds-translate"),$s(16,"Ok"),hs(),hs(),hs()),2&t&&(Aa(4),ls("innerHTML",e.data.item.name,Dr),Aa(8),ls("ngForOf",Cu(2,XT,e.userPermissions,e.groupPermissions)))},directives:[gS,TS,yS,Oh,_S,DS,vS],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}(),JT=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],tR=[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")],eR={days:JT,shortDays:nR(JT),months:tR,shortMonths:nR(tR),AM:"AM",PM:"PM",am:"am",pm:"pm"};function nR(t){var e=[];return t.forEach(function(t){e.push(t.substr(0,3))}),e}function iR(t,e,n){return rR(t,e,n)}function rR(t,e,n,i){i=i||{},e=e||new Date,(n=n||eR).formats=n.formats||{};var r=e.getTime();return(i.utc||"number"==typeof i.timezone)&&(e=function(t){var e;return e=6e4*(t.getTimezoneOffset()||0),new Date(t.getTime()+e)}(e)),"number"==typeof i.timezone&&(e=new Date(e.getTime()+6e4*i.timezone)),t.replace(/%([-_0]?.)/g,function(t,a){var o,s,l,u,c,h,d;if(s=null,u=null,2===a.length){if("-"===(s=a[0]))u="";else if("_"===s)u=" ";else{if("0"!==s)return t;u="0"}a=a[1]}switch(a){case"A":return n.days[e.getDay()];case"a":return n.shortDays[e.getDay()];case"B":return n.months[e.getMonth()];case"b":return n.shortMonths[e.getMonth()];case"C":return aR(Math.floor(e.getFullYear()/100),u);case"D":return rR(n.formats.D||"%m/%d/%y",e,n);case"d":return aR(e.getDate(),u);case"e":return e.getDate();case"F":return rR(n.formats.F||"%Y-%m-%d",e,n);case"H":return aR(e.getHours(),u);case"h":return n.shortMonths[e.getMonth()];case"I":return aR(oR(e),u);case"j":return h=new Date(e.getFullYear(),0,1),aR(Math.ceil((e.getTime()-h.getTime())/864e5),3);case"k":return aR(e.getHours(),void 0===u?" ":u);case"L":return aR(Math.floor(r%1e3),3);case"l":return aR(oR(e),void 0===u?" ":u);case"M":return aR(e.getMinutes(),u);case"m":return aR(e.getMonth()+1,u);case"n":return"\n";case"o":return String(e.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"}}(e.getDate());case"P":case"p":return"";case"R":return rR(n.formats.R||"%H:%M",e,n);case"r":return rR(n.formats.r||"%I:%M:%S %p",e,n);case"S":return aR(e.getSeconds(),u);case"s":return Math.floor(r/1e3);case"T":return rR(n.formats.T||"%H:%M:%S",e,n);case"t":return"\t";case"U":return aR(sR(e,"sunday"),u);case"u":return 0===(o=e.getDay())?7:o;case"v":return rR(n.formats.v||"%e-%b-%Y",e,n);case"W":return aR(sR(e,"monday"),u);case"w":return e.getDay();case"Y":return e.getFullYear();case"y":return(d=String(e.getFullYear())).slice(d.length-2);case"Z":return i.utc?"GMT":(c=e.toString().match(/\((\w+)\)/))&&c[1]||"";case"z":return i.utc?"+0000":((l="number"==typeof i.timezone?i.timezone:-e.getTimezoneOffset())<0?"-":"+")+aR(Math.abs(l/60))+aR(l%60);default:return a}})}function aR(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 sR(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 lR(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 uR(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=iR(lR(r),new Date(1e3*e))}return i}function cR(t){return"yes"===t||!0===t||"true"===t||1===t}var hR=n("dunZ");function dR(t){return void 0!==t.changingThisBreaksApplicationSecurity&&(t=t.changingThisBreaksApplicationSecurity.replace(/<.*>/g,"")),'"'+(t=""+t).replace('"','""')+'"'}function fR(t){var e="";t.columns.forEach(function(t){e+=dR(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 TA.DATE:i=uR("SHORT_DATE_FORMAT",i);break;case TA.DATETIME:i=uR("SHORT_DATETIME_FORMAT",i);break;case TA.DATETIMESEC:i=uR("SHORT_DATE_FORMAT",i," H:i:s");break;case TA.TIME:i=uR("TIME_FORMAT",i)}e+=dR(i)+","}),e=e.slice(0,-1)+"\r\n"});var n=new Blob([e],{type:"text/csv"});setTimeout(function(){Object(hR.saveAs)(n,t.title+".csv")},100)}function pR(t,e){if(1&t&&(Tn(),ds(0,"circle",3)),2&t){var n=xs();Vs("animation-name","mat-progress-spinner-stroke-rotate-"+n._spinnerAnimationLabel)("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),is("r",n._getCircleRadius())}}function mR(t,e){if(1&t&&(Tn(),ds(0,"circle",3)),2&t){var n=xs();Vs("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),is("r",n._getCircleRadius())}}var vR=uC(function t(e){g(this,t),this._elementRef=e},"primary"),gR=new bi("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),yR=function(){var t=function(t){y(n,t);var e=k(n);function n(t,i,r,a,o){var s;g(this,n),(s=e.call(this,t))._elementRef=t,s._document=r,s._diameter=100,s._value=0,s._fallbackAnimation=!1,s.mode="determinate";var l=n._diameters;return s._spinnerAnimationLabel=s._getSpinnerAnimationLabel(),l.has(r.head)||l.set(r.head,new Set([100])),s._fallbackAnimation=i.EDGE||i.TRIDENT,s._noopAnimations="NoopAnimations"===a&&!!o&&!o._forceAnimations,o&&(o.diameter&&(s.diameter=o.diameter),o.strokeWidth&&(s.strokeWidth=o.strokeWidth)),s}return v(n,[{key:"ngOnInit",value:function(){var t=this._elementRef.nativeElement;this._styleRoot=ny(t)||this._document.head,this._attachStyleNode();var e="mat-progress-spinner-indeterminate".concat(this._fallbackAnimation?"-fallback":"","-animation");t.classList.add(e)}},{key:"_getCircleRadius",value:function(){return(this.diameter-10)/2}},{key:"_getViewBox",value:function(){var t=2*this._getCircleRadius()+this.strokeWidth;return"0 0 ".concat(t," ").concat(t)}},{key:"_getStrokeCircumference",value:function(){return 2*Math.PI*this._getCircleRadius()}},{key:"_getStrokeDashOffset",value:function(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}},{key:"_getCircleStrokeWidth",value:function(){return this.strokeWidth/this.diameter*100}},{key:"_attachStyleNode",value:function(){var t=this._styleRoot,e=this._diameter,i=n._diameters,r=i.get(t);if(!r||!r.has(e)){var a=this._document.createElement("style");a.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),a.textContent=this._getAnimationText(),t.appendChild(a),r||(r=new Set,i.set(t,r)),r.add(e)}}},{key:"_getAnimationText",value:function(){var t=this._getStrokeCircumference();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,"".concat(.95*t)).replace(/END_VALUE/g,"".concat(.2*t)).replace(/DIAMETER/g,"".concat(this._spinnerAnimationLabel))}},{key:"_getSpinnerAnimationLabel",value:function(){return this.diameter.toString().replace(".","_")}},{key:"diameter",get:function(){return this._diameter},set:function(t){this._diameter=ug(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}},{key:"strokeWidth",get:function(){return this._strokeWidth||this.diameter/10},set:function(t){this._strokeWidth=ug(t)}},{key:"value",get:function(){return"determinate"===this.mode?this._value:0},set:function(t){this._value=Math.max(0,Math.min(100,ug(t)))}}]),n}(vR);return t.\u0275fac=function(e){return new(e||t)(ss(xl),ss($g),ss(ah,8),ss(Xw,8),ss(gR))},t.\u0275cmp=oe({type:t,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(is("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),Vs("width",e.diameter,"px")("height",e.diameter,"px"),js("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[qo],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&&(Tn(),cs(0,"svg",0),as(1,pR,1,9,"circle",1),as(2,mR,1,7,"circle",2),hs()),2&t&&(Vs("width",e.diameter,"px")("height",e.diameter,"px"),ls("ngSwitch","indeterminate"===e.mode),is("viewBox",e._getViewBox()),Aa(1),ls("ngSwitchCase",!0),Aa(1),ls("ngSwitchCase",!1))},directives:[Fh,Lh],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.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}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 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] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{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(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n"],encapsulation:2,changeDetection:0}),t._diameters=new WeakMap,t}(),_R=function(){var t=function t(){g(this,t)};return t.\u0275mod=ce({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},imports:[[sC,Yh],sC]}),t}(),bR=["mat-menu-item",""],kR=["*"];function wR(t,e){if(1&t){var n=vs();cs(0,"div",0),_s("keydown",function(t){return nn(n),xs()._handleKeydown(t)})("click",function(){return nn(n),xs().closed.emit("click")})("@transformMenu.start",function(t){return nn(n),xs()._onAnimationStart(t)})("@transformMenu.done",function(t){return nn(n),xs()._onAnimationDone(t)}),cs(1,"div",1),Ds(2),hs(),hs()}if(2&t){var i=xs();ls("id",i.panelId)("ngClass",i._classList)("@transformMenu",i._panelAnimationState),is("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby||null)("aria-describedby",i.ariaDescribedby||null)}}var CR={transformMenu:lb("transformMenu",[db("void",hb({opacity:0,transform:"scale(0.8)"})),pb("void => enter",ub("120ms cubic-bezier(0, 0, 0.2, 1)",hb({opacity:1,transform:"scale(1)"}))),pb("* => void",ub("100ms 25ms linear",hb({opacity:0})))]),fadeInItems:lb("fadeInItems",[db("showing",hb({opacity:1})),pb("void => *",[hb({opacity:0}),ub("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},SR=new bi("MatMenuContent"),xR=function(){var t=function(){function t(e,n,i,r,a,o,s){g(this,t),this._template=e,this._componentFactoryResolver=n,this._appRef=i,this._injector=r,this._viewContainerRef=a,this._document=o,this._changeDetectorRef=s,this._attached=new q}return v(t,[{key:"attach",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._portal||(this._portal=new gy(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new by(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()}},{key:"detach",value:function(){this._portal.isAttached&&this._portal.detach()}},{key:"ngOnDestroy",value:function(){this._outlet&&this._outlet.dispose()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(ss(eu),ss(kl),ss(Yc),ss(Ho),ss(su),ss(ah),ss(Kl))},t.\u0275dir=de({type:t,selectors:[["ng-template","matMenuContent",""]],features:[gl([{provide:SR,useExisting:t}])]}),t}(),ER=new bi("MAT_MENU_PANEL"),AR=cC(lC(function t(){g(this,t)})),DR=function(){var t=function(t){y(n,t);var e=k(n);function n(t,i,r,o){var s;return g(this,n),(s=e.call(this))._elementRef=t,s._focusMonitor=r,s._parentMenu=o,s.role="menuitem",s._hovered=new q,s._focused=new q,s._highlighted=!1,s._triggersSubmenu=!1,o&&o.addItem&&o.addItem(a(s)),s}return v(n,[{key:"focus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",e=arguments.length>1?arguments[1]:void 0;this._focusMonitor?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),this._focused.next(this)}},{key:"ngAfterViewInit",value:function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){for(var t,e,n=this._elementRef.nativeElement.cloneNode(!0),i=n.querySelectorAll("mat-icon, .material-icons"),r=0;r0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.pipe(Rf(1)).subscribe(function(){return t._focusFirstItem(e)}):this._focusFirstItem(e)}},{key:"_focusFirstItem",value:function(t){var e=this._keyManager;if(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}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(t){var e=Math.min(4+t,24),n="mat-elevation-z".concat(e),i=Object.keys(this._classList).find(function(t){return t.startsWith("mat-elevation-z")});i&&i!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[n]=!0,this._previousElevation=n)}},{key:"setPositionClasses",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,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}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(t){this._animationDone.next(t),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var t=this;this._allItems.changes.pipe(Ff(this._allItems)).subscribe(function(e){t._directDescendantItems.reset(e.filter(function(e){return e._parentMenu===t})),t._directDescendantItems.notifyOnChanges()})}},{key:"xPosition",get:function(){return this._xPosition},set:function(t){this._xPosition=t,this.setPositionClasses()}},{key:"yPosition",get:function(){return this._yPosition},set:function(t){this._yPosition=t,this.setPositionClasses()}},{key:"overlapTrigger",get:function(){return this._overlapTrigger},set:function(t){this._overlapTrigger=lg(t)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(t){this._hasBackdrop=lg(t)}},{key:"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="")}},{key:"classList",get:function(){return this.panelClass},set:function(t){this.panelClass=t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(ss(xl),ss(Cc),ss(OR))},t.\u0275dir=de({type:t,contentQueries:function(t,e,n){var i;1&t&&(Ku(n,SR,!0),Ku(n,DR,!0),Ku(n,DR,!1)),2&t&&(qu(i=Xu())&&(e.lazyContent=i.first),qu(i=Xu())&&(e._allItems=i),qu(i=Xu())&&(e.items=i))},viewQuery:function(t,e){var n;1&t&&Yu(eu,!0),2&t&&qu(n=Xu())&&(e.templateRef=n.first)},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t}(),RR=function(){var t=function(t){y(n,t);var e=k(n);function n(t,i,r){return g(this,n),e.call(this,t,i,r)}return n}(TR);return t.\u0275fac=function(e){return new(e||t)(ss(xl),ss(Cc),ss(OR))},t.\u0275cmp=oe({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,e){2&t&&is("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[gl([{provide:ER,useExisting:t}]),qo],ngContentSelectors:kR,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(As(),as(0,wR,3,6,"ng-template"))},directives:[Ah],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}.cdk-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:none;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}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{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}\n'],encapsulation:2,data:{animation:[CR.transformMenu,CR.fadeInItems]},changeDetection:0}),t}(),PR=new bi("mat-menu-scroll-strategy"),MR={provide:PR,deps:[h_],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},FR=ty({passive:!0}),LR=function(){var t=function(){function t(e,n,i,r,a,o,s,l){var u=this;g(this,t),this._overlay=e,this._element=n,this._viewContainerRef=i,this._menuItemInstance=o,this._dir=s,this._focusMonitor=l,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=A.EMPTY,this._hoverSubscription=A.EMPTY,this._menuCloseSubscription=A.EMPTY,this._handleTouchStart=function(){return u._openedBy="touch"},this._openedBy=null,this.restoreFocus=!0,this.menuOpened=new Ru,this.onMenuOpen=this.menuOpened,this.menuClosed=new Ru,this.onMenuClose=this.menuClosed,this._scrollStrategy=r,this._parentMaterialMenu=a instanceof TR?a:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,FR),o&&(o._triggersSubmenu=this.triggersSubmenu())}return v(t,[{key:"ngAfterContentInit",value:function(){this._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,FR),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value: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 TR&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",e=arguments.length>1?arguments[1]:void 0;this._focusMonitor?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}},{key:"_destroyMenu",value:function(){var t=this;if(this._overlayRef&&this.menuOpen){var e=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this._restoreFocus(),e instanceof TR?(e._resetAnimation(),e.lazyContent?e._animationDone.pipe(Td(function(t){return"void"===t.toState}),Rf(1),jg(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())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this._setIsMenuOpen(!0),this.menu.focusFirstItem(this._openedBy||"program")}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var t=0,e=this.menu.parentMenu;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}},{key:"_restoreFocus",value:function(){this.restoreFocus&&(this._openedBy?this.triggersSubmenu()||this.focus(this._openedBy):this.focus()),this._openedBy=null}},{key:"_setIsMenuOpen",value:function(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}},{key:"_checkMenu",value:function(){}},{key:"_createOverlay",value: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}},{key:"_getOverlayConfig",value:function(){return new Yy({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value: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")})}},{key:"_setPosition",value:function(t){var e=l("before"===this.menu.xPosition?["end","start"]:["start","end"],2),n=e[0],i=e[1],r=l("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),a=r[0],o=r[1],s=a,u=o,c=n,h=i,d=0;this.triggersSubmenu()?(h=n="before"===this.menu.xPosition?"start":"end",i=c="end"===n?"start":"end",d="bottom"===a?8:-8):this.menu.overlapTrigger||(s="top"===a?"bottom":"top",u="top"===o?"bottom":"top"),t.withPositions([{originX:n,originY:s,overlayX:c,overlayY:a,offsetY:d},{originX:i,originY:s,overlayX:h,overlayY:a,offsetY:d},{originX:n,originY:u,overlayX:c,overlayY:o,offsetY:-d},{originX:i,originY:u,overlayX:h,overlayY:o,offsetY:-d}])}},{key:"_menuClosingActions",value:function(){var t=this,e=this._overlayRef.backdropClick(),n=this._overlayRef.detachments();return dt(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:Od(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Td(function(e){return e!==t._menuItemInstance}),Td(function(){return t._menuOpen})):Od(),n)}},{key:"_handleMousedown",value:function(t){G_(t)||(this._openedBy=0===t.button?"mouse":null,this.triggersSubmenu()&&t.preventDefault())}},{key:"_handleKeydown",value:function(t){var e=t.keyCode;e!==Dy&&e!==Iy||(this._openedBy="keyboard"),this.triggersSubmenu()&&(e===Fy&&"ltr"===this.dir||e===Py&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}},{key:"_handleClick",value:function(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var t=this;this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Td(function(e){return e===t._menuItemInstance&&!e.disabled}),ST(0,Ag)).subscribe(function(){t._openedBy="mouse",t.menu instanceof TR&&t.menu._isAnimating?t.menu._animationDone.pipe(Rf(1),ST(0,Ag),jg(t._parentMaterialMenu._hovered())).subscribe(function(){return t.openMenu()}):t.openMenu()}))}},{key:"_getPortal",value:function(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new gy(this.menu.templateRef,this._viewContainerRef)),this._portal}},{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(t){this.menu=t}},{key:"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.subscribe(function(t){e._destroyMenu(),"click"!==t&&"tab"!==t||!e._parentMaterialMenu||e._parentMaterialMenu.closed.emit(t)})))}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(ss(h_),ss(xl),ss(su),ss(PR),ss(ER,8),ss(DR,10),ss(ry,8),ss($_))},t.\u0275dir=de({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&_s("mousedown",function(t){return e._handleMousedown(t)})("keydown",function(t){return e._handleKeydown(t)})("click",function(t){return e._handleClick(t)}),2&t&&is("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId: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}(),NR=function(){var t=function t(){g(this,t)};return t.\u0275mod=ce({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[MR],imports:[sC]}),t}(),VR=function(){var t=function t(){g(this,t)};return t.\u0275mod=ce({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[MR],imports:[[Yh,sC,VC,g_,NR],fy,sC,NR]}),t}(),jR=function(){var t=function(){function t(){g(this,t),this._vertical=!1,this._inset=!1}return v(t,[{key:"vertical",get:function(){return this._vertical},set:function(t){this._vertical=lg(t)}},{key:"inset",get:function(){return this._inset},set:function(t){this._inset=lg(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=oe({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,e){2&t&&(is("aria-orientation",e.vertical?"vertical":"horizontal"),js("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}\n"],encapsulation:2,changeDetection:0}),t}(),BR=function(){var t=function t(){g(this,t)};return t.\u0275mod=ce({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},imports:[[sC],sC]}),t}(),zR=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=fe({name:"sort",type:t,pure:!0}),t}(),HR=["trigger"];function UR(t,e){1&t&&ds(0,"img",36),2&t&&ls("src",xs().icon,Or)}function qR(t,e){if(1&t){var n=vs();cs(0,"button",46),_s("click",function(){nn(n);var t=e.$implicit,i=xs(5);return i.newAction.emit({param:t,table:i})}),hs()}if(2&t){var i=e.$implicit,r=xs(5);ls("innerHTML",r.api.safeString(r.api.gui.icon(i.icon)+i.name),Dr)}}function WR(t,e){if(1&t&&(fs(0),cs(1,"button",42),$s(2),hs(),cs(3,"mat-menu",43,44),as(5,qR,1,1,"button",45),Au(6,"sort"),hs(),ps()),2&t){var n=e.$implicit,i=os(4);Aa(1),ls("matMenuTriggerFor",i),Aa(1),Xs(n.key),Aa(1),ls("overlapTrigger",!1),Aa(2),ls("ngForOf",Ou(6,4,n.value,"name"))}}function YR(t,e){if(1&t&&(fs(0),cs(1,"mat-menu",37,38),as(3,WR,7,7,"ng-container",39),Au(4,"keyvalue"),hs(),cs(5,"a",40),cs(6,"i",17),$s(7,"insert_drive_file"),hs(),cs(8,"span",41),cs(9,"uds-translate"),$s(10,"New"),hs(),hs(),cs(11,"i",17),$s(12,"arrow_drop_down"),hs(),hs(),ps()),2&t){var n=os(2),i=xs(3);Aa(1),ls("overlapTrigger",!1),Aa(2),ls("ngForOf",Du(4,3,i.grpTypes)),Aa(2),ls("matMenuTriggerFor",n)}}function GR(t,e){if(1&t){var n=vs();cs(0,"button",46),_s("click",function(){nn(n);var t=e.$implicit,i=xs(4);return i.newAction.emit({param:t,table:i})}),hs()}if(2&t){var i=e.$implicit,r=xs(4);ls("innerHTML",r.api.safeString(r.api.gui.icon(i.icon)+i.name),Dr)}}function KR(t,e){if(1&t&&(fs(0),cs(1,"mat-menu",37,38),as(3,GR,1,1,"button",45),Au(4,"sort"),hs(),cs(5,"a",40),cs(6,"i",17),$s(7,"insert_drive_file"),hs(),cs(8,"span",41),cs(9,"uds-translate"),$s(10,"New"),hs(),hs(),cs(11,"i",17),$s(12,"arrow_drop_down"),hs(),hs(),ps()),2&t){var n=os(2),i=xs(3);Aa(1),ls("overlapTrigger",!1),Aa(2),ls("ngForOf",Ou(4,3,i.oTypes,"name")),Aa(2),ls("matMenuTriggerFor",n)}}function ZR(t,e){if(1&t&&(fs(0),as(1,YR,13,5,"ng-container",8),as(2,KR,13,6,"ng-container",8),ps()),2&t){var n=xs(2);Aa(1),ls("ngIf",n.newGrouped),Aa(1),ls("ngIf",!n.newGrouped)}}function $R(t,e){if(1&t){var n=vs();fs(0),cs(1,"a",47),_s("click",function(){nn(n);var t=xs(2);return t.newAction.emit({param:void 0,table:t})}),cs(2,"i",17),$s(3,"insert_drive_file"),hs(),cs(4,"span",41),cs(5,"uds-translate"),$s(6,"New"),hs(),hs(),hs(),ps()}}function XR(t,e){if(1&t&&(fs(0),as(1,ZR,3,2,"ng-container",8),as(2,$R,7,0,"ng-container",8),ps()),2&t){var n=xs();Aa(1),ls("ngIf",null!=n.oTypes&&0!=n.oTypes.length),Aa(1),ls("ngIf",null!=n.oTypes&&0==n.oTypes.length)}}function QR(t,e){if(1&t){var n=vs();fs(0),cs(1,"a",48),_s("click",function(){nn(n);var t=xs();return t.emitIfSelection(t.editAction)}),cs(2,"i",17),$s(3,"edit"),hs(),cs(4,"span",41),cs(5,"uds-translate"),$s(6,"Edit"),hs(),hs(),hs(),ps()}if(2&t){var i=xs();Aa(1),ls("disabled",1!=i.selection.selected.length)}}function JR(t,e){if(1&t){var n=vs();fs(0),cs(1,"a",48),_s("click",function(){return nn(n),xs().permissions()}),cs(2,"i",17),$s(3,"perm_identity"),hs(),cs(4,"span",41),cs(5,"uds-translate"),$s(6,"Permissions"),hs(),hs(),hs(),ps()}if(2&t){var i=xs();Aa(1),ls("disabled",1!=i.selection.selected.length)}}function tP(t,e){if(1&t){var n=vs();cs(0,"a",50),_s("click",function(){nn(n);var t=e.$implicit;return xs(2).emitCustom(t)}),hs()}if(2&t){var i=e.$implicit;ls("disabled",xs(2).isCustomDisabled(i))("innerHTML",i.html,Dr)}}function eP(t,e){if(1&t&&(fs(0),as(1,tP,1,2,"a",49),ps()),2&t){var n=xs();Aa(1),ls("ngForOf",n.getcustomButtons())}}function nP(t,e){if(1&t){var n=vs();fs(0),cs(1,"a",51),_s("click",function(){return nn(n),xs().export()}),cs(2,"i",17),$s(3,"import_export"),hs(),cs(4,"span",41),cs(5,"uds-translate"),$s(6,"Export"),hs(),hs(),hs(),ps()}}function iP(t,e){if(1&t){var n=vs();fs(0),cs(1,"a",52),_s("click",function(){nn(n);var t=xs();return t.emitIfSelection(t.deleteAction,!0)}),cs(2,"i",17),$s(3,"delete_forever"),hs(),cs(4,"span",41),cs(5,"uds-translate"),$s(6,"Delete"),hs(),hs(),hs(),ps()}if(2&t){var i=xs();Aa(1),ls("disabled",i.selection.isEmpty())}}function rP(t,e){if(1&t){var n=vs();cs(0,"button",53),_s("click",function(){nn(n);var t=xs();return t.filterText="",t.applyFilter()}),cs(1,"i",17),$s(2,"close"),hs(),hs()}}function aP(t,e){1&t&&ds(0,"mat-header-cell")}function oP(t,e){1&t&&(cs(0,"i",17),$s(1,"check_box"),hs())}function sP(t,e){1&t&&(cs(0,"i",17),$s(1,"check_box_outline_blank"),hs())}function lP(t,e){if(1&t){var n=vs();cs(0,"mat-cell",56),_s("click",function(t){nn(n);var i=e.$implicit;return xs(2).clickRow(i,t)}),as(1,oP,2,0,"i",57),as(2,sP,2,0,"ng-template",null,58,ec),hs()}if(2&t){var i=e.$implicit,r=os(3),a=xs(2);Aa(1),ls("ngIf",a.selection.isSelected(i))("ngIfElse",r)}}function uP(t,e){1&t&&(fs(0,54),as(1,aP,1,0,"mat-header-cell",22),as(2,lP,4,2,"mat-cell",55),ps())}function cP(t,e){1&t&&ds(0,"mat-header-cell")}function hP(t,e){if(1&t){var n=vs();cs(0,"mat-cell"),cs(1,"div",59),_s("click",function(t){nn(n);var i=e.$implicit,r=xs();return r.detailAction.emit({param:i,table:r}),t.stopPropagation()}),cs(2,"i",17),$s(3,"subdirectory_arrow_right"),hs(),hs(),hs()}}function dP(t,e){if(1&t&&(cs(0,"mat-header-cell",63),$s(1),hs()),2&t){var n=xs().$implicit;Aa(1),Xs(n.title)}}function fP(t,e){if(1&t){var n=vs();cs(0,"mat-cell",64),_s("click",function(t){nn(n);var i=e.$implicit;return xs(2).clickRow(i,t)})("contextmenu",function(t){nn(n);var i=e.$implicit;return xs(2).onContextMenu(i,t)}),ds(1,"div",65),hs()}if(2&t){var i=e.$implicit,r=xs().$implicit,a=xs();Aa(1),ls("innerHtml",a.getRowColumn(i,r),Dr)}}function pP(t,e){1&t&&(fs(0,60),as(1,dP,2,1,"mat-header-cell",61),as(2,fP,2,1,"mat-cell",62),ps()),2&t&&Os("matColumnDef",e.$implicit.name)}function mP(t,e){1&t&&ds(0,"mat-header-row")}function vP(t,e){if(1&t&&ds(0,"mat-row",66),2&t){var n=e.$implicit;ls("ngClass",xs().rowClass(n))}}function gP(t,e){if(1&t&&(cs(0,"div",67),$s(1),cs(2,"uds-translate"),$s(3,"Selected items"),hs(),hs()),2&t){var n=xs();Aa(1),Qs(" ",n.selection.selected.length," ")}}function yP(t,e){if(1&t){var n=vs();cs(0,"button",71),_s("click",function(){nn(n);var t=xs().item,e=xs();return e.detailAction.emit({param:t,table:e})}),cs(1,"i",72),$s(2,"subdirectory_arrow_right"),hs(),cs(3,"uds-translate"),$s(4,"Detail"),hs(),hs()}}function _P(t,e){if(1&t){var n=vs();cs(0,"button",71),_s("click",function(){nn(n);var t=xs(2);return t.emitIfSelection(t.editAction)}),cs(1,"i",72),$s(2,"edit"),hs(),cs(3,"uds-translate"),$s(4,"Edit"),hs(),hs()}}function bP(t,e){if(1&t){var n=vs();cs(0,"button",71),_s("click",function(){return nn(n),xs(2).permissions()}),cs(1,"i",72),$s(2,"perm_identity"),hs(),cs(3,"uds-translate"),$s(4,"Permissions"),hs(),hs()}}function kP(t,e){if(1&t){var n=vs();cs(0,"button",73),_s("click",function(){nn(n);var t=e.$implicit;return xs(2).emitCustom(t)}),hs()}if(2&t){var i=e.$implicit;ls("disabled",xs(2).isCustomDisabled(i))("innerHTML",i.html,Dr)}}function wP(t,e){if(1&t){var n=vs();cs(0,"button",74),_s("click",function(){nn(n);var t=xs(2);return t.emitIfSelection(t.deleteAction)}),cs(1,"i",72),$s(2,"delete_forever"),hs(),cs(3,"uds-translate"),$s(4,"Delete"),hs(),hs()}}function CP(t,e){if(1&t){var n=vs();cs(0,"button",73),_s("click",function(){nn(n);var t=e.$implicit;return xs(3).emitCustom(t)}),hs()}if(2&t){var i=e.$implicit;ls("disabled",xs(3).isCustomDisabled(i))("innerHTML",i.html,Dr)}}function SP(t,e){if(1&t&&(fs(0),ds(1,"mat-divider"),as(2,CP,1,2,"button",69),ps()),2&t){var n=xs(2);Aa(2),ls("ngForOf",n.getCustomAccelerators())}}function xP(t,e){if(1&t&&(as(0,yP,5,0,"button",68),as(1,_P,5,0,"button",68),as(2,bP,5,0,"button",68),as(3,kP,1,2,"button",69),as(4,wP,5,0,"button",70),as(5,SP,3,1,"ng-container",8)),2&t){var n=xs();ls("ngIf",n.detailAction.observers.length>0),Aa(1),ls("ngIf",n.editAction.observers.length>0),Aa(1),ls("ngIf",!0===n.hasPermissions),Aa(1),ls("ngForOf",n.getCustomMenu()),Aa(1),ls("ngIf",n.deleteAction.observers.length>0),Aa(1),ls("ngIf",n.hasAccelerators)}}var EP=function(){return[5,10,25,100,1e3]},AP=function(){function t(t){this.api=t,this.title="",this.subtitle="",this.displayedColumns=[],this.columns=[],this.rowStyleInfo=null,this.dataSource=new wT([]),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 Ru,this.rowSelected=new Ru,this.newAction=new Ru,this.editAction=new Ru,this.deleteAction=new Ru,this.customButtonAction=new Ru,this.detailAction=new Ru}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 uy(!0===this.multiSelect,[]);var e=this.rest.permision();0==(e&fD.MANAGEMENT)&&(this.newAction.observers.length=0,this.editAction.observers.length=0,this.deleteAction.observers.length=0,this.customButtonAction.observers.length=0),e!==fD.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?TA.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!==RA.ONLY_MENU&&t.type!==RA.ACCELERATOR}):[]},t.prototype.getCustomMenu=function(){return this.customButtons?this.customButtons.filter(function(t){return t.type!==RA.ACCELERATOR}):[]},t.prototype.getCustomAccelerators=function(){return this.customButtons?this.customButtons.filter(function(t){return t.type===RA.ACCELERATOR}):[]},t.prototype.getRowColumn=function(t,e){var n=t[e.name];switch(e.type){case TA.IMAGE:return this.api.safeString(this.api.gui.icon(n,"48px"));case TA.DATE:n=uR("SHORT_DATE_FORMAT",n);break;case TA.DATETIME:n=uR("SHORT_DATETIME_FORMAT",n);break;case TA.TIME:n=uR("TIME_FORMAT",n);break;case TA.DATETIMESEC:n=uR("SHORT_DATE_FORMAT",n," H:i:s");break;case TA.ICON:try{n=this.api.gui.icon(this.types.get(t.type).icon)+n}catch(i){}return this.api.safeString(n);case TA.CALLBACK:break;case TA.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 RA.SINGLE_SELECT:return 1!==this.selection.selected.length||!0===t.disabled;case RA.MULTI_SELECT:return this.selection.isEmpty()||!0===t.disabled;default:return!1}},t.prototype.emitCustom=function(t){(this.selection.selected.length||t.type===RA.ALWAYS)&&(t.type===RA.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),Aa(1),ls("ngIf",e.editAction.observers.length>0),Aa(1),ls("ngIf",!0===e.hasPermissions),Aa(1),ls("ngIf",e.hasCustomButtons),Aa(1),ls("ngIf",1==e.allowExport),Aa(1),ls("ngIf",e.deleteAction.observers.length>0),Aa(7),ls("ngModel",e.filterText),Aa(1),ls("ngIf",e.filterText),Aa(2),ls("pageSize",e.pageSize)("hidePageSize",!0)("pageSizeOptions",ku(27,EP))("showFirstLastButtons",!0),Aa(6),ls("dataSource",e.dataSource),Aa(1),ls("ngIf",e.hasButtons),Aa(4),ls("ngForOf",e.columns),Aa(1),ls("matHeaderRowDef",e.displayedColumns),Aa(1),ls("matRowDefColumns",e.displayedColumns),Aa(1),ls("hidden",!e.loading),Aa(5),ls("ngIf",e.hasButtons&&e.selection.selected.length>0),Aa(1),Vs("left",e.contextMenuPosition.x)("top",e.contextMenuPosition.y),ls("matMenuTriggerFor",n)}},directives:[Th,TS,fO,FT,YS,px,tE,iI,OS,tT,uI,oT,rT,nT,Oh,dT,pT,yR,LR,RR,xR,DR,DS,lO,lT,cT,vI,vT,yT,Ah,jR],pipes:[qh,zR],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}(),DP='pause'+django.gettext("Maintenance")+"",OP='pause'+django.gettext("Exit maintenance mode")+"",IP='pause'+django.gettext("Enter maintenance mode")+"",TP=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.cButtons=[{id:"maintenance",html:DP,type:RA.SINGLE_SELECT}]}return t.prototype.ngOnInit=function(){},Object.defineProperty(t.prototype,"customButtons",{get:function(){return this.api.user.isAdmin?this.cButtons:[]},enumerable:!1,configurable:!0}),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?DP:e.selection.selected[0].maintenance_mode?OP:IP},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)(ss(cm),ss(RD),ss(uD))},t.\u0275cmp=oe({type:t,selectors:[["uds-services"]],decls:1,vars:7,consts:[["tableId","service-providers","icon","providers",3,"rest","onItem","multiSelect","allowExport","hasPermissions","customButtons","pageSize","customButtonAction","newAction","editAction","deleteAction","rowSelected","detailAction","loaded"]],template:function(t,e){1&t&&(cs(0,"uds-table",0),_s("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)}),hs()),2&t&&ls("rest",e.rest.providers)("onItem",e.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",e.customButtons)("pageSize",e.api.config.admin.page_size)},directives:[AP],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}(),RP=n("MCLT"),PP=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?TA.ALPHANUMERIC:t.type},e})}return t.prototype.get=function(t){return xf},t.prototype.getLogs=function(t){return xf},t.prototype.overview=function(t){return Object(RP.isFunction)(this.data)?this.data():Od([])},t.prototype.summary=function(t){return this.overview()},t.prototype.put=function(t,e){return xf},t.prototype.create=function(t){return xf},t.prototype.save=function(t,e){return xf},t.prototype.test=function(t,e){return xf},t.prototype.delete=function(t){return xf},t.prototype.permision=function(){return fD.ALL},t.prototype.getPermissions=function(t){return xf},t.prototype.addPermission=function(t,e,n,i){return xf},t.prototype.revokePermission=function(t){return xf},t.prototype.types=function(){return Od([])},t.prototype.gui=function(t){return xf},t.prototype.callback=function(t,e){return xf},t.prototype.tableInfo=function(){return Od({fields:this.columnsDefinition,title:this.title})},t.prototype.detail=function(t,e){return null},t.prototype.invoke=function(t,e){return xf},t}();function MP(t,e){if(1&t){var n=vs();cs(0,"button",24),_s("click",function(){nn(n);var t=xs();return t.filterText="",t.applyFilter()}),cs(1,"i",8),$s(2,"close"),hs(),hs()}}function FP(t,e){if(1&t&&(cs(0,"mat-header-cell",28),$s(1),hs()),2&t){var n=xs().$implicit;Aa(1),Xs(n)}}function LP(t,e){if(1&t&&(cs(0,"mat-cell"),ds(1,"div",29),hs()),2&t){var n=e.$implicit,i=xs().$implicit,r=xs();Aa(1),ls("innerHtml",r.getRowColumn(n,i),Dr)}}function NP(t,e){1&t&&(fs(0,25),as(1,FP,2,1,"mat-header-cell",26),as(2,LP,2,1,"mat-cell",27),ps()),2&t&&ls("matColumnDef",e.$implicit)}function VP(t,e){1&t&&ds(0,"mat-header-row")}function jP(t,e){if(1&t&&ds(0,"mat-row",30),2&t){var n=e.$implicit;ls("ngClass",xs().rowClass(n))}}var BP=function(){return[5,10,25,100,1e3]},zP=function(){function t(t){this.api=t,this.filterText="",this.title="Logs",this.displayedColumns=["date","level","source","message"],this.columns=[],this.dataSource=new wT([]),this.selection=new uy,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?TA.DATETIMESEC:TA.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=uR("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(){fR(this)},t.prototype.keyDown=function(t){switch(t.keyCode){case Ry:this.paginator.firstPage(),t.preventDefault();break;case Ty:this.paginator.lastPage(),t.preventDefault();break;case Fy:this.paginator.nextPage(),t.preventDefault();break;case Py:this.paginator.previousPage(),t.preventDefault()}},t.\u0275fac=function(e){return new(e||t)(ss(uD))},t.\u0275cmp=oe({type:t,selectors:[["uds-logs-table"]],viewQuery:function(t,e){if(1&t&&(Wu(iI,!0),Wu(uI,!0)),2&t){var n=void 0;qu(n=Xu())&&(e.paginator=n.first),qu(n=Xu())&&(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&&(cs(0,"div",0),cs(1,"div",1),cs(2,"div",2),ds(3,"img",3),$s(4," \xa0"),cs(5,"uds-translate"),$s(6,"Logs"),hs(),hs(),hs(),cs(7,"div",4),cs(8,"div",5),cs(9,"div",6),cs(10,"a",7),_s("click",function(){return e.export()}),cs(11,"i",8),$s(12,"import_export"),hs(),cs(13,"span",9),cs(14,"uds-translate"),$s(15,"Export"),hs(),hs(),hs(),hs(),cs(16,"div",10),cs(17,"div",11),cs(18,"uds-translate"),$s(19,"Filter"),hs(),$s(20,"\xa0 "),cs(21,"mat-form-field"),cs(22,"input",12),_s("keyup",function(){return e.applyFilter()})("ngModelChange",function(t){return e.filterText=t}),hs(),as(23,MP,3,0,"button",13),hs(),hs(),cs(24,"div",14),ds(25,"mat-paginator",15),hs(),cs(26,"div",16),cs(27,"a",17),_s("click",function(){return e.overview()}),cs(28,"i",8),$s(29,"autorenew"),hs(),hs(),hs(),hs(),hs(),cs(30,"div",18),_s("keydown",function(t){return e.keyDown(t)}),cs(31,"mat-table",19),_s("matSortChange",function(t){return e.sortChanged(t)}),as(32,NP,3,1,"ng-container",20),as(33,VP,1,0,"mat-header-row",21),as(34,jP,1,1,"mat-row",22),hs(),hs(),ds(35,"div",23),hs(),hs()),2&t&&(Aa(3),ls("src",e.api.staticURL("admin/img/icons/logs.png"),Or),Aa(19),ls("ngModel",e.filterText),Aa(1),ls("ngIf",e.filterText),Aa(2),ls("pageSize",e.pageSize)("hidePageSize",!0)("pageSizeOptions",ku(11,BP))("showFirstLastButtons",!0),Aa(6),ls("dataSource",e.dataSource),Aa(1),ls("ngForOf",e.displayedColumns),Aa(1),ls("matHeaderRowDef",e.displayedColumns),Aa(1),ls("matRowDefColumns",e.displayedColumns))},directives:[TS,OS,fO,FT,YS,px,tE,Th,iI,tT,uI,Oh,dT,pT,DS,lO,oT,rT,nT,lT,vI,cT,vT,yT,Ah],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 HP(t,e){1&t&&(cs(0,"uds-translate"),$s(1,"Services pools"),hs())}function UP(t,e){1&t&&(cs(0,"uds-translate"),$s(1,"Logs"),hs())}var qP=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],WP=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.customButtons=[UA.getGotoButton(FA,"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 PP(django.gettext("Service pools"),function(){return t.services.invoke(t.service.id+"/servicesPools")},qP,this.service.id+"infopsls")},t.\u0275fac=function(e){return new(e||t)(ss(uD),ss(RD),ss(sS),ss(uS))},t.\u0275cmp=oe({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&&(cs(0,"h4",0),cs(1,"uds-translate"),$s(2,"Information for"),hs(),$s(3),hs(),cs(4,"mat-dialog-content"),cs(5,"mat-tab-group"),cs(6,"mat-tab"),as(7,HP,2,0,"ng-template",1),ds(8,"uds-table",2),hs(),cs(9,"mat-tab"),as(10,UP,2,0,"ng-template",1),cs(11,"div",3),ds(12,"uds-logs-table",4),hs(),hs(),hs(),hs(),cs(13,"mat-dialog-actions"),cs(14,"button",5),cs(15,"uds-translate"),$s(16,"Ok"),hs(),hs(),hs()),2&t&&(Aa(3),Qs(" ",e.service.name,"\n"),Aa(5),ls("rest",e.servicePools)("customButtons",e.customButtons),Aa(4),ls("rest",e.services)("itemId",e.service.id)("tableId","serviceInfo-d-log"+e.service.id)("pageSize",5))},directives:[gS,TS,yS,XE,zE,NE,AP,zP,_S,DS,vS],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 YP(t,e){if(1&t&&(cs(0,"div",3),ds(1,"div",4),ds(2,"div",5),hs()),2&t){var n=e.$implicit;Aa(1),ls("innerHTML",n.gui.label,Dr),Aa(1),ls("innerHTML",n.value,Dr)}}var GP=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!==VS.HIDDEN});e.forEach(function(e){var n=t.value[e.name];switch(e.gui.type){case VS.CHECKBOX:e.value=n?django.gettext("Yes"):django.gettext("No");break;case VS.PASSWORD:e.value=django.gettext("(hidden)");break;case VS.CHOICE:var i=jS.locateChoice(n,e);e.value=i.text;break;case VS.MULTI_CHOICE:e.value=django.gettext("Selected items :")+n.length;break;case VS.IMAGECHOICE:i=jS.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)(ss(uD))},t.\u0275cmp=oe({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&&(cs(0,"div",0),cs(1,"div",1),as(2,YP,3,2,"div",2),hs(),ds(3,"div"),hs()),2&t&&(Aa(2),ls("ngForOf",e.displayables))},directives:[Oh],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 KP(t,e){1&t&&(cs(0,"uds-translate"),$s(1,"Summary"),hs())}function ZP(t,e){if(1&t&&ds(0,"uds-information",15),2&t){var n=xs(2);ls("value",n.provider)("gui",n.gui)}}function $P(t,e){1&t&&(cs(0,"uds-translate"),$s(1,"Services"),hs())}function XP(t,e){1&t&&(cs(0,"uds-translate"),$s(1,"Usage"),hs())}function QP(t,e){1&t&&(cs(0,"uds-translate"),$s(1,"Logs"),hs())}function JP(t,e){if(1&t){var n=vs();cs(0,"div",6),cs(1,"div",7),cs(2,"mat-tab-group",8),_s("selectedIndexChange",function(t){return nn(n),xs().selectedTab=t}),cs(3,"mat-tab"),as(4,KP,2,0,"ng-template",9),cs(5,"div",10),as(6,ZP,1,2,"uds-information",11),hs(),hs(),cs(7,"mat-tab"),as(8,$P,2,0,"ng-template",9),cs(9,"div",10),cs(10,"uds-table",12),_s("newAction",function(t){return nn(n),xs().onNewService(t)})("editAction",function(t){return nn(n),xs().onEditService(t)})("deleteAction",function(t){return nn(n),xs().onDeleteService(t)})("customButtonAction",function(t){return nn(n),xs().onInformation(t)})("loaded",function(t){return nn(n),xs().onLoad(t)}),hs(),hs(),hs(),cs(11,"mat-tab"),as(12,XP,2,0,"ng-template",9),cs(13,"div",10),cs(14,"uds-table",13),_s("deleteAction",function(t){return nn(n),xs().onDeleteUsage(t)}),hs(),hs(),hs(),cs(15,"mat-tab"),as(16,QP,2,0,"ng-template",9),cs(17,"div",10),ds(18,"uds-logs-table",14),hs(),hs(),hs(),hs(),hs()}if(2&t){var i=xs();Aa(2),ls("selectedIndex",i.selectedTab)("@.disabled",!0),Aa(4),ls("ngIf",i.provider&&i.gui),Aa(4),ls("rest",i.services)("multiSelect",!0)("allowExport",!0)("customButtons",i.customButtons)("pageSize",i.api.config.admin.page_size)("tableId","providers-d-services"+i.provider.id),Aa(4),ls("rest",i.usage)("multiSelect",!0)("allowExport",!0)("pageSize",i.api.config.admin.page_size)("tableId","providers-d-usage"+i.provider.id),Aa(4),ls("rest",i.services.parentModel)("itemId",i.provider.id)("tableId","providers-d-log"+i.provider.id)}}var tM=function(t){return["/providers",t]},eM=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:RA.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){WP.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)(ss(cm),ss(RD),ss(uD))},t.\u0275cmp=oe({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","pageSize","tableId","newAction","editAction","deleteAction","customButtonAction","loaded"],["icon","usage",3,"rest","multiSelect","allowExport","pageSize","tableId","deleteAction"],[3,"rest","itemId","tableId"],[3,"value","gui"]],template:function(t,e){1&t&&(cs(0,"div",0),cs(1,"div",1),cs(2,"a",2),cs(3,"i",3),$s(4,"arrow_back"),hs(),hs(),$s(5," \xa0"),ds(6,"img",4),$s(7),hs(),as(8,JP,19,17,"div",5),hs()),2&t&&(Aa(2),ls("routerLink",wu(4,tM,e.services.parentId)),Aa(4),ls("src",e.api.staticURL("admin/img/icons/services.png"),Or),Aa(1),Qs(" \xa0",null==e.provider?null:e.provider.name," "),Aa(1),ls("ngIf",null!==e.provider))},directives:[Vv,Th,XE,zE,NE,AP,zP,TS,GP],styles:[""]}),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("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)(ss(uD),ss(cm),ss(RD))},t.\u0275cmp=oe({type:t,selectors:[["uds-authenticators"]],decls:2,vars:6,consts:[["icon","authenticators",3,"rest","multiSelect","allowExport","hasPermissions","onItem","pageSize","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,e){1&t&&(cs(0,"div"),cs(1,"uds-table",0),_s("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)}),hs(),hs()),2&t&&(Aa(1),ls("rest",e.rest.authenticators)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",e.processElement)("pageSize",e.api.config.admin.page_size))},directives:[AP],styles:[""]}),t}(),iM=["panel"];function rM(t,e){if(1&t&&(cs(0,"div",0,1),Ds(2),hs()),2&t){var n=e.id,i=xs();ls("id",i.id)("ngClass",i._classList),is("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(n))}}var aM=["*"],oM=0,sM=function t(e,n){g(this,t),this.source=e,this.option=n},lM=cC(function t(){g(this,t)}),uM=new bi("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}}),cM=function(){var t=function(t){y(n,t);var e=k(n);function n(t,i,r){var a;return g(this,n),(a=e.call(this))._changeDetectorRef=t,a._elementRef=i,a._activeOptionChanges=A.EMPTY,a.showPanel=!1,a._isOpen=!1,a.displayWith=null,a.optionSelected=new Ru,a.opened=new Ru,a.closed=new Ru,a.optionActivated=new Ru,a._classList={},a.id="mat-autocomplete-".concat(oM++),a._autoActiveFirstOption=!!r.autoActiveFirstOption,a}return v(n,[{key:"ngAfterContentInit",value:function(){var t=this;this._keyManager=new F_(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(function(e){t.optionActivated.emit({source:t,option:t.options.toArray()[e]||null})}),this._setVisibility()}},{key:"ngOnDestroy",value:function(){this._activeOptionChanges.unsubscribe()}},{key:"_setScrollTop",value:function(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}},{key:"_getScrollTop",value:function(){return this.panel?this.panel.nativeElement.scrollTop:0}},{key:"_setVisibility",value:function(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}},{key:"_emitSelectEvent",value:function(t){var e=new sM(this,t);this.optionSelected.emit(e)}},{key:"_getPanelAriaLabelledby",value:function(t){return this.ariaLabel?null:this.ariaLabelledby?t+" "+this.ariaLabelledby:t}},{key:"_setVisibilityClasses",value:function(t){t[this._visibleClass]=this.showPanel,t[this._hiddenClass]=!this.showPanel}},{key:"isOpen",get:function(){return this._isOpen&&this.showPanel}},{key:"autoActiveFirstOption",get:function(){return this._autoActiveFirstOption},set:function(t){this._autoActiveFirstOption=lg(t)}},{key:"classList",set:function(t){this._classList=t&&t.length?pg(t).reduce(function(t,e){return t[e]=!0,t},{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}}]),n}(lM);return t.\u0275fac=function(e){return new(e||t)(ss(Kl),ss(xl),ss(uM))},t.\u0275dir=de({type:t,viewQuery:function(t,e){var n;1&t&&(Wu(eu,!0),Yu(iM,!0)),2&t&&(qu(n=Xu())&&(e.template=n.first),qu(n=Xu())&&(e.panel=n.first))},inputs:{displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[qo]}),t}(),hM=function(){var t=function(t){y(n,t);var e=k(n);function n(){var t;return g(this,n),(t=e.apply(this,arguments))._visibleClass="mat-autocomplete-visible",t._hiddenClass="mat-autocomplete-hidden",t}return n}(cM);return t.\u0275fac=function(e){return dM(e||t)},t.\u0275cmp=oe({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(t,e,n){var i;1&t&&(Ku(n,WC,!0),Ku(n,$C,!0)),2&t&&(qu(i=Xu())&&(e.optionGroups=i),qu(i=Xu())&&(e.options=i))},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[gl([{provide:KC,useExisting:t}]),qo],ngContentSelectors:aM,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,e){1&t&&(As(),as(0,rM,3,4,"ng-template"))},directives:[Ah],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}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}\n"],encapsulation:2,changeDetection:0}),t}(),dM=vi(hM),fM=new bi("mat-autocomplete-scroll-strategy"),pM={provide:fM,deps:[h_],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},mM={provide:zS,useExisting:xt(function(){return gM}),multi:!0},vM=function(){var t=function(){function t(e,n,i,r,a,o,s,l,u,c,d){var f=this;g(this,t),this._element=e,this._overlay=n,this._viewContainerRef=i,this._zone=r,this._changeDetectorRef=a,this._dir=s,this._formField=l,this._document=u,this._viewportRuler=c,this._defaults=d,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=A.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new q,this._windowBlurHandler=function(){f._canOpenOnNextFocus=f._document.activeElement!==f._element.nativeElement||f.panelOpen},this._onChange=function(){},this._onTouched=function(){},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=Af(function(){return f.autocomplete&&f.autocomplete.options?dt.apply(void 0,h(f.autocomplete.options.map(function(t){return t.onSelectionChange}))):f._zone.onStable.pipe(Rf(1),Df(function(){return f.optionSelections}))}),this._scrollStrategy=o}return v(t,[{key:"ngAfterViewInit",value:function(){var t=this,e=this._getWindow();void 0!==e&&this._zone.runOutsideAngular(function(){return e.addEventListener("blur",t._windowBlurHandler)})}},{key:"ngOnChanges",value:function(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}},{key:"ngOnDestroy",value:function(){var t=this._getWindow();void 0!==t&&t.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}},{key:"openPanel",value:function(){this._attachOverlay(),this._floatLabel()}},{key:"closePanel",value: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())}},{key:"updatePosition",value:function(){this._overlayAttached&&this._overlayRef.updatePosition()}},{key:"_getOutsideClickStream",value:function(){var t=this;return dt(mg(this._document,"click"),mg(this._document,"auxclick"),mg(this._document,"touchend")).pipe(Td(function(e){var n=t._isInsideShadowRoot&&e.composedPath?e.composedPath()[0]:e.target,i=t._formField?t._formField._elementRef.nativeElement:null,r=t.connectedTo?t.connectedTo.elementRef.nativeElement:null;return t._overlayAttached&&n!==t._element.nativeElement&&(!i||!i.contains(n))&&(!r||!r.contains(n))&&!!t._overlayRef&&!t._overlayRef.overlayElement.contains(n)}))}},{key:"writeValue",value:function(t){var e=this;Promise.resolve(null).then(function(){return e._setTriggerValue(t)})}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this._element.nativeElement.disabled=t}},{key:"_handleKeydown",value:function(t){var e=t.keyCode;if(e!==Oy||Ny(t)||t.preventDefault(),this.activeOption&&e===Dy&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){var n=this.autocomplete._keyManager.activeItem,i=e===My||e===Ly;this.panelOpen||9===e?this.autocomplete._keyManager.onKeydown(t):i&&this._canOpen()&&this.openPanel(),(i||this.autocomplete._keyManager.activeItem!==n)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}},{key:"_handleInput",value: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())}},{key:"_handleFocus",value:function(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}},{key:"_floatLabel",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._formField&&"auto"===this._formField.floatLabel&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}},{key:"_resetLabel",value:function(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}},{key:"_subscribeToClosingActions",value:function(){var t=this;return dt(this._zone.onStable.pipe(Rf(1)),this.autocomplete.options.changes.pipe(tp(function(){return t._positionStrategy.reapplyLastPosition()}),ST(0))).pipe(Df(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}),Rf(1)).subscribe(function(e){return t._setValueAndClose(e)})}},{key:"_destroyPanel",value:function(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}},{key:"_setTriggerValue",value: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}},{key:"_setValueAndClose",value: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()}},{key:"_clearPreviousSelectedOption",value:function(t){this.autocomplete.options.forEach(function(e){e!==t&&e.selected&&e.deselect()})}},{key:"_attachOverlay",value:function(){var t,e=this;null==this._isInsideShadowRoot&&(this._isInsideShadowRoot=!!ny(this._element.nativeElement));var n=this._overlayRef;n?(this._positionStrategy.setOrigin(this._getConnectedElement()),n.updateSize({width:this._getPanelWidth()})):(this._portal=new gy(this.autocomplete.template,this._viewContainerRef,{id:null===(t=this._formField)||void 0===t?void 0:t._labelId}),n=this._overlay.create(this._getOverlayConfig()),this._overlayRef=n,n.keydownEvents().subscribe(function(t){(t.keyCode===Oy&&!Ny(t)||t.keyCode===My&&Ny(t,"altKey"))&&(e._resetActiveItem(),e._closeKeyEventStream.next(),t.stopPropagation(),t.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(function(){e.panelOpen&&n&&n.updateSize({width:e._getPanelWidth()})})),n&&!n.hasAttached()&&(n.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());var i=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&i!==this.panelOpen&&this.autocomplete.opened.emit()}},{key:"_getOverlayConfig",value:function(){var t;return new Yy({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(t=this._defaults)||void 0===t?void 0:t.overlayPanelClass})}},{key:"_getOverlayPosition",value:function(){var t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}},{key:"_setStrategyPositions",value:function(t){var e,n=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],i=this._aboveClass,r=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:i},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:i}];e="above"===this.position?r:"below"===this.position?n:[].concat(n,r),t.withPositions(e)}},{key:"_getConnectedElement",value:function(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}},{key:"_getPanelWidth",value:function(){return this.autocomplete.panelWidth||this._getHostWidth()}},{key:"_getHostWidth",value:function(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}},{key:"_resetActiveItem",value:function(){this.autocomplete._keyManager.setActiveItem(this.autocomplete.autoActiveFirstOption?0:-1)}},{key:"_canOpen",value:function(){var t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this._autocompleteDisabled}},{key:"_getWindow",value:function(){var t;return(null===(t=this._document)||void 0===t?void 0:t.defaultView)||window}},{key:"_scrollToOption",value:function(t){var e=this.autocomplete,n=XC(t,e.options,e.optionGroups);if(0===t&&1===n)e._setScrollTop(0);else{var i=e.options.toArray()[t];if(i){var r=i._getHostElement(),a=QC(r.offsetTop,r.offsetHeight,e._getScrollTop(),e.panel.nativeElement.offsetHeight);e._setScrollTop(a)}}}},{key:"autocompleteDisabled",get:function(){return this._autocompleteDisabled},set:function(t){this._autocompleteDisabled=lg(t)}},{key:"panelOpen",get:function(){return this._overlayAttached&&this.autocomplete.showPanel}},{key:"panelClosingActions",get:function(){var t=this;return dt(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Td(function(){return t._overlayAttached})),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Td(function(){return t._overlayAttached})):Od()).pipe(G(function(t){return t instanceof GC?t:null}))}},{key:"activeOption",get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}}]),t}();return t.\u0275fac=function(e){return new(e||t)(ss(xl),ss(h_),ss(su),ss(Cc),ss(Kl),ss(fM),ss(ry,8),ss(dO,9),ss(ah,8),ss(dy),ss(uM,8))},t.\u0275dir=de({type:t,inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},features:[Ie]}),t}(),gM=function(){var t=function(t){y(n,t);var e=k(n);function n(){var t;return g(this,n),(t=e.apply(this,arguments))._aboveClass="mat-autocomplete-panel-above",t}return n}(vM);return t.\u0275fac=function(e){return yM(e||t)},t.\u0275dir=de({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,e){1&t&&_s("focusin",function(){return e._handleFocus()})("blur",function(){return e._onTouched()})("input",function(t){return e._handleInput(t)})("keydown",function(t){return e._handleKeydown(t)}),2&t&&is("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==e.autocomplete?null:e.autocomplete.id)("aria-haspopup",!e.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[gl([mM]),qo]}),t}(),yM=vi(gM),_M=function(){var t=function t(){g(this,t)};return t.\u0275mod=ce({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[pM],imports:[[g_,JC,sC,Yh],fy,JC,sC]}),t}();function bM(t,e){if(1&t&&(cs(0,"div"),cs(1,"uds-translate"),$s(2,"Edit user"),hs(),$s(3),hs()),2&t){var n=xs();Aa(3),Qs(" ",n.user.name," ")}}function kM(t,e){1&t&&(cs(0,"uds-translate"),$s(1,"New user"),hs())}function wM(t,e){if(1&t){var n=vs();cs(0,"mat-form-field"),cs(1,"mat-label"),$s(2),hs(),cs(3,"input",18),_s("ngModelChange",function(t){return nn(n),xs().user.name=t}),hs(),hs()}if(2&t){var i=xs();Aa(2),Qs(" ",i.authenticator.type_info.userNameLabel," "),Aa(1),ls("ngModel",i.user.name)("disabled",i.user.id)}}function CM(t,e){if(1&t&&(cs(0,"mat-option",21),$s(1),hs()),2&t){var n=e.$implicit;ls("value",n.id),Aa(1),Js(" ",n.id," (",n.name,") ")}}function SM(t,e){if(1&t){var n=vs();cs(0,"mat-form-field"),cs(1,"mat-label"),$s(2),hs(),cs(3,"input",19),_s("ngModelChange",function(t){return nn(n),xs().user.name=t})("input",function(t){return nn(n),xs().filterUser(t)}),hs(),cs(4,"mat-autocomplete",null,20),as(6,CM,2,3,"mat-option",15),hs(),hs()}if(2&t){var i=os(5),r=xs();Aa(2),Qs(" ",r.authenticator.type_info.userNameLabel," "),Aa(1),ls("ngModel",r.user.name)("matAutocomplete",i),Aa(3),ls("ngForOf",r.users)}}function xM(t,e){if(1&t){var n=vs();cs(0,"mat-form-field"),cs(1,"mat-label"),$s(2),hs(),cs(3,"input",22),_s("ngModelChange",function(t){return nn(n),xs().user.password=t}),hs(),hs()}if(2&t){var i=xs();Aa(2),Qs(" ",i.authenticator.type_info.passwordLabel," "),Aa(1),ls("ngModel",i.user.password)}}function EM(t,e){if(1&t&&(cs(0,"mat-option",21),$s(1),hs()),2&t){var n=e.$implicit;ls("value",n.id),Aa(1),Qs(" ",n.name," ")}}var AM=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Ru(!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)(ss(uD),ss(RD),ss(sS),ss(uS))},t.\u0275cmp=oe({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&&(cs(0,"h4",0),as(1,bM,4,1,"div",1),as(2,kM,2,0,"ng-template",null,2,ec),hs(),cs(4,"mat-dialog-content"),cs(5,"div",3),as(6,wM,4,3,"mat-form-field",4),as(7,SM,7,4,"mat-form-field",4),cs(8,"mat-form-field"),cs(9,"mat-label"),cs(10,"uds-translate"),$s(11,"Real name"),hs(),hs(),cs(12,"input",5),_s("ngModelChange",function(t){return e.user.real_name=t}),hs(),hs(),cs(13,"mat-form-field"),cs(14,"mat-label"),cs(15,"uds-translate"),$s(16,"Comments"),hs(),hs(),cs(17,"input",5),_s("ngModelChange",function(t){return e.user.comments=t}),hs(),hs(),cs(18,"mat-form-field"),cs(19,"mat-label"),cs(20,"uds-translate"),$s(21,"State"),hs(),hs(),cs(22,"mat-select",6),_s("ngModelChange",function(t){return e.user.state=t}),cs(23,"mat-option",7),cs(24,"uds-translate"),$s(25,"Enabled"),hs(),hs(),cs(26,"mat-option",8),cs(27,"uds-translate"),$s(28,"Disabled"),hs(),hs(),cs(29,"mat-option",9),cs(30,"uds-translate"),$s(31,"Blocked"),hs(),hs(),hs(),hs(),cs(32,"mat-form-field"),cs(33,"mat-label"),cs(34,"uds-translate"),$s(35,"Role"),hs(),hs(),cs(36,"mat-select",10),_s("ngModelChange",function(t){return e.user.role=t})("valueChange",function(t){return e.roleChanged(t)}),cs(37,"mat-option",11),cs(38,"uds-translate"),$s(39,"Admin"),hs(),hs(),cs(40,"mat-option",12),cs(41,"uds-translate"),$s(42,"Staff member"),hs(),hs(),cs(43,"mat-option",13),cs(44,"uds-translate"),$s(45,"User"),hs(),hs(),hs(),hs(),as(46,xM,4,2,"mat-form-field",4),cs(47,"mat-form-field"),cs(48,"mat-label"),cs(49,"uds-translate"),$s(50,"Groups"),hs(),hs(),cs(51,"mat-select",14),_s("ngModelChange",function(t){return e.user.groups=t}),as(52,EM,2,2,"mat-option",15),hs(),hs(),hs(),hs(),cs(53,"mat-dialog-actions"),cs(54,"button",16),cs(55,"uds-translate"),$s(56,"Cancel"),hs(),hs(),cs(57,"button",17),_s("click",function(){return e.save()}),cs(58,"uds-translate"),$s(59,"Ok"),hs(),hs(),hs()),2&t){var n=os(3);Aa(1),ls("ngIf",e.user.id)("ngIfElse",n),Aa(5),ls("ngIf",!1===e.authenticator.type_info.canSearchUsers||e.user.id),Aa(1),ls("ngIf",!0===e.authenticator.type_info.canSearchUsers&&!e.user.id),Aa(5),ls("ngModel",e.user.real_name),Aa(5),ls("ngModel",e.user.comments),Aa(5),ls("ngModel",e.user.state),Aa(14),ls("ngModel",e.user.role),Aa(10),ls("ngIf",e.authenticator.type_info.needsPassword),Aa(5),ls("ngModel",e.user.groups),Aa(1),ls("ngForOf",e.groups)}},directives:[gS,Th,yS,fO,rO,TS,FT,YS,px,tE,FO,$C,Oh,_S,DS,vS,gM,hM],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=["thumbContainer"],OM=["toggleBar"],IM=["input"],TM=function(){return{enterDuration:150}},RM=["*"],PM=new bi("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1}}}),MM=0,FM={provide:zS,useExisting:xt(function(){return VM}),multi:!0},LM=function t(e,n){g(this,t),this.source=e,this.checked=n},NM=hC(uC(cC(lC(function t(e){g(this,t),this._elementRef=e})),"accent")),VM=function(){var t=function(t){y(n,t);var e=k(n);function n(t,i,r,a,o,s){var l;return g(this,n),(l=e.call(this,t))._focusMonitor=i,l._changeDetectorRef=r,l.defaults=o,l._animationMode=s,l._onChange=function(t){},l._onTouched=function(){},l._uniqueId="mat-slide-toggle-".concat(++MM),l._required=!1,l._checked=!1,l.name=null,l.id=l._uniqueId,l.labelPosition="after",l.ariaLabel=null,l.ariaLabelledby=null,l.change=new Ru,l.toggleChange=new Ru,l.tabIndex=parseInt(a)||0,l}return v(n,[{key:"ngAfterContentInit",value:function(){var t=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(e){"keyboard"===e||"program"===e?t._inputElement.nativeElement.focus():e||Promise.resolve().then(function(){return t._onTouched()})})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"_onChangeEvent",value:function(t){t.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}},{key:"_onInputClick",value:function(t){t.stopPropagation()}},{key:"writeValue",value:function(t){this.checked=!!t}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t,this._changeDetectorRef.markForCheck()}},{key:"focus",value:function(t){this._focusMonitor.focusVia(this._inputElement,"keyboard",t)}},{key:"toggle",value:function(){this.checked=!this.checked,this._onChange(this.checked)}},{key:"_emitChangeEvent",value:function(){this._onChange(this.checked),this.change.emit(new LM(this,this.checked))}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}},{key:"required",get:function(){return this._required},set:function(t){this._required=lg(t)}},{key:"checked",get:function(){return this._checked},set:function(t){this._checked=lg(t),this._changeDetectorRef.markForCheck()}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}}]),n}(NM);return t.\u0275fac=function(e){return new(e||t)(ss(xl),ss($_),ss(Kl),gi("tabindex"),ss(PM),ss(Xw,8))},t.\u0275cmp=oe({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(t,e){var n;1&t&&(Yu(DM,!0),Yu(OM,!0),Yu(IM,!0)),2&t&&(qu(n=Xu())&&(e._thumbEl=n.first),qu(n=Xu())&&(e._thumbBarEl=n.first),qu(n=Xu())&&(e._inputElement=n.first))},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(t,e){2&t&&(tl("id",e.id),is("tabindex",e.disabled?null:-1)("aria-label",null)("aria-labelledby",null),js("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",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[gl([FM]),qo],ngContentSelectors:RM,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"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",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&&(As(),cs(0,"label",0,1),cs(2,"div",2,3),cs(4,"input",4,5),_s("change",function(t){return e._onChangeEvent(t)})("click",function(t){return e._onInputClick(t)}),hs(),cs(6,"div",6,7),ds(8,"div",8),cs(9,"div",9),ds(10,"div",10),hs(),hs(),hs(),cs(11,"span",11,12),_s("cdkObserveContent",function(){return e._onLabelTextChange()}),cs(13,"span",13),$s(14,"\xa0"),hs(),Ds(15),hs(),hs()),2&t){var n=os(1),i=os(12);is("for",e.inputId),Aa(2),js("mat-slide-toggle-bar-no-side-margin",!i.textContent||!i.textContent.trim()),Aa(2),ls("id",e.inputId)("required",e.required)("tabIndex",e.tabIndex)("checked",e.checked)("disabled",e.disabled),is("name",e.name)("aria-checked",e.checked.toString())("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),Aa(5),ls("matRippleTrigger",n)("matRippleDisabled",e.disableRipple||e.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",ku(17,TM))}},directives:[NC,S_],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline: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}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .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}._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}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),t}(),jM={provide:ZS,useExisting:xt(function(){return BM}),multi:!0},BM=function(){var t=function(t){y(n,t);var e=k(n);function n(){return g(this,n),e.apply(this,arguments)}return n}(lE);return t.\u0275fac=function(e){return zM(e||t)},t.\u0275dir=de({type:t,selectors:[["mat-slide-toggle","required","","formControlName",""],["mat-slide-toggle","required","","formControl",""],["mat-slide-toggle","required","","ngModel",""]],features:[gl([jM]),qo]}),t}(),zM=vi(BM),HM=function(){var t=function t(){g(this,t)};return t.\u0275mod=ce({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)}}),t}(),UM=function(){var t=function t(){g(this,t)};return t.\u0275mod=ce({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},imports:[[HM,VC,sC,x_],HM,sC]}),t}();function qM(t,e){if(1&t&&(cs(0,"div"),cs(1,"uds-translate"),$s(2,"Edit group"),hs(),$s(3),hs()),2&t){var n=xs();Aa(3),Qs(" ",n.group.name," ")}}function WM(t,e){1&t&&(cs(0,"uds-translate"),$s(1,"New group"),hs())}function YM(t,e){if(1&t){var n=vs();cs(0,"mat-form-field"),cs(1,"mat-label"),$s(2),hs(),cs(3,"input",13),_s("ngModelChange",function(t){return nn(n),xs(2).group.name=t}),hs(),hs()}if(2&t){var i=xs(2);Aa(2),Qs(" ",i.authenticator.type_info.groupNameLabel," "),Aa(1),ls("ngModel",i.group.name)("disabled",i.group.id)}}function GM(t,e){if(1&t&&(cs(0,"mat-option",17),$s(1),hs()),2&t){var n=e.$implicit;ls("value",n.id),Aa(1),Js(" ",n.id," (",n.name,") ")}}function KM(t,e){if(1&t){var n=vs();cs(0,"mat-form-field"),cs(1,"mat-label"),$s(2),hs(),cs(3,"input",14),_s("ngModelChange",function(t){return nn(n),xs(2).group.name=t})("input",function(t){return nn(n),xs(2).filterGroup(t)}),hs(),cs(4,"mat-autocomplete",null,15),as(6,GM,2,3,"mat-option",16),hs(),hs()}if(2&t){var i=os(5),r=xs(2);Aa(2),Qs(" ",r.authenticator.type_info.groupNameLabel," "),Aa(1),ls("ngModel",r.group.name)("matAutocomplete",i),Aa(3),ls("ngForOf",r.fltrGroup)}}function ZM(t,e){if(1&t&&(fs(0),as(1,YM,4,3,"mat-form-field",12),as(2,KM,7,4,"mat-form-field",12),ps()),2&t){var n=xs();Aa(1),ls("ngIf",!1===n.authenticator.type_info.canSearchGroups||n.group.id),Aa(1),ls("ngIf",!0===n.authenticator.type_info.canSearchGroups&&!n.group.id)}}function $M(t,e){if(1&t){var n=vs();cs(0,"mat-form-field"),cs(1,"mat-label"),cs(2,"uds-translate"),$s(3,"Meta group name"),hs(),hs(),cs(4,"input",13),_s("ngModelChange",function(t){return nn(n),xs().group.name=t}),hs(),hs()}if(2&t){var i=xs();Aa(4),ls("ngModel",i.group.name)("disabled",i.group.id)}}function XM(t,e){if(1&t&&(cs(0,"mat-option",17),$s(1),hs()),2&t){var n=e.$implicit;ls("value",n.id),Aa(1),Qs(" ",n.name," ")}}function QM(t,e){if(1&t){var n=vs();fs(0),cs(1,"mat-form-field"),cs(2,"mat-label"),cs(3,"uds-translate"),$s(4,"Service Pools"),hs(),hs(),cs(5,"mat-select",18),_s("ngModelChange",function(t){return nn(n),xs().group.pools=t}),as(6,XM,2,2,"mat-option",16),hs(),hs(),ps()}if(2&t){var i=xs();Aa(5),ls("ngModel",i.group.pools),Aa(1),ls("ngForOf",i.servicePools)}}function JM(t,e){if(1&t&&(cs(0,"mat-option",17),$s(1),hs()),2&t){var n=xs().$implicit;ls("value",n.id),Aa(1),Qs(" ",n.name," ")}}function tF(t,e){if(1&t&&(fs(0),as(1,JM,2,2,"mat-option",22),ps()),2&t){var n=e.$implicit;Aa(1),ls("ngIf","group"===n.type)}}function eF(t,e){if(1&t){var n=vs();cs(0,"div",19),cs(1,"span",20),cs(2,"uds-translate"),$s(3,"Match mode"),hs(),hs(),cs(4,"mat-slide-toggle",6),_s("ngModelChange",function(t){return nn(n),xs().group.meta_if_any=t}),$s(5),hs(),hs(),cs(6,"mat-form-field"),cs(7,"mat-label"),cs(8,"uds-translate"),$s(9,"Selected Groups"),hs(),hs(),cs(10,"mat-select",18),_s("ngModelChange",function(t){return nn(n),xs().group.groups=t}),as(11,tF,2,1,"ng-container",21),hs(),hs()}if(2&t){var i=xs();Aa(4),ls("ngModel",i.group.meta_if_any),Aa(1),Qs(" ",i.getMatchValue()," "),Aa(5),ls("ngModel",i.group.groups),Aa(1),ls("ngForOf",i.groups)}}var nF=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Ru(!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 a=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:a,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)(ss(uD),ss(RD),ss(sS),ss(uS))},t.\u0275cmp=oe({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&&(cs(0,"h4",0),as(1,qM,4,1,"div",1),as(2,WM,2,0,"ng-template",null,2,ec),hs(),cs(4,"mat-dialog-content"),cs(5,"div",3),as(6,ZM,3,2,"ng-container",1),as(7,$M,5,2,"ng-template",null,4,ec),cs(9,"mat-form-field"),cs(10,"mat-label"),cs(11,"uds-translate"),$s(12,"Comments"),hs(),hs(),cs(13,"input",5),_s("ngModelChange",function(t){return e.group.comments=t}),hs(),hs(),cs(14,"mat-form-field"),cs(15,"mat-label"),cs(16,"uds-translate"),$s(17,"State"),hs(),hs(),cs(18,"mat-select",6),_s("ngModelChange",function(t){return e.group.state=t}),cs(19,"mat-option",7),cs(20,"uds-translate"),$s(21,"Enabled"),hs(),hs(),cs(22,"mat-option",8),cs(23,"uds-translate"),$s(24,"Disabled"),hs(),hs(),hs(),hs(),as(25,QM,7,2,"ng-container",1),as(26,eF,12,4,"ng-template",null,9,ec),hs(),hs(),cs(28,"mat-dialog-actions"),cs(29,"button",10),cs(30,"uds-translate"),$s(31,"Cancel"),hs(),hs(),cs(32,"button",11),_s("click",function(){return e.save()}),cs(33,"uds-translate"),$s(34,"Ok"),hs(),hs(),hs()),2&t){var n=os(3),i=os(8),r=os(27);Aa(1),ls("ngIf",e.group.id)("ngIfElse",n),Aa(5),ls("ngIf","group"===e.group.type)("ngIfElse",i),Aa(7),ls("ngModel",e.group.comments),Aa(5),ls("ngModel",e.group.state),Aa(7),ls("ngIf","group"===e.group.type)("ngIfElse",r)}},directives:[gS,Th,yS,fO,rO,TS,FT,YS,px,tE,FO,$C,_S,DS,vS,gM,hM,Oh,VM],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 iF(t,e){1&t&&(cs(0,"uds-translate"),$s(1,"Groups"),hs())}function rF(t,e){if(1&t&&(cs(0,"mat-tab"),as(1,iF,2,0,"ng-template",3),ds(2,"uds-table",4),hs()),2&t){var n=xs();Aa(2),ls("rest",n.group)}}function aF(t,e){1&t&&(cs(0,"uds-translate"),$s(1,"Services Pools"),hs())}function oF(t,e){if(1&t&&(cs(0,"mat-tab"),as(1,aF,2,0,"ng-template",3),ds(2,"uds-table",4),hs()),2&t){var n=xs();Aa(2),ls("rest",n.servicesPools)}}function sF(t,e){1&t&&(cs(0,"uds-translate"),$s(1,"Assigned Services"),hs())}function lF(t,e){if(1&t&&(cs(0,"mat-tab"),as(1,sF,2,0,"ng-template",3),ds(2,"uds-table",4),hs()),2&t){var n=xs();Aa(2),ls("rest",n.userServices)}}var uF=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],cF=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],hF=[{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")}],dF=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 PP(django.gettext("Groups"),function(){return t.rest.authenticators.detail(t.users.parentId,"groups").overview().pipe(G(function(t){return t.filter(function(t){return e.groups.includes(t.id)})}))},uF,t.user.id+"infogrp"),t.servicesPools=new PP(django.gettext("Services Pools"),function(){return t.users.invoke(t.user.id+"/servicesPools")},cF,t.user.id+"infopool"),t.userServices=new PP(django.gettext("Assigned services"),function(){return t.users.invoke(t.user.id+"/userServices").pipe(G(function(e){return e.map(function(e){return e.in_use=t.api.yesno(e.in_use),e})}))},hF,t.user.id+"userservpool")})},t.\u0275fac=function(e){return new(e||t)(ss(uD),ss(RD),ss(sS),ss(uS))},t.\u0275cmp=oe({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&&(cs(0,"h4",0),cs(1,"uds-translate"),$s(2,"Information for"),hs(),$s(3),hs(),cs(4,"mat-dialog-content"),cs(5,"mat-tab-group"),as(6,rF,3,1,"mat-tab",1),as(7,oF,3,1,"mat-tab",1),as(8,lF,3,1,"mat-tab",1),hs(),hs(),cs(9,"mat-dialog-actions"),cs(10,"button",2),cs(11,"uds-translate"),$s(12,"Ok"),hs(),hs(),hs()),2&t&&(Aa(3),Qs(" ",e.user.name,"\n"),Aa(3),ls("ngIf",e.group),Aa(1),ls("ngIf",e.servicesPools),Aa(1),ls("ngIf",e.userServices))},directives:[gS,TS,yS,XE,Th,_S,DS,vS,zE,NE,AP],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}();function fF(t,e){1&t&&(cs(0,"uds-translate"),$s(1,"Services Pools"),hs())}function pF(t,e){if(1&t&&(cs(0,"mat-tab"),as(1,fF,2,0,"ng-template",3),ds(2,"uds-table",4),hs()),2&t){var n=xs();Aa(2),ls("rest",n.servicesPools)}}function mF(t,e){1&t&&(cs(0,"uds-translate"),$s(1,"Users"),hs())}function vF(t,e){if(1&t&&(cs(0,"mat-tab"),as(1,mF,2,0,"ng-template",3),ds(2,"uds-table",4),hs()),2&t){var n=xs();Aa(2),ls("rest",n.users)}}function gF(t,e){1&t&&(cs(0,"uds-translate"),$s(1,"Groups"),hs())}function yF(t,e){if(1&t&&(cs(0,"mat-tab"),as(1,gF,2,0,"ng-template",3),ds(2,"uds-table",4),hs()),2&t){var n=xs();Aa(2),ls("rest",n.groups)}}var _F=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],bF=[{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:TA.DATETIME}],kF=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],wF=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 PP(django.gettext("Service pools"),function(){return e.invoke(t.data.group.id+"/servicesPools")},_F,this.data.group.id+"infopls"),this.users=new PP(django.gettext("Users"),function(){return e.invoke(t.data.group.id+"/users").pipe(G(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})}))},bF,this.data.group.id+"infousr"),"meta"===this.data.group.type&&(this.groups=new PP(django.gettext("Groups"),function(){return e.overview().pipe(G(function(e){return e.filter(function(e){return t.data.group.groups.includes(e.id)})}))},kF,this.data.group.id+"infogrps"))},t.\u0275fac=function(e){return new(e||t)(ss(uD),ss(RD),ss(sS),ss(uS))},t.\u0275cmp=oe({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&&(cs(0,"h4",0),cs(1,"uds-translate"),$s(2,"Information for"),hs(),hs(),cs(3,"mat-dialog-content"),cs(4,"mat-tab-group"),as(5,pF,3,1,"mat-tab",1),as(6,vF,3,1,"mat-tab",1),as(7,yF,3,1,"mat-tab",1),hs(),hs(),cs(8,"mat-dialog-actions"),cs(9,"button",2),cs(10,"uds-translate"),$s(11,"Ok"),hs(),hs(),hs()),2&t&&(Aa(5),ls("ngIf",e.servicesPools),Aa(1),ls("ngIf",e.users),Aa(1),ls("ngIf",e.groups))},directives:[gS,TS,yS,XE,Th,_S,DS,vS,zE,NE,AP],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}();function CF(t,e){1&t&&(cs(0,"uds-translate"),$s(1,"Summary"),hs())}function SF(t,e){if(1&t&&ds(0,"uds-information",16),2&t){var n=xs(2);ls("value",n.authenticator)("gui",n.gui)}}function xF(t,e){1&t&&(cs(0,"uds-translate"),$s(1,"Users"),hs())}function EF(t,e){if(1&t){var n=vs();cs(0,"uds-table",17),_s("loaded",function(t){return nn(n),xs(2).onLoad(t)})("newAction",function(t){return nn(n),xs(2).onNewUser(t)})("editAction",function(t){return nn(n),xs(2).onEditUser(t)})("deleteAction",function(t){return nn(n),xs(2).onDeleteUser(t)})("customButtonAction",function(t){return nn(n),xs(2).onUserInformation(t)}),hs()}if(2&t){var i=xs(2);ls("rest",i.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+i.authenticator.id)("customButtons",i.customButtons)("pageSize",i.api.config.admin.page_size)}}function AF(t,e){if(1&t){var n=vs();cs(0,"uds-table",18),_s("loaded",function(t){return nn(n),xs(2).onLoad(t)})("editAction",function(t){return nn(n),xs(2).onEditUser(t)})("deleteAction",function(t){return nn(n),xs(2).onDeleteUser(t)})("customButtonAction",function(t){return nn(n),xs(2).onUserInformation(t)}),hs()}if(2&t){var i=xs(2);ls("rest",i.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+i.authenticator.id)("customButtons",i.customButtons)("pageSize",i.api.config.admin.page_size)}}function DF(t,e){1&t&&(cs(0,"uds-translate"),$s(1,"Groups"),hs())}function OF(t,e){1&t&&(cs(0,"uds-translate"),$s(1,"Logs"),hs())}function IF(t,e){if(1&t){var n=vs();cs(0,"div",6),cs(1,"div",7),cs(2,"mat-tab-group",8),_s("selectedIndexChange",function(t){return nn(n),xs().selectedTab=t}),cs(3,"mat-tab"),as(4,CF,2,0,"ng-template",9),cs(5,"div",10),as(6,SF,1,2,"uds-information",11),hs(),hs(),cs(7,"mat-tab"),as(8,xF,2,0,"ng-template",9),cs(9,"div",10),as(10,EF,1,6,"uds-table",12),as(11,AF,1,6,"uds-table",13),hs(),hs(),cs(12,"mat-tab"),as(13,DF,2,0,"ng-template",9),cs(14,"div",10),cs(15,"uds-table",14),_s("loaded",function(t){return nn(n),xs().onLoad(t)})("newAction",function(t){return nn(n),xs().onNewGroup(t)})("editAction",function(t){return nn(n),xs().onEditGroup(t)})("deleteAction",function(t){return nn(n),xs().onDeleteGroup(t)})("customButtonAction",function(t){return nn(n),xs().onGroupInformation(t)}),hs(),hs(),hs(),cs(16,"mat-tab"),as(17,OF,2,0,"ng-template",9),cs(18,"div",10),ds(19,"uds-logs-table",15),hs(),hs(),hs(),hs(),hs()}if(2&t){var i=xs();Aa(2),ls("selectedIndex",i.selectedTab)("@.disabled",!0),Aa(4),ls("ngIf",i.authenticator&&i.gui),Aa(4),ls("ngIf",i.authenticator.type_info.canCreateUsers),Aa(1),ls("ngIf",!i.authenticator.type_info.canCreateUsers),Aa(4),ls("rest",i.groups)("multiSelect",!0)("allowExport",!0)("customButtons",i.customButtons)("tableId","authenticators-d-groups"+i.authenticator.id)("pageSize",i.api.config.admin.page_size),Aa(4),ls("rest",i.rest.authenticators)("itemId",i.authenticator.id)("tableId","authenticators-d-log"+i.authenticator.id)}}var TF=function(t){return["/authenticators",t]},RF=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:RA.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){AM.launch(this.api,this.authenticator).subscribe(function(e){return t.table.overview()})},t.prototype.onEditUser=function(t){AM.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){nF.launch(this.api,this.authenticator,t.param.type).subscribe(function(e){return t.table.overview()})},t.prototype.onEditGroup=function(t){nF.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){dF.launch(this.api,this.users,t.table.selection.selected[0])},t.prototype.onGroupInformation=function(t){wF.launch(this.api,this.groups,t.table.selection.selected[0])},t.\u0275fac=function(e){return new(e||t)(ss(cm),ss(RD),ss(uD))},t.\u0275cmp=oe({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","pageSize","loaded","newAction","editAction","deleteAction","customButtonAction",4,"ngIf"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","loaded","editAction","deleteAction","customButtonAction",4,"ngIf"],["icon","groups",3,"rest","multiSelect","allowExport","customButtons","tableId","pageSize","loaded","newAction","editAction","deleteAction","customButtonAction"],[3,"rest","itemId","tableId"],[3,"value","gui"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","loaded","newAction","editAction","deleteAction","customButtonAction"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","loaded","editAction","deleteAction","customButtonAction"]],template:function(t,e){1&t&&(cs(0,"div",0),cs(1,"div",1),cs(2,"a",2),cs(3,"i",3),$s(4,"arrow_back"),hs(),hs(),$s(5," \xa0"),ds(6,"img",4),$s(7),hs(),as(8,IF,20,14,"div",5),hs()),2&t&&(Aa(2),ls("routerLink",wu(4,TF,e.authenticator?e.authenticator.id:"")),Aa(4),ls("src",e.api.staticURL("admin/img/icons/services.png"),Or),Aa(1),Qs(" \xa0",null==e.authenticator?null:e.authenticator.name," "),Aa(1),ls("ngIf",e.authenticator))},directives:[Vv,Th,XE,zE,NE,AP,zP,TS,GP],styles:[""]}),t}(),PF=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)(ss(uD),ss(cm),ss(RD))},t.\u0275cmp=oe({type:t,selectors:[["uds-osmanagers"]],decls:2,vars:5,consts:[["icon","osmanagers",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(cs(0,"div"),cs(1,"uds-table",0),_s("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)}),hs(),hs()),2&t&&(Aa(1),ls("rest",e.rest.osManagers)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",e.api.config.admin.page_size))},directives:[AP],styles:[""]}),t}(),MF=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.processElement=function(t){try{t.allowed_oss=t.allowed_oss.map(function(t){return t.id}).join(", ")}catch(e){t.allowed_oss=""}},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)(ss(uD),ss(cm),ss(RD))},t.\u0275cmp=oe({type:t,selectors:[["uds-transports"]],decls:2,vars:7,consts:[["icon","transports",3,"rest","multiSelect","allowExport","hasPermissions","newGrouped","onItem","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(cs(0,"div"),cs(1,"uds-table",0),_s("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)}),hs(),hs()),2&t&&(Aa(1),ls("rest",e.rest.transports)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("newGrouped",!0)("onItem",e.processElement)("pageSize",e.api.config.admin.page_size))},directives:[AP],styles:[".mat-column-priority{max-width:7rem;justify-content:center}"]}),t}(),FF=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)(ss(uD),ss(cm),ss(RD))},t.\u0275cmp=oe({type:t,selectors:[["uds-networks"]],decls:2,vars:5,consts:[["icon","networks",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(cs(0,"div"),cs(1,"uds-table",0),_s("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)}),hs(),hs()),2&t&&(Aa(1),ls("rest",e.rest.networks)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",e.api.config.admin.page_size))},directives:[AP],styles:[""]}),t}(),LF=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)(ss(uD),ss(cm),ss(RD))},t.\u0275cmp=oe({type:t,selectors:[["uds-proxies"]],decls:2,vars:5,consts:[["icon","proxy",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(cs(0,"div"),cs(1,"uds-table",0),_s("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)}),hs(),hs()),2&t&&(Aa(1),ls("rest",e.rest.proxy)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",e.api.config.admin.page_size))},directives:[AP],styles:[""]}),t}(),NF=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.customButtons=[UA.getGotoButton(PA,"provider_id"),UA.getGotoButton(MA,"provider_id","service_id"),UA.getGotoButton(jA,"osmanager_id"),UA.getGotoButton(zA,"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","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.value||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}),t.all.cache_l2_srvs.gui.rdonly=!1===i.info.uses_cache||!1===i.info.uses_cache_l2,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:VS.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)(ss(cm),ss(RD),ss(uD))},t.\u0275cmp=oe({type:t,selectors:[["uds-service-pools"]],decls:1,vars:7,consts:[["icon","pools",3,"rest","multiSelect","allowExport","hasPermissions","onItem","customButtons","pageSize","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,e){1&t&&(cs(0,"uds-table",0),_s("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)}),hs()),2&t&&ls("rest",e.rest.servicesPools)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",e.processElement)("customButtons",e.customButtons)("pageSize",e.api.config.admin.page_size)},directives:[AP],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 VF(t,e){if(1&t&&(cs(0,"mat-option",8),$s(1),hs()),2&t){var n=e.$implicit;ls("value",n.id),Aa(1),Qs(" ",n.name," ")}}function jF(t,e){if(1&t){var n=vs();cs(0,"uds-mat-select-search",9),_s("changed",function(t){return nn(n),xs().userFilter=t}),hs()}}function BF(t,e){if(1&t&&(cs(0,"mat-option",8),$s(1),hs()),2&t){var n=e.$implicit;ls("value",n.id),Aa(1),Qs(" ",n.name," ")}}var zF=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Ru(!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)(ss(uD),ss(RD),ss(sS),ss(uS))},t.\u0275cmp=oe({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&&(cs(0,"h4",0),cs(1,"uds-translate"),$s(2,"Change owner of assigned service"),hs(),hs(),cs(3,"mat-dialog-content"),cs(4,"div",1),cs(5,"mat-form-field"),cs(6,"mat-label"),cs(7,"uds-translate"),$s(8,"Authenticator"),hs(),hs(),cs(9,"mat-select",2),_s("ngModelChange",function(t){return e.authId=t})("selectionChange",function(t){return e.changeAuth(t)}),as(10,VF,2,2,"mat-option",3),hs(),hs(),cs(11,"mat-form-field"),cs(12,"mat-label"),cs(13,"uds-translate"),$s(14,"User"),hs(),hs(),cs(15,"mat-select",4),_s("ngModelChange",function(t){return e.userId=t}),as(16,jF,1,0,"uds-mat-select-search",5),as(17,BF,2,2,"mat-option",3),hs(),hs(),hs(),hs(),cs(18,"mat-dialog-actions"),cs(19,"button",6),cs(20,"uds-translate"),$s(21,"Cancel"),hs(),hs(),cs(22,"button",7),_s("click",function(){return e.save()}),cs(23,"uds-translate"),$s(24,"Ok"),hs(),hs(),hs()),2&t&&(Aa(9),ls("ngModel",e.authId),Aa(1),ls("ngForOf",e.auths),Aa(5),ls("ngModel",e.userId),Aa(1),ls("ngIf",e.users.length>10),Aa(1),ls("ngForOf",e.filteredUsers()))},directives:[gS,TS,yS,fO,rO,FO,px,tE,Oh,Th,_S,DS,vS,$C,zT],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 HF(t,e){1&t&&(cs(0,"uds-translate"),$s(1,"New access rule for"),hs())}function UF(t,e){1&t&&(cs(0,"uds-translate"),$s(1,"Edit access rule for"),hs())}function qF(t,e){1&t&&(cs(0,"uds-translate"),$s(1,"Default fallback access for"),hs())}function WF(t,e){if(1&t){var n=vs();cs(0,"uds-mat-select-search",11),_s("changed",function(t){return nn(n),xs(2).calendarsFilter=t}),hs()}}function YF(t,e){if(1&t&&(cs(0,"mat-option",12),$s(1),hs()),2&t){var n=e.$implicit;ls("value",n.id),Aa(1),Qs(" ",n.name," ")}}function GF(t,e){if(1&t){var n=vs();fs(0),cs(1,"mat-form-field"),cs(2,"mat-label"),cs(3,"uds-translate"),$s(4,"Priority"),hs(),hs(),cs(5,"input",8),_s("ngModelChange",function(t){return nn(n),xs().accessRule.priority=t}),hs(),hs(),cs(6,"mat-form-field"),cs(7,"mat-label"),cs(8,"uds-translate"),$s(9,"Calendar"),hs(),hs(),cs(10,"mat-select",3),_s("ngModelChange",function(t){return nn(n),xs().accessRule.calendarId=t}),as(11,WF,1,0,"uds-mat-select-search",9),as(12,YF,2,2,"mat-option",10),hs(),hs(),ps()}if(2&t){var i=xs();Aa(5),ls("ngModel",i.accessRule.priority),Aa(5),ls("ngModel",i.accessRule.calendarId),Aa(1),ls("ngIf",i.calendars.length>10),Aa(1),ls("ngForOf",i.filtered(i.calendars,i.calendarsFilter))}}var KF=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Ru(!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 a=window.innerWidth<800?"80%":"60%";return e.gui.dialog.open(t,{width:a,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)(ss(uD),ss(RD),ss(sS),ss(uS))},t.\u0275cmp=oe({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&&(cs(0,"h4",0),as(1,HF,2,0,"uds-translate",1),as(2,UF,2,0,"uds-translate",1),as(3,qF,2,0,"uds-translate",1),$s(4),hs(),cs(5,"mat-dialog-content"),cs(6,"div",2),as(7,GF,13,4,"ng-container",1),cs(8,"mat-form-field"),cs(9,"mat-label"),cs(10,"uds-translate"),$s(11,"Action"),hs(),hs(),cs(12,"mat-select",3),_s("ngModelChange",function(t){return e.accessRule.access=t}),cs(13,"mat-option",4),$s(14," ALLOW "),hs(),cs(15,"mat-option",5),$s(16," DENY "),hs(),hs(),hs(),hs(),hs(),cs(17,"mat-dialog-actions"),cs(18,"button",6),cs(19,"uds-translate"),$s(20,"Cancel"),hs(),hs(),cs(21,"button",7),_s("click",function(){return e.save()}),cs(22,"uds-translate"),$s(23,"Ok"),hs(),hs(),hs()),2&t&&(Aa(1),ls("ngIf",void 0===e.accessRule.id),Aa(1),ls("ngIf",void 0!==e.accessRule.id&&-1!==e.accessRule.id),Aa(1),ls("ngIf",-1===e.accessRule.id),Aa(1),Qs(" ",e.pool.name,"\n"),Aa(3),ls("ngIf",-1!==e.accessRule.id),Aa(5),ls("ngModel",e.accessRule.access))},directives:[gS,Th,yS,fO,rO,TS,FO,px,tE,$C,_S,DS,vS,FT,gx,YS,Oh,zT],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 ZF(t,e){if(1&t&&(cs(0,"mat-option",8),$s(1),hs()),2&t){var n=e.$implicit;ls("value",n.id),Aa(1),Qs(" ",n.name," ")}}function $F(t,e){if(1&t){var n=vs();cs(0,"uds-mat-select-search",9),_s("changed",function(t){return nn(n),xs().groupFilter=t}),hs()}}function XF(t,e){if(1&t&&(fs(0),$s(1),ps()),2&t){var n=xs().$implicit;Aa(1),Qs(" (",n.comments,")")}}function QF(t,e){if(1&t&&(cs(0,"mat-option",8),$s(1),as(2,XF,2,1,"ng-container",10),hs()),2&t){var n=e.$implicit;ls("value",n.id),Aa(1),Qs(" ",n.name,""),Aa(1),ls("ngIf",n.comments)}}var JF=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Ru(!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)(ss(uD),ss(RD),ss(sS),ss(uS))},t.\u0275cmp=oe({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&&(cs(0,"h4",0),cs(1,"uds-translate"),$s(2,"New group for"),hs(),$s(3),hs(),cs(4,"mat-dialog-content"),cs(5,"div",1),cs(6,"mat-form-field"),cs(7,"mat-label"),cs(8,"uds-translate"),$s(9,"Authenticator"),hs(),hs(),cs(10,"mat-select",2),_s("ngModelChange",function(t){return e.authId=t})("selectionChange",function(t){return e.changeAuth(t)}),as(11,ZF,2,2,"mat-option",3),hs(),hs(),cs(12,"mat-form-field"),cs(13,"mat-label"),cs(14,"uds-translate"),$s(15,"Group"),hs(),hs(),cs(16,"mat-select",4),_s("ngModelChange",function(t){return e.groupId=t}),as(17,$F,1,0,"uds-mat-select-search",5),as(18,QF,3,3,"mat-option",3),hs(),hs(),hs(),hs(),cs(19,"mat-dialog-actions"),cs(20,"button",6),cs(21,"uds-translate"),$s(22,"Cancel"),hs(),hs(),cs(23,"button",7),_s("click",function(){return e.save()}),cs(24,"uds-translate"),$s(25,"Ok"),hs(),hs(),hs()),2&t&&(Aa(3),Qs(" ",e.pool.name,"\n"),Aa(7),ls("ngModel",e.authId),Aa(1),ls("ngForOf",e.auths),Aa(5),ls("ngModel",e.groupId),Aa(1),ls("ngIf",e.groups.length>10),Aa(1),ls("ngForOf",e.filteredGroups()))},directives:[gS,TS,yS,fO,rO,FO,px,tE,Oh,Th,_S,DS,vS,$C,zT],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 tL(t,e){if(1&t){var n=vs();cs(0,"uds-mat-select-search",7),_s("changed",function(t){return nn(n),xs().transportsFilter=t}),hs()}}function eL(t,e){if(1&t&&(fs(0),$s(1),ps()),2&t){var n=xs().$implicit;Aa(1),Qs(" (",n.comments,")")}}function nL(t,e){if(1&t&&(cs(0,"mat-option",8),$s(1),as(2,eL,2,1,"ng-container",9),hs()),2&t){var n=e.$implicit;ls("value",n.id),Aa(1),Qs(" ",n.name,""),Aa(1),ls("ngIf",n.comments)}}var iL=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Ru(!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)(ss(uD),ss(RD),ss(sS),ss(uS))},t.\u0275cmp=oe({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&&(cs(0,"h4",0),cs(1,"uds-translate"),$s(2,"New transport for"),hs(),$s(3),hs(),cs(4,"mat-dialog-content"),cs(5,"div",1),cs(6,"mat-form-field"),cs(7,"mat-label"),cs(8,"uds-translate"),$s(9,"Transport"),hs(),hs(),cs(10,"mat-select",2),_s("ngModelChange",function(t){return e.transportId=t}),as(11,tL,1,0,"uds-mat-select-search",3),as(12,nL,3,3,"mat-option",4),hs(),hs(),hs(),hs(),cs(13,"mat-dialog-actions"),cs(14,"button",5),cs(15,"uds-translate"),$s(16,"Cancel"),hs(),hs(),cs(17,"button",6),_s("click",function(){return e.save()}),cs(18,"uds-translate"),$s(19,"Ok"),hs(),hs(),hs()),2&t&&(Aa(3),Qs(" ",e.servicePool.name,"\n"),Aa(7),ls("ngModel",e.transportId),Aa(1),ls("ngIf",e.transports.length>10),Aa(1),ls("ngForOf",e.filteredTransports()))},directives:[gS,TS,yS,fO,rO,FO,px,tE,Th,Oh,_S,DS,vS,zT,$C],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}(),rL=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Ru(!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)(ss(uD),ss(RD),ss(sS),ss(uS))},t.\u0275cmp=oe({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&&(cs(0,"h4",0),cs(1,"uds-translate"),$s(2,"New publication for"),hs(),$s(3),hs(),cs(4,"mat-dialog-content"),cs(5,"div",1),cs(6,"mat-form-field"),cs(7,"mat-label"),cs(8,"uds-translate"),$s(9,"Comments"),hs(),hs(),cs(10,"input",2),_s("ngModelChange",function(t){return e.reason=t}),hs(),hs(),hs(),hs(),cs(11,"mat-dialog-actions"),cs(12,"button",3),cs(13,"uds-translate"),$s(14,"Cancel"),hs(),hs(),cs(15,"button",4),_s("click",function(){return e.save()}),cs(16,"uds-translate"),$s(17,"Ok"),hs(),hs(),hs()),2&t&&(Aa(3),Qs(" ",e.servicePool.name,"\n"),Aa(7),ls("ngModel",e.reason))},directives:[gS,TS,yS,fO,rO,FT,YS,px,tE,_S,DS,vS],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}(),aL=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Ru(!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)(ss(uD),ss(RD),ss(sS),ss(uS))},t.\u0275cmp=oe({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&&(cs(0,"h4",0),cs(1,"uds-translate"),$s(2,"Changelog of"),hs(),$s(3),hs(),cs(4,"mat-dialog-content"),ds(5,"uds-table",1,2),hs(),cs(7,"mat-dialog-actions"),cs(8,"button",3),cs(9,"uds-translate"),$s(10,"Ok"),hs(),hs(),hs()),2&t&&(Aa(3),Qs(" ",e.servicePool.name,"\n"),Aa(2),ls("rest",e.changeLogPubs)("allowExport",!0)("tableId","servicePools-d-changelog"+e.servicePool.id))},directives:[gS,TS,yS,AP,_S,DS,vS],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}();function oL(t,e){1&t&&(fs(0),cs(1,"uds-translate"),$s(2,"Edit action for"),hs(),ps())}function sL(t,e){1&t&&(cs(0,"uds-translate"),$s(1,"New action for"),hs())}function lL(t,e){if(1&t){var n=vs();cs(0,"uds-mat-select-search",14),_s("changed",function(t){return nn(n),xs().calendarsFilter=t}),hs()}}function uL(t,e){if(1&t&&(cs(0,"mat-option",15),$s(1),hs()),2&t){var n=e.$implicit;ls("value",n.id),Aa(1),Qs(" ",n.name," ")}}function cL(t,e){if(1&t&&(cs(0,"mat-option",15),$s(1),hs()),2&t){var n=e.$implicit;ls("value",n.id),Aa(1),Qs(" ",n.description," ")}}function hL(t,e){if(1&t){var n=vs();cs(0,"uds-mat-select-search",14),_s("changed",function(t){return nn(n),xs(2).transportsFilter=t}),hs()}}function dL(t,e){if(1&t&&(cs(0,"mat-option",15),$s(1),hs()),2&t){var n=e.$implicit;ls("value",n.id),Aa(1),Qs(" ",n.name," ")}}function fL(t,e){if(1&t){var n=vs();fs(0),cs(1,"mat-form-field"),cs(2,"mat-label"),cs(3,"uds-translate"),$s(4,"Transport"),hs(),hs(),cs(5,"mat-select",4),_s("ngModelChange",function(t){return nn(n),xs().paramValue=t}),as(6,hL,1,0,"uds-mat-select-search",5),as(7,dL,2,2,"mat-option",6),hs(),hs(),ps()}if(2&t){var i=xs();Aa(5),ls("ngModel",i.paramValue),Aa(1),ls("ngIf",i.transports.length>10),Aa(1),ls("ngForOf",i.filtered(i.transports,i.transportsFilter))}}function pL(t,e){if(1&t&&(cs(0,"mat-option",15),$s(1),hs()),2&t){var n=e.$implicit;ls("value",n.id),Aa(1),Qs(" ",n.name," ")}}function mL(t,e){if(1&t){var n=vs();cs(0,"uds-mat-select-search",14),_s("changed",function(t){return nn(n),xs(2).groupsFilter=t}),hs()}}function vL(t,e){if(1&t&&(cs(0,"mat-option",15),$s(1),hs()),2&t){var n=e.$implicit;ls("value",xs(2).authenticator+"@"+n.id),Aa(1),Qs(" ",n.name," ")}}function gL(t,e){if(1&t){var n=vs();fs(0),cs(1,"mat-form-field"),cs(2,"mat-label"),cs(3,"uds-translate"),$s(4,"Authenticator"),hs(),hs(),cs(5,"mat-select",10),_s("ngModelChange",function(t){return nn(n),xs().authenticator=t})("valueChange",function(t){return nn(n),xs().changedAuthenticator(t)}),as(6,pL,2,2,"mat-option",6),hs(),hs(),cs(7,"mat-form-field"),cs(8,"mat-label"),cs(9,"uds-translate"),$s(10,"Group"),hs(),hs(),cs(11,"mat-select",4),_s("ngModelChange",function(t){return nn(n),xs().paramValue=t}),as(12,mL,1,0,"uds-mat-select-search",5),as(13,vL,2,2,"mat-option",6),hs(),hs(),ps()}if(2&t){var i=xs();Aa(5),ls("ngModel",i.authenticator),Aa(1),ls("ngForOf",i.authenticators),Aa(5),ls("ngModel",i.paramValue),Aa(1),ls("ngIf",i.groups.length>10),Aa(1),ls("ngForOf",i.filtered(i.groups,i.groupsFilter))}}function yL(t,e){if(1&t){var n=vs();fs(0),cs(1,"div",8),cs(2,"span",16),$s(3),hs(),$s(4,"\xa0 "),cs(5,"mat-slide-toggle",4),_s("ngModelChange",function(t){return nn(n),xs().paramValue=t}),hs(),hs(),ps()}if(2&t){var i=xs();Aa(3),Xs(i.parameter.description),Aa(2),ls("ngModel",i.paramValue)}}function _L(t,e){if(1&t){var n=vs();fs(0),cs(1,"mat-form-field"),cs(2,"mat-label"),$s(3),hs(),cs(4,"input",17),_s("ngModelChange",function(t){return nn(n),xs().paramValue=t}),hs(),hs(),ps()}if(2&t){var i=xs();Aa(3),Qs(" ",i.parameter.description," "),Aa(1),ls("type",i.parameter.type)("ngModel",i.paramValue)}}var bL=function(){return["transport","group","bool"]},kL=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Ru(!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)(ss(uD),ss(RD),ss(sS),ss(uS))},t.\u0275cmp=oe({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&&(cs(0,"h4",0),as(1,oL,3,0,"ng-container",1),as(2,sL,2,0,"ng-template",null,2,ec),$s(4),hs(),cs(5,"mat-dialog-content"),cs(6,"div",3),cs(7,"mat-form-field"),cs(8,"mat-label"),cs(9,"uds-translate"),$s(10,"Calendar"),hs(),hs(),cs(11,"mat-select",4),_s("ngModelChange",function(t){return e.scheduledAction.calendarId=t}),as(12,lL,1,0,"uds-mat-select-search",5),as(13,uL,2,2,"mat-option",6),hs(),hs(),cs(14,"mat-form-field"),cs(15,"mat-label"),cs(16,"uds-translate"),$s(17,"Events offset (minutes)"),hs(),hs(),cs(18,"input",7),_s("ngModelChange",function(t){return e.scheduledAction.eventsOffset=t}),hs(),hs(),cs(19,"div",8),cs(20,"span",9),cs(21,"uds-translate"),$s(22,"At the beginning of the interval?"),hs(),hs(),cs(23,"mat-slide-toggle",4),_s("ngModelChange",function(t){return e.scheduledAction.atStart=t}),$s(24),hs(),hs(),cs(25,"mat-form-field"),cs(26,"mat-label"),cs(27,"uds-translate"),$s(28,"Action"),hs(),hs(),cs(29,"mat-select",10),_s("ngModelChange",function(t){return e.scheduledAction.action=t})("valueChange",function(t){return e.changedAction(t)}),as(30,cL,2,2,"mat-option",6),hs(),hs(),as(31,fL,8,3,"ng-container",11),as(32,gL,14,5,"ng-container",11),as(33,yL,6,2,"ng-container",11),as(34,_L,5,3,"ng-container",11),hs(),hs(),cs(35,"mat-dialog-actions"),cs(36,"button",12),cs(37,"uds-translate"),$s(38,"Cancel"),hs(),hs(),cs(39,"button",13),_s("click",function(){return e.save()}),cs(40,"uds-translate"),$s(41,"Ok"),hs(),hs(),hs()),2&t){var n=os(3);Aa(1),ls("ngIf",void 0!==e.scheduledAction.id)("ngIfElse",n),Aa(3),Qs(" ",e.servicePool.name,"\n"),Aa(7),ls("ngModel",e.scheduledAction.calendarId),Aa(1),ls("ngIf",e.calendars.length>10),Aa(1),ls("ngForOf",e.filtered(e.calendars,e.calendarsFilter)),Aa(5),ls("ngModel",e.scheduledAction.eventsOffset),Aa(5),ls("ngModel",e.scheduledAction.atStart),Aa(1),Qs(" ",e.api.yesno(e.scheduledAction.atStart)," "),Aa(5),ls("ngModel",e.scheduledAction.action),Aa(1),ls("ngForOf",e.actionList),Aa(1),ls("ngIf","transport"===(null==e.parameter?null:e.parameter.type)),Aa(1),ls("ngIf","group"===(null==e.parameter?null:e.parameter.type)),Aa(1),ls("ngIf","bool"===(null==e.parameter?null:e.parameter.type)),Aa(1),ls("ngIf",(null==e.parameter?null:e.parameter.type)&&!ku(15,bL).includes(e.parameter.type))}},directives:[gS,Th,yS,fO,rO,TS,FO,px,tE,Oh,FT,gx,YS,VM,_S,DS,vS,zT,$C],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}(),wL=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Ru(!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)(ss(uD),ss(RD),ss(sS),ss(uS))},t.\u0275cmp=oe({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&&(cs(0,"h4",0),cs(1,"uds-translate"),$s(2,"Logs of"),hs(),$s(3),hs(),cs(4,"mat-dialog-content"),ds(5,"uds-logs-table",1),hs(),cs(6,"mat-dialog-actions"),cs(7,"button",2),cs(8,"uds-translate"),$s(9,"Ok"),hs(),hs(),hs()),2&t&&(Aa(3),Qs(" ",e.userService.name,"\n"),Aa(2),ls("rest",e.model)("itemId",e.userService.id)("tableId","servicePools-d-uslog"+e.userService.id))},directives:[gS,TS,yS,zP,_S,DS,vS],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}();function CL(t,e){if(1&t){var n=vs();cs(0,"uds-mat-select-search",8),_s("changed",function(t){return nn(n),xs().assignablesServicesFilter=t}),hs()}}function SL(t,e){if(1&t&&(cs(0,"mat-option",9),$s(1),hs()),2&t){var n=e.$implicit;ls("value",n.id),Aa(1),Qs(" ",n.text," ")}}function xL(t,e){if(1&t&&(cs(0,"mat-option",9),$s(1),hs()),2&t){var n=e.$implicit;ls("value",n.id),Aa(1),Qs(" ",n.name," ")}}function EL(t,e){if(1&t){var n=vs();cs(0,"uds-mat-select-search",8),_s("changed",function(t){return nn(n),xs().userFilter=t}),hs()}}function AL(t,e){if(1&t&&(cs(0,"mat-option",9),$s(1),hs()),2&t){var n=e.$implicit;ls("value",n.id),Aa(1),Qs(" ",n.name," ")}}var DL=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Ru(!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)(ss(uD),ss(RD),ss(sS),ss(uS))},t.\u0275cmp=oe({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&&(cs(0,"h4",0),cs(1,"uds-translate"),$s(2,"Assign service to user manually"),hs(),hs(),cs(3,"mat-dialog-content"),cs(4,"div",1),cs(5,"mat-form-field"),cs(6,"mat-label"),cs(7,"uds-translate"),$s(8,"Service"),hs(),hs(),cs(9,"mat-select",2),_s("ngModelChange",function(t){return e.serviceId=t}),as(10,CL,1,0,"uds-mat-select-search",3),as(11,SL,2,2,"mat-option",4),hs(),hs(),cs(12,"mat-form-field"),cs(13,"mat-label"),cs(14,"uds-translate"),$s(15,"Authenticator"),hs(),hs(),cs(16,"mat-select",5),_s("ngModelChange",function(t){return e.authId=t})("selectionChange",function(t){return e.changeAuth(t)}),as(17,xL,2,2,"mat-option",4),hs(),hs(),cs(18,"mat-form-field"),cs(19,"mat-label"),cs(20,"uds-translate"),$s(21,"User"),hs(),hs(),cs(22,"mat-select",2),_s("ngModelChange",function(t){return e.userId=t}),as(23,EL,1,0,"uds-mat-select-search",3),as(24,AL,2,2,"mat-option",4),hs(),hs(),hs(),hs(),cs(25,"mat-dialog-actions"),cs(26,"button",6),cs(27,"uds-translate"),$s(28,"Cancel"),hs(),hs(),cs(29,"button",7),_s("click",function(){return e.save()}),cs(30,"uds-translate"),$s(31,"Ok"),hs(),hs(),hs()),2&t&&(Aa(9),ls("ngModel",e.serviceId),Aa(1),ls("ngIf",e.assignablesServices.length>10),Aa(1),ls("ngForOf",e.filteredAssignables()),Aa(5),ls("ngModel",e.authId),Aa(1),ls("ngForOf",e.auths),Aa(5),ls("ngModel",e.userId),Aa(1),ls("ngIf",e.users.length>10),Aa(1),ls("ngForOf",e.filteredUsers()))},directives:[gS,TS,yS,fO,rO,FO,px,tE,Th,Oh,_S,DS,vS,zT,$C],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 OL(t,e){1&t&&(cs(0,"uds-translate"),$s(1,"Summary"),hs())}function IL(t,e){if(1&t&&ds(0,"uds-information",20),2&t){var n=xs(2);ls("value",n.servicePool)("gui",n.gui)}}function TL(t,e){1&t&&(cs(0,"uds-translate"),$s(1,"Assigned services"),hs())}function RL(t,e){if(1&t){var n=vs();cs(0,"uds-table",21),_s("customButtonAction",function(t){return nn(n),xs(2).onCustomAssigned(t)})("deleteAction",function(t){return nn(n),xs(2).onDeleteAssigned(t)}),hs()}if(2&t){var i=xs(2);ls("rest",i.assignedServices)("multiSelect",!0)("allowExport",!0)("onItem",i.processsAssignedElement)("tableId","servicePools-d-services"+i.servicePool.id)("customButtons",i.customButtonsAssignedServices)("pageSize",i.api.config.admin.page_size)}}function PL(t,e){if(1&t){var n=vs();cs(0,"uds-table",22),_s("customButtonAction",function(t){return nn(n),xs(2).onCustomAssigned(t)})("newAction",function(t){return nn(n),xs(2).onNewAssigned(t)})("deleteAction",function(t){return nn(n),xs(2).onDeleteAssigned(t)}),hs()}if(2&t){var i=xs(2);ls("rest",i.assignedServices)("multiSelect",!0)("allowExport",!0)("onItem",i.processsAssignedElement)("tableId","servicePools-d-services"+i.servicePool.id)("customButtons",i.customButtonsAssignedServices)("pageSize",i.api.config.admin.page_size)}}function ML(t,e){1&t&&(cs(0,"uds-translate"),$s(1,"Cache"),hs())}function FL(t,e){if(1&t){var n=vs();cs(0,"mat-tab"),as(1,ML,2,0,"ng-template",9),cs(2,"div",10),cs(3,"uds-table",23),_s("customButtonAction",function(t){return nn(n),xs(2).onCustomCached(t)})("deleteAction",function(t){return nn(n),xs(2).onDeleteCache(t)}),hs(),hs(),hs()}if(2&t){var i=xs(2);Aa(3),ls("rest",i.cache)("multiSelect",!0)("allowExport",!0)("onItem",i.processsCacheElement)("tableId","servicePools-d-cache"+i.servicePool.id)("customButtons",i.customButtonsCachedServices)("pageSize",i.api.config.admin.page_size)}}function LL(t,e){1&t&&(cs(0,"uds-translate"),$s(1,"Groups"),hs())}function NL(t,e){1&t&&(cs(0,"uds-translate"),$s(1,"Transports"),hs())}function VL(t,e){1&t&&(cs(0,"uds-translate"),$s(1,"Publications"),hs())}function jL(t,e){if(1&t){var n=vs();cs(0,"mat-tab"),as(1,VL,2,0,"ng-template",9),cs(2,"div",10),cs(3,"uds-table",24),_s("customButtonAction",function(t){return nn(n),xs(2).onCustomPublication(t)})("newAction",function(t){return nn(n),xs(2).onNewPublication(t)})("rowSelected",function(t){return nn(n),xs(2).onPublicationRowSelect(t)}),hs(),hs(),hs()}if(2&t){var i=xs(2);Aa(3),ls("rest",i.publications)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-publications"+i.servicePool.id)("customButtons",i.customButtonsPublication)("pageSize",i.api.config.admin.page_size)}}function BL(t,e){1&t&&(cs(0,"uds-translate"),$s(1,"Scheduled actions"),hs())}function zL(t,e){1&t&&(cs(0,"uds-translate"),$s(1,"Access calendars"),hs())}function HL(t,e){1&t&&(cs(0,"uds-translate"),$s(1,"Logs"),hs())}function UL(t,e){if(1&t){var n=vs();cs(0,"div",6),cs(1,"div",7),cs(2,"mat-tab-group",8),_s("selectedIndexChange",function(t){return nn(n),xs().selectedTab=t}),cs(3,"mat-tab"),as(4,OL,2,0,"ng-template",9),cs(5,"div",10),as(6,IL,1,2,"uds-information",11),hs(),hs(),cs(7,"mat-tab"),as(8,TL,2,0,"ng-template",9),cs(9,"div",10),as(10,RL,1,7,"uds-table",12),as(11,PL,1,7,"ng-template",null,13,ec),hs(),hs(),as(13,FL,4,7,"mat-tab",14),cs(14,"mat-tab"),as(15,LL,2,0,"ng-template",9),cs(16,"div",10),cs(17,"uds-table",15),_s("newAction",function(t){return nn(n),xs().onNewGroup(t)})("deleteAction",function(t){return nn(n),xs().onDeleteGroup(t)}),hs(),hs(),hs(),cs(18,"mat-tab"),as(19,NL,2,0,"ng-template",9),cs(20,"div",10),cs(21,"uds-table",16),_s("newAction",function(t){return nn(n),xs().onNewTransport(t)})("deleteAction",function(t){return nn(n),xs().onDeleteTransport(t)}),hs(),hs(),hs(),as(22,jL,4,6,"mat-tab",14),cs(23,"mat-tab"),as(24,BL,2,0,"ng-template",9),cs(25,"div",10),cs(26,"uds-table",17),_s("customButtonAction",function(t){return nn(n),xs().onCustomScheduleAction(t)})("newAction",function(t){return nn(n),xs().onNewScheduledAction(t)})("editAction",function(t){return nn(n),xs().onEditScheduledAction(t)})("deleteAction",function(t){return nn(n),xs().onDeleteScheduledAction(t)}),hs(),hs(),hs(),cs(27,"mat-tab"),as(28,zL,2,0,"ng-template",9),cs(29,"div",10),cs(30,"uds-table",18),_s("newAction",function(t){return nn(n),xs().onNewAccessCalendar(t)})("editAction",function(t){return nn(n),xs().onEditAccessCalendar(t)})("deleteAction",function(t){return nn(n),xs().onDeleteAccessCalendar(t)})("loaded",function(t){return nn(n),xs().onAccessCalendarLoad(t)}),hs(),hs(),hs(),cs(31,"mat-tab"),as(32,HL,2,0,"ng-template",9),cs(33,"div",10),ds(34,"uds-logs-table",19),hs(),hs(),hs(),hs(),hs()}if(2&t){var i=os(12),r=xs();Aa(2),ls("selectedIndex",r.selectedTab)("@.disabled",!0),Aa(4),ls("ngIf",r.servicePool&&r.gui),Aa(4),ls("ngIf",!1===r.servicePool.info.must_assign_manually)("ngIfElse",i),Aa(3),ls("ngIf",r.cache),Aa(4),ls("rest",r.groups)("multiSelect",!0)("allowExport",!0)("customButtons",r.customButtonsGroups)("tableId","servicePools-d-groups"+r.servicePool.id)("pageSize",r.api.config.admin.page_size),Aa(4),ls("rest",r.transports)("multiSelect",!0)("allowExport",!0)("customButtons",r.customButtonsTransports)("tableId","servicePools-d-transports"+r.servicePool.id)("pageSize",r.api.config.admin.page_size),Aa(1),ls("ngIf",r.publications),Aa(4),ls("rest",r.scheduledActions)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-actions"+r.servicePool.id)("customButtons",r.customButtonsScheduledAction)("onItem",r.processsCalendarOrScheduledElement)("pageSize",r.api.config.admin.page_size),Aa(4),ls("rest",r.accessCalendars)("multiSelect",!0)("allowExport",!0)("customButtons",r.customButtonAccessCalendars)("tableId","servicePools-d-access"+r.servicePool.id)("onItem",r.processsCalendarOrScheduledElement)("pageSize",r.api.config.admin.page_size),Aa(4),ls("rest",r.rest.servicesPools)("itemId",r.servicePool.id)("tableId","servicePools-d-log"+r.servicePool.id)("pageSize",r.api.config.admin.page_size)}}var qL=function(t){return["/pools","service-pools",t]},WL='event'+django.gettext("Logs")+"",YL='schedule'+django.gettext("Launch now")+"",GL='perm_identity'+django.gettext("Change owner")+"",KL='perm_identity'+django.gettext("Assign service")+"",ZL='cancel'+django.gettext("Cancel")+"",$L='event'+django.gettext("Changelog")+"",XL=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.customButtonsScheduledAction=[{id:"launch-action",html:YL,type:RA.SINGLE_SELECT},UA.getGotoButton(BA,"calendarId")],this.customButtonAccessCalendars=[UA.getGotoButton(BA,"calendarId")],this.customButtonsAssignedServices=[{id:"change-owner",html:GL,type:RA.SINGLE_SELECT},{id:"log",html:WL,type:RA.SINGLE_SELECT},UA.getGotoButton(LA,"owner_info.auth_id","owner_info.user_id")],this.customButtonsCachedServices=[{id:"log",html:WL,type:RA.SINGLE_SELECT}],this.customButtonsPublication=[{id:"cancel-publication",html:ZL,type:RA.SINGLE_SELECT},{id:"changelog",html:$L,type:RA.ALWAYS}],this.customButtonsGroups=[UA.getGotoButton(NA,"auth_id","id")],this.customButtonsTransports=[UA.getGotoButton(VA,"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:KL,type:RA.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;zF.launch(this.api,e,this.assignedServices).subscribe(function(e){return t.table.overview()})}else"log"===t.param.id?wL.launch(this.api,e,this.assignedServices):"assign-service"===t.param.id&&DL.launch(this.api,this.servicePool).subscribe(function(e){return t.table.overview()})},t.prototype.onCustomCached=function(t){"log"===t.param.id&&wL.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){JF.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){iL.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){rL.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&&aL.launch(this.api,this.servicePool)},t.prototype.onNewScheduledAction=function(t){kL.launch(this.api,this.servicePool).subscribe(function(e){return t.table.overview()})},t.prototype.onEditScheduledAction=function(t){kL.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){KF.launch(this.api,this.servicePool,this.accessCalendars).subscribe(function(e){return t.table.overview()})},t.prototype.onEditAccessCalendar=function(t){KF.launch(this.api,this.servicePool,this.accessCalendars,t.table.selection.selected[0]).subscribe(function(e){return t.table.overview()})},t.prototype.onDeleteAccessCalendar=function(t){-1!==t.table.selection.selected[0].id?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)(ss(cm),ss(RD),ss(uD))},t.\u0275cmp=oe({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","pageSize","customButtonAction","deleteAction",4,"ngIf","ngIfElse"],["manually_assigned",""],[4,"ngIf"],["icon","groups",3,"rest","multiSelect","allowExport","customButtons","tableId","pageSize","newAction","deleteAction"],["icon","transports",3,"rest","multiSelect","allowExport","customButtons","tableId","pageSize","newAction","deleteAction"],["icon","calendars",3,"rest","multiSelect","allowExport","tableId","customButtons","onItem","pageSize","customButtonAction","newAction","editAction","deleteAction"],["icon","calendars",3,"rest","multiSelect","allowExport","customButtons","tableId","onItem","pageSize","newAction","editAction","deleteAction","loaded"],[3,"rest","itemId","tableId","pageSize"],[3,"value","gui"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","customButtonAction","deleteAction"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","customButtonAction","newAction","deleteAction"],["icon","cached",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","customButtonAction","deleteAction"],["icon","publications",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","customButtonAction","newAction","rowSelected"]],template:function(t,e){1&t&&(cs(0,"div",0),cs(1,"div",1),cs(2,"a",2),cs(3,"i",3),$s(4,"arrow_back"),hs(),hs(),$s(5," \xa0"),ds(6,"img",4),$s(7),hs(),as(8,UL,35,37,"div",5),hs()),2&t&&(Aa(2),ls("routerLink",wu(4,qL,e.servicePool?e.servicePool.id:"")),Aa(4),ls("src",e.api.staticURL("admin/img/icons/pools.png"),Or),Aa(1),Qs(" \xa0",null==e.servicePool?null:e.servicePool.name," "),Aa(1),ls("ngIf",null!==e.servicePool))},directives:[Vv,Th,XE,zE,NE,AP,zP,TS,GP],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}(),QL=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)(ss(uD),ss(cm),ss(RD))},t.\u0275cmp=oe({type:t,selectors:[["uds-meta-pools"]],decls:2,vars:6,consts:[["icon","metas",3,"rest","multiSelect","allowExport","onItem","hasPermissions","pageSize","detailAction","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(cs(0,"div"),cs(1,"uds-table",0),_s("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)}),hs(),hs()),2&t&&(Aa(1),ls("rest",e.rest.metaPools)("multiSelect",!0)("allowExport",!0)("onItem",e.processElement)("hasPermissions",!0)("pageSize",e.api.config.admin.page_size))},directives:[AP],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 JL(t,e){1&t&&(cs(0,"uds-translate"),$s(1,"New member pool"),hs())}function tN(t,e){1&t&&(cs(0,"uds-translate"),$s(1,"Edit member pool"),hs())}function eN(t,e){if(1&t){var n=vs();cs(0,"uds-mat-select-search",11),_s("changed",function(t){return nn(n),xs().servicePoolsFilter=t}),hs()}}function nN(t,e){if(1&t&&(cs(0,"mat-option",12),$s(1),hs()),2&t){var n=e.$implicit;ls("value",n.id),Aa(1),Qs(" ",n.name," ")}}var iN=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Ru(!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)(ss(uD),ss(RD),ss(sS),ss(uS))},t.\u0275cmp=oe({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&&(cs(0,"h4",0),as(1,JL,2,0,"uds-translate",1),as(2,tN,2,0,"uds-translate",1),hs(),cs(3,"mat-dialog-content"),cs(4,"div",2),cs(5,"mat-form-field"),cs(6,"mat-label"),cs(7,"uds-translate"),$s(8,"Priority"),hs(),hs(),cs(9,"input",3),_s("ngModelChange",function(t){return e.memberPool.priority=t}),hs(),hs(),cs(10,"mat-form-field"),cs(11,"mat-label"),cs(12,"uds-translate"),$s(13,"Service pool"),hs(),hs(),cs(14,"mat-select",4),_s("ngModelChange",function(t){return e.memberPool.pool_id=t}),as(15,eN,1,0,"uds-mat-select-search",5),as(16,nN,2,2,"mat-option",6),hs(),hs(),cs(17,"div",7),cs(18,"span",8),cs(19,"uds-translate"),$s(20,"Enabled?"),hs(),hs(),cs(21,"mat-slide-toggle",4),_s("ngModelChange",function(t){return e.memberPool.enabled=t}),$s(22),hs(),hs(),hs(),hs(),cs(23,"mat-dialog-actions"),cs(24,"button",9),cs(25,"uds-translate"),$s(26,"Cancel"),hs(),hs(),cs(27,"button",10),_s("click",function(){return e.save()}),cs(28,"uds-translate"),$s(29,"Ok"),hs(),hs(),hs()),2&t&&(Aa(1),ls("ngIf",!(null!=e.memberPool&&e.memberPool.id)),Aa(1),ls("ngIf",null==e.memberPool?null:e.memberPool.id),Aa(7),ls("ngModel",e.memberPool.priority),Aa(5),ls("ngModel",e.memberPool.pool_id),Aa(1),ls("ngIf",e.servicePools.length>10),Aa(1),ls("ngForOf",e.filtered(e.servicePools,e.servicePoolsFilter)),Aa(5),ls("ngModel",e.memberPool.enabled),Aa(1),Qs(" ",e.api.yesno(e.memberPool.enabled)," "))},directives:[gS,Th,yS,fO,rO,TS,FT,gx,YS,px,tE,FO,Oh,VM,_S,DS,vS,zT,$C],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 rN(t,e){1&t&&(cs(0,"uds-translate"),$s(1,"Summary"),hs())}function aN(t,e){if(1&t&&ds(0,"uds-information",17),2&t){var n=xs(2);ls("value",n.metaPool)("gui",n.gui)}}function oN(t,e){1&t&&(cs(0,"uds-translate"),$s(1,"Service pools"),hs())}function sN(t,e){1&t&&(cs(0,"uds-translate"),$s(1,"Assigned services"),hs())}function lN(t,e){1&t&&(cs(0,"uds-translate"),$s(1,"Groups"),hs())}function uN(t,e){1&t&&(cs(0,"uds-translate"),$s(1,"Access calendars"),hs())}function cN(t,e){1&t&&(cs(0,"uds-translate"),$s(1,"Logs"),hs())}function hN(t,e){if(1&t){var n=vs();cs(0,"div",6),cs(1,"div",7),cs(2,"mat-tab-group",8),_s("selectedIndexChange",function(t){return nn(n),xs().selectedTab=t}),cs(3,"mat-tab"),as(4,rN,2,0,"ng-template",9),cs(5,"div",10),as(6,aN,1,2,"uds-information",11),hs(),hs(),cs(7,"mat-tab"),as(8,oN,2,0,"ng-template",9),cs(9,"div",10),cs(10,"uds-table",12),_s("newAction",function(t){return nn(n),xs().onNewMemberPool(t)})("editAction",function(t){return nn(n),xs().onEditMemberPool(t)})("deleteAction",function(t){return nn(n),xs().onDeleteMemberPool(t)}),hs(),hs(),hs(),cs(11,"mat-tab"),as(12,sN,2,0,"ng-template",9),cs(13,"div",10),cs(14,"uds-table",13),_s("customButtonAction",function(t){return nn(n),xs().onCustomAssigned(t)})("deleteAction",function(t){return nn(n),xs().onDeleteAssigned(t)}),hs(),hs(),hs(),cs(15,"mat-tab"),as(16,lN,2,0,"ng-template",9),cs(17,"div",10),cs(18,"uds-table",14),_s("newAction",function(t){return nn(n),xs().onNewGroup(t)})("deleteAction",function(t){return nn(n),xs().onDeleteGroup(t)}),hs(),hs(),hs(),cs(19,"mat-tab"),as(20,uN,2,0,"ng-template",9),cs(21,"div",10),cs(22,"uds-table",15),_s("newAction",function(t){return nn(n),xs().onNewAccessCalendar(t)})("editAction",function(t){return nn(n),xs().onEditAccessCalendar(t)})("deleteAction",function(t){return nn(n),xs().onDeleteAccessCalendar(t)})("loaded",function(t){return nn(n),xs().onAccessCalendarLoad(t)}),hs(),hs(),hs(),cs(23,"mat-tab"),as(24,cN,2,0,"ng-template",9),cs(25,"div",10),ds(26,"uds-logs-table",16),hs(),hs(),hs(),hs(),hs()}if(2&t){var i=xs();Aa(2),ls("selectedIndex",i.selectedTab)("@.disabled",!0),Aa(4),ls("ngIf",i.metaPool&&i.gui),Aa(4),ls("rest",i.memberPools)("multiSelect",!0)("allowExport",!0)("onItem",i.processElement)("customButtons",i.customButtons)("tableId","metaPools-d-members"+i.metaPool.id)("pageSize",i.api.config.admin.page_size),Aa(4),ls("rest",i.memberUserServices)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-services"+i.metaPool.id)("customButtons",i.customButtonsAssignedServices)("pageSize",i.api.config.admin.page_size),Aa(4),ls("rest",i.groups)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-groups"+i.metaPool.id)("pageSize",i.api.config.admin.page_size),Aa(4),ls("rest",i.accessCalendars)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-access"+i.metaPool.id)("pageSize",i.api.config.admin.page_size),Aa(4),ls("rest",i.rest.metaPools)("itemId",i.metaPool.id)("tableId","metaPools-d-log"+i.metaPool.id)("pageSize",i.api.config.admin.page_size)}}var dN=function(t){return["/pools","meta-pools",t]},fN=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.customButtons=[UA.getGotoButton(FA,"pool_id")],this.customButtonsAssignedServices=[{id:"change-owner",html:GL,type:RA.SINGLE_SELECT},{id:"log",html:WL,type:RA.SINGLE_SELECT},UA.getGotoButton(LA,"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){iN.launch(this.api,this.memberPools).subscribe(function(){return t.table.overview()})},t.prototype.onEditMemberPool=function(t){iN.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;zF.launch(this.api,e,this.memberUserServices).subscribe(function(e){return t.table.overview()})}else"log"===t.param.id&&wL.launch(this.api,e,this.memberUserServices)},t.prototype.onDeleteAssigned=function(t){XL.cleanInvalidSelections(t)||this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned service"))},t.prototype.onNewGroup=function(t){JF.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){KF.launch(this.api,this.metaPool,this.accessCalendars).subscribe(function(e){return t.table.overview()})},t.prototype.onEditAccessCalendar=function(t){KF.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)(ss(cm),ss(RD),ss(uD))},t.\u0275cmp=oe({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","pageSize","newAction","editAction","deleteAction"],["icon","pools",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","customButtonAction","deleteAction"],["icon","groups",3,"rest","multiSelect","allowExport","tableId","pageSize","newAction","deleteAction"],["icon","calendars",3,"rest","multiSelect","allowExport","tableId","pageSize","newAction","editAction","deleteAction","loaded"],[3,"rest","itemId","tableId","pageSize"],[3,"value","gui"]],template:function(t,e){1&t&&(cs(0,"div",0),cs(1,"div",1),cs(2,"a",2),cs(3,"i",3),$s(4,"arrow_back"),hs(),hs(),$s(5," \xa0"),ds(6,"img",4),$s(7),hs(),as(8,hN,27,30,"div",5),hs()),2&t&&(Aa(2),ls("routerLink",wu(4,dN,e.metaPool?e.metaPool.id:"")),Aa(4),ls("src",e.api.staticURL("admin/img/icons/metas.png"),Or),Aa(1),Qs(" ",null==e.metaPool?null:e.metaPool.name," "),Aa(1),ls("ngIf",e.metaPool))},directives:[Vv,Th,XE,zE,NE,AP,zP,TS,GP],styles:[".mat-column-enabled, .mat-column-priority{max-width:8rem;justify-content:center}"]}),t}(),pN=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 pool group"),!1).subscribe(function(e){return t.table.overview()})},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit pool group"),!1).subscribe(function(e){return t.table.overview()})},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete pool group"))},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)(ss(cm),ss(RD),ss(uD))},t.\u0275cmp=oe({type:t,selectors:[["uds-pool-groups"]],decls:1,vars:5,consts:[["icon","spool-group",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(cs(0,"uds-table",0),_s("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)}),hs()),2&t&&ls("rest",e.rest.servicesPoolGroups)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",e.api.config.admin.page_size)},directives:[AP],styles:[".mat-column-priority, .mat-column-thumb{max-width:7rem;justify-content:center}"]}),t}(),mN=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)(ss(cm),ss(RD),ss(uD))},t.\u0275cmp=oe({type:t,selectors:[["uds-calendars"]],decls:1,vars:5,consts:[["icon","calendars",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,e){1&t&&(cs(0,"uds-table",0),_s("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)}),hs()),2&t&&ls("rest",e.rest.calendars)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",e.api.config.admin.page_size)},directives:[AP],styles:[""]}),t}(),vN=["mat-calendar-body",""];function gN(t,e){if(1&t&&(cs(0,"tr",2),cs(1,"td",3),$s(2),hs(),hs()),2&t){var n=xs();Aa(1),Vs("padding-top",n._cellPadding)("padding-bottom",n._cellPadding),is("colspan",n.numCols),Aa(1),Qs(" ",n.label," ")}}function yN(t,e){if(1&t&&(cs(0,"td",7),$s(1),hs()),2&t){var n=xs(2);Vs("padding-top",n._cellPadding)("padding-bottom",n._cellPadding),is("colspan",n._firstRowOffset),Aa(1),Qs(" ",n._firstRowOffset>=n.labelMinRequiredCells?n.label:""," ")}}function _N(t,e){if(1&t){var n=vs();cs(0,"td",8),_s("click",function(t){nn(n);var i=e.$implicit;return xs(2)._cellClicked(i,t)}),cs(1,"div",9),$s(2),hs(),ds(3,"div",10),hs()}if(2&t){var i=e.$implicit,r=e.index,a=xs().index,o=xs();Vs("width",o._cellWidth)("padding-top",o._cellPadding)("padding-bottom",o._cellPadding),js("mat-calendar-body-disabled",!i.enabled)("mat-calendar-body-active",o._isActiveCell(a,r))("mat-calendar-body-range-start",o._isRangeStart(i.compareValue))("mat-calendar-body-range-end",o._isRangeEnd(i.compareValue))("mat-calendar-body-in-range",o._isInRange(i.compareValue))("mat-calendar-body-comparison-bridge-start",o._isComparisonBridgeStart(i.compareValue,a,r))("mat-calendar-body-comparison-bridge-end",o._isComparisonBridgeEnd(i.compareValue,a,r))("mat-calendar-body-comparison-start",o._isComparisonStart(i.compareValue))("mat-calendar-body-comparison-end",o._isComparisonEnd(i.compareValue))("mat-calendar-body-in-comparison-range",o._isInComparisonRange(i.compareValue))("mat-calendar-body-preview-start",o._isPreviewStart(i.compareValue))("mat-calendar-body-preview-end",o._isPreviewEnd(i.compareValue))("mat-calendar-body-in-preview",o._isInPreview(i.compareValue)),ls("ngClass",i.cssClasses)("tabindex",o._isActiveCell(a,r)?0:-1),is("data-mat-row",a)("data-mat-col",r)("aria-label",i.ariaLabel)("aria-disabled",!i.enabled||null)("aria-selected",o._isSelected(i.compareValue)),Aa(1),js("mat-calendar-body-selected",o._isSelected(i.compareValue))("mat-calendar-body-comparison-identical",o._isComparisonIdentical(i.compareValue))("mat-calendar-body-today",o.todayValue===i.compareValue),Aa(1),Qs(" ",i.displayValue," ")}}function bN(t,e){if(1&t&&(cs(0,"tr",4),as(1,yN,2,6,"td",5),as(2,_N,4,46,"td",6),hs()),2&t){var n=e.$implicit,i=e.index,r=xs();Aa(1),ls("ngIf",0===i&&r._firstRowOffset),Aa(1),ls("ngForOf",n)}}function kN(t,e){if(1&t&&(cs(0,"th",5),$s(1),hs()),2&t){var n=e.$implicit;is("aria-label",n.long),Aa(1),Xs(n.narrow)}}var wN=["*"];function CN(t,e){}function SN(t,e){if(1&t){var n=vs();cs(0,"mat-month-view",5),_s("activeDateChange",function(t){return nn(n),xs().activeDate=t})("_userSelection",function(t){return nn(n),xs()._dateSelected(t)}),hs()}if(2&t){var i=xs();ls("activeDate",i.activeDate)("selected",i.selected)("dateFilter",i.dateFilter)("maxDate",i.maxDate)("minDate",i.minDate)("dateClass",i.dateClass)("comparisonStart",i.comparisonStart)("comparisonEnd",i.comparisonEnd)}}function xN(t,e){if(1&t){var n=vs();cs(0,"mat-year-view",6),_s("activeDateChange",function(t){return nn(n),xs().activeDate=t})("monthSelected",function(t){return nn(n),xs()._monthSelectedInYearView(t)})("selectedChange",function(t){return nn(n),xs()._goToDateInView(t,"month")}),hs()}if(2&t){var i=xs();ls("activeDate",i.activeDate)("selected",i.selected)("dateFilter",i.dateFilter)("maxDate",i.maxDate)("minDate",i.minDate)("dateClass",i.dateClass)}}function EN(t,e){if(1&t){var n=vs();cs(0,"mat-multi-year-view",7),_s("activeDateChange",function(t){return nn(n),xs().activeDate=t})("yearSelected",function(t){return nn(n),xs()._yearSelectedInMultiYearView(t)})("selectedChange",function(t){return nn(n),xs()._goToDateInView(t,"year")}),hs()}if(2&t){var i=xs();ls("activeDate",i.activeDate)("selected",i.selected)("dateFilter",i.dateFilter)("maxDate",i.maxDate)("minDate",i.minDate)("dateClass",i.dateClass)}}var AN=["button"];function DN(t,e){1&t&&(Tn(),cs(0,"svg",3),ds(1,"path",4),hs())}var ON=[[["","matDatepickerToggleIcon",""]]],IN=["[matDatepickerToggleIcon]"],TN=function(){var t=function(){function t(){g(this,t),this.changes=new q,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close 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 v(t,[{key:"formatYearRange",value:function(t,e){return"".concat(t," \u2013 ").concat(e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Dt({factory:function(){return new t},token:t,providedIn:"root"}),t}(),RN=function t(e,n,i,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e,s=arguments.length>6?arguments[6]:void 0;g(this,t),this.value=e,this.displayValue=n,this.ariaLabel=i,this.enabled=r,this.cssClasses=a,this.compareValue=o,this.rawValue=s},PN=function(){var t=function(){function t(e,n){var i=this;g(this,t),this._elementRef=e,this._ngZone=n,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new Ru,this.previewChange=new Ru,this._enterHandler=function(t){if(i._skipNextFocus&&"focus"===t.type)i._skipNextFocus=!1;else if(t.target&&i.isRange){var e=i._getCellFromElement(t.target);e&&i._ngZone.run(function(){return i.previewChange.emit({value:e.enabled?e:null,event:t})})}},this._leaveHandler=function(t){null!==i.previewEnd&&i.isRange&&t.target&&MN(t.target)&&i._ngZone.run(function(){return i.previewChange.emit({value:null,event:t})})},n.runOutsideAngular(function(){var t=e.nativeElement;t.addEventListener("mouseenter",i._enterHandler,!0),t.addEventListener("focus",i._enterHandler,!0),t.addEventListener("mouseleave",i._leaveHandler,!0),t.addEventListener("blur",i._leaveHandler,!0)})}return v(t,[{key:"_cellClicked",value:function(t,e){t.enabled&&this.selectedValueChange.emit({value:t.value,event:e})}},{key:"_isSelected",value:function(t){return this.startValue===t||this.endValue===t}},{key:"ngOnChanges",value: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="".concat(50*this.cellAspectRatio/i,"%")),!e&&this._cellWidth||(this._cellWidth="".concat(100/i,"%"))}},{key:"ngOnDestroy",value:function(){var t=this._elementRef.nativeElement;t.removeEventListener("mouseenter",this._enterHandler,!0),t.removeEventListener("focus",this._enterHandler,!0),t.removeEventListener("mouseleave",this._leaveHandler,!0),t.removeEventListener("blur",this._leaveHandler,!0)}},{key:"_isActiveCell",value:function(t,e){var n=t*this.numCols+e;return t&&(n-=this._firstRowOffset),n==this.activeCell}},{key:"_focusActiveCell",value:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this._ngZone.runOutsideAngular(function(){t._ngZone.onStable.pipe(Rf(1)).subscribe(function(){var n=t._elementRef.nativeElement.querySelector(".mat-calendar-body-active");n&&(e||(t._skipNextFocus=!0),n.focus())})})}},{key:"_isRangeStart",value:function(t){return FN(t,this.startValue,this.endValue)}},{key:"_isRangeEnd",value:function(t){return LN(t,this.startValue,this.endValue)}},{key:"_isInRange",value:function(t){return NN(t,this.startValue,this.endValue,this.isRange)}},{key:"_isComparisonStart",value:function(t){return FN(t,this.comparisonStart,this.comparisonEnd)}},{key:"_isComparisonBridgeStart",value:function(t,e,n){if(!this._isComparisonStart(t)||this._isRangeStart(t)||!this._isInRange(t))return!1;var i=this.rows[e][n-1];if(!i){var r=this.rows[e-1];i=r&&r[r.length-1]}return i&&!this._isRangeEnd(i.compareValue)}},{key:"_isComparisonBridgeEnd",value:function(t,e,n){if(!this._isComparisonEnd(t)||this._isRangeEnd(t)||!this._isInRange(t))return!1;var i=this.rows[e][n+1];if(!i){var r=this.rows[e+1];i=r&&r[0]}return i&&!this._isRangeStart(i.compareValue)}},{key:"_isComparisonEnd",value:function(t){return LN(t,this.comparisonStart,this.comparisonEnd)}},{key:"_isInComparisonRange",value:function(t){return NN(t,this.comparisonStart,this.comparisonEnd,this.isRange)}},{key:"_isComparisonIdentical",value:function(t){return this.comparisonStart===this.comparisonEnd&&t===this.comparisonStart}},{key:"_isPreviewStart",value:function(t){return FN(t,this.previewStart,this.previewEnd)}},{key:"_isPreviewEnd",value:function(t){return LN(t,this.previewStart,this.previewEnd)}},{key:"_isInPreview",value:function(t){return NN(t,this.previewStart,this.previewEnd,this.isRange)}},{key:"_getCellFromElement",value:function(t){var e;if(MN(t)?e=t:MN(t.parentNode)&&(e=t.parentNode),e){var n=e.getAttribute("data-mat-row"),i=e.getAttribute("data-mat-col");if(n&&i)return this.rows[parseInt(n)][parseInt(i)]}return null}}]),t}();return t.\u0275fac=function(e){return new(e||t)(ss(xl),ss(Cc))},t.\u0275cmp=oe({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:["role","grid","aria-readonly","true",1,"mat-calendar-body"],inputs:{numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",previewStart:"previewStart",previewEnd:"previewEnd",label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[Ie],attrs:vN,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",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["aria-hidden","true",1,"mat-calendar-body-label"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(t,e){1&t&&(as(0,gN,3,6,"tr",0),as(1,bN,3,2,"tr",1)),2&t&&(ls("ngIf",e._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .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}@media(hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n'],encapsulation:2,changeDetection:0}),t}();function MN(t){return"TD"===t.nodeName}function FN(t,e,n){return null!==n&&e!==n&&t=e&&t===n}function NN(t,e,n,i){return i&&null!==e&&null!==n&&e!==n&&t>=e&&t<=n}var VN=function t(e,n){g(this,t),this.start=e,this.end=n},jN=function(){var t=function(){function t(e,n){g(this,t),this.selection=e,this._adapter=n,this._selectionChanged=new q,this.selectionChanged=this._selectionChanged,this.selection=e}return v(t,[{key:"updateSelection",value:function(t,e){this.selection=t,this._selectionChanged.next({selection:t,source:e})}},{key:"ngOnDestroy",value:function(){this._selectionChanged.complete()}},{key:"_isValidDateInstance",value:function(t){return this._adapter.isDateInstance(t)&&this._adapter.isValid(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(ss(void 0),ss(vC))},t.\u0275dir=de({type:t}),t}(),BN=function(){var t=function(t){y(n,t);var e=k(n);function n(t){return g(this,n),e.call(this,null,t)}return v(n,[{key:"add",value:function(t){r(i(n.prototype),"updateSelection",this).call(this,t,this)}},{key:"isValid",value:function(){return null!=this.selection&&this._isValidDateInstance(this.selection)}},{key:"isComplete",value:function(){return null!=this.selection}}]),n}(jN);return t.\u0275fac=function(e){return new(e||t)(Ui(vC))},t.\u0275prov=Dt({token:t,factory:t.\u0275fac}),t}(),zN={provide:jN,deps:[[new Ri,new Mi,jN],vC],useFactory:function(t,e){return t||new BN(e)}},HN=new bi("MAT_DATE_RANGE_SELECTION_STRATEGY"),UN=function(){var t=function(){function t(e,n,i,r,a){g(this,t),this._changeDetectorRef=e,this._dateFormats=n,this._dateAdapter=i,this._dir=r,this._rangeStrategy=a,this._rerenderSubscription=A.EMPTY,this.selectedChange=new Ru,this._userSelection=new Ru,this.activeDateChange=new Ru,this._activeDate=this._dateAdapter.today()}return v(t,[{key:"ngAfterContentInit",value:function(){var t=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Ff(null)).subscribe(function(){return t._init()})}},{key:"ngOnChanges",value:function(t){var e=t.comparisonStart||t.comparisonEnd;e&&!e.firstChange&&this._setRanges(this.selected)}},{key:"ngOnDestroy",value:function(){this._rerenderSubscription.unsubscribe()}},{key:"_dateSelected",value:function(t){var e,n,i=t.value,r=this._dateAdapter.getYear(this.activeDate),a=this._dateAdapter.getMonth(this.activeDate),o=this._dateAdapter.createDate(r,a,i);this._selected instanceof VN?(e=this._getDateInCurrentMonth(this._selected.start),n=this._getDateInCurrentMonth(this._selected.end)):e=n=this._getDateInCurrentMonth(this._selected),e===i&&n===i||this.selectedChange.emit(o),this._userSelection.emit({value:o,event:t.event})}},{key:"_handleCalendarBodyKeydown",value:function(t){var e=this._activeDate,n=this._isRtl();switch(t.keyCode){case Py:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?1:-1);break;case Fy:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?-1:1);break;case My:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case Ly:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case Ry:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case Ty: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 Dy:case Iy:return void(this.dateFilter&&!this.dateFilter(this._activeDate)||(this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:t}),t.preventDefault()));case Oy:return void(null==this._previewEnd||Ny(t)||(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:t}),t.preventDefault(),t.stopPropagation()));default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}},{key:"_init",value:function(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(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()}},{key:"_focusActiveCell",value:function(t){this._matCalendarBody._focusActiveCell(t)}},{key:"_previewChanged",value:function(t){var e=t.value;if(this._rangeStrategy){var n=this._rangeStrategy.createPreview(e?e.rawValue:null,this.selected,t.event);this._previewStart=this._getCellCompareValue(n.start),this._previewEnd=this._getCellCompareValue(n.end),this._changeDetectorRef.detectChanges()}}},{key:"_initWeekdays",value: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))}},{key:"_createWeekCells",value: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)&&(!this.dateFilter||this.dateFilter(t))}},{key:"_getDateInCurrentMonth",value:function(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null}},{key:"_hasSameMonthAndYear",value:function(t,e){return!(!t||!e||this._dateAdapter.getMonth(t)!=this._dateAdapter.getMonth(e)||this._dateAdapter.getYear(t)!=this._dateAdapter.getYear(e))}},{key:"_getCellCompareValue",value:function(t){if(t){var e=this._dateAdapter.getYear(t),n=this._dateAdapter.getMonth(t),i=this._dateAdapter.getDate(t);return new Date(e,n,i).getTime()}return null}},{key:"_isRtl",value:function(){return this._dir&&"rtl"===this._dir.value}},{key:"_setRanges",value:function(t){t instanceof VN?(this._rangeStart=this._getCellCompareValue(t.start),this._rangeEnd=this._getCellCompareValue(t.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(t),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}},{key:"activeDate",get:function(){return this._activeDate},set:function(t){var e=this._activeDate,n=this._dateAdapter.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()}},{key:"selected",get:function(){return this._selected},set:function(t){this._selected=t instanceof VN?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setRanges(this._selected)}},{key:"minDate",get:function(){return this._minDate},set:function(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}},{key:"maxDate",get:function(){return this._maxDate},set:function(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(ss(Kl),ss(gC,8),ss(vC,8),ss(ry,8),ss(HN,8))},t.\u0275cmp=oe({type:t,selectors:[["mat-month-view"]],viewQuery:function(t,e){var n;1&t&&Yu(PN,!0),2&t&&qu(n=Xu())&&(e._matCalendarBody=n.first)},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[Ie],decls:7,vars:13,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","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keydown"],["scope","col"]],template:function(t,e){1&t&&(cs(0,"table",0),cs(1,"thead",1),cs(2,"tr"),as(3,kN,2,2,"th",2),hs(),cs(4,"tr"),ds(5,"th",3),hs(),hs(),cs(6,"tbody",4),_s("selectedValueChange",function(t){return e._dateSelected(t)})("previewChange",function(t){return e._previewChanged(t)})("keydown",function(t){return e._handleCalendarBodyKeydown(t)}),hs(),hs()),2&t&&(Aa(3),ls("ngForOf",e._weekdays),Aa(3),ls("label",e._monthLabel)("rows",e._weeks)("todayValue",e._todayDate)("startValue",e._rangeStart)("endValue",e._rangeEnd)("comparisonStart",e._comparisonRangeStart)("comparisonEnd",e._comparisonRangeEnd)("previewStart",e._previewStart)("previewEnd",e._previewEnd)("isRange",e._isRange)("labelMinRequiredCells",3)("activeCell",e._dateAdapter.getDate(e.activeDate)-1))},directives:[Oh,PN],encapsulation:2,changeDetection:0}),t}(),qN=24,WN=function(){var t=function(){function t(e,n,i){g(this,t),this._changeDetectorRef=e,this._dateAdapter=n,this._dir=i,this._rerenderSubscription=A.EMPTY,this.selectedChange=new Ru,this.yearSelected=new Ru,this.activeDateChange=new Ru,this._activeDate=this._dateAdapter.today()}return v(t,[{key:"ngAfterContentInit",value:function(){var t=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Ff(null)).subscribe(function(){return t._init()})}},{key:"ngOnDestroy",value:function(){this._rerenderSubscription.unsubscribe()}},{key:"_init",value:function(){var t=this;this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());var e=this._dateAdapter.getYear(this._activeDate)-GN(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(var n=0,i=[];nthis._dateAdapter.getYear(this.maxDate)||this.minDate&&tn||t===n&&e>i}return!1}},{key:"_isYearAndMonthBeforeMinDate",value:function(t,e){if(this.minDate){var n=this._dateAdapter.getYear(this.minDate),i=this._dateAdapter.getMonth(this.minDate);return t enter",ub("120ms cubic-bezier(0, 0, 0.2, 1)",hb({opacity:1,transform:"scale(1, 1)"}))),pb("* => void",ub("100ms linear",hb({opacity:0})))]),fadeInCalendar:lb("fadeInCalendar",[db("void",hb({opacity:0})),db("enter",hb({opacity:1})),pb("void => *",ub("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},tV=0,eV=new bi("mat-datepicker-scroll-strategy"),nV={provide:eV,deps:[h_],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},iV=uC(function t(e){g(this,t),this._elementRef=e}),rV=function(){var t=function(t){y(n,t);var e=k(n);function n(t,i,r,a,o,s){var l;return g(this,n),(l=e.call(this,t))._changeDetectorRef=i,l._model=r,l._dateAdapter=a,l._rangeSelectionStrategy=o,l._subscriptions=new A,l._animationState="enter",l._animationDone=new q,l._closeButtonText=(null==s?void 0:s.closeCalendarLabel)||"Close calendar",l}return v(n,[{key:"ngAfterViewInit",value:function(){var t=this;this._subscriptions.add(this.datepicker._stateChanges.subscribe(function(){t._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}},{key:"ngOnDestroy",value:function(){this._subscriptions.unsubscribe(),this._animationDone.complete()}},{key:"_handleUserSelection",value:function(t){var e=this._model.selection,n=t.value,i=e instanceof VN;if(i&&this._rangeSelectionStrategy){var r=this._rangeSelectionStrategy.selectionFinished(n,e,t.event);this._model.updateSelection(r,this)}else!n||!i&&this._dateAdapter.sameDate(n,e)||this._model.add(n);this._model&&!this._model.isComplete()||this.datepicker.close()}},{key:"_startExitAnimation",value:function(){this._animationState="void",this._changeDetectorRef.markForCheck()}},{key:"_getSelected",value:function(){return this._model.selection}}]),n}(iV);return t.\u0275fac=function(e){return new(e||t)(ss(xl),ss(Kl),ss(jN),ss(vC),ss(HN,8),ss(TN))},t.\u0275cmp=oe({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(t,e){var n;1&t&&Yu(QN,!0),2&t&&qu(n=Xu())&&(e._calendar=n.first)},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(t,e){1&t&&bs("@transformPanel.done",function(){return e._animationDone.next()}),2&t&&(el("@transformPanel",e._animationState),js("mat-datepicker-content-touch",e.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[qo],decls:4,vars:17,consts:[["cdkTrapFocus",""],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(t,e){1&t&&(cs(0,"div",0),cs(1,"mat-calendar",1),_s("yearSelected",function(t){return e.datepicker._selectYear(t)})("monthSelected",function(t){return e.datepicker._selectMonth(t)})("viewChanged",function(t){return e.datepicker._viewChanged(t)})("_userSelection",function(t){return e._handleUserSelection(t)}),hs(),cs(2,"button",2),_s("focus",function(){return e._closeButtonFocused=!0})("blur",function(){return e._closeButtonFocused=!1})("click",function(){return e.datepicker.close()}),$s(3),hs(),hs()),2&t&&(Aa(1),ls("id",e.datepicker.id)("ngClass",e.datepicker.panelClass)("startAt",e.datepicker.startAt)("startView",e.datepicker.startView)("minDate",e.datepicker._getMinDate())("maxDate",e.datepicker._getMaxDate())("dateFilter",e.datepicker._getDateFilter())("headerComponent",e.datepicker.calendarHeaderComponent)("selected",e._getSelected())("dateClass",e.datepicker.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("@fadeInCalendar","enter"),Aa(1),js("cdk-visually-hidden",!e._closeButtonFocused),ls("color",e.color||"primary"),Aa(1),Xs(e._closeButtonText))},directives:[H_,QN,Ah,DS],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.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}}\n"],encapsulation:2,data:{animation:[JN.transformPanel,JN.fadeInCalendar]},changeDetection:0}),t}(),aV=function(){var t=function(){function t(e,n,i,r,a,o,s,l,u){g(this,t),this._dialog=e,this._overlay=n,this._ngZone=i,this._viewContainerRef=r,this._dateAdapter=o,this._dir=s,this._document=l,this._model=u,this._inputStateChanges=A.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this.yearSelected=new Ru,this.monthSelected=new Ru,this.viewChanged=new Ru(!0),this.openedStream=new Ru,this.closedStream=new Ru,this._opened=!1,this.id="mat-datepicker-".concat(tV++),this._focusedElementBeforeOpen=null,this._backdropHarnessClass="".concat(this.id,"-backdrop"),this._stateChanges=new q,this._scrollStrategy=a}return v(t,[{key:"_getMinDate",value:function(){return this._datepickerInput&&this._datepickerInput.min}},{key:"_getMaxDate",value:function(){return this._datepickerInput&&this._datepickerInput.max}},{key:"_getDateFilter",value:function(){return this._datepickerInput&&this._datepickerInput.dateFilter}},{key:"ngOnChanges",value:function(t){var e=t.xPosition||t.yPosition;e&&!e.firstChange&&this._popupRef&&(this._setConnectedPositions(this._popupRef.getConfig().positionStrategy),this.opened&&this._popupRef.updatePosition()),this._stateChanges.next(void 0)}},{key:"ngOnDestroy",value:function(){this._destroyPopup(),this.close(),this._inputStateChanges.unsubscribe(),this._stateChanges.complete()}},{key:"select",value:function(t){this._model.add(t)}},{key:"_selectYear",value:function(t){this.yearSelected.emit(t)}},{key:"_selectMonth",value:function(t){this.monthSelected.emit(t)}},{key:"_viewChanged",value:function(t){this.viewChanged.emit(t)}},{key:"_registerInput",value:function(t){var e=this;return this._inputStateChanges.unsubscribe(),this._datepickerInput=t,this._inputStateChanges=t.stateChanges.subscribe(function(){return e._stateChanges.next(void 0)}),this._model}},{key:"open",value:function(){this._opened||this.disabled||(this._document&&(this._focusedElementBeforeOpen=this._document.activeElement),this.touchUi?this._openAsDialog():this._openAsPopup(),this._opened=!0,this.openedStream.emit())}},{key:"close",value:function(){var t=this;if(this._opened){if(this._popupComponentRef&&this._popupRef){var e=this._popupComponentRef.instance;e._startExitAnimation(),e._animationDone.pipe(Rf(1)).subscribe(function(){return t._destroyPopup()})}this._dialogRef&&(this._dialogRef.close(),this._dialogRef=null);var n=function(){t._opened&&(t._opened=!1,t.closedStream.emit(),t._focusedElementBeforeOpen=null)};this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(n)):n()}}},{key:"_openAsDialog",value:function(){var t=this;this._dialogRef&&this._dialogRef.close(),this._dialogRef=this._dialog.open(rV,{direction:this._dir?this._dir.value:"ltr",viewContainerRef:this._viewContainerRef,panelClass:"mat-datepicker-dialog",hasBackdrop:!0,disableClose:!1,backdropClass:["cdk-overlay-dark-backdrop",this._backdropHarnessClass],width:"",height:"",minWidth:"",minHeight:"",maxWidth:"80vw",maxHeight:"",position:{},autoFocus:!1,restoreFocus:!1}),this._dialogRef.afterClosed().subscribe(function(){return t.close()}),this._forwardContentValues(this._dialogRef.componentInstance)}},{key:"_openAsPopup",value:function(){var t=this,e=new vy(rV,this._viewContainerRef);this._destroyPopup(),this._createPopup(),this._popupComponentRef=this._popupRef.attach(e),this._forwardContentValues(this._popupComponentRef.instance),this._ngZone.onStable.pipe(Rf(1)).subscribe(function(){t._popupRef.updatePosition()})}},{key:"_forwardContentValues",value:function(t){t.datepicker=this,t.color=this.color}},{key:"_createPopup",value:function(){var t=this,e=this._overlay.position().flexibleConnectedTo(this._datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition(),n=new Yy({positionStrategy:this._setConnectedPositions(e),hasBackdrop:!0,backdropClass:["mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:this._scrollStrategy(),panelClass:"mat-datepicker-popup"});this._popupRef=this._overlay.create(n),this._popupRef.overlayElement.setAttribute("role","dialog"),dt(this._popupRef.backdropClick(),this._popupRef.detachments(),this._popupRef.keydownEvents().pipe(Td(function(e){return e.keyCode===Oy&&!Ny(e)||t._datepickerInput&&Ny(e,"altKey")&&e.keyCode===My}))).subscribe(function(e){e&&e.preventDefault(),t.close()})}},{key:"_destroyPopup",value:function(){this._popupRef&&(this._popupRef.dispose(),this._popupRef=this._popupComponentRef=null)}},{key:"_setConnectedPositions",value:function(t){var e="end"===this.xPosition?"end":"start",n="start"===e?"end":"start",i="above"===this.yPosition?"bottom":"top",r="top"===i?"bottom":"top";return t.withPositions([{originX:e,originY:r,overlayX:e,overlayY:i},{originX:e,originY:i,overlayX:e,overlayY:r},{originX:n,originY:r,overlayX:n,overlayY:i},{originX:n,originY:i,overlayX:n,overlayY:r}])}},{key:"startAt",get:function(){return this._startAt||(this._datepickerInput?this._datepickerInput.getStartValue():null)},set:function(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}},{key:"color",get:function(){return this._color||(this._datepickerInput?this._datepickerInput.getThemePalette():void 0)},set:function(t){this._color=t}},{key:"touchUi",get:function(){return this._touchUi},set:function(t){this._touchUi=lg(t)}},{key:"disabled",get:function(){return void 0===this._disabled&&this._datepickerInput?this._datepickerInput.disabled:!!this._disabled},set:function(t){var e=lg(t);e!==this._disabled&&(this._disabled=e,this._stateChanges.next(void 0))}},{key:"panelClass",get:function(){return this._panelClass},set:function(t){this._panelClass=pg(t)}},{key:"opened",get:function(){return this._opened},set:function(t){lg(t)?this.open():this.close()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(ss(pS),ss(h_),ss(Cc),ss(su),ss(eV),ss(vC,8),ss(ry,8),ss(ah,8),ss(jN))},t.\u0275dir=de({type:t,inputs:{startView:"startView",xPosition:"xPosition",yPosition:"yPosition",startAt:"startAt",color:"color",touchUi:"touchUi",disabled:"disabled",panelClass:"panelClass",opened:"opened",calendarHeaderComponent:"calendarHeaderComponent",dateClass:"dateClass"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[Ie]}),t}(),oV=function(){var t=function(t){y(n,t);var e=k(n);function n(){return g(this,n),e.apply(this,arguments)}return n}(aV);return t.\u0275fac=function(e){return sV(e||t)},t.\u0275cmp=oe({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[gl([zN]),qo],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),t}(),sV=vi(oV),lV=function t(e,n){g(this,t),this.target=e,this.targetElement=n,this.value=this.target.value},uV=function(){var t=function(){function t(e,n,i){var r=this;g(this,t),this._elementRef=e,this._dateAdapter=n,this._dateFormats=i,this.dateChange=new Ru,this.dateInput=new Ru,this._valueChange=new Ru,this.stateChanges=new q,this._onTouched=function(){},this._validatorOnChange=function(){},this._cvaOnChange=function(){},this._valueChangesSubscription=A.EMPTY,this._localeSubscription=A.EMPTY,this._parseValidator=function(){return r._lastValueValid?null:{matDatepickerParse:{text:r._elementRef.nativeElement.value}}},this._filterValidator=function(t){var e=r._dateAdapter.getValidDateOrNull(r._dateAdapter.deserialize(t.value));return!e||r._matchesFilter(e)?null:{matDatepickerFilter:!0}},this._minValidator=function(t){var e=r._dateAdapter.getValidDateOrNull(r._dateAdapter.deserialize(t.value)),n=r._getMinDate();return!n||!e||r._dateAdapter.compareDate(n,e)<=0?null:{matDatepickerMin:{min:n,actual:e}}},this._maxValidator=function(t){var e=r._dateAdapter.getValidDateOrNull(r._dateAdapter.deserialize(t.value)),n=r._getMaxDate();return!n||!e||r._dateAdapter.compareDate(n,e)>=0?null:{matDatepickerMax:{max:n,actual:e}}},this._lastValueValid=!1,this._localeSubscription=n.localeChanges.subscribe(function(){r.value=r.value})}return v(t,[{key:"_getValidators",value:function(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}},{key:"_registerModel",value:function(t){var e=this;this._model=t,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(function(t){if(t.source!==e){var n=e._getValueFromModel(t.selection);e._lastValueValid=e._isValidValue(n),e._cvaOnChange(n),e._onTouched(),e._formatValue(n),e._canEmitChangeEvent(t)&&(e.dateInput.emit(new lV(e,e._elementRef.nativeElement)),e.dateChange.emit(new lV(e,e._elementRef.nativeElement))),e._outsideValueChanged&&e._outsideValueChanged()}})}},{key:"ngAfterViewInit",value:function(){this._isInitialized=!0}},{key:"ngOnChanges",value:function(t){(function(t,e){for(var n=0,i=Object.keys(t);n2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this.multiple||!this.selected||t.checked||(this.selected.checked=!1),this._selectionModel?e?this._selectionModel.select(t):this._selectionModel.deselect(t):r=!0,r?Promise.resolve().then(function(){return n._updateModelValue(i)}):this._updateModelValue(i)}},{key:"_isSelected",value:function(t){return this._selectionModel&&this._selectionModel.isSelected(t)}},{key:"_isPrechecked",value: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)}},{key:"_setSelectionByValue",value:function(t){var e=this;this._rawValue=t,this._buttonToggles&&(this.multiple&&t?(Array.isArray(t),this._clearSelection(),t.forEach(function(t){return e._selectValue(t)})):(this._clearSelection(),this._selectValue(t)))}},{key:"_clearSelection",value:function(){this._selectionModel.clear(),this._buttonToggles.forEach(function(t){return t.checked=!1})}},{key:"_selectValue",value:function(t){var e=this._buttonToggles.find(function(e){return null!=e.value&&e.value===t});e&&(e.checked=!0,this._selectionModel.select(e))}},{key:"_updateModelValue",value:function(t){t&&this._emitChangeEvent(),this.valueChange.emit(this.value)}},{key:"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()})}},{key:"vertical",get:function(){return this._vertical},set:function(t){this._vertical=lg(t)}},{key:"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)}},{key:"selected",get:function(){var t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t:t[0]||null}},{key:"multiple",get:function(){return this._multiple},set:function(t){this._multiple=lg(t)}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=lg(t),this._buttonToggles&&this._buttonToggles.forEach(function(t){return t._markForCheck()})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(ss(Kl),ss(yV,8))},t.\u0275dir=de({type:t,selectors:[["mat-button-toggle-group"]],contentQueries:function(t,e,n){var i;1&t&&Ku(n,xV,!0),2&t&&qu(i=Xu())&&(e._buttonToggles=i)},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(t,e){2&t&&(is("aria-disabled",e.disabled),js("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:[gl([bV,{provide:_V,useExisting:t}])]}),t}(),SV=cC(function t(){g(this,t)}),xV=function(){var t=function(t){y(n,t);var e=k(n);function n(t,i,r,a,o,s){var l;g(this,n),(l=e.call(this))._changeDetectorRef=i,l._elementRef=r,l._focusMonitor=a,l._isSingleSelector=!1,l._checked=!1,l.ariaLabelledby=null,l._disabled=!1,l.change=new Ru;var u=Number(o);return l.tabIndex=u||0===u?u:null,l.buttonToggleGroup=t,l.appearance=s&&s.appearance?s.appearance:"standard",l}return v(n,[{key:"ngOnInit",value:function(){var t=this.buttonToggleGroup;this._isSingleSelector=t&&!t.multiple,this.id=this.id||"mat-button-toggle-".concat(kV++),this._isSingleSelector&&(this.name=t.name),t&&(t._isPrechecked(this)?this.checked=!0:t._isSelected(this)!==this._checked&&t._syncButtonToggle(this,this._checked))}},{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){var t=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),t&&t._isSelected(this)&&t._syncButtonToggle(this,!1,!1,!0)}},{key:"focus",value:function(t){this._buttonElement.nativeElement.focus(t)}},{key:"_onButtonClick",value: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 wV(this,this.value))}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}},{key:"buttonId",get:function(){return"".concat(this.id,"-button")}},{key:"appearance",get:function(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance},set:function(t){this._appearance=t}},{key:"checked",get:function(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked},set:function(t){var e=lg(t);e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled},set:function(t){this._disabled=lg(t)}}]),n}(SV);return t.\u0275fac=function(e){return new(e||t)(ss(_V,8),ss(Kl),ss(xl),ss($_),gi("tabindex"),ss(yV,8))},t.\u0275cmp=oe({type:t,selectors:[["mat-button-toggle"]],viewQuery:function(t,e){var n;1&t&&Yu(vV,!0),2&t&&qu(n=Xu())&&(e._buttonElement=n.first)},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(t,e){1&t&&_s("focus",function(){return e.focus()}),2&t&&(is("aria-label",null)("aria-labelledby",null)("id",e.id)("name",null),js("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",ariaLabelledby:["aria-labelledby","ariaLabelledby"],tabIndex:"tabIndex",appearance:"appearance",checked:"checked",disabled:"disabled",id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],value:"value"},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[qo],ngContentSelectors:gV,decls:6,vars:9,consts:[["type","button",1,"mat-button-toggle-button","mat-focus-indicator",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&&(As(),cs(0,"button",0,1),_s("click",function(){return e._onButtonClick()}),cs(2,"span",2),Ds(3),hs(),hs(),ds(4,"span",3),ds(5,"span",4)),2&t){var n=os(1);ls("id",e.buttonId)("disabled",e.disabled||null),is("tabindex",e.disabled?-1:e.tabIndex)("aria-pressed",e.checked)("name",e.name||null)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),Aa(5),ls("matRippleTrigger",n)("matRippleDisabled",e.disableRipple||e.disabled)}},directives:[NC],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;border-radius:2px;-webkit-tap-highlight-color:transparent}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:4px}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-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}.cdk-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}.cdk-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{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}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}.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:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}\n"],encapsulation:2,changeDetection:0}),t}(),EV=function(){var t=function t(){g(this,t)};return t.\u0275mod=ce({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},imports:[[sC,VC],sC]}),t}();function AV(t,e){1&t&&(cs(0,"uds-translate"),$s(1,"Edit rule"),hs())}function DV(t,e){1&t&&(cs(0,"uds-translate"),$s(1,"New rule"),hs())}function OV(t,e){if(1&t&&(cs(0,"mat-option",22),$s(1),hs()),2&t){var n=e.$implicit;ls("value",n.id),Aa(1),Qs(" ",n.value," ")}}function IV(t,e){if(1&t&&(cs(0,"mat-option",22),$s(1),hs()),2&t){var n=e.$implicit;ls("value",n.id),Aa(1),Qs(" ",n.value," ")}}function TV(t,e){if(1&t&&(cs(0,"mat-button-toggle",22),$s(1),hs()),2&t){var n=e.$implicit;ls("value",n.id),Aa(1),Qs(" ",n.value," ")}}function RV(t,e){if(1&t){var n=vs();cs(0,"div",23),cs(1,"span",24),cs(2,"uds-translate"),$s(3,"Weekdays"),hs(),hs(),cs(4,"mat-button-toggle-group",25),_s("ngModelChange",function(t){return nn(n),xs().wDays=t}),as(5,TV,2,2,"mat-button-toggle",8),hs(),hs()}if(2&t){var i=xs();Aa(4),ls("ngModel",i.wDays),Aa(1),ls("ngForOf",i.weekDays)}}function PV(t,e){if(1&t){var n=vs();cs(0,"mat-form-field",9),cs(1,"mat-label"),cs(2,"uds-translate"),$s(3,"Repeat every"),hs(),hs(),cs(4,"input",6),_s("ngModelChange",function(t){return nn(n),xs().rule.interval=t}),hs(),cs(5,"div",26),$s(6),hs(),hs()}if(2&t){var i=xs();Aa(4),ls("ngModel",i.rule.interval),Aa(2),Qs("\xa0",i.frequency(),"")}}var MV={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")]},FV={MINUTES:django.gettext("Minutes"),HOURS:django.gettext("Hours"),DAYS:django.gettext("Days"),WEEKS:django.gettext("Weeks")},LV=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")];function NV(t,e){void 0===e&&(e=!1);for(var n=new Array,i=0;i<7;i++)1&t&&n.push(LV[i].substr(0,e?100:3)),t>>=1;return n.length?n.join(", "):django.gettext("(no days)")}var VV=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.dunits=Object.keys(FV).map(function(t){return{id:t,value:FV[t]}}),this.freqs=Object.keys(MV).map(function(t){return{id:t,value:MV[t][2]}}),this.weekDays=LV.map(function(t,e){return{id:1<0?" "+django.gettext("and every event will be active for")+" "+this.rule.duration+" "+FV[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)(ss(uD),ss(RD),ss(sS),ss(uS))},t.\u0275cmp=oe({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&&(cs(0,"h4",0),as(1,AV,2,0,"uds-translate",1),as(2,DV,2,0,"uds-translate",1),hs(),cs(3,"mat-dialog-content"),cs(4,"div",2),cs(5,"mat-form-field"),cs(6,"mat-label"),cs(7,"uds-translate"),$s(8,"Name"),hs(),hs(),cs(9,"input",3),_s("ngModelChange",function(t){return e.rule.name=t}),hs(),hs(),cs(10,"mat-form-field"),cs(11,"mat-label"),cs(12,"uds-translate"),$s(13,"Comments"),hs(),hs(),cs(14,"input",3),_s("ngModelChange",function(t){return e.rule.comments=t}),hs(),hs(),cs(15,"h3"),cs(16,"uds-translate"),$s(17,"Event"),hs(),hs(),cs(18,"mat-form-field",4),cs(19,"mat-label"),cs(20,"uds-translate"),$s(21,"Start time"),hs(),hs(),cs(22,"input",5),_s("ngModelChange",function(t){return e.startTime=t}),hs(),hs(),cs(23,"mat-form-field",4),cs(24,"mat-label"),cs(25,"uds-translate"),$s(26,"Duration"),hs(),hs(),cs(27,"input",6),_s("ngModelChange",function(t){return e.rule.duration=t}),hs(),hs(),cs(28,"mat-form-field",4),cs(29,"mat-label"),cs(30,"uds-translate"),$s(31,"Duration units"),hs(),hs(),cs(32,"mat-select",7),_s("ngModelChange",function(t){return e.rule.duration_unit=t}),as(33,OV,2,2,"mat-option",8),hs(),hs(),cs(34,"h3"),$s(35," Repetition "),hs(),cs(36,"mat-form-field",9),cs(37,"mat-label"),cs(38,"uds-translate"),$s(39," Start date "),hs(),hs(),cs(40,"input",10),_s("ngModelChange",function(t){return e.startDate=t}),hs(),ds(41,"mat-datepicker-toggle",11),ds(42,"mat-datepicker",null,12),hs(),cs(44,"mat-form-field",9),cs(45,"mat-label"),cs(46,"uds-translate"),$s(47," Repeat until date "),hs(),hs(),cs(48,"input",13),_s("ngModelChange",function(t){return e.endDate=t}),hs(),ds(49,"mat-datepicker-toggle",11),ds(50,"mat-datepicker",null,14),hs(),cs(52,"div",15),cs(53,"mat-form-field",9),cs(54,"mat-label"),cs(55,"uds-translate"),$s(56,"Frequency"),hs(),hs(),cs(57,"mat-select",16),_s("ngModelChange",function(t){return e.rule.frequency=t})("valueChange",function(){return e.rule.interval=1}),as(58,IV,2,2,"mat-option",8),hs(),hs(),as(59,RV,6,2,"div",17),as(60,PV,7,2,"mat-form-field",18),hs(),cs(61,"h3"),cs(62,"uds-translate"),$s(63,"Summary"),hs(),hs(),cs(64,"div",19),$s(65),hs(),hs(),hs(),cs(66,"mat-dialog-actions"),cs(67,"button",20),cs(68,"uds-translate"),$s(69,"Cancel"),hs(),hs(),cs(70,"button",21),_s("click",function(){return e.save()}),cs(71,"uds-translate"),$s(72,"Ok"),hs(),hs(),hs()),2&t){var n=os(43),i=os(51);Aa(1),ls("ngIf",e.rule.id),Aa(1),ls("ngIf",!e.rule.id),Aa(7),ls("ngModel",e.rule.name),Aa(5),ls("ngModel",e.rule.comments),Aa(8),ls("ngModel",e.startTime),Aa(5),ls("ngModel",e.rule.duration),Aa(5),ls("ngModel",e.rule.duration_unit),Aa(1),ls("ngForOf",e.dunits),Aa(7),ls("matDatepicker",n)("ngModel",e.startDate),Aa(1),ls("for",n),Aa(7),ls("matDatepicker",i)("ngModel",e.endDate)("placeholder",e.FOREVER_STRING),Aa(1),ls("for",i),Aa(8),ls("ngModel",e.rule.frequency),Aa(1),ls("ngForOf",e.freqs),Aa(1),ls("ngIf","WEEKDAYS"===e.rule.frequency),Aa(1),ls("ngIf","WEEKDAYS"!==e.rule.frequency),Aa(5),Qs(" ",e.summary()," "),Aa(5),ls("disabled",null!==e.updateRuleData()||""===e.rule.name)}},directives:[gS,Th,yS,fO,rO,TS,FT,YS,px,tE,gx,FO,Oh,dV,pV,lO,oV,_S,DS,vS,$C,CV,xV],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 jV(t,e){1&t&&(cs(0,"uds-translate"),$s(1,"Rules"),hs())}function BV(t,e){if(1&t){var n=vs();cs(0,"div",6),cs(1,"div",7),cs(2,"mat-tab-group",8),cs(3,"mat-tab"),as(4,jV,2,0,"ng-template",9),cs(5,"div",10),cs(6,"uds-table",11),_s("newAction",function(t){return nn(n),xs().onNewRule(t)})("editAction",function(t){return nn(n),xs().onEditRule(t)})("deleteAction",function(t){return nn(n),xs().onDeleteRule(t)}),hs(),hs(),hs(),hs(),hs(),hs()}if(2&t){var i=xs();Aa(2),ls("@.disabled",!0),Aa(4),ls("rest",i.calendarRules)("multiSelect",!0)("allowExport",!0)("onItem",i.processElement)("tableId","calendars-d-rules"+i.calendar.id)("pageSize",i.api.config.admin.page_size)}}var zV=function(t){return["/pools","calendars",t]},HV=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){VV.launch(this.api,this.calendarRules).subscribe(function(){return t.table.overview()})},t.prototype.onEditRule=function(t){VV.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?NV(t.interval):t.interval+" "+MV[t.frequency][django.pluralidx(t.interval)],t.duration=t.duration+" "+FV[t.duration_unit]}(t)},t.\u0275fac=function(e){return new(e||t)(ss(cm),ss(RD),ss(uD))},t.\u0275cmp=oe({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","pageSize","newAction","editAction","deleteAction"]],template:function(t,e){1&t&&(cs(0,"div",0),cs(1,"div",1),cs(2,"a",2),cs(3,"i",3),$s(4,"arrow_back"),hs(),hs(),$s(5," \xa0"),ds(6,"img",4),$s(7),hs(),as(8,BV,7,7,"div",5),hs()),2&t&&(Aa(2),ls("routerLink",wu(4,zV,e.calendar?e.calendar.id:"")),Aa(4),ls("src",e.api.staticURL("admin/img/icons/calendars.png"),Or),Aa(1),Qs(" ",null==e.calendar?null:e.calendar.name," "),Aa(1),ls("ngIf",e.calendar))},directives:[Vv,Th,XE,zE,NE,AP,TS],styles:[".mat-column-end, .mat-column-frequency, .mat-column-start{max-width:9rem} .mat-column-duration, .mat-column-interval{max-width:11rem}"]}),t}(),UV='event'+django.gettext("Set time mark")+"",qV=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.cButtons=[{id:"timemark",html:UV,type:RA.SINGLE_SELECT}]}return t.prototype.ngOnInit=function(){},Object.defineProperty(t.prototype,"customButtons",{get:function(){return this.api.user.isAdmin?this.cButtons:[]},enumerable:!1,configurable:!0}),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 stablished"),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"):uR("SHORT_DATE_FORMAT",t.time_mark)},t.\u0275fac=function(e){return new(e||t)(ss(cm),ss(RD),ss(uD))},t.\u0275cmp=oe({type:t,selectors:[["uds-accounts"]],decls:1,vars:7,consts:[["icon","accounts",3,"rest","multiSelect","allowExport","hasPermissions","customButtons","pageSize","onItem","customButtonAction","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,e){1&t&&(cs(0,"uds-table",0),_s("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)}),hs()),2&t&&ls("rest",e.rest.accounts)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",e.customButtons)("pageSize",e.api.config.admin.page_size)("onItem",e.processElement)},directives:[AP],styles:[""]}),t}();function WV(t,e){1&t&&(cs(0,"uds-translate"),$s(1,"Account usage"),hs())}function YV(t,e){if(1&t){var n=vs();cs(0,"div",6),cs(1,"div",7),cs(2,"mat-tab-group",8),cs(3,"mat-tab"),as(4,WV,2,0,"ng-template",9),cs(5,"div",10),cs(6,"uds-table",11),_s("deleteAction",function(t){return nn(n),xs().onDeleteUsage(t)}),hs(),hs(),hs(),hs(),hs(),hs()}if(2&t){var i=xs();Aa(2),ls("@.disabled",!0),Aa(4),ls("rest",i.accountUsage)("multiSelect",!0)("allowExport",!0)("onItem",i.processElement)("tableId","account-d-usage"+i.account.id)}}var GV=function(t){return["/pools","accounts",t]},KV=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)(ss(cm),ss(RD),ss(uD))},t.\u0275cmp=oe({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&&(cs(0,"div",0),cs(1,"div",1),cs(2,"a",2),cs(3,"i",3),$s(4,"arrow_back"),hs(),hs(),$s(5," \xa0"),ds(6,"img",4),$s(7),hs(),as(8,YV,7,6,"div",5),hs()),2&t&&(Aa(2),ls("routerLink",wu(4,GV,e.account?e.account.id:"")),Aa(4),ls("src",e.api.staticURL("admin/img/icons/accounts.png"),Or),Aa(1),Qs(" ",null==e.account?null:e.account.name," "),Aa(1),ls("ngIf",e.account))},directives:[Vv,Th,XE,zE,NE,AP,TS],styles:[""]}),t}();function ZV(t,e){1&t&&(cs(0,"uds-translate"),$s(1,"New image for"),hs())}function $V(t,e){1&t&&(cs(0,"uds-translate"),$s(1,"Edit for"),hs())}var XV=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Ru(!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)(ss(uD),ss(RD),ss(sS),ss(uS))},t.\u0275cmp=oe({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=vs();cs(0,"h4",0),as(1,ZV,2,0,"uds-translate",1),as(2,$V,2,0,"uds-translate",1),hs(),cs(3,"mat-dialog-content"),cs(4,"div",2),cs(5,"mat-form-field"),cs(6,"mat-label"),cs(7,"uds-translate"),$s(8,"Image name"),hs(),hs(),cs(9,"input",3),_s("ngModelChange",function(t){return e.image.name=t}),hs(),hs(),cs(10,"input",4,5),_s("change",function(t){return e.onFileChanged(t)}),hs(),cs(12,"mat-form-field"),cs(13,"mat-label"),cs(14,"uds-translate"),$s(15,"Image (click to change)"),hs(),hs(),cs(16,"input",6),_s("click",function(){return nn(n),os(11).click()}),hs(),cs(17,"div",7),_s("click",function(){return nn(n),os(11).click()}),ds(18,"div",8),hs(),hs(),cs(19,"div",9),cs(20,"uds-translate"),$s(21,' For optimal results, use "squared" images. '),hs(),cs(22,"uds-translate"),$s(23," The image will be resized on upload to "),hs(),$s(24),hs(),hs(),hs(),cs(25,"mat-dialog-actions"),cs(26,"button",10),cs(27,"uds-translate"),$s(28,"Cancel"),hs(),hs(),cs(29,"button",11),_s("click",function(){return e.save()}),cs(30,"uds-translate"),$s(31,"Ok"),hs(),hs(),hs()}2&t&&(Aa(1),ls("ngIf",!e.image.id),Aa(1),ls("ngIf",e.image.id),Aa(7),ls("ngModel",e.image.name),Aa(7),ls("hidden",!0),Aa(2),ls("ngStyle",e.background()),Aa(6),Js(" ",e.api.config.image_size[0],"x",e.api.config.image_size[1]," "))},directives:[gS,Th,yS,fO,rO,TS,FT,YS,px,tE,Vh,_S,DS,vS],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}(),QV=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){XV.launch(this.api).subscribe(function(){return t.table.overview()})},t.prototype.onEdit=function(t){XV.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)(ss(cm),ss(RD),ss(uD))},t.\u0275cmp=oe({type:t,selectors:[["uds-gallery"]],decls:1,vars:5,consts:[["icon","gallery",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(cs(0,"uds-table",0),_s("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)}),hs()),2&t&&ls("rest",e.rest.gallery)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",e.api.config.admin.page_size)},directives:[AP],styles:[".mat-column-thumb{max-width:7rem;justify-content:center} .mat-column-name{max-width:32rem}"]}),t}(),JV='assessment'+django.gettext("Generate report")+"",tj=function(){function t(t,e){this.rest=t,this.api=e,this.customButtons=[{id:"genreport",html:JV,type:RA.SINGLE_SELECT}]}return t.prototype.ngOnInit=function(){},t.prototype.generateReport=function(t){var e=this,n=new Ru;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),a=0;a 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}()},{path:"tools/actor_tokens",component: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)(ss(uD),ss(cm),ss(RD))},t.\u0275cmp=oe({type:t,selectors:[["uds-actor-tokens"]],decls:2,vars:4,consts:[["icon","maleta",3,"rest","multiSelect","allowExport","pageSize"]],template:function(t,e){1&t&&(cs(0,"div"),ds(1,"uds-table",0),hs()),2&t&&(Aa(1),ls("rest",e.rest.actorToken)("multiSelect",!0)("allowExport",!0)("pageSize",e.api.config.admin.page_size))},directives:[AP],styles:[""]}),t}()}]},{path:"**",redirectTo:"summary"}],yj=function(){function t(){}return t.\u0275mod=ce({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},imports:[[Xv.forRoot(gj,{relativeLinkResolution:"legacy"})],Xv]}),t}(),_j=function(){var t=function t(){g(this,t)};return t.\u0275mod=ce({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)}}),t}(),bj=function(){var t=function t(){g(this,t)};return t.\u0275mod=ce({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},imports:[[VC,sC,x_,_j],sC,_j]}),t}(),kj=["*"],wj=new bi("MatChipRemove"),Cj=new bi("MatChipAvatar"),Sj=new bi("MatChipTrailingIcon"),xj=hC(uC(cC(function t(e){g(this,t),this._elementRef=e}),"primary"),-1),Ej=function(){var t=function(t){y(n,t);var e=k(n);function n(t,i,r,o,s,l,u,c){var h;return g(this,n),(h=e.call(this,t))._elementRef=t,h._ngZone=i,h._changeDetectorRef=s,h._hasFocus=!1,h.chipListSelectable=!0,h._chipListMultiple=!1,h._chipListDisabled=!1,h._selected=!1,h._selectable=!0,h._disabled=!1,h._removable=!0,h._onFocus=new q,h._onBlur=new q,h.selectionChange=new Ru,h.destroyed=new Ru,h.removed=new Ru,h._addHostClassName(),h._chipRippleTarget=l.createElement("div"),h._chipRippleTarget.classList.add("mat-chip-ripple"),h._elementRef.nativeElement.appendChild(h._chipRippleTarget),h._chipRipple=new PC(a(h),i,h._chipRippleTarget,r),h._chipRipple.setupTriggerEvents(t),h.rippleConfig=o||{},h._animationsDisabled="NoopAnimations"===u,h.tabIndex=null!=c&&parseInt(c)||-1,h}return v(n,[{key:"_addHostClassName",value:function(){var t="mat-basic-chip",e=this._elementRef.nativeElement;e.hasAttribute(t)||e.tagName.toLowerCase()===t?e.classList.add(t):e.classList.add("mat-standard-chip")}},{key:"ngOnDestroy",value:function(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"selectViaInteraction",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}},{key:"toggleSelected",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._selected=!this.selected,this._dispatchSelectionChange(t),this._changeDetectorRef.markForCheck(),this.selected}},{key:"focus",value:function(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}},{key:"remove",value:function(){this.removable&&this.removed.emit({chip:this})}},{key:"_handleClick",value:function(t){this.disabled?t.preventDefault():t.stopPropagation()}},{key:"_handleKeydown",value:function(t){if(!this.disabled)switch(t.keyCode){case 46:case 8:this.remove(),t.preventDefault();break;case Iy:this.selectable&&this.toggleSelected(!0),t.preventDefault()}}},{key:"_blur",value:function(){var t=this;this._ngZone.onStable.pipe(Rf(1)).subscribe(function(){t._ngZone.run(function(){t._hasFocus=!1,t._onBlur.next({chip:t})})})}},{key:"_dispatchSelectionChange",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.selectionChange.emit({source:this,isUserInput:t,selected:this._selected})}},{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}},{key:"selected",get:function(){return this._selected},set:function(t){var e=lg(t);e!==this._selected&&(this._selected=e,this._dispatchSelectionChange())}},{key:"value",get:function(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent},set:function(t){this._value=t}},{key:"selectable",get:function(){return this._selectable&&this.chipListSelectable},set:function(t){this._selectable=lg(t)}},{key:"disabled",get:function(){return this._chipListDisabled||this._disabled},set:function(t){this._disabled=lg(t)}},{key:"removable",get:function(){return this._removable},set:function(t){this._removable=lg(t)}},{key:"ariaSelected",get:function(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}}]),n}(xj);return t.\u0275fac=function(e){return new(e||t)(ss(xl),ss(Cc),ss($g),ss(LC,8),ss(Kl),ss(ah),ss(Xw,8),gi("tabindex"))},t.\u0275dir=de({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,e,n){var i;1&t&&(Ku(n,Cj,!0),Ku(n,Sj,!0),Ku(n,wj,!0)),2&t&&(qu(i=Xu())&&(e.avatar=i.first),qu(i=Xu())&&(e.trailingIcon=i.first),qu(i=Xu())&&(e.removeIcon=i.first))},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(t,e){1&t&&_s("click",function(t){return e._handleClick(t)})("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e.focus()})("blur",function(){return e._blur()}),2&t&&(is("tabindex",e.disabled?null:e.tabIndex)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString())("aria-selected",e.ariaSelected),js("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",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[qo]}),t}(),Aj=function(){var t=function(){function t(e,n){g(this,t),this._parentChip=e,"BUTTON"===n.nativeElement.nodeName&&n.nativeElement.setAttribute("type","button")}return v(t,[{key:"_handleClick",value:function(t){var e=this._parentChip;e.removable&&!e.disabled&&e.remove(),t.stopPropagation()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(ss(Ej),ss(xl))},t.\u0275dir=de({type:t,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(t,e){1&t&&_s("click",function(t){return e._handleClick(t)})},features:[gl([{provide:wj,useExisting:t}])]}),t}(),Dj=new bi("mat-chips-default-options"),Oj=dC(function t(e,n,i,r){g(this,t),this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r}),Ij=0,Tj=function t(e,n){g(this,t),this.source=e,this.value=n},Rj=function(){var t=function(t){y(n,t);var e=k(n);function n(t,i,r,o,s,l,u){var c;return g(this,n),(c=e.call(this,l,o,s,u))._elementRef=t,c._changeDetectorRef=i,c._dir=r,c.ngControl=u,c.controlType="mat-chip-list",c._lastDestroyedChipIndex=null,c._destroyed=new q,c._uid="mat-chip-list-".concat(Ij++),c._tabIndex=0,c._userTabIndex=null,c._onTouched=function(){},c._onChange=function(){},c._multiple=!1,c._compareWith=function(t,e){return t===e},c._required=!1,c._disabled=!1,c.ariaOrientation="horizontal",c._selectable=!0,c.change=new Ru,c.valueChange=new Ru,c.ngControl&&(c.ngControl.valueAccessor=a(c)),c}return v(n,[{key:"ngAfterContentInit",value:function(){var t=this;this._keyManager=new L_(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(jg(this._destroyed)).subscribe(function(e){return t._keyManager.withHorizontalOrientation(e)}),this._keyManager.tabOut.pipe(jg(this._destroyed)).subscribe(function(){t._allowFocusEscape()}),this.chips.changes.pipe(Ff(null),jg(this._destroyed)).subscribe(function(){t.disabled&&Promise.resolve().then(function(){t._syncChipsState()}),t._resetChips(),t._initializeSelection(),t._updateTabIndex(),t._updateFocusForDestroyedChips(),t.stateChanges.next()})}},{key:"ngOnInit",value:function(){this._selectionModel=new uy(this.multiple,void 0,!1),this.stateChanges.next()}},{key:"ngDoCheck",value:function(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}},{key:"registerInput",value:function(t){this._chipInput=t,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",t.id)}},{key:"setDescribedByIds",value:function(t){this._ariaDescribedby=t.join(" ")}},{key:"writeValue",value:function(t){this.chips&&this._setSelectionByValue(t,!1)}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t,this.stateChanges.next()}},{key:"onContainerClick",value:function(t){this._originatesFromChip(t)||this.focus()}},{key:"focus",value: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()))}},{key:"_focusInput",value:function(t){this._chipInput&&this._chipInput.focus(t)}},{key:"_keydown",value:function(t){var e=t.target;8===t.keyCode&&this._isInputEmpty(e)?(this._keyManager.setLastItemActive(),t.preventDefault()):e&&e.classList.contains("mat-chip")&&(this._keyManager.onKeydown(t),this.stateChanges.next())}},{key:"_updateTabIndex",value:function(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}},{key:"_updateFocusForDestroyedChips",value: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}},{key:"_isValidIndex",value:function(t){return t>=0&&t1&&void 0!==arguments[1])||arguments[1];if(this._clearSelection(),this.chips.forEach(function(t){return t.deselect()}),Array.isArray(t))t.forEach(function(t){return e._selectValue(t,n)}),this._sortValues();else{var i=this._selectValue(t,n);i&&n&&this._keyManager.setActiveItem(i)}}},{key:"_selectValue",value:function(t){var e=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.chips.find(function(n){return null!=n.value&&e._compareWith(n.value,t)});return i&&(n?i.selectViaInteraction():i.select(),this._selectionModel.select(i)),i}},{key:"_initializeSelection",value:function(){var t=this;Promise.resolve().then(function(){(t.ngControl||t._value)&&(t._setSelectionByValue(t.ngControl?t.ngControl.value:t._value,!1),t.stateChanges.next())})}},{key:"_clearSelection",value:function(t){this._selectionModel.clear(),this.chips.forEach(function(e){e!==t&&e.deselect()}),this.stateChanges.next()}},{key:"_sortValues",value:function(){var t=this;this._multiple&&(this._selectionModel.clear(),this.chips.forEach(function(e){e.selected&&t._selectionModel.select(e)}),this.stateChanges.next())}},{key:"_propagateChanges",value:function(t){var e;e=Array.isArray(this.selected)?this.selected.map(function(t){return t.value}):this.selected?this.selected.value:t,this._value=e,this.change.emit(new Tj(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()}},{key:"_blur",value:function(){var t=this;this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(function(){t.focused||t._markAsTouched()}):this._markAsTouched())}},{key:"_markAsTouched",value:function(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_allowFocusEscape",value:function(){var t=this;-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(function(){t._tabIndex=t._userTabIndex||0,t._changeDetectorRef.markForCheck()}))}},{key:"_resetChips",value:function(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}},{key:"_dropSubscriptions",value:function(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}},{key:"_listenToChipsSelection",value:function(){var t=this;this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(function(e){e.source.selected?t._selectionModel.select(e.source):t._selectionModel.deselect(e.source),t.multiple||t.chips.forEach(function(e){!t._selectionModel.isSelected(e)&&e.selected&&e.deselect()}),e.isUserInput&&t._propagateChanges()})}},{key:"_listenToChipsFocus",value:function(){var t=this;this._chipFocusSubscription=this.chipFocusChanges.subscribe(function(e){var n=t.chips.toArray().indexOf(e.chip);t._isValidIndex(n)&&t._keyManager.updateActiveItem(n),t.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(function(){t._blur(),t.stateChanges.next()})}},{key:"_listenToChipsRemoved",value:function(){var t=this;this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(function(e){var n=e.chip,i=t.chips.toArray().indexOf(e.chip);t._isValidIndex(i)&&n._hasFocus&&(t._lastDestroyedChipIndex=i)})}},{key:"_originatesFromChip",value:function(t){for(var e=t.target;e&&e!==this._elementRef.nativeElement;){if(e.classList.contains("mat-chip"))return!0;e=e.parentElement}return!1}},{key:"_hasFocusedChip",value:function(){return this.chips&&this.chips.some(function(t){return t._hasFocus})}},{key:"_syncChipsState",value:function(){var t=this;this.chips&&this.chips.forEach(function(e){e._chipListDisabled=t._disabled,e._chipListMultiple=t.multiple})}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"role",get:function(){return this.empty?null:"listbox"}},{key:"multiple",get:function(){return this._multiple},set:function(t){this._multiple=lg(t),this._syncChipsState()}},{key:"compareWith",get:function(){return this._compareWith},set:function(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(t){this.writeValue(t),this._value=t}},{key:"id",get:function(){return this._chipInput?this._chipInput.id:this._uid}},{key:"required",get:function(){return this._required},set:function(t){this._required=lg(t),this.stateChanges.next()}},{key:"placeholder",get:function(){return this._chipInput?this._chipInput.placeholder:this._placeholder},set:function(t){this._placeholder=t,this.stateChanges.next()}},{key:"focused",get:function(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}},{key:"empty",get:function(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}},{key:"shouldLabelFloat",get:function(){return!this.empty||this.focused}},{key:"disabled",get:function(){return this.ngControl?!!this.ngControl.disabled:this._disabled},set:function(t){this._disabled=lg(t),this._syncChipsState()}},{key:"selectable",get:function(){return this._selectable},set:function(t){var e=this;this._selectable=lg(t),this.chips&&this.chips.forEach(function(t){return t.chipListSelectable=e._selectable})}},{key:"tabIndex",set:function(t){this._userTabIndex=t,this._tabIndex=t}},{key:"chipSelectionChanges",get:function(){return dt.apply(void 0,h(this.chips.map(function(t){return t.selectionChange})))}},{key:"chipFocusChanges",get:function(){return dt.apply(void 0,h(this.chips.map(function(t){return t._onFocus})))}},{key:"chipBlurChanges",get:function(){return dt.apply(void 0,h(this.chips.map(function(t){return t._onBlur})))}},{key:"chipRemoveChanges",get:function(){return dt.apply(void 0,h(this.chips.map(function(t){return t.destroyed})))}}]),n}(Oj);return t.\u0275fac=function(e){return new(e||t)(ss(xl),ss(Kl),ss(ry,8),ss(Xx,8),ss(rE,8),ss(AC),ss(dx,10))},t.\u0275cmp=oe({type:t,selectors:[["mat-chip-list"]],contentQueries:function(t,e,n){var i;1&t&&Ku(n,Ej,!0),2&t&&qu(i=Xu())&&(e.chips=i)},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(t,e){1&t&&_s("focus",function(){return e.focus()})("blur",function(){return e._blur()})("keydown",function(t){return e._keydown(t)}),2&t&&(tl("id",e._uid),is("tabindex",e.disabled?null:e._tabIndex)("aria-describedby",e._ariaDescribedby||null)("aria-required",e.role?e.required:null)("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-multiselectable",e.multiple)("role",e.role)("aria-orientation",e.ariaOrientation),js("mat-chip-list-disabled",e.disabled)("mat-chip-list-invalid",e.errorState)("mat-chip-list-required",e.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[gl([{provide:nO,useExisting:t}]),qo],ngContentSelectors:kj,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(t,e){1&t&&(As(),cs(0,"div",0),Ds(1),hs())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),t}(),Pj=0,Mj=function(){var t=function(){function t(e,n){g(this,t),this._elementRef=e,this._defaultOptions=n,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new Ru,this.placeholder="",this.id="mat-chip-list-input-".concat(Pj++),this._disabled=!1,this._inputElement=this._elementRef.nativeElement}return v(t,[{key:"ngOnChanges",value:function(){this._chipList.stateChanges.next()}},{key:"_keydown",value:function(t){t&&9===t.keyCode&&!Ny(t,"shiftKey")&&this._chipList._allowFocusEscape(),this._emitChipEnd(t)}},{key:"_blur",value:function(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}},{key:"_focus",value:function(){this.focused=!0,this._chipList.stateChanges.next()}},{key:"_emitChipEnd",value:function(t){!this._inputElement.value&&t&&this._chipList._keydown(t),t&&!this._isSeparatorKey(t)||(this.chipEnd.emit({input:this._inputElement,value:this._inputElement.value}),t&&t.preventDefault())}},{key:"_onInput",value:function(){this._chipList.stateChanges.next()}},{key:"focus",value:function(t){this._inputElement.focus(t)}},{key:"_isSeparatorKey",value:function(t){return!Ny(t)&&new Set(this.separatorKeyCodes).has(t.keyCode)}},{key:"chipList",set:function(t){t&&(this._chipList=t,this._chipList.registerInput(this))}},{key:"addOnBlur",get:function(){return this._addOnBlur},set:function(t){this._addOnBlur=lg(t)}},{key:"disabled",get:function(){return this._disabled||this._chipList&&this._chipList.disabled},set:function(t){this._disabled=lg(t)}},{key:"empty",get:function(){return!this._inputElement.value}}]),t}();return t.\u0275fac=function(e){return new(e||t)(ss(xl),ss(Dj))},t.\u0275dir=de({type:t,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(t,e){1&t&&_s("keydown",function(t){return e._keydown(t)})("blur",function(){return e._blur()})("focus",function(){return e._focus()})("input",function(){return e._onInput()}),2&t&&(tl("id",e.id),is("disabled",e.disabled||null)("placeholder",e.placeholder||null)("aria-invalid",e._chipList&&e._chipList.ngControl?e._chipList.ngControl.invalid:null)("aria-required",e._chipList&&e._chipList.required||null))},inputs:{separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[Ie]}),t}(),Fj={separatorKeyCodes:[Dy]},Lj=function(){var t=function t(){g(this,t)};return t.\u0275mod=ce({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[AC,{provide:Dj,useValue:Fj}],imports:[[sC]]}),t}(),Nj=function(){var t=function t(){g(this,t)};return t.\u0275mod=ce({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)}}),t}(),Vj=function(){var t=function t(){g(this,t)};return t.\u0275mod=ce({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},imports:[[Yh,sC,Nj,xy]]}),t}(),jj=["*",[["mat-toolbar-row"]]],Bj=["*","mat-toolbar-row"],zj=uC(function t(e){g(this,t),this._elementRef=e}),Hj=function(){var t=function t(){g(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=de({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t}(),Uj=function(){var t=function(t){y(n,t);var e=k(n);function n(t,i,r){var a;return g(this,n),(a=e.call(this,t))._platform=i,a._document=r,a}return v(n,[{key:"ngAfterViewInit",value:function(){var t=this;this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return t._checkToolbarMixedModes()}))}},{key:"_checkToolbarMixedModes",value:function(){}}]),n}(zj);return t.\u0275fac=function(e){return new(e||t)(ss(xl),ss($g),ss(ah))},t.\u0275cmp=oe({type:t,selectors:[["mat-toolbar"]],contentQueries:function(t,e,n){var i;1&t&&Ku(n,Hj,!0),2&t&&qu(i=Xu())&&(e._toolbarRows=i)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&js("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[qo],ngContentSelectors:Bj,decls:2,vars:0,template:function(t,e){1&t&&(As(jj),Ds(0),Ds(1,1))},styles:[".cdk-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%}\n"],encapsulation:2,changeDetection:0}),t}(),qj=function(){var t=function t(){g(this,t)};return t.\u0275mod=ce({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},imports:[[sC],sC]}),t}(),Wj=function(){function t(){}return t.\u0275mod=ce({type:t}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[{provide:hO,useValue:{floatLabel:"always"}},{provide:mC,useValue:udsData.language}],imports:[Yh,mE,vE,qj,IS,VR,WO,Vj,kS,pO,LT,NO,mV,EC,bT,rI,gI,_R,bj,rA,Lj,EV,UM,_M,oD,BR]}),t}();function Yj(t,e){if(1&t){var n=vs();cs(0,"button",6),_s("click",function(){nn(n);var t=e.$implicit;return xs().changeLang(t)}),$s(1),hs()}if(2&t){var i=e.$implicit;Aa(1),Xs(i.name)}}function Gj(t,e){if(1&t&&(cs(0,"button",12),cs(1,"i",7),$s(2,"face"),hs(),$s(3),hs()),2&t){var n=xs();ls("matMenuTriggerFor",os(7)),Aa(3),Xs(n.api.user.user)}}function Kj(t,e){if(1&t&&(cs(0,"button",18),$s(1),cs(2,"i",7),$s(3,"arrow_drop_down"),hs(),hs()),2&t){var n=xs();ls("matMenuTriggerFor",os(7)),Aa(1),Qs("",n.api.user.user," ")}}var Zj=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 tB(t,e){1&t&&ds(0,"div",1),2&t&&ls("innerHTML",xs().messages,Dr)}var eB=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)(ss(uD))},t.\u0275cmp=oe({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&&as(0,tB,1,1,"div",0),2&t&&ls("ngIf",e.visible)},directives:[Th],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}(),nB=function(){function t(){}return t.prototype.ngOnInit=function(){},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=oe({type:t,selectors:[["uds-footer"]],decls:4,vars:0,consts:[["href","https://www.udsenterprise.com"]],template:function(t,e){1&t&&(cs(0,"div"),$s(1,"\xa9 2012-2020 "),cs(2,"a",0),$s(3,"Virtual Cable S.L.U."),hs(),hs())},styles:[""]}),t}(),iB=function(){function t(){this.title="uds admin"}return t.prototype.ngOnInit=function(){},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=oe({type:t,selectors:[["uds-root"]],decls:8,vars:0,consts:[[1,"page"],[1,"content"],[1,"footer"]],template:function(t,e){1&t&&(ds(0,"uds-navbar"),ds(1,"uds-sidebar"),cs(2,"div",0),cs(3,"div",1),ds(4,"uds-notices"),ds(5,"router-outlet"),hs(),cs(6,"div",2),ds(7,"uds-footer"),hs(),hs())},directives:[Zj,Jj,eB,Bv,nB],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% - 56px - 8px);margin:4rem auto auto 56px;padding-left:8px;overflow-x:hidden}"]}),t}(),rB=function(t){function e(){var e=t.call(this)||this;return e.itemsPerPageLabel=django.gettext("Items per page"),e}return dD(e,t),e.\u0275prov=Dt({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(QO),aB=function(){function t(){this.changed=new Ru}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=oe({type:t,selectors:[["uds-field-text"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:6,consts:[["appearance","standard"],["matInput","","type","text",3,"ngModel","placeholder","required","disabled","maxlength","ngModelChange","change"]],template:function(t,e){1&t&&(cs(0,"mat-form-field",0),cs(1,"mat-label"),$s(2),hs(),cs(3,"input",1),_s("ngModelChange",function(t){return e.field.value=t})("change",function(){return e.changed.emit(e)}),hs(),hs()),2&t&&(Aa(2),Qs(" ",e.field.gui.label," "),Aa(1),ls("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:[fO,rO,FT,YS,px,tE,sE,hE],styles:[""]}),t}(),oB=function(){function t(){this.changed=new Ru}return t.prototype.ngOnInit=function(){this.field.value||0===this.field.value||(this.field.value=this.field.gui.defvalue)},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=oe({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&&(cs(0,"mat-form-field",0),cs(1,"mat-label"),$s(2),hs(),cs(3,"input",1),_s("ngModelChange",function(t){return e.field.value=t})("change",function(){return e.changed.emit(e)}),hs(),hs()),2&t&&(Aa(2),Qs(" ",e.field.gui.label," "),Aa(1),ls("ngModel",e.field.value)("placeholder",e.field.gui.tooltip)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly))},directives:[fO,rO,FT,gx,YS,px,tE,sE],styles:[""]}),t}(),sB=function(){function t(){this.passwordType="password",this.changed=new Ru}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=oe({type:t,selectors:[["uds-field-password"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:6,consts:[["appearance","standard","floatLabel","always"],["matInput","","autocomplete","off",3,"ngModel","placeholder","required","disabled","type","ngModelChange","change"],["mat-button","","matSuffix","","mat-icon-button","",3,"click"],["matSuffix","",1,"material-icons"]],template:function(t,e){1&t&&(cs(0,"mat-form-field",0),cs(1,"mat-label"),$s(2),hs(),cs(3,"input",1),_s("ngModelChange",function(t){return e.field.value=t})("change",function(){return e.changed.emit(e)}),hs(),cs(4,"a",2),_s("click",function(){return e.passwordType="text"===e.passwordType?"password":"text"}),cs(5,"i",3),$s(6,"remove_red_eye"),hs(),hs(),hs()),2&t&&(Aa(2),Qs(" ",e.field.gui.label," "),Aa(1),ls("ngModel",e.field.value)("placeholder",e.field.gui.tooltip)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly)("type",e.passwordType))},directives:[fO,rO,FT,YS,px,tE,sE,OS,lO],styles:[""]}),t}(),lB=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=oe({type:t,selectors:[["uds-field-hidden"]],inputs:{field:"field"},decls:0,vars:0,template:function(t,e){},styles:[""]}),t}(),uB=function(){function t(){}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=oe({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&&(cs(0,"mat-form-field",0),cs(1,"mat-label"),$s(2),hs(),cs(3,"textarea",1),_s("ngModelChange",function(t){return e.field.value=t}),hs(),hs()),2&t&&(Aa(2),Qs(" ",e.field.gui.label," "),Aa(1),ls("ngModel",e.field.value)("placeholder",e.field.gui.tooltip)("required",e.field.gui.required)("readonly",e.field.gui.rdonly))},directives:[fO,rO,FT,YS,px,tE,sE],styles:[""]}),t}();function cB(t,e){if(1&t){var n=vs();cs(0,"uds-mat-select-search",3),_s("changed",function(t){return nn(n),xs().filter=t}),hs()}}function hB(t,e){if(1&t&&(cs(0,"mat-option",4),$s(1),hs()),2&t){var n=e.$implicit;ls("value",n.id),Aa(1),Qs(" ",n.text," ")}}var dB=function(){function t(){this.filter="",this.changed=new Ru}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=oe({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&&(cs(0,"mat-form-field"),cs(1,"mat-label"),$s(2),hs(),cs(3,"mat-select",0),_s("ngModelChange",function(t){return e.field.value=t})("valueChange",function(){return e.changed.emit(e)}),as(4,cB,1,0,"uds-mat-select-search",1),as(5,hB,2,2,"mat-option",2),hs(),hs()),2&t&&(Aa(2),Qs(" ",e.field.gui.label," "),Aa(1),ls("ngModel",e.field.value)("placeholder",e.field.gui.tooltip)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly),Aa(1),ls("ngIf",e.field.gui.values.length>10),Aa(1),ls("ngForOf",e.filteredValues()))},directives:[fO,rO,FO,px,tE,sE,Th,Oh,zT,$C],styles:[""]}),t}();function fB(t,e){if(1&t){var n=vs();cs(0,"uds-mat-select-search",3),_s("changed",function(t){return nn(n),xs().filter=t}),hs()}}function pB(t,e){if(1&t&&(cs(0,"mat-option",4),$s(1),hs()),2&t){var n=e.$implicit;ls("value",n.id),Aa(1),Qs(" ",n.text," ")}}var mB=function(){function t(){this.filter="",this.changed=new Ru}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=oe({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&&(cs(0,"mat-form-field"),cs(1,"mat-label"),$s(2),hs(),cs(3,"mat-select",0),_s("ngModelChange",function(t){return e.field.values=t})("valueChange",function(){return e.changed.emit(e)}),as(4,fB,1,0,"uds-mat-select-search",1),as(5,pB,2,2,"mat-option",2),hs(),hs()),2&t&&(Aa(2),Qs(" ",e.field.gui.label," "),Aa(1),ls("ngModel",e.field.values)("placeholder",e.field.gui.tooltip)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly),Aa(1),ls("ngIf",e.field.gui.values.length>10),Aa(1),ls("ngForOf",e.filteredValues()))},directives:[fO,rO,FO,px,tE,sE,Th,Oh,zT,$C],styles:[""]}),t}();function vB(t,e){if(1&t){var n=vs();cs(0,"div",12),cs(1,"div",13),$s(2),hs(),cs(3,"div",14),$s(4," \xa0"),cs(5,"a",15),_s("click",function(){nn(n);var t=e.index;return xs().removeElement(t)}),cs(6,"i",16),$s(7,"close"),hs(),hs(),hs(),hs()}if(2&t){var i=e.$implicit;Aa(2),Qs(" ",i," ")}}var gB=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 Ru(!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)(ss(uD),ss(RD),ss(sS),ss(uS))},t.\u0275cmp=oe({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&&(cs(0,"h4",0),$s(1),hs(),cs(2,"mat-dialog-content"),cs(3,"div",1),cs(4,"div",2),as(5,vB,8,1,"div",3),hs(),cs(6,"div",4),cs(7,"button",5),_s("click",function(){return e.removeAll()}),cs(8,"uds-translate"),$s(9,"Remove all"),hs(),hs(),hs(),cs(10,"div",6),cs(11,"mat-form-field",7),cs(12,"input",8),_s("keyup",function(t){return e.checkKey(t)})("ngModelChange",function(t){return e.input=t}),hs(),cs(13,"button",9),_s("click",function(){return e.addElements()}),cs(14,"uds-translate"),$s(15,"Add"),hs(),hs(),hs(),hs(),hs(),hs(),cs(16,"mat-dialog-actions"),cs(17,"button",10),cs(18,"uds-translate"),$s(19,"Cancel"),hs(),hs(),cs(20,"button",11),_s("click",function(){return e.save()}),cs(21,"uds-translate"),$s(22,"Ok"),hs(),hs(),hs()),2&t&&(Aa(1),Qs(" ",e.data.title,"\n"),Aa(4),ls("ngForOf",e.values),Aa(7),ls("ngModel",e.input))},directives:[gS,yS,Oh,DS,TS,fO,FT,YS,px,tE,lO,_S,vS],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}(),yB=function(){function t(t){this.api=t,this.changed=new Ru}return t.prototype.ngOnInit=function(){},t.prototype.launch=function(){var t=this;void 0===this.field.values&&(this.field.values=[]),gB.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)(ss(uD))},t.\u0275cmp=oe({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&&(cs(0,"mat-form-field",0),cs(1,"mat-label"),$s(2),hs(),cs(3,"input",1),_s("click",function(){return e.launch()}),hs(),hs()),2&t&&(Aa(2),Qs(" ",e.field.gui.label," "),Aa(1),ls("readonly",!0)("value",e.getValue())("placeholder",e.field.gui.tooltip)("disabled",!0===e.field.gui.rdonly))},directives:[fO,rO,FT],styles:[".editlist[_ngcontent-%COMP%]{cursor:pointer}"]}),t}(),_B=function(){function t(){this.changed=new Ru}return t.prototype.ngOnInit=function(){var t;this.field.value=cR(""===(t=this.field.value)||null==t?this.field.gui.defvalue:this.field.value)},t.prototype.getValue=function(){return cR(this.field.value)?django.gettext("Yes"):django.gettext("No")},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=oe({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&&(cs(0,"div",0),cs(1,"span",1),$s(2),hs(),cs(3,"mat-slide-toggle",2),_s("ngModelChange",function(t){return e.field.value=t})("change",function(){return e.changed.emit(e)}),$s(4),hs(),hs()),2&t&&(Aa(2),Xs(e.field.gui.label),Aa(1),ls("ngModel",e.field.value)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly),Aa(1),Qs(" ",e.getValue()," "))},directives:[VM,BM,px,tE,sE],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 bB(t,e){if(1&t&&ds(0,"div",5),2&t){var n=xs().$implicit;ls("innerHTML",xs().asIcon(n),Dr)}}function kB(t,e){if(1&t&&(cs(0,"div"),as(1,bB,1,1,"div",4),hs()),2&t){var n=e.$implicit,i=xs();Aa(1),ls("ngIf",n.id==i.field.value)}}function wB(t,e){if(1&t){var n=vs();cs(0,"uds-mat-select-search",6),_s("changed",function(t){return nn(n),xs().filter=t}),hs()}}function CB(t,e){if(1&t&&(cs(0,"mat-option",7),ds(1,"div",5),hs()),2&t){var n=e.$implicit,i=xs();ls("value",n.id),Aa(1),ls("innerHTML",i.asIcon(n),Dr)}}var SB=function(){function t(t){this.api=t,this.filter="",this.changed=new Ru}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)(ss(uD))},t.\u0275cmp=oe({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&&(cs(0,"mat-form-field"),cs(1,"mat-label"),$s(2),hs(),cs(3,"mat-select",0),_s("valueChange",function(){return e.changed.emit(e)})("ngModelChange",function(t){return e.field.value=t}),cs(4,"mat-select-trigger"),as(5,kB,2,1,"div",1),hs(),as(6,wB,1,0,"uds-mat-select-search",2),as(7,CB,2,2,"mat-option",3),hs(),hs()),2&t&&(Aa(2),Qs(" ",e.field.gui.label," "),Aa(1),ls("placeholder",e.field.gui.tooltip)("ngModel",e.field.value)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly),Aa(2),ls("ngForOf",e.field.gui.values),Aa(1),ls("ngIf",e.field.gui.values.length>10),Aa(1),ls("ngForOf",e.filteredValues()))},directives:[fO,rO,FO,px,tE,sE,PO,Oh,Th,zT,$C],styles:[""]}),t}(),xB=function(){function t(){this.changed=new Ru,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=iR("%Y-%m-%d",this.value))},enumerable:!1,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=iR("%Y-01-01"):"2000-01-01"===this.field.value&&(this.field.value=iR("%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=oe({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&&(cs(0,"mat-form-field",0),cs(1,"mat-label"),$s(2),hs(),cs(3,"input",1),_s("ngModelChange",function(t){return e.date=t}),hs(),ds(4,"mat-datepicker-toggle",2),ds(5,"mat-datepicker",null,3),hs()),2&t){var n=os(6);Aa(2),Qs(" ",e.field.gui.label," "),Aa(1),ls("matDatepicker",n)("ngModel",e.date)("placeholder",e.field.gui.tooltip)("disabled",!0===e.field.gui.rdonly),Aa(1),ls("for",n)}},directives:[fO,rO,FT,dV,YS,px,tE,pV,lO,oV],styles:[""]}),t}();function EB(t,e){if(1&t){var n=vs();cs(0,"mat-chip",5),_s("removed",function(){nn(n);var t=e.$implicit;return xs().remove(t)}),$s(1),cs(2,"i",6),$s(3,"cancel"),hs(),hs()}if(2&t){var i=e.$implicit,r=xs();ls("selectable",!1)("removable",!0!==r.field.gui.rdonly),Aa(1),Qs(" ",i," ")}}var AB,DB,OB,IB=function(){function t(){this.separatorKeysCodes=[Dy,188],this.changed=new Ru}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=oe({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&&(cs(0,"mat-form-field",0),cs(1,"mat-label"),$s(2),hs(),cs(3,"mat-chip-list",1,2),_s("change",function(){return e.changed.emit(e)}),as(5,EB,4,3,"mat-chip",3),cs(6,"input",4),_s("matChipInputTokenEnd",function(t){return e.add(t)}),hs(),hs(),hs()),2&t){var n=os(4);Aa(2),Qs(" ",e.field.gui.label," "),Aa(1),ls("selectable",!1)("disabled",!0===e.field.gui.rdonly),Aa(2),ls("ngForOf",e.field.values),Aa(1),ls("placeholder",e.field.gui.tooltip)("matChipInputFor",n)("matChipInputSeparatorKeyCodes",e.separatorKeysCodes)("matChipInputAddOnBlur",!0)}},directives:[fO,rO,Rj,Oh,Mj,Ej,Aj],styles:[".mat-chip-trailing-icon[_ngcontent-%COMP%]{position:relative;top:-4px;left:-4px}mat-form-field[_ngcontent-%COMP%]{width:99.5%}"]}),t}(),TB=function(){function t(){}return t.\u0275mod=ce({type:t,bootstrap:[iB]}),t.\u0275inj=Ot({factory:function(e){return new(e||t)},providers:[uD,RD,{provide:QO,useClass:rB}],imports:[[Dd,ff,yj,tC,Wj]]}),t}();AB=[Fh,UO,Lh,aB,uB,oB,sB,lB,dB,mB,yB,_B,SB,xB,IB],DB=[],(OB=gA.\u0275cmp).directiveDefs=function(){return AB.map(se)},OB.pipeDefs=function(){return DB.map(le)},function(){if(Fc)throw new Error("Cannot enable prod mode after platform setup.");Mc=!1}(),Ed().bootstrapModule(TB).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")},dunZ:function(t,e,n){var i="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:this;function r(t,e,n){var i=new XMLHttpRequest;i.open("GET",t),i.responseType="blob",i.onload=function(){s(i.response,e,n)},i.onerror=function(){console.error("could not download file")},i.send()}function a(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(n){}return e.status>=200&&e.status<=299}function o(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,l=document.createElement("a");l.download=e=e||t.name||"download",l.rel="noopener","string"==typeof t?(l.href=t,l.origin!==location.origin?a(l.href)?r(t,e,n):o(l,l.target="_blank"):o(l)):(l.href=s.createObjectURL(t),setTimeout(function(){s.revokeObjectURL(l.href)},4e4),setTimeout(function(){o(l)},0))}:"msSaveOrOpenBlob"in navigator?function(t,e,n){if(e=e||t.name||"download","string"==typeof t)if(a(t))r(t,e,n);else{var i=document.createElement("a");i.href=t,i.target="_blank",setTimeout(function(){o(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,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),"string"==typeof t)return r(t,e,n);var o="application/octet-stream"===t.type,s=/constructor/i.test(i.HTMLElement)||i.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||o&&s)&&"object"==typeof FileReader){var u=new FileReader;u.onloadend=function(){var t=u.result;t=l?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=t:location=t,a=null},u.readAsDataURL(t)}else{var c=i.URL||i.webkitURL,h=c.createObjectURL(t);a?a.location=h:location.href=h,a=null,setTimeout(function(){c.revokeObjectURL(h)},4e4)}});i.saveAs=s.saveAs=s,t.exports=s},zUnb:function(t,e,n){"use strict";function i(t){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function r(t,e,n){return(r="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=i(t)););return t}(t,e);if(r){var a=Object.getOwnPropertyDescriptor(r,e);return a.get?a.get.call(n):a.value}})(t,e,n||t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,i=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(i=(o=s.next()).done)&&(n.push(o.value),!e||n.length!==e);i=!0);}catch(l){r=!0,a=l}finally{try{i||null==s.return||s.return()}finally{if(r)throw a}}return n}}(t,e)||v(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function b(t){return function(t){if(Array.isArray(t))return m(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||v(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(t,e,n){return(k=c()?Reflect.construct:function(t,e,n){var i=[null];i.push.apply(i,e);var r=new(Function.bind.apply(t,i));return n&&l(r,n.prototype),r}).apply(null,arguments)}function w(t){var e="function"==typeof Map?new Map:void 0;return(w=function(t){if(null===t||-1===Function.toString.call(t).indexOf("[native code]"))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return k(t,arguments,i(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),l(n,t)})(t)}n.r(e);var C=function(){return Array.isArray||function(t){return t&&"number"==typeof t.length}}();function S(t){return null!==t&&"object"==typeof t}function x(t){return"function"==typeof t}var E=function(){function t(t){return Error.call(this),this.message=t?"".concat(t.length," errors occurred during unsubscription:\n").concat(t.map(function(t,e){return"".concat(e+1,") ").concat(t.toString())}).join("\n ")):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}(),A=function(){var t=function(){function t(e){a(this,t),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}return s(t,[{key:"unsubscribe",value:function(){var e;if(!this.closed){var n=this._parentOrParents,i=this._ctorUnsubscribe,r=this._unsubscribe,a=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(var o=0;o2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof e?function(i){return i.pipe(st(function(n,i){return it(t(n,i)).pipe(G(function(t,r){return e(n,t,i,r)}))},n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new lt(t,n))})}var lt=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;a(this,t),this.project=e,this.concurrent=n}return s(t,[{key:"call",value:function(t,e){return e.subscribe(new ut(t,this.project,this.concurrent))}}]),t}(),ut=function(t){u(n,t);var e=p(n);function n(t,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return a(this,n),(r=e.call(this,t)).project=i,r.concurrent=o,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return s(n,[{key:"_next",value:function(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(at);function ct(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return st(N,t)}function ht(t,e){return e?nt(t,e):new j($(t))}function dt(){for(var t=Number.POSITIVE_INFINITY,e=null,n=arguments.length,i=new Array(n),r=0;r1&&"number"==typeof i[i.length-1]&&(t=i.pop())):"number"==typeof a&&(t=i.pop()),null===e&&1===i.length&&i[0]instanceof j?i[0]:ct(t)(ht(i,e))}function ft(){return function(t){return t.lift(new pt(t))}}var pt=function(){function t(e){a(this,t),this.connectable=e}return s(t,[{key:"call",value:function(t,e){var n=this.connectable;n._refCount++;var i=new mt(t,n),r=e.subscribe(i);return i.closed||(i.connection=n.connect()),r}}]),t}(),mt=function(t){u(n,t);var e=p(n);function n(t,i){var r;return a(this,n),(r=e.call(this,t)).connectable=i,r}return s(n,[{key:"_unsubscribe",value: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}}]),n}(M),vt=function(t){u(n,t);var e=p(n);function n(t,i){var r;return a(this,n),(r=e.call(this)).source=t,r.subjectFactory=i,r._refCount=0,r._isComplete=!1,r}return s(n,[{key:"_subscribe",value:function(t){return this.getSubject().subscribe(t)}},{key:"getSubject",value:function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new A).add(this.source.subscribe(new yt(this.getSubject(),this))),t.closed&&(this._connection=null,t=A.EMPTY)),t}},{key:"refCount",value:function(){return ft()(this)}}]),n}(j),gt=function(){var t=vt.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}}}(),yt=function(t){u(n,t);var e=p(n);function n(t,i){var r;return a(this,n),(r=e.call(this,t)).connectable=i,r}return s(n,[{key:"_error",value:function(t){this._unsubscribe(),r(i(n.prototype),"_error",this).call(this,t)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),r(i(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value: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()}}}]),n}(U);function _t(){return new q}function bt(t){for(var e in t)if(t[e]===bt)return e;throw Error("Could not find renamed property on target object.")}function kt(t,e){for(var n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function wt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(wt).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return"".concat(t.overriddenName);if(t.name)return"".concat(t.name);var e=t.toString();if(null==e)return""+e;var n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function Ct(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}var St=bt({__forward_ref__:bt});function xt(t){return t.__forward_ref__=xt,t.toString=function(){return wt(this())},t}function Et(t){return At(t)?t():t}function At(t){return"function"==typeof t&&t.hasOwnProperty(St)&&t.__forward_ref__===xt}var Dt=function(t){u(n,t);var e=p(n);function n(t,i){var r;return a(this,n),(r=e.call(this,function(t,e){var n=t?"NG0".concat(t,": "):"";return"".concat(n).concat(e)}(t,i))).code=t,r}return n}(w(Error));function It(t){return"string"==typeof t?t:null==t?"":String(t)}function Ot(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():It(t)}function Tt(t,e){var n=e?" in ".concat(e):"";throw new Dt("201","No provider for ".concat(Ot(t)," found").concat(n))}function Rt(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Pt(t){return{providers:t.providers||[],imports:t.imports||[]}}function Mt(t){return Ft(t,Vt)||Ft(t,Bt)}function Ft(t,e){return t.hasOwnProperty(e)?t[e]:null}function Lt(t){return t&&(t.hasOwnProperty(jt)||t.hasOwnProperty(zt))?t[jt]:null}var Nt,Vt=bt({"\u0275prov":bt}),jt=bt({"\u0275inj":bt}),Bt=bt({ngInjectableDef:bt}),zt=bt({ngInjectorDef:bt}),Ht=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});function Ut(){return Nt}function qt(t){var e=Nt;return Nt=t,e}function Wt(t,e,n){var i=Mt(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&Ht.Optional?null:void 0!==e?e:void Tt(wt(t),"Injector")}function Yt(t){return{toString:t}.toString()}var Gt=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),Kt=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({}),Zt="undefined"!=typeof globalThis&&globalThis,$t="undefined"!=typeof window&&window,Xt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Qt="undefined"!=typeof global&&global,Jt=Zt||Qt||$t||Xt,te={},ee=[],ne=bt({"\u0275cmp":bt}),ie=bt({"\u0275dir":bt}),re=bt({"\u0275pipe":bt}),ae=bt({"\u0275mod":bt}),oe=bt({"\u0275loc":bt}),se=bt({"\u0275fac":bt}),le=bt({__NG_ELEMENT_ID__:bt}),ue=0;function ce(t){return Yt(function(){var e={},n={type:t.type,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:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===Gt.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||ee,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||Kt.Emulated,id:"c",styles:t.styles||ee,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,r=t.features,a=t.pipes;return n.id+=ue++,n.inputs=me(t.inputs,e),n.outputs=me(t.outputs),r&&r.forEach(function(t){return t(n)}),n.directiveDefs=i?function(){return("function"==typeof i?i():i).map(he)}:null,n.pipeDefs=a?function(){return("function"==typeof a?a():a).map(de)}:null,n})}function he(t){return ye(t)||function(t){return t[ie]||null}(t)}function de(t){return function(t){return t[re]||null}(t)}var fe={};function pe(t){var e={type:t.type,bootstrap:t.bootstrap||ee,declarations:t.declarations||ee,imports:t.imports||ee,exports:t.exports||ee,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&Yt(function(){fe[t.id]=t.type}),e}function me(t,e){if(null==t)return te;var n={};for(var i in t)if(t.hasOwnProperty(i)){var r=t[i],a=r;Array.isArray(r)&&(a=r[1],r=r[0]),n[r]=i,e&&(e[r]=a)}return n}var ve=ce;function ge(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function ye(t){return t[ne]||null}function _e(t,e){var n=t[ae]||null;if(!n&&!0===e)throw new Error("Type ".concat(wt(t)," does not have '\u0275mod' property."));return n}var be=20,ke=10;function we(t){return Array.isArray(t)&&"object"==typeof t[1]}function Ce(t){return Array.isArray(t)&&!0===t[1]}function Se(t){return 0!=(8&t.flags)}function xe(t){return 2==(2&t.flags)}function Ee(t){return 1==(1&t.flags)}function Ae(t){return null!==t.template}function De(t,e){return t.hasOwnProperty(se)?t[se]:null}var Ie=function(){function t(e,n,i){a(this,t),this.previousValue=e,this.currentValue=n,this.firstChange=i}return s(t,[{key:"isFirstChange",value:function(){return this.firstChange}}]),t}();function Oe(){return Te}function Te(t){return t.type.prototype.ngOnChanges&&(t.setInput=Pe),Re}function Re(){var t=Me(this),e=null==t?void 0:t.current;if(e){var n=t.previous;if(n===te)t.previous=e;else for(var i in e)n[i]=e[i];t.current=null,this.ngOnChanges(e)}}function Pe(t,e,n,i){var r=Me(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:te,current:null}),a=r.current||(r.current={}),o=r.previous,s=this.declaredInputs[n],l=o[s];a[s]=new Ie(l&&l.currentValue,e,o===te),t[i]=e}function Me(t){return t.__ngSimpleChanges__||null}Oe.ngInherit=!0;var Fe="http://www.w3.org/2000/svg",Le=void 0;function Ne(){return void 0!==Le?Le:"undefined"!=typeof document?document:void 0}function Ve(t){return!!t.listen}var je={createRenderer:function(t,e){return Ne()}};function Be(t){for(;Array.isArray(t);)t=t[0];return t}function ze(t,e){return Be(e[t])}function He(t,e){return Be(e[t.index])}function Ue(t,e){return t.data[e]}function qe(t,e){return t[e]}function We(t,e){var n=e[t];return we(n)?n:n[0]}function Ye(t){var e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Ge(t){return 4==(4&t[2])}function Ke(t){return 128==(128&t[2])}function Ze(t,e){return null==e?null:t[e]}function $e(t){t[18]=0}function Xe(t,e){t[5]+=e;for(var n=t,i=t[3];null!==i&&(1===e&&1===n[5]||-1===e&&0===n[5]);)i[5]+=e,n=i,i=i[3]}var Qe={lFrame:Cn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Je(){return Qe.bindingsEnabled}function tn(){return Qe.lFrame.lView}function en(){return Qe.lFrame.tView}function nn(t){Qe.lFrame.contextLView=t}function rn(){for(var t=an();null!==t&&64===t.type;)t=t.parent;return t}function an(){return Qe.lFrame.currentTNode}function on(t,e){var n=Qe.lFrame;n.currentTNode=t,n.isParent=e}function sn(){return Qe.lFrame.isParent}function ln(){Qe.lFrame.isParent=!1}function un(){return Qe.isInCheckNoChangesMode}function cn(t){Qe.isInCheckNoChangesMode=t}function hn(){var t=Qe.lFrame,e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function dn(){return Qe.lFrame.bindingIndex}function fn(){return Qe.lFrame.bindingIndex++}function pn(t){var e=Qe.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function mn(t){Qe.lFrame.currentDirectiveIndex=t}function vn(t){var e=Qe.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function gn(){return Qe.lFrame.currentQueryIndex}function yn(t){Qe.lFrame.currentQueryIndex=t}function _n(t){var e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function bn(t,e,n){if(n&Ht.SkipSelf){for(var i=e,r=t;!(null!==(i=i.parent)||n&Ht.Host||null===(i=_n(r))||(r=r[15],10&i.type)););if(null===i)return!1;e=i,t=r}var a=Qe.lFrame=wn();return a.currentTNode=e,a.lView=t,!0}function kn(t){var e=wn(),n=t[1];Qe.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function wn(){var t=Qe.lFrame,e=null===t?null:t.child;return null===e?Cn(t):e}function Cn(t){var e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function Sn(){var t=Qe.lFrame;return Qe.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var xn=Sn;function En(){var t=Sn();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function An(t){return(Qe.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,Qe.lFrame.contextLView))[8]}function Dn(){return Qe.lFrame.selectedIndex}function In(t){Qe.lFrame.selectedIndex=t}function On(){var t=Qe.lFrame;return Ue(t.tView,t.selectedIndex)}function Tn(){Qe.lFrame.currentNamespace=Fe}function Rn(){Qe.lFrame.currentNamespace=null}function Pn(t,e){for(var n=e.directiveStart,i=e.directiveEnd;n=i)break}else e[s]<0&&(t[18]+=65536),(o>11>16&&(3&t[2])===e&&(t[2]+=2048,a.call(o)):a.call(o)}var jn=-1,Bn=function t(e,n,i){a(this,t),this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i};function zn(t,e,n){for(var i=Ve(t),r=0;re){o=a-1;break}}}for(;a>16,i=e;n>0;)i=i[15],n--;return i}var Zn=!0;function $n(t){var e=Zn;return Zn=t,e}var Xn=0;function Qn(t,e){var n=ti(t,e);if(-1!==n)return n;var i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,Jn(i.data,t),Jn(e,null),Jn(i.blueprint,null));var r=ei(t,e),a=t.injectorIndex;if(Yn(r))for(var o=Gn(r),s=Kn(r,e),l=s[1].data,u=0;u<8;u++)e[a+u]=s[o+u]|l[o+u];return e[a+8]=r,a}function Jn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function ti(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function ei(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;for(var n=0,i=null,r=e;null!==r;){var a=r[1],o=a.type;if(null===(i=2===o?a.declTNode:1===o?r[6]:null))return jn;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return jn}function ni(t,e,n){!function(t,e,n){var i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(le)&&(i=n[le]),null==i&&(i=n[le]=Xn++);var r=255&i;e.data[t+(r>>5)]|=1<3&&void 0!==arguments[3]?arguments[3]:Ht.Default,r=arguments.length>4?arguments[4]:void 0;if(null!==t){var a=hi(n);if("function"==typeof a){if(!bn(e,t,i))return i&Ht.Host?ii(r,n,i):ri(e,n,i,r);try{var o=a();if(null!=o||i&Ht.Optional)return o;Tt(n)}finally{xn()}}else if("number"==typeof a){var s=null,l=ti(t,e),u=jn,c=i&Ht.Host?e[16][6]:null;for((-1===l||i&Ht.SkipSelf)&&((u=-1===l?ei(t,e):e[l+8])!==jn&&fi(i,!1)?(s=e[1],l=Gn(u),e=Kn(u,e)):l=-1);-1!==l;){var h=e[1];if(di(a,l,h.data)){var d=li(l,e,n,s,i,c);if(d!==oi)return d}(u=e[l+8])!==jn&&fi(i,e[1].data[l+8]===c)&&di(a,l,e)?(s=h,l=Gn(u),e=Kn(u,e)):l=-1}}}return ri(e,n,i,r)}var oi={};function si(){return new pi(rn(),tn())}function li(t,e,n,i,r,a){var o=e[1],s=o.data[t+8],l=ui(s,o,n,null==i?xe(s)&&Zn:i!=o&&0!=(3&s.type),r&Ht.Host&&a===s);return null!==l?ci(e,o,l,s):oi}function ui(t,e,n,i,r){for(var a=t.providerIndexes,o=e.data,s=1048575&a,l=t.directiveStart,u=a>>20,c=r?s+u:t.directiveEnd,h=i?s:s+u;h=l&&d.type===n)return h}if(r){var f=o[l];if(f&&Ae(f)&&f.type===n)return l}return null}function ci(t,e,n,i){var r=t[n],a=e.data;if(r instanceof Bn){var o=r;o.resolving&&function(t,e){throw new Dt("200","Circular dependency in DI detected for ".concat(t).concat(""))}(Ot(a[n]));var s=$n(o.canSeeViewProviders);o.resolving=!0;var l=o.injectImpl?qt(o.injectImpl):null;bn(t,i,Ht.Default);try{r=t[n]=o.factory(void 0,a,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){var i=e.type.prototype,r=i.ngOnInit,a=i.ngDoCheck;if(i.ngOnChanges){var o=Te(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,o)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,r),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,a))}(n,a[n],e)}finally{null!==l&&qt(l),$n(s),o.resolving=!1,xn()}}return r}function hi(t){if("string"==typeof t)return t.charCodeAt(0)||0;var e=t.hasOwnProperty(le)?t[le]:void 0;return"number"==typeof e?e>=0?255&e:si:e}function di(t,e,n){return!!(n[e+(t>>5)]&1<=t.length?t.push(n):t.splice(e,0,n)}function Ei(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Ai(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 Ii(t,e){var n=Oi(t,e);if(n>=0)return t[1|n]}function Oi(t,e){return function(t,e,n){for(var i=0,r=t.length>>1;r!==i;){var a=i+(r-i>>1),o=t[a<<1];if(e===o)return a<<1;o>e?r=a:i=a+1}return~(r<<1)}(t,e)}var Ti={},Ri=/\n/gm,Pi="__source",Mi=bt({provide:String,useValue:bt}),Fi=void 0;function Li(t){var e=Fi;return Fi=t,e}function Ni(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ht.Default;if(void 0===Fi)throw new Error("inject() must be called from an injection context");return null===Fi?Wt(t,void 0,e):Fi.get(t,e&Ht.Optional?null:void 0,e)}function Vi(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ht.Default;return(Ut()||Ni)(Et(t),e)}var ji=Vi;function Bi(t){for(var e=[],n=0;n3&&void 0!==arguments[3]?arguments[3]:null;t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;var r=wt(e);if(Array.isArray(e))r=e.map(wt).join(" -> ");else if("object"==typeof e){var a=[];for(var o in e)if(e.hasOwnProperty(o)){var s=e[o];a.push(o+":"+("string"==typeof s?JSON.stringify(s):wt(s)))}r="{".concat(a.join(", "),"}")}return"".concat(n).concat(i?"("+i+")":"","[").concat(r,"]: ").concat(t.replace(Ri,"\n "))}("\n"+t.message,r,n,i),t.ngTokenPath=r,t.ngTempTokenPath=null,t}var Ui,qi,Wi=zi(_i("Inject",function(t){return{token:t}}),-1),Yi=zi(_i("Optional"),8),Gi=zi(_i("SkipSelf"),4);function Ki(t){var e;return(null===(e=function(){if(void 0===Ui&&(Ui=null,Jt.trustedTypes))try{Ui=Jt.trustedTypes.createPolicy("angular",{createHTML:function(t){return t},createScript:function(t){return t},createScriptURL:function(t){return t}})}catch(e){}return Ui}())||void 0===e?void 0:e.createHTML(t))||t}function Zi(t){var e;return(null===(e=function(){if(void 0===qi&&(qi=null,Jt.trustedTypes))try{qi=Jt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(t){return t},createScript:function(t){return t},createScriptURL:function(t){return t}})}catch(e){}return qi}())||void 0===e?void 0:e.createHTML(t))||t}var $i=function(){function t(e){a(this,t),this.changingThisBreaksApplicationSecurity=e}return s(t,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see https://g.co/ng/security#xss)"}}]),t}(),Xi=function(t){u(n,t);var e=p(n);function n(){return a(this,n),e.apply(this,arguments)}return s(n,[{key:"getTypeName",value:function(){return"HTML"}}]),n}($i),Qi=function(t){u(n,t);var e=p(n);function n(){return a(this,n),e.apply(this,arguments)}return s(n,[{key:"getTypeName",value:function(){return"Style"}}]),n}($i),Ji=function(t){u(n,t);var e=p(n);function n(){return a(this,n),e.apply(this,arguments)}return s(n,[{key:"getTypeName",value:function(){return"Script"}}]),n}($i),tr=function(t){u(n,t);var e=p(n);function n(){return a(this,n),e.apply(this,arguments)}return s(n,[{key:"getTypeName",value:function(){return"URL"}}]),n}($i),er=function(t){u(n,t);var e=p(n);function n(){return a(this,n),e.apply(this,arguments)}return s(n,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),n}($i);function nr(t){return t instanceof $i?t.changingThisBreaksApplicationSecurity:t}function ir(t,e){var n=rr(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error("Required a safe ".concat(e,", got a ").concat(n," (see https://g.co/ng/security#xss)"))}return n===e}function rr(t){return t instanceof $i&&t.getTypeName()||null}var ar=function(){function t(e){a(this,t),this.inertDocumentHelper=e}return s(t,[{key:"getInertBodyElement",value:function(t){t=""+t;try{var e=(new window.DOMParser).parseFromString(Ki(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(n){return null}}}]),t}(),or=function(){function t(e){if(a(this,t),this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);var i=this.inertDocument.createElement("body");n.appendChild(i)}}return s(t,[{key:"getInertBodyElement",value:function(t){var e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Ki(t),e;var n=this.inertDocument.createElement("body");return n.innerHTML=Ki(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}},{key:"stripCustomNsAttrs",value:function(t){for(var e=t.attributes,n=e.length-1;0"),!0}},{key:"endElement",value:function(t){var e=t.nodeName.toLowerCase();gr.hasOwnProperty(e)&&!fr.hasOwnProperty(e)&&(this.buf.push(""))}},{key:"chars",value:function(t){this.buf.push(xr(t))}},{key:"checkClobberedElement",value: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: ".concat(t.outerHTML));return e}}]),t}(),Cr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Sr=/([^\#-~ |!])/g;function xr(t){return t.replace(/&/g,"&").replace(Cr,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Sr,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}function Er(t,e){var n=null;try{dr=dr||function(t){var e=new or(t);return function(){try{return!!(new window.DOMParser).parseFromString(Ki(""),"text/html")}catch(t){return!1}}()?new ar(e):e}(t);var i=e?String(e):"";n=dr.getInertBodyElement(i);var r=5,a=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=a,a=n.innerHTML,n=dr.getInertBodyElement(i)}while(i!==a);return Ki((new wr).sanitizeChildren(Ar(n)||n))}finally{if(n)for(var o=Ar(n)||n;o.firstChild;)o.removeChild(o.firstChild)}}function Ar(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Dr=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function Ir(t){var e=Tr();return e?Zi(e.sanitize(Dr.HTML,t)||""):ir(t,"HTML")?Zi(nr(t)):Er(Ne(),It(t))}function Or(t){var e=Tr();return e?e.sanitize(Dr.URL,t)||"":ir(t,"URL")?nr(t):ur(It(t))}function Tr(){var t=tn();return t&&t[12]}function Rr(t){return t.ngDebugContext}function Pr(t){return t.ngOriginalError}function Mr(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i0&&(t[i-1][4]=r[4]);var o=Ei(t,ke+e);ha(r[1],n=r,n[11],2,null,null),n[0]=null,n[6]=null;var s=o[19];null!==s&&s.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function Xr(t,e){if(!(256&e[2])){var n=e[11];Ve(n)&&n.destroyNode&&ha(t,e,n,3,null,null),function(t){var e=t[13];if(!e)return Qr(t[1],t);for(;e;){var n=null;if(we(e))n=e[13];else{var i=e[10];i&&(n=i)}if(!n){for(;e&&!e[4]&&e!==t;)we(e)&&Qr(e[1],e),e=e[3];null===e&&(e=t),we(e)&&Qr(e[1],e),n=e&&e[4]}e=n}}(e)}}function Qr(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[r=u]():i[r=-u].unsubscribe(),a+=2}else{var c=i[r=n[a+1]];n[a].call(c)}if(null!==i){for(var h=r+1;ha?"":r[c+1].toLowerCase();var d=8&i?h:null;if(d&&-1!==va(d,u,0)||2&i&&u!==h){if(wa(i))return!1;o=!0}}}}else{if(!o&&!wa(i)&&!wa(l))return!1;if(o&&wa(l))continue;o=!1,i=l|1&i}}return wa(i)||o}function wa(t){return 0==(1&t)}function Ca(t,e,n,i){if(null===e)return-1;var r=0;if(i||!n){for(var a=!1;r-1)for(n++;n2&&void 0!==arguments[2]&&arguments[2],i=0;i0?'="'+s+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""===r||wa(o)||(e+=Ea(a,r),r=""),i=o,a=a||!wa(i);n++}return""!==r&&(e+=Ea(a,r)),e}var Da={};function Ia(t){Oa(en(),tn(),Dn()+t,un())}function Oa(t,e,n,i){if(!i)if(3==(3&e[2])){var r=t.preOrderCheckHooks;null!==r&&Mn(e,r,n)}else{var a=t.preOrderHooks;null!==a&&Fn(e,a,0,n)}In(n)}function Ta(t,e){return t<<17|e<<2}function Ra(t){return t>>17&32767}function Pa(t){return 2|t}function Ma(t){return(131068&t)>>2}function Fa(t,e){return-131069&t|e<<2}function La(t){return 1|t}function Na(t,e){var n=t.contentQueries;if(null!==n)for(var i=0;ibe&&Oa(t,e,be,un()),n(i,r)}finally{In(a)}}function Wa(t,e,n){if(Se(e))for(var i=e.directiveEnd,r=e.directiveStart;r2&&void 0!==arguments[2]?arguments[2]:He,i=e.localNames;if(null!==i)for(var r=e.index+1,a=0;a0;){var n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(s)!=l&&s.push(l),s.push(i,r,o)}}function eo(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function no(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function io(t,e,n){if(n){if(e.exportAs)for(var i=0;i0&&ho(n)}}function ho(t){for(var e=Ur(t);null!==e;e=qr(e))for(var n=ke;n0&&ho(i)}var a=t[1].components;if(null!==a)for(var o=0;o0&&ho(s)}}function fo(t,e){var n=We(e,t),i=n[1];!function(t,e){for(var n=e.length;n1&&void 0!==arguments[1]?arguments[1]:Ti;if(e===Ti){var n=new Error("NullInjectorError: No provider for ".concat(wt(t),"!"));throw n.name="NullInjectorError",n}return e}}]),t}(),Io=new bi("Set Injector scope."),Oo={},To={},Ro=[],Po=void 0;function Mo(){return void 0===Po&&(Po=new Do),Po}function Fo(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return new Lo(t,n,e||Mo(),i)}var Lo=function(){function t(e,n,i){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;a(this,t),this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var s=[];n&&Si(n,function(t){return r.processProvider(t,e,n)}),Si([e],function(t){return r.processInjectorType(t,[],s)}),this.records.set(Ao,jo(void 0,this));var l=this.records.get(Io);this.scope=null!=l?l.value:null,this.source=o||("object"==typeof e?null:wt(e))}return s(t,[{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(t){return t.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ti,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ht.Default;this.assertNotDestroyed();var i=Li(this);try{if(!(n&Ht.SkipSelf)){var r=this.records.get(t);if(void 0===r){var a=Ho(t)&&Mt(t);r=a&&this.injectableDefInScope(a)?jo(No(t),Oo):null,this.records.set(t,r)}if(null!=r)return this.hydrate(t,r)}var o=n&Ht.Self?Mo():this.parent;return o.get(t,e=n&Ht.Optional&&e===Ti?null:e)}catch(l){if("NullInjectorError"===l.name){var s=l.ngTempTokenPath=l.ngTempTokenPath||[];if(s.unshift(wt(t)),i)throw l;return Hi(l,t,"R3InjectorError",this.source)}throw l}finally{Li(i)}}},{key:"_resolveInjectorDefTypes",value:function(){var t=this;this.injectorDefTypes.forEach(function(e){return t.get(e)})}},{key:"toString",value:function(){var t=[];return this.records.forEach(function(e,n){return t.push(wt(n))}),"R3Injector[".concat(t.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(t,e,n){var i=this;if(!(t=Et(t)))return!1;var r=Lt(t),a=null==r&&t.ngModule||void 0,o=void 0===a?t:a,s=-1!==n.indexOf(o);if(void 0!==a&&(r=Lt(a)),null==r)return!1;if(null!=r.imports&&!s){var l;n.push(o);try{Si(r.imports,function(t){i.processInjectorType(t,e,n)&&(void 0===l&&(l=[]),l.push(t))})}finally{}if(void 0!==l)for(var u=function(t){var e=l[t],n=e.ngModule,r=e.providers;Si(r,function(t){return i.processProvider(t,n,r||Ro)})},c=0;c0){var n=Ai(e,"?");throw new Error("Can't resolve all parameters for ".concat(wt(t),": (").concat(n.join(", "),")."))}var i=function(t){var e=t&&(t[Vt]||t[Bt]);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 "'.concat(n,'" that inherits its @Injectable decorator but does not provide one itself.\n')+'This will become an error in a future version of Angular. Please add @Injectable() to the "'.concat(n,'" class.')),e}return null}(t);return null!==i?function(){return i.factory(t)}:function(){return new t}}(t);throw new Error("unreachable")}function Vo(t,e,n){var i,r=void 0;if(zo(t)){var a=Et(t);return De(a)||No(a)}if(Bo(t))r=function(){return Et(t.useValue)};else if((i=t)&&i.useFactory)r=function(){return t.useFactory.apply(t,b(Bi(t.deps||[])))};else if(function(t){return!(!t||!t.useExisting)}(t))r=function(){return Vi(Et(t.useExisting))};else{var o=Et(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return De(o)||No(o);r=function(){return k(o,b(Bi(t.deps)))}}return r}function jo(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:t,value:e,multi:n?[]:void 0}}function Bo(t){return null!==t&&"object"==typeof t&&Mi in t}function zo(t){return"function"==typeof t}function Ho(t){return"function"==typeof t||"object"==typeof t&&t instanceof bi}var Uo=function(t,e,n){return function(t){var e=Fo(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,arguments.length>3?arguments[3]:void 0);return e._resolveInjectorDefTypes(),e}({name:n},e,t,n)},qo=function(){var t=function(){function t(){a(this,t)}return s(t,null,[{key:"create",value:function(t,e){return Array.isArray(t)?Uo(t,e,""):Uo(t.providers,t.parent,t.name||"")}}]),t}();return t.THROW_IF_NOT_FOUND=Ti,t.NULL=new Do,t.\u0275prov=Rt({token:t,providedIn:"any",factory:function(){return Vi(Ao)}}),t.__NG_ELEMENT_ID__=-1,t}();function Wo(t,e){Pn(Ye(t)[1],rn())}function Yo(t){for(var e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0,i=[t];e;){var r=void 0;if(Ae(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 a=t;a.inputs=Go(t.inputs),a.declaredInputs=Go(t.declaredInputs),a.outputs=Go(t.outputs);var o=r.hostBindings;o&&$o(t,o);var s=r.viewQuery,l=r.contentQueries;if(s&&Ko(t,s),l&&Zo(t,l),kt(t.inputs,r.inputs),kt(t.declaredInputs,r.declaredInputs),kt(t.outputs,r.outputs),Ae(r)&&r.data.animation){var u=t.data;u.animation=(u.animation||[]).concat(r.data.animation)}}var c=r.features;if(c)for(var h=0;h=0;i--){var r=t[i];r.hostVars=e+=r.hostVars,r.hostAttrs=qn(r.hostAttrs,n=qn(n,r.hostAttrs))}}(i)}function Go(t){return t===te?{}:t===ee?[]:t}function Ko(t,e){var n=t.viewQuery;t.viewQuery=n?function(t,i){e(t,i),n(t,i)}:e}function Zo(t,e){var n=t.contentQueries;t.contentQueries=n?function(t,i,r){e(t,i,r),n(t,i,r)}:e}function $o(t,e){var n=t.hostBindings;t.hostBindings=n?function(t,i){e(t,i),n(t,i)}:e}var Xo=null;function Qo(){if(!Xo){var t=Jt.Symbol;if(t&&t.iterator)Xo=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),n=0;n1&&void 0!==arguments[1]?arguments[1]:Ht.Default,n=tn();if(null===n)return Vi(t,e);var i=rn();return ai(i,n,Et(t),e)}function cs(t,e,n){var i=tn();return is(i,fn(),e)&&Qa(en(),On(),i,t,e,i[11],n,!1),cs}function hs(t,e,n,i,r){var a=r?"class":"style";So(t,n,e.inputs[a],a,i)}function ds(t,e,n,i){var r=tn(),a=en(),o=be+t,s=r[11],l=r[o]=Kr(s,e,Qe.lFrame.currentNamespace),u=a.firstCreatePass?function(t,e,n,i,r,a,o){var s=e.consts,l=ja(e,t,2,r,Ze(s,a));return Ja(e,n,l,Ze(s,o)),null!==l.attrs&&Eo(l,l.attrs,!1),null!==l.mergedAttrs&&Eo(l,l.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,l),l}(o,a,r,0,e,n,i):a.data[o];on(u,!0);var c=u.mergedAttrs;null!==c&&zn(s,l,c);var h=u.classes;null!==h&&ma(s,l,h);var d=u.styles;null!==d&&pa(s,l,d),64!=(64&u.flags)&&oa(a,r,l,u),0===Qe.lFrame.elementDepthCount&&Lr(l,r),Qe.lFrame.elementDepthCount++,Ee(u)&&(Ya(a,r,u),Wa(a,u,r)),null!==i&&Ga(r,u)}function fs(){var t=rn();sn()?ln():on(t=t.parent,!1);var e=t;Qe.lFrame.elementDepthCount--;var n=en();n.firstCreatePass&&(Pn(n,t),Se(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&hs(n,e,tn(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&hs(n,e,tn(),e.stylesWithoutHost,!1)}function ps(t,e,n,i){ds(t,e,n,i),fs()}function ms(t,e,n){var i=tn(),r=en(),a=t+be,o=r.firstCreatePass?function(t,e,n,i,r){var a=e.consts,o=Ze(a,i),s=ja(e,t,8,"ng-container",o);return null!==o&&Eo(s,o,!0),Ja(e,n,s,Ze(a,r)),null!==e.queries&&e.queries.elementStart(e,s),s}(a,r,i,e,n):r.data[a];on(o,!0);var s=i[a]=i[11].createComment("");oa(r,i,s,o),Lr(s,i),Ee(o)&&(Ya(r,i,o),Wa(r,o,i)),null!=n&&Ga(i,o)}function vs(){var t=rn(),e=en();sn()?ln():on(t=t.parent,!1),e.firstCreatePass&&(Pn(e,t),Se(t)&&e.queries.elementEnd(t))}function gs(t,e,n){ms(t,e,n),vs()}function ys(){return tn()}function _s(t){return!!t&&"function"==typeof t.then}function bs(t){return!!t&&"function"==typeof t.subscribe}var ks=bs;function ws(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,r=tn(),a=en(),o=rn();return xs(a,r,r[11],o,t,e,n,i),ws}function Cs(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,r=rn(),a=tn(),o=en(),s=vn(o.data),l=wo(s,r,a);return xs(o,a,l,r,t,e,n,i),Cs}function Ss(t,e,n,i){var r=t.cleanup;if(null!=r)for(var a=0;al?s[l]:null}"string"==typeof o&&(a+=2)}return null}function xs(t,e,n,i,r,a){var o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7?arguments[7]:void 0,l=Ee(i),u=t.firstCreatePass,c=u&&ko(t),h=bo(e),d=!0;if(3&i.type){var f=He(i,e),p=s?s(f):te,m=p.target||f,v=h.length,g=s?function(t){return s(Be(t[i.index])).target}:i.index;if(Ve(n)){var y=null;if(!s&&l&&(y=Ss(t,e,r,i.index)),null!==y){var _=y.__ngLastListenerFn__||y;_.__ngNextListenerFn__=a,y.__ngLastListenerFn__=a,d=!1}else{a=As(i,e,a,!1);var b=n.listen(p.name||m,r,a);h.push(a,b),c&&c.push(r,g,v,v+1)}}else a=As(i,e,a,!0),m.addEventListener(r,a,o),h.push(a),c&&c.push(r,g,v,o)}else a=As(i,e,a,!1);var k,w=i.outputs;if(d&&null!==w&&(k=w[r])){var C=k.length;if(C)for(var S=0;S0&&void 0!==arguments[0]?arguments[0]:1;return An(t)}function Is(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;r1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=tn(),r=en(),a=ja(r,be+t,16,null,n||null);null===a.projection&&(a.projection=e),ln(),64!=(64&a.flags)&&da(r,i,a)}function Rs(t,e,n){return Ps(t,"",e,"",n),Rs}function Ps(t,e,n,i,r){var a=tn(),o=os(a,e,n,i);return o!==Da&&Qa(en(),On(),a,t,o,a[11],r,!1),Ps}var Ms=[];function Fs(t,e,n,i,r){for(var a=t[n+1],o=null===e,s=i?Ra(a):Ma(a),l=!1;0!==s&&(!1===l||o);){var u=t[s+1];Ls(t[s],e)&&(l=!0,t[s+1]=i?La(u):Pa(u)),s=i?Ra(u):Ma(u)}l&&(t[n+1]=i?Pa(a):La(a))}function Ls(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&Oi(t,e)>=0}var Ns={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Vs(t){return t.substring(Ns.key,Ns.keyEnd)}function js(t,e){var n=Ns.textEnd;return n===e?-1:(e=Ns.keyEnd=function(t,e,n){for(;e32;)e++;return e}(t,Ns.key=e,n),Bs(t,e,n))}function Bs(t,e,n){for(;e=0;n=js(e,n))Di(t,Vs(e),!0)}function qs(t,e,n,i){var r=tn(),a=en(),o=pn(2);a.firstUpdatePass&&Ys(a,t,o,i),e!==Da&&is(r,o,e)&&Zs(a,a.data[Dn()],r,r[11],t,r[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=wt(nr(t)))),t}(e,n),i,o)}function Ws(t,e){return e>=t.expandoStartIndex}function Ys(t,e,n,i){var r=t.data;if(null===r[n+1]){var a=r[Dn()],o=Ws(t,n);Qs(a,i)&&null===e&&!o&&(e=!1),e=function(t,e,n,i){var r=vn(t),a=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(n=Ks(n=Gs(null,t,e,n,i),e.attrs,i),a=null);else{var o=e.directiveStylingLast;if(-1===o||t[o]!==r)if(n=Gs(r,t,e,n,i),null===a){var s=function(t,e,n){var i=n?e.classBindings:e.styleBindings;if(0!==Ma(i))return t[Ra(i)]}(t,e,i);void 0!==s&&Array.isArray(s)&&function(t,e,n,i){t[Ra(n?e.classBindings:e.styleBindings)]=i}(t,e,i,s=Ks(s=Gs(null,t,e,s[1],i),e.attrs,i))}else a=function(t,e,n){for(var i=void 0,r=e.directiveEnd,a=1+e.directiveStylingLast;a0)&&(c=!0):u=n,r)if(0!==l){var h=Ra(t[s+1]);t[i+1]=Ta(h,s),0!==h&&(t[h+1]=Fa(t[h+1],i)),t[s+1]=131071&t[s+1]|i<<17}else t[i+1]=Ta(s,0),0!==s&&(t[s+1]=Fa(t[s+1],i)),s=i;else t[i+1]=Ta(l,0),0===s?s=i:t[l+1]=Fa(t[l+1],i),l=i;c&&(t[i+1]=Pa(t[i+1])),Fs(t,u,i,!0),Fs(t,u,i,!1),function(t,e,n,i,r){var a=r?t.residualClasses:t.residualStyles;null!=a&&"string"==typeof e&&Oi(a,e)>=0&&(n[i+1]=La(n[i+1]))}(e,u,t,i,a),o=Ta(s,l),a?e.classBindings=o:e.styleBindings=o}(r,a,e,n,o,i)}}function Gs(t,e,n,i,r){var a=null,o=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s0;){var l=t[r],u=Array.isArray(l),c=u?l[1]:l,h=null===c,d=n[r+1];d===Da&&(d=h?Ms:void 0);var f=h?Ii(d,i):c===i?d:void 0;if(u&&!Xs(f)&&(f=Ii(l,i)),Xs(f)&&(s=f,o))return s;var p=t[r+1];r=o?Ra(p):Ma(p)}if(null!==e){var m=a?e.residualClasses:e.residualStyles;null!=m&&(s=Ii(m,i))}return s}function Xs(t){return void 0!==t}function Qs(t,e){return 0!=(t.flags&(e?16:32))}function Js(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=tn(),i=en(),r=t+be,a=i.firstCreatePass?ja(i,r,1,e,null):i.data[r],o=n[r]=Gr(n[11],e);oa(i,n,o,a),on(a,!1)}function tl(t){return el("",t,""),tl}function el(t,e,n){var i=tn(),r=os(i,t,e,n);return r!==Da&&xo(i,Dn(),r),el}function nl(t,e,n,i,r){var a=tn(),o=function(t,e,n,i,r,a){var o=rs(t,dn(),n,r);return pn(2),o?e+It(n)+i+It(r)+a:Da}(a,t,e,n,i,r);return o!==Da&&xo(a,Dn(),o),nl}function il(t,e,n){var i=tn();return is(i,fn(),e)&&Qa(en(),On(),i,t,e,i[11],n,!0),il}function rl(t,e,n){var i=tn();if(is(i,fn(),e)){var r=en(),a=On();Qa(r,a,i,t,e,wo(vn(r.data),a,i),n,!0)}return rl}var al=void 0,ol=["en",[["a","p"],["AM","PM"],al],[["AM","PM"],al,al],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],al,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],al,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",al,"{1} 'at' {0}",al],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}],sl={};function ll(t){return t in sl||(sl[t]=Jt.ng&&Jt.ng.common&&Jt.ng.common.locales&&Jt.ng.common.locales[t]),sl[t]}var ul=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({}),cl="en-US";function hl(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,i){throw new Error("ASSERTION ERROR: ".concat(t)+" [Expected=> ".concat(null," ").concat("!="," ").concat(e," <=Actual]"))}(n,e),"string"==typeof t&&t.toLowerCase().replace(/_/g,"-")}function dl(t,e,n){var i=en();if(i.firstCreatePass){var r=Ae(t);fl(n,i.data,i.blueprint,r,!0),fl(e,i.data,i.blueprint,r,!1)}}function fl(t,e,n,i,r){if(t=Et(t),Array.isArray(t))for(var a=0;a>20;if(zo(t)||!t.multi){var p=new Bn(u,r,us),m=vl(l,e,r?h:h+f,d);-1===m?(ni(Qn(c,s),o,l),pl(o,t,e.length),e.push(l),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(p),s.push(p)):(n[m]=p,s[m]=p)}else{var v=vl(l,e,h+f,d),g=vl(l,e,h,h+f),y=g>=0&&n[g];if(r&&!y||!r&&!(v>=0&&n[v])){ni(Qn(c,s),o,l);var _=function(t,e,n,i,r){var a=new Bn(t,n,us);return a.multi=[],a.index=e,a.componentProviders=0,ml(a,r,i&&!n),a}(r?yl:gl,n.length,r,i,u);!r&&y&&(n[g].providerFactory=_),pl(o,t,e.length,0),e.push(l),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(_),s.push(_)}else pl(o,t,v>-1?v:g,ml(n[r?g:v],u,!r&&i));!r&&i&&y&&n[g].componentProviders++}}}function pl(t,e,n,i){var r=zo(e);if(r||e.useClass){var a=(e.useClass||e).prototype.ngOnDestroy;if(a){var o=t.destroyHooks||(t.destroyHooks=[]);if(!r&&e.multi){var s=o.indexOf(n);-1===s?o.push(n,[i,a]):o[s+1].push(i,a)}else o.push(n,a)}}}function ml(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function vl(t,e,n,i){for(var r=n;r1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,i){return dl(n,i?i(t):t,e)}}}var kl=function t(){a(this,t)},wl=function t(){a(this,t)},Cl=function(){function t(){a(this,t)}return s(t,[{key:"resolveComponentFactory",value:function(t){throw function(t){var e=Error("No component factory found for ".concat(wt(t),". Did you add it to @NgModule.entryComponents?"));return e.ngComponent=t,e}(t)}}]),t}(),Sl=function(){var t=function t(){a(this,t)};return t.NULL=new Cl,t}();function xl(){}function El(t,e){return new Dl(He(t,e))}var Al=function(){return El(rn(),tn())},Dl=function(){var t=function t(e){a(this,t),this.nativeElement=e};return t.__NG_ELEMENT_ID__=Al,t}();function Il(t){return t instanceof Dl?t.nativeElement:t}var Ol=function t(){a(this,t)},Tl=function(){var t=function t(){a(this,t)};return t.__NG_ELEMENT_ID__=function(){return Rl()},t}(),Rl=function(){var t=tn(),e=We(rn().index,t);return function(t){return t[11]}(we(e)?e:t)},Pl=function(){var t=function t(){a(this,t)};return t.\u0275prov=Rt({token:t,providedIn:"root",factory:function(){return null}}),t}(),Ml=function t(e){a(this,t),this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")},Fl=new Ml("11.2.5"),Ll=function(){function t(){a(this,t)}return s(t,[{key:"supports",value:function(t){return ts(t)}},{key:"create",value:function(t){return new Vl(t)}}]),t}(),Nl=function(t,e){return e},Vl=function(){function t(e){a(this,t),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||Nl}return s(t,[{key:"forEachItem",value:function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)}},{key:"forEachOperation",value:function(t){for(var e=this._itHead,n=this._removalsHead,i=0,r=null;e||n;){var a=!n||e&&e.currentIndex4&&void 0!==arguments[4]&&arguments[4];null!==n;){var a=e[n.index];if(null!==a&&i.push(Be(a)),Ce(a))for(var o=ke;o-1&&($r(t,n),Ei(e,n))}this._attachedToViewContainer=!1}Xr(this._lView[1],this._lView)}},{key:"onDestroy",value:function(t){$a(this._lView[1],this._lView,null,t)}},{key:"markForCheck",value:function(){mo(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){vo(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(t,e,n){cn(!0);try{vo(t,e,n)}finally{cn(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){var t;this._appRef=null,ha(this._lView[1],t=this._lView,t[11],2,null,null)}},{key:"attachToAppRef",value:function(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}},{key:"rootNodes",get:function(){var t=this._lView,e=t[1];return $l(e,t,e.firstChild,[])}},{key:"context",get:function(){return this._lView[8]}},{key:"destroyed",get:function(){return 256==(256&this._lView[2])}}]),t}(),Ql=function(t){u(n,t);var e=p(n);function n(t){var i;return a(this,n),(i=e.call(this,t))._view=t,i}return s(n,[{key:"detectChanges",value:function(){go(this._view)}},{key:"checkNoChanges",value:function(){!function(t){cn(!0);try{go(t)}finally{cn(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(Xl),Jl=eu,tu=function(){var t=function t(){a(this,t)};return t.__NG_ELEMENT_ID__=Jl,t.__ChangeDetectorRef__=!0,t}();function eu(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return nu(rn(),tn(),t)}function nu(t,e,n){if(!n&&xe(t)){var i=We(t.index,e);return new Xl(i,i)}return 47&t.type?new Xl(e[16],e):null}var iu=[new Ul],ru=new Gl([new Ll]),au=new Zl(iu),ou=function(){return uu(rn(),tn())},su=function(){var t=function t(){a(this,t)};return t.__NG_ELEMENT_ID__=ou,t}(),lu=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return a(this,n),(o=e.call(this))._declarationLView=t,o._declarationTContainer=i,o.elementRef=r,o}return s(n,[{key:"createEmbeddedView",value:function(t){var e=this._declarationTContainer.tViews,n=Va(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(e)),za(e,n,t),new Xl(n)}}]),n}(su);function uu(t,e){return 4&t.type?new lu(e,t,El(t,e)):null}var cu=function t(){a(this,t)},hu=function t(){a(this,t)},du=function(){return gu(rn(),tn())},fu=function(){var t=function t(){a(this,t)};return t.__NG_ELEMENT_ID__=du,t}(),pu=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return a(this,n),(o=e.call(this))._lContainer=t,o._hostTNode=i,o._hostLView=r,o}return s(n,[{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(t){var e=mu(this._lContainer);return null!==e&&e[t]||null}},{key:"createEmbeddedView",value:function(t,e,n){var i=t.createEmbeddedView(e||{});return this.insert(i,n),i}},{key:"createComponent",value:function(t,e,n,i,r){var a=n||this.parentInjector;if(!r&&null==t.ngModule&&a){var o=a.get(cu,null);o&&(r=o)}var s=t.create(a,i,void 0,r);return this.insert(s.hostView,e),s}},{key:"insert",value:function(t,e){var n=t._lView,i=n[1];if(Ce(n[3])){var r=this.indexOf(t);if(-1!==r)this.detach(r);else{var a=n[3],o=new pu(a,a[6],a[3]);o.detach(o.indexOf(t))}}var s=this._adjustIndex(e),l=this._lContainer;!function(t,e,n,i){var r=ke+i,a=n.length;i>0&&(n[r-1][4]=e),i1&&void 0!==arguments[1]?arguments[1]:0;return null==t?this.length+e:t}},{key:"element",get:function(){return El(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new pi(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var t=ei(this._hostTNode,this._hostLView);if(Yn(t)){var e=Kn(t,this._hostLView),n=Gn(t);return new pi(e[1].data[n+8],e)}return new pi(null,this._hostLView)}},{key:"length",get:function(){return this._lContainer.length-ke}}]),n}(fu);function mu(t){return t[8]}function vu(t){return t[8]||(t[8]=[])}function gu(t,e){var n,i=e[t.index];if(Ce(i))n=i;else{var r;if(8&t.type)r=Be(i);else{var a=e[11];r=a.createComment("");var o=He(t,e);ta(a,ia(a,o),r,function(t,e){return Ve(t)?t.nextSibling(e):e.nextSibling}(a,o),!1)}e[t.index]=n=uo(i,e,r,t),po(e,n)}return new pu(n,t,e)}var yu={},_u=function(t){u(n,t);var e=p(n);function n(t){var i;return a(this,n),(i=e.call(this)).ngModule=t,i}return s(n,[{key:"resolveComponentFactory",value:function(t){var e=ye(t);return new wu(e,this.ngModule)}}]),n}(Sl);function bu(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}var ku=new bi("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Nr}}),wu=function(t){u(n,t);var e=p(n);function n(t,i){var r;return a(this,n),(r=e.call(this)).componentDef=t,r.ngModule=i,r.componentType=t.type,r.selector=t.selectors.map(Aa).join(","),r.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],r.isBoundToModule=!!i,r}return s(n,[{key:"create",value:function(t,e,n,i){var r,a,o=(i=i||this.ngModule)?function(t,e){return{get:function(n,i,r){var a=t.get(n,yu,r);return a!==yu||i===yu?a:e.get(n,i,r)}}}(t,i.injector):t,s=o.get(Ol,je),l=o.get(Pl,null),u=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",h=n?function(t,e,n){if(Ve(t))return t.selectRootElement(e,n===Kt.ShadowDom);var i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(u,n,this.componentDef.encapsulation):Kr(s.createRenderer(null,this.componentDef),c,function(t){var e=t.toLowerCase();return"svg"===e?Fe:"math"===e?"http://www.w3.org/1998/MathML/":null}(c)),d=this.componentDef.onPush?576:528,f={components:[],scheduler:Nr,clean:_o,playerHandler:null,flags:0},p=Za(0,null,null,1,0,null,null,null,null,null),m=Va(null,p,f,d,null,null,s,u,l,o);kn(m);try{var v=function(t,e,n,i,r,a){var o=n[1];n[20]=t;var s=ja(o,20,2,"#host",null),l=s.mergedAttrs=e.hostAttrs;null!==l&&(Eo(s,l,!0),null!==t&&(zn(r,t,l),null!==s.classes&&ma(r,t,s.classes),null!==s.styles&&pa(r,t,s.styles)));var u=i.createRenderer(t,e),c=Va(n,Ka(e),null,e.onPush?64:16,n[20],s,i,u,null,null);return o.firstCreatePass&&(ni(Qn(s,n),o,e.type),no(o,s),ro(s,n.length,1)),po(n,c),n[20]=c}(h,this.componentDef,m,s,u);if(h)if(n)zn(u,h,["ng-version",Fl.full]);else{var g=function(t){for(var e=[],n=[],i=1,r=2;i0&&ma(u,h,_.join(" "))}if(a=Ue(p,be),void 0!==e)for(var b=a.projection=[],k=0;k1&&void 0!==arguments[1]?arguments[1]:qo.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ht.Default;return t===qo||t===cu||t===Ao?this:this._r3Injector.get(t,e,n)}},{key:"destroy",value:function(){var t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(function(t){return t()}),this.destroyCbs=null}},{key:"onDestroy",value:function(t){this.destroyCbs.push(t)}}]),n}(cu),Eu=function(t){u(n,t);var e=p(n);function n(t){var i,r,o;return a(this,n),(i=e.call(this)).moduleType=t,null!==_e(t)&&(r=t,o=new Set,function t(e){var n=_e(e,!0),i=n.id;null!==i&&(function(t,e,n){if(e&&e!==n)throw new Error("Duplicate module registered for ".concat(t," - ").concat(wt(e)," vs ").concat(wt(e.name)))}(i,Su.get(i),e),Su.set(i,e));var r,a=g(jr(n.imports));try{for(a.s();!(r=a.n()).done;){var s=r.value;o.has(s)||(o.add(s),t(s))}}catch(l){a.e(l)}finally{a.f()}}(r)),i}return s(n,[{key:"create",value:function(t){return new xu(this.moduleType,t)}}]),n}(hu);function Au(t,e,n){var i=hn()+t,r=tn();return r[i]===Da?ns(r,i,n?e.call(n):e()):function(t,e){return t[e]}(r,i)}function Du(t,e,n,i){return Tu(tn(),hn(),t,e,n,i)}function Iu(t,e,n,i,r){return Ru(tn(),hn(),t,e,n,i,r)}function Ou(t,e){var n=t[e];return n===Da?void 0:n}function Tu(t,e,n,i,r,a){var o=e+n;return is(t,o,r)?ns(t,o+1,a?i.call(a,r):i(r)):Ou(t,o+1)}function Ru(t,e,n,i,r,a,o){var s=e+n;return rs(t,s,r,a)?ns(t,s+2,o?i.call(o,r,a):i(r,a)):Ou(t,s+2)}function Pu(t,e){var n,i=en(),r=t+be;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 Dt("302","The pipe '".concat(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 a=n.factory||(n.factory=De(n.type)),o=qt(us);try{var s=$n(!1),l=a();return $n(s),function(t,e,n,i){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=i}(i,tn(),r,l),l}finally{qt(o)}}function Mu(t,e,n){var i=t+be,r=tn(),a=qe(r,i);return Nu(r,Lu(r,i)?Tu(r,hn(),e,a.transform,n,a):a.transform(n))}function Fu(t,e,n,i){var r=t+be,a=tn(),o=qe(a,r);return Nu(a,Lu(a,r)?Ru(a,hn(),e,o.transform,n,i,o):o.transform(n,i))}function Lu(t,e){return t[1].data[e].pure}function Nu(t,e){return Jo.isWrapped(e)&&(e=Jo.unwrap(e),t[dn()]=Da),e}var Vu=function(t){u(n,t);var e=p(n);function n(){var t,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return a(this,n),(t=e.call(this)).__isAsync=i,t}return s(n,[{key:"emit",value:function(t){r(i(n.prototype),"next",this).call(this,t)}},{key:"subscribe",value:function(t,e,a){var o,s=function(t){return null},l=function(){return null};t&&"object"==typeof t?(o=this.__isAsync?function(e){setTimeout(function(){return t.next(e)})}:function(e){t.next(e)},t.error&&(s=this.__isAsync?function(e){setTimeout(function(){return t.error(e)})}:function(e){t.error(e)}),t.complete&&(l=this.__isAsync?function(){setTimeout(function(){return t.complete()})}:function(){t.complete()})):(o=this.__isAsync?function(e){setTimeout(function(){return t(e)})}:function(e){t(e)},e&&(s=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)}),a&&(l=this.__isAsync?function(){setTimeout(function(){return a()})}:function(){a()}));var u=r(i(n.prototype),"subscribe",this).call(this,o,s,l);return t instanceof A&&t.add(u),u}}]),n}(q);function ju(){return this._results[Qo()]()}var Bu=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];a(this,t),this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var n=Qo(),i=t.prototype;i[n]||(i[n]=ju)}return s(t,[{key:"get",value:function(t){return this._results[t]}},{key:"map",value:function(t){return this._results.map(t)}},{key:"filter",value:function(t){return this._results.filter(t)}},{key:"find",value:function(t){return this._results.find(t)}},{key:"reduce",value:function(t,e){return this._results.reduce(t,e)}},{key:"forEach",value:function(t){this._results.forEach(t)}},{key:"some",value:function(t){return this._results.some(t)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(t,e){var n=this;n.dirty=!1;var i=Ci(t);(this._changesDetected=!function(t,e,n){if(t.length!==e.length)return!1;for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:[];a(this,t),this.queries=e}return s(t,[{key:"createEmbeddedView",value:function(e){var n=e.queries;if(null!==n){for(var i=null!==e.contentQueries?e.contentQueries[0]:n.length,r=[],a=0;a2&&void 0!==arguments[2]?arguments[2]:null;a(this,t),this.predicate=e,this.flags=n,this.read=i},qu=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];a(this,t),this.queries=e}return s(t,[{key:"elementStart",value:function(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;a(this,t),this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return s(t,[{key:"elementStart",value:function(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}},{key:"elementEnd",value:function(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(t,e){this.elementStart(t,e)}},{key:"embeddedTView",value:function(e,n){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,n),new t(this.metadata)):null}},{key:"isApplyingToNode",value:function(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var e=this._declarationNodeIndex,n=t.parent;null!==n&&8&n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(t,e){var n=this.metadata.predicate;if(Array.isArray(n))for(var i=0;i0)i.push(o[s/2]);else{for(var u=a[s+1],c=e[-l],h=ke;h0&&(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})}},{key:"whenStable",value: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()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(t,e,n){return[]}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Vi(xc))},t.\u0275prov=Rt({token:t,factory:t.\u0275fac}),t}(),Mc=function(){var t=function(){function t(){a(this,t),this._applications=new Map,Fc.addToWindow(this)}return s(t,[{key:"registerApplication",value:function(t,e){this._applications.set(t,e)}},{key:"unregisterApplication",value:function(t){this._applications.delete(t)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(t){return this._applications.get(t)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Fc.findTestabilityInTree(this,t,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Rt({token:t,factory:t.\u0275fac}),t}(),Fc=new(function(){function t(){a(this,t)}return s(t,[{key:"addToWindow",value:function(t){}},{key:"findTestabilityInTree",value:function(t,e,n){return null}}]),t}()),Lc=!0,Nc=!1;function Vc(){return Nc=!0,Lc}var jc=function(t,e,n){var i=new Eu(n);return Promise.resolve(i)},Bc=new bi("AllowMultipleToken"),zc=function t(e,n){a(this,t),this.name=e,this.token=n};function Hc(t){if(Tc&&!Tc.destroyed&&!Tc.injector.get(Bc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Tc=t.get(Yc);var e=t.get(uc,null);return e&&e.forEach(function(t){return t()}),Tc}function Uc(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i="Platform: ".concat(e),r=new bi(i);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=Wc();if(!a||a.injector.get(Bc,!1))if(t)t(n.concat(e).concat({provide:r,useValue:!0}));else{var o=n.concat(e).concat({provide:r,useValue:!0},{provide:Io,useValue:"platform"});Hc(qo.create({providers:o,name:i}))}return qc(r)}}function qc(t){var e=Wc();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}function Wc(){return Tc&&!Tc.destroyed?Tc:null}var Yc=function(){var t=function(){function t(e){a(this,t),this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return s(t,[{key:"bootstrapModuleFactory",value:function(t,e){var n,i,r=this,a=(i={ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1},"noop"===(n=e?e.ngZone:void 0)?new Rc:("zone.js"===n?void 0:n)||new xc({enableLongStackTrace:Vc(),shouldCoalesceEventChangeDetection:!!(null==i?void 0:i.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==i?void 0:i.ngZoneRunCoalescing)})),o=[{provide:xc,useValue:a}];return a.run(function(){var e=qo.create({providers:o,parent:r.injector,name:t.moduleType.name}),n=t.create(e),i=n.injector.get(Fr,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return a.runOutsideAngular(function(){var t=a.onError.subscribe({next:function(t){i.handleError(t)}});n.onDestroy(function(){Zc(r._modules,n),t.unsubscribe()})}),function(t,e,i){try{var a=((o=n.injector.get(ac)).runInitializers(),o.donePromise.then(function(){return hl(n.injector.get(fc,cl)||cl),r._moduleDoBootstrap(n),n}));return _s(a)?a.catch(function(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}):a}catch(s){throw e.runOutsideAngular(function(){return t.handleError(s)}),s}var o}(i,a)})}},{key:"bootstrapModule",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=Gc({},n);return jc(0,0,t).then(function(t){return e.bootstrapModuleFactory(t,i)})}},{key:"_moduleDoBootstrap",value:function(t){var e=t.injector.get(Kc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module ".concat(wt(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)}},{key:"onDestroy",value:function(t){this._destroyListeners.push(t)}},{key:"destroy",value: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}},{key:"injector",get:function(){return this._injector}},{key:"destroyed",get:function(){return this._destroyed}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Vi(qo))},t.\u0275prov=Rt({token:t,factory:t.\u0275fac}),t}();function Gc(t,e){return Array.isArray(e)?e.reduce(Gc,t):Object.assign(Object.assign({},t),e)}var Kc=function(){var t=function(){function t(e,n,i,r,o){var s=this;a(this,t),this._zone=e,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=r,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var l=new j(function(t){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){t.next(s._stable),t.complete()})}),u=new j(function(t){var e;s._zone.runOutsideAngular(function(){e=s._zone.onStable.subscribe(function(){xc.assertNotInAngularZone(),Sc(function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,t.next(!0))})})});var n=s._zone.onUnstable.subscribe(function(){xc.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=dt(l,u.pipe(function(t){return ft()((e=_t,function(t){var n;n="function"==typeof e?e:function(){return e};var i=Object.create(t,gt);return i.source=t,i.subjectFactory=n,i})(t));var e}))}return s(t,[{key:"bootstrap",value: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 wl?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var r=n.isBoundToModule?void 0:this._injector.get(cu),a=n.create(qo.NULL,[],e||n.selector,r),o=a.location.nativeElement,s=a.injector.get(Pc,null),l=s&&a.injector.get(Mc);return s&&l&&l.registerApplication(o,s),a.onDestroy(function(){i.detachView(a.hostView),Zc(i.components,a),l&&l.unregisterApplication(o)}),this._loadComponent(a),a}},{key:"tick",value:function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var e,n=g(this._views);try{for(n.s();!(e=n.n()).done;)e.value.detectChanges()}catch(i){n.e(i)}finally{n.f()}}catch(r){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(r)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(t){var e=t;this._views.push(e),e.attachToAppRef(this)}},{key:"detachView",value:function(t){var e=t;Zc(this._views,e),e.detachFromAppRef()}},{key:"_loadComponent",value:function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(hc,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(t){return t.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Vi(xc),Vi(qo),Vi(Fr),Vi(Sl),Vi(ac))},t.\u0275prov=Rt({token:t,factory:t.\u0275fac}),t}();function Zc(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var $c=function t(){a(this,t)},Xc=function t(){a(this,t)},Qc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Jc=function(){var t=function(){function t(e,n){a(this,t),this._compiler=e,this._config=n||Qc}return s(t,[{key:"load",value:function(t){return this.loadAndCompile(t)}},{key:"loadAndCompile",value:function(t){var e=this,i=y(t.split("#"),2),r=i[0],a=i[1];return void 0===a&&(a="default"),n("zn8P")(r).then(function(t){return t[a]}).then(function(t){return th(t,r,a)}).then(function(t){return e._compiler.compileModuleAsync(t)})}},{key:"loadFactory",value:function(t){var e=y(t.split("#"),2),i=e[0],r=e[1],a="NgFactory";return void 0===r&&(r="default",a=""),n("zn8P")(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(function(t){return t[r+a]}).then(function(t){return th(t,i,r)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Vi(wc),Vi(Xc,8))},t.\u0275prov=Rt({token:t,factory:t.\u0275fac}),t}();function th(t,e,n){if(!t)throw new Error("Cannot find '".concat(n,"' in '").concat(e,"'"));return t}var eh=Uc(null,"core",[{provide:cc,useValue:"unknown"},{provide:Yc,deps:[qo]},{provide:Mc,deps:[]},{provide:dc,deps:[]}]),nh=[{provide:Kc,useClass:Kc,deps:[xc,qo,Fr,Sl,ac]},{provide:ku,deps:[xc],useFactory:function(t){var e=[];return t.onStable.subscribe(function(){for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:ac,useClass:ac,deps:[[new Yi,rc]]},{provide:wc,useClass:wc,deps:[]},sc,{provide:Gl,useFactory:function(){return ru},deps:[]},{provide:Zl,useFactory:function(){return au},deps:[]},{provide:fc,useFactory:function(t){return hl(t=t||"undefined"!=typeof $localize&&$localize.locale||cl),t},deps:[[new Wi(fc),new Yi,new Gi]]},{provide:pc,useValue:"USD"}],ih=function(){var t=function t(e){a(this,t)};return t.\u0275fac=function(e){return new(e||t)(Vi(Kc))},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({providers:nh}),t}(),rh=null;function ah(){return rh}var oh=function t(){a(this,t)},sh=new bi("DocumentToken"),lh=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Rt({factory:uh,token:t,providedIn:"platform"}),t}();function uh(){return Vi(hh)}var ch=new bi("Location Initialized"),hh=function(){var t=function(t){u(n,t);var e=p(n);function n(t){var i;return a(this,n),(i=e.call(this))._doc=t,i._init(),i}return s(n,[{key:"_init",value:function(){this.location=ah().getLocation(),this._history=ah().getHistory()}},{key:"getBaseHrefFromDOM",value:function(){return ah().getBaseHref(this._doc)}},{key:"onPopState",value:function(t){ah().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}},{key:"onHashChange",value:function(t){ah().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}},{key:"pushState",value:function(t,e,n){dh()?this._history.pushState(t,e,n):this.location.hash=n}},{key:"replaceState",value:function(t,e,n){dh()?this._history.replaceState(t,e,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"getState",value:function(){return this._history.state}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(t){this.location.pathname=t}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}}]),n}(lh);return t.\u0275fac=function(e){return new(e||t)(Vi(sh))},t.\u0275prov=Rt({factory:fh,token:t,providedIn:"platform"}),t}();function dh(){return!!window.history.pushState}function fh(){return new hh(Vi(sh))}function ph(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 mh(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 vh(t){return t&&"?"!==t[0]?"?"+t:t}var gh=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Rt({factory:yh,token:t,providedIn:"root"}),t}();function yh(t){var e=Vi(sh).location;return new bh(Vi(lh),e&&e.origin||"")}var _h=new bi("appBaseHref"),bh=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i){var r;if(a(this,n),(r=e.call(this))._platformLocation=t,null==i&&(i=r._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=i,r}return s(n,[{key:"onPopState",value:function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(t){return ph(this._baseHref,t)}},{key:"path",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this._platformLocation.pathname+vh(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?"".concat(e).concat(n):e}},{key:"pushState",value:function(t,e,n,i){var r=this.prepareExternalUrl(n+vh(i));this._platformLocation.pushState(t,e,r)}},{key:"replaceState",value:function(t,e,n,i){var r=this.prepareExternalUrl(n+vh(i));this._platformLocation.replaceState(t,e,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(gh);return t.\u0275fac=function(e){return new(e||t)(Vi(lh),Vi(_h,8))},t.\u0275prov=Rt({token:t,factory:t.\u0275fac}),t}(),kh=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i){var r;return a(this,n),(r=e.call(this))._platformLocation=t,r._baseHref="",null!=i&&(r._baseHref=i),r}return s(n,[{key:"onPopState",value:function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}},{key:"prepareExternalUrl",value:function(t){var e=ph(this._baseHref,t);return e.length>0?"#"+e:e}},{key:"pushState",value:function(t,e,n,i){var r=this.prepareExternalUrl(n+vh(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(t,e,r)}},{key:"replaceState",value:function(t,e,n,i){var r=this.prepareExternalUrl(n+vh(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(gh);return t.\u0275fac=function(e){return new(e||t)(Vi(lh),Vi(_h,8))},t.\u0275prov=Rt({token:t,factory:t.\u0275fac}),t}(),wh=function(){var t=function(){function t(e,n){var i=this;a(this,t),this._subject=new Vu,this._urlChangeListeners=[],this._platformStrategy=e;var r=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=mh(Sh(r)),this._platformStrategy.onPopState(function(t){i._subject.emit({url:i.path(!0),pop:!0,state:t.state,type:t.type})})}return s(t,[{key:"path",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(t))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(t+vh(e))}},{key:"normalize",value:function(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,Sh(e)))}},{key:"prepareExternalUrl",value:function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}},{key:"go",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+vh(e)),n)}},{key:"replaceState",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+vh(e)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"onUrlChange",value:function(t){var e=this;this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(t){e._notifyUrlChangeListeners(t.url,t.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(n){return n(t,e)})}},{key:"subscribe",value:function(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Vi(gh),Vi(lh))},t.normalizeQueryParams=vh,t.joinWithSlash=ph,t.stripTrailingSlash=mh,t.\u0275prov=Rt({factory:Ch,token:t,providedIn:"root"}),t}();function Ch(){return new wh(Vi(gh),Vi(lh))}function Sh(t){return t.replace(/\/index.html$/,"")}var xh=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}({}),Eh=function t(){a(this,t)},Ah=function(){var t=function(t){u(n,t);var e=p(n);function n(t){var i;return a(this,n),(i=e.call(this)).locale=t,i}return s(n,[{key:"getPluralCategory",value:function(t,e){switch(function(t){return function(t){var e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t),n=ll(e);if(n)return n;var i=e.split("-")[0];if(n=ll(i))return n;if("en"===i)return ol;throw new Error('Missing locale data for the locale "'.concat(t,'".'))}(t)[ul.PluralCase]}(e||this.locale)(t)){case xh.Zero:return"zero";case xh.One:return"one";case xh.Two:return"two";case xh.Few:return"few";case xh.Many:return"many";default:return"other"}}}]),n}(Eh);return t.\u0275fac=function(e){return new(e||t)(Vi(fc))},t.\u0275prov=Rt({token:t,factory:t.\u0275fac}),t}();function Dh(t,e){e=encodeURIComponent(e);var n,i=g(t.split(";"));try{for(i.s();!(n=i.n()).done;){var r=n.value,a=r.indexOf("="),o=y(-1==a?[r,""]:[r.slice(0,a),r.slice(a+1)],2),s=o[1];if(o[0].trim()===e)return decodeURIComponent(s)}}catch(l){i.e(l)}finally{i.f()}return null}var Ih=function(){var t=function(){function t(e,n,i,r){a(this,t),this._iterableDiffers=e,this._keyValueDiffers=n,this._ngEl=i,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return s(t,[{key:"ngDoCheck",value: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)}}},{key:"_applyKeyValueChanges",value: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)})}},{key:"_applyIterableChanges",value: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 ".concat(wt(t.item)));e._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return e._toggleClass(t.item,!1)})}},{key:"_applyClasses",value: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])}))}},{key:"_removeClasses",value: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)}))}},{key:"_toggleClass",value: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)})}},{key:"klass",set:function(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"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&&(ts(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(Gl),us(Zl),us(Dl),us(Tl))},t.\u0275dir=ve({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t}(),Oh=function(){function t(e,n,i,r){a(this,t),this.$implicit=e,this.ngForOf=n,this.index=i,this.count=r}return s(t,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),t}(),Th=function(){var t=function(){function t(e,n,i){a(this,t),this._viewContainer=e,this._template=n,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return s(t,[{key:"ngDoCheck",value: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 '".concat(t,"' of type '").concat((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)}}},{key:"_applyChanges",value:function(t){var e=this,n=[];t.forEachOperation(function(t,i,r){if(null==t.previousIndex){var a=e._viewContainer.createEmbeddedView(e._template,new Oh(null,e._ngForOf,-1,-1),null===r?void 0:r),o=new Rh(t,a);n.push(o)}else if(null==r)e._viewContainer.remove(null===i?void 0:i);else if(null!==i){var s=e._viewContainer.get(i);e._viewContainer.move(s,r);var l=new Rh(t,s);n.push(l)}});for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:Ht.Default,e=eu(!0);if(null!=e||t&Ht.Optional)return e;Tt("ChangeDetectorRef")}())},t.\u0275pipe=ge({name:"async",type:t,pure:!1}),t}();function Wh(t,e){return{key:t,value:e}}var Yh=function(){var t=function(){function t(e){a(this,t),this.differs=e,this.keyValues=[]}return s(t,[{key:"transform",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Gh;if(!t||!(t instanceof Map)&&"object"!=typeof t)return null;this.differ||(this.differ=this.differs.find(t).create());var i=this.differ.diff(t);return i&&(this.keyValues=[],i.forEachItem(function(t){e.keyValues.push(Wh(t.key,t.currentValue))}),this.keyValues.sort(n)),this.keyValues}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(Zl))},t.\u0275pipe=ge({name:"keyvalue",type:t,pure:!1}),t}();function Gh(t,e){var n=t.key,i=e.key;if(n===i)return 0;if(void 0===n)return 1;if(void 0===i)return-1;if(null===n)return 1;if(null===i)return-1;if("string"==typeof n&&"string"==typeof i)return n1&&void 0!==arguments[1])||arguments[1],i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},Jt.getAllAngularTestabilities=function(){return t.getAllTestabilities()},Jt.getAllAngularRootElements=function(){return t.getAllRootElements()},Jt.frameworkStabilizers||(Jt.frameworkStabilizers=[]),Jt.frameworkStabilizers.push(function(t){var e=Jt.getAllAngularTestabilities(),n=e.length,i=!1,r=function(e){i=i||e,0==--n&&t(i)};e.forEach(function(t){t.whenStable(r)})})}},{key:"findTestabilityInTree",value:function(t,e,n){if(null==e)return null;var i=t.getTestability(e);return null!=i?i:n?ah().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}],[{key:"init",value:function(){var e;e=new t,Fc=e}}]),t}(),rd=new bi("EventManagerPlugins"),ad=function(){var t=function(){function t(e,n){var i=this;a(this,t),this._zone=n,this._eventNameToPlugin=new Map,e.forEach(function(t){return t.manager=i}),this._plugins=e.slice().reverse()}return s(t,[{key:"addEventListener",value:function(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}},{key:"addGlobalEventListener",value:function(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var n=this._plugins,i=0;i-1&&(e.splice(n,1),a+=t+".")}),a+=r,0!=e.length||0===r.length)return null;var o={};return o.domEventName=i,o.fullKey=a,o}},{key:"getEventFullKey",value: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&&Cd.hasOwnProperty(e)&&(e=Cd[e]))}return wd[e]||e}(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),kd.forEach(function(i){i!=n&&(0,Sd[i])(t)&&(e+=i+".")}),e+=n}},{key:"eventCallback",value:function(t,e,i){return function(r){n.getEventFullKey(r)===t&&i.runGuarded(function(){return e(r)})}}},{key:"_normalizeKey",value:function(t){switch(t){case"esc":return"escape";default:return t}}}]),n}(od);return t.\u0275fac=function(e){return new(e||t)(Vi(sh))},t.\u0275prov=Rt({token:t,factory:t.\u0275fac}),t}(),Ed=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Rt({factory:function(){return Vi(Ad)},token:t,providedIn:"root"}),t}(),Ad=function(){var t=function(t){u(n,t);var e=p(n);function n(t){var i;return a(this,n),(i=e.call(this))._doc=t,i}return s(n,[{key:"sanitize",value:function(t,e){if(null==e)return null;switch(t){case Dr.NONE:return e;case Dr.HTML:return ir(e,"HTML")?nr(e):Er(this._doc,String(e)).toString();case Dr.STYLE:return ir(e,"Style")?nr(e):e;case Dr.SCRIPT:if(ir(e,"Script"))return nr(e);throw new Error("unsafe value used in a script context");case Dr.URL:return rr(e),ir(e,"URL")?nr(e):ur(String(e));case Dr.RESOURCE_URL:if(ir(e,"ResourceURL"))return nr(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(t," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(t){return new Xi(t)}},{key:"bypassSecurityTrustStyle",value:function(t){return new Qi(t)}},{key:"bypassSecurityTrustScript",value:function(t){return new Ji(t)}},{key:"bypassSecurityTrustUrl",value:function(t){return new tr(t)}},{key:"bypassSecurityTrustResourceUrl",value:function(t){return new er(t)}}]),n}(Ed);return t.\u0275fac=function(e){return new(e||t)(Vi(sh))},t.\u0275prov=Rt({factory:function(){return t=Vi(Ao),new Ad(t.get(sh));var t},token:t,providedIn:"root"}),t}(),Dd=Uc(eh,"browser",[{provide:cc,useValue:"browser"},{provide:uc,useValue:function(){Jh.makeCurrent(),id.init()},multi:!0},{provide:sh,useFactory:function(){return function(t){Le=t}(document),document},deps:[]}]),Id=[[],{provide:Io,useValue:"root"},{provide:Fr,useFactory:function(){return new Fr},deps:[]},{provide:rd,useClass:bd,multi:!0,deps:[sh,xc,cc]},{provide:rd,useClass:xd,multi:!0,deps:[sh]},[],{provide:vd,useClass:vd,deps:[ad,ld,oc]},{provide:Ol,useExisting:vd},{provide:sd,useExisting:ld},{provide:ld,useClass:ld,deps:[sh]},{provide:Pc,useClass:Pc,deps:[xc]},{provide:ad,useClass:ad,deps:[rd,xc]},[]],Od=function(){var t=function(){function t(e){if(a(this,t),e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return s(t,null,[{key:"withServerTransition",value:function(e){return{ngModule:t,providers:[{provide:oc,useValue:e.appId},{provide:ed,useExisting:oc},nd]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Vi(t,12))},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({providers:Id,imports:[Kh,ih]}),t}();function Td(){for(var t=arguments.length,e=new Array(t),n=0;n0){var i=t.slice(0,e),r=i.toLowerCase(),a=t.slice(e+1).trim();n.maybeSetNormalizedName(i,r),n.headers.has(r)?n.headers.get(r).push(a):n.headers.set(r,[a])}})}:function(){n.headers=new Map,Object.keys(e).forEach(function(t){var i=e[t],r=t.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(n.headers.set(r,i),n.maybeSetNormalizedName(t,r))})}:this.headers=new Map}return s(t,[{key:"has",value:function(t){return this.init(),this.headers.has(t.toLowerCase())}},{key:"get",value:function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(t){return this.init(),this.headers.get(t.toLowerCase())||null}},{key:"append",value:function(t,e){return this.clone({name:t,value:e,op:"a"})}},{key:"set",value:function(t,e){return this.clone({name:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({name:t,value:e,op:"d"})}},{key:"maybeSetNormalizedName",value:function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}},{key:"init",value: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))}},{key:"copyFrom",value: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))})}},{key:"clone",value: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}},{key:"applyUpdate",value: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,b(n)),this.headers.set(e,i);break;case"d":var r=t.value;if(r){var a=this.headers.get(e);if(!a)return;0===(a=a.filter(function(t){return-1===r.indexOf(t)})).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}else this.headers.delete(e),this.normalizedNames.delete(e)}}},{key:"forEach",value: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}(),jd=function(){function t(){a(this,t)}return s(t,[{key:"encodeKey",value:function(t){return zd(t)}},{key:"encodeValue",value:function(t){return zd(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}]),t}();function Bd(t,e){var n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(function(t){var i=t.indexOf("="),r=y(-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],2),a=r[0],o=r[1],s=n.get(a)||[];s.push(o),n.set(a,s)}),n}function zd(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 Hd=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(a(this,t),this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new jd,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=Bd(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(function(t){var i=n.fromObject[t];e.map.set(t,Array.isArray(i)?i:[i])})):this.map=null}return s(t,[{key:"has",value:function(t){return this.init(),this.map.has(t)}},{key:"get",value:function(t){this.init();var e=this.map.get(t);return e?e[0]:null}},{key:"getAll",value:function(t){return this.init(),this.map.get(t)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(t,e){return this.clone({param:t,value:e,op:"a"})}},{key:"appendAll",value:function(t){var e=[];return Object.keys(t).forEach(function(n){var i=t[n];Array.isArray(i)?i.forEach(function(t){e.push({param:n,value:t,op:"a"})}):e.push({param:n,value:i,op:"a"})}),this.clone(e)}},{key:"set",value:function(t,e){return this.clone({param:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({param:t,value:e,op:"d"})}},{key:"toString",value: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("&")}},{key:"clone",value:function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(e),n}},{key:"init",value: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 Ud(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function qd(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Wd(t){return"undefined"!=typeof FormData&&t instanceof FormData}var Yd=function(){function t(e,n,i,r){var o;if(a(this,t),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.params&&(this.params=o.params)),this.headers||(this.headers=new Vd),this.params){var s=this.params.toString();if(0===s.length)this.urlWithParams=n;else{var l=n.indexOf("?");this.urlWithParams=n+(-1===l?"?":l0&&void 0!==arguments[0]?arguments[0]:{},n=e.method||this.method,i=e.url||this.url,r=e.responseType||this.responseType,a=void 0!==e.body?e.body:this.body,o=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,s=void 0!==e.reportProgress?e.reportProgress:this.reportProgress,l=e.headers||this.headers,u=e.params||this.params;return void 0!==e.setHeaders&&(l=Object.keys(e.setHeaders).reduce(function(t,n){return t.set(n,e.setHeaders[n])},l)),e.setParams&&(u=Object.keys(e.setParams).reduce(function(t,n){return t.set(n,e.setParams[n])},u)),new t(n,i,a,{params:u,headers:l,reportProgress:s,responseType:r,withCredentials:o})}}]),t}(),Gd=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({}),Kd=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";a(this,t),this.headers=e.headers||new Vd,this.status=void 0!==e.status?e.status:n,this.statusText=e.statusText||i,this.url=e.url||null,this.ok=this.status>=200&&this.status<300},Zd=function(t){u(n,t);var e=p(n);function n(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return a(this,n),(t=e.call(this,i)).type=Gd.ResponseHeader,t}return s(n,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}]),n}(Kd),$d=function(t){u(n,t);var e=p(n);function n(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return a(this,n),(t=e.call(this,i)).type=Gd.Response,t.body=void 0!==i.body?i.body:null,t}return s(n,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}]),n}(Kd),Xd=function(t){u(n,t);var e=p(n);function n(t){var i;return a(this,n),(i=e.call(this,t,0,"Unknown Error")).name="HttpErrorResponse",i.ok=!1,i.message=i.status>=200&&i.status<300?"Http failure during parsing for ".concat(t.url||"(unknown url)"):"Http failure response for ".concat(t.url||"(unknown url)",": ").concat(t.status," ").concat(t.statusText),i.error=t.error||null,i}return n}(Kd);function Qd(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var Jd=function(){var t=function(){function t(e){a(this,t),this.handler=e}return s(t,[{key:"request",value:function(t,e){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t instanceof Yd)n=t;else{var a=void 0;a=r.headers instanceof Vd?r.headers:new Vd(r.headers);var o=void 0;r.params&&(o=r.params instanceof Hd?r.params:new Hd({fromObject:r.params})),n=new Yd(t,e,void 0!==r.body?r.body:null,{headers:a,params:o,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}var s=Td(n).pipe(Rd(function(t){return i.handler.handle(t)}));if(t instanceof Yd||"events"===r.observe)return s;var l=s.pipe(Pd(function(t){return t instanceof $d}));switch(r.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return l.pipe(G(function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return l.pipe(G(function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return l.pipe(G(function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return l.pipe(G(function(t){return t.body}))}case"response":return l;default:throw new Error("Unreachable: unhandled observe type ".concat(r.observe,"}"))}}},{key:"delete",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",t,e)}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",t,e)}},{key:"head",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",t,e)}},{key:"jsonp",value:function(t,e){return this.request("JSONP",t,{params:(new Hd).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",t,e)}},{key:"patch",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",t,Qd(n,e))}},{key:"post",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",t,Qd(n,e))}},{key:"put",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",t,Qd(n,e))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Vi(Ld))},t.\u0275prov=Rt({token:t,factory:t.\u0275fac}),t}(),tf=function(){function t(e,n){a(this,t),this.next=e,this.interceptor=n}return s(t,[{key:"handle",value:function(t){return this.interceptor.intercept(t,this.next)}}]),t}(),ef=new bi("HTTP_INTERCEPTORS"),nf=function(){var t=function(){function t(){a(this,t)}return s(t,[{key:"intercept",value:function(t,e){return e.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Rt({token:t,factory:t.\u0275fac}),t}(),rf=/^\)\]\}',?\n/,af=function t(){a(this,t)},of=function(){var t=function(){function t(){a(this,t)}return s(t,[{key:"build",value:function(){return new XMLHttpRequest}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Rt({token:t,factory:t.\u0275fac}),t}(),sf=function(){var t=function(){function t(e){a(this,t),this.xhrFactory=e}return s(t,[{key:"handle",value:function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new j(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 a=t.responseType.toLowerCase();i.responseType="json"!==a?a:"text"}var o=t.serializeBody(),s=null,l=function(){if(null!==s)return s;var e=1223===i.status?204:i.status,n=i.statusText||"OK",r=new Vd(i.getAllResponseHeaders()),a=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 Zd({headers:r,status:e,statusText:n,url:a})},u=function(){var e=l(),r=e.headers,a=e.status,o=e.statusText,s=e.url,u=null;204!==a&&(u=void 0===i.response?i.responseText:i.response),0===a&&(a=u?200:0);var c=a>=200&&a<300;if("json"===t.responseType&&"string"==typeof u){var h=u;u=u.replace(rf,"");try{u=""!==u?JSON.parse(u):null}catch(d){u=h,c&&(c=!1,u={error:d,text:u})}}c?(n.next(new $d({body:u,headers:r,status:a,statusText:o,url:s||void 0})),n.complete()):n.error(new Xd({error:u,headers:r,status:a,statusText:o,url:s||void 0}))},c=function(t){var e=l(),r=new Xd({error:t,status:i.status||0,statusText:i.statusText||"Unknown Error",url:e.url||void 0});n.error(r)},h=!1,d=function(e){h||(n.next(l()),h=!0);var r={type:Gd.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(r.total=e.total),"text"===t.responseType&&i.responseText&&(r.partialText=i.responseText),n.next(r)},f=function(t){var e={type:Gd.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return i.addEventListener("load",u),i.addEventListener("error",c),i.addEventListener("timeout",c),i.addEventListener("abort",c),t.reportProgress&&(i.addEventListener("progress",d),null!==o&&i.upload&&i.upload.addEventListener("progress",f)),i.send(o),n.next({type:Gd.Sent}),function(){i.removeEventListener("error",c),i.removeEventListener("abort",c),i.removeEventListener("load",u),i.removeEventListener("timeout",c),t.reportProgress&&(i.removeEventListener("progress",d),null!==o&&i.upload&&i.upload.removeEventListener("progress",f)),i.readyState!==i.DONE&&i.abort()}})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Vi(af))},t.\u0275prov=Rt({token:t,factory:t.\u0275fac}),t}(),lf=new bi("XSRF_COOKIE_NAME"),uf=new bi("XSRF_HEADER_NAME"),cf=function t(){a(this,t)},hf=function(){var t=function(){function t(e,n,i){a(this,t),this.doc=e,this.platform=n,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return s(t,[{key:"getToken",value:function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Dh(t,this.cookieName),this.lastCookieString=t),this.lastToken}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Vi(sh),Vi(cc),Vi(lf))},t.\u0275prov=Rt({token:t,factory:t.\u0275fac}),t}(),df=function(){var t=function(){function t(e,n){a(this,t),this.tokenService=e,this.headerName=n}return s(t,[{key:"intercept",value: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}();return t.\u0275fac=function(e){return new(e||t)(Vi(cf),Vi(uf))},t.\u0275prov=Rt({token:t,factory:t.\u0275fac}),t}(),ff=function(){var t=function(){function t(e,n){a(this,t),this.backend=e,this.injector=n,this.chain=null}return s(t,[{key:"handle",value:function(t){if(null===this.chain){var e=this.injector.get(ef,[]);this.chain=e.reduceRight(function(t,e){return new tf(t,e)},this.backend)}return this.chain.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Vi(Nd),Vi(qo))},t.\u0275prov=Rt({token:t,factory:t.\u0275fac}),t}(),pf=function(){var t=function(){function t(){a(this,t)}return s(t,null,[{key:"disable",value:function(){return{ngModule:t,providers:[{provide:df,useClass:nf}]}}},{key:"withOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[e.cookieName?{provide:lf,useValue:e.cookieName}:[],e.headerName?{provide:uf,useValue:e.headerName}:[]]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({providers:[df,{provide:ef,useExisting:df,multi:!0},{provide:cf,useClass:hf},{provide:lf,useValue:"XSRF-TOKEN"},{provide:uf,useValue:"X-XSRF-TOKEN"}]}),t}(),mf=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({providers:[Jd,{provide:Ld,useClass:ff},sf,{provide:Nd,useExisting:sf},of,{provide:af,useExisting:of}],imports:[[pf.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t}(),vf=function(t){u(n,t);var e=p(n);function n(t){var i;return a(this,n),(i=e.call(this))._value=t,i}return s(n,[{key:"_subscribe",value:function(t){var e=r(i(n.prototype),"_subscribe",this).call(this,t);return e&&!e.closed&&t.next(this._value),e}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new z;return this._value}},{key:"next",value:function(t){r(i(n.prototype),"next",this).call(this,this._value=t)}},{key:"value",get:function(){return this.getValue()}}]),n}(q),gf=function(t){u(n,t);var e=p(n);function n(){return a(this,n),e.apply(this,arguments)}return s(n,[{key:"notifyNext",value:function(t,e,n,i,r){this.destination.next(e)}},{key:"notifyError",value:function(t,e){this.destination.error(t)}},{key:"notifyComplete",value:function(t){this.destination.complete()}}]),n}(M),yf=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return a(this,n),(o=e.call(this)).parent=t,o.outerValue=i,o.outerIndex=r,o.index=0,o}return s(n,[{key:"_next",value:function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}},{key:"_error",value:function(t){this.parent.notifyError(t,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),n}(M);function _f(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new yf(t,n,i);if(!r.closed)return e instanceof j?e.subscribe(r):et(e)(r)}var bf={};function kf(){for(var t=arguments.length,e=new Array(t),n=0;n=2&&(n=!0),function(i){return i.lift(new jf(t,e,n))}}var jf=function(){function t(e,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];a(this,t),this.accumulator=e,this.seed=n,this.hasSeed=i}return s(t,[{key:"call",value:function(t,e){return e.subscribe(new Bf(t,this.accumulator,this.seed,this.hasSeed))}}]),t}(),Bf=function(t){u(n,t);var e=p(n);function n(t,i,r,o){var s;return a(this,n),(s=e.call(this,t)).accumulator=i,s._seed=r,s.hasSeed=o,s.index=0,s}return s(n,[{key:"_next",value:function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}},{key:"_tryNext",value: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)}},{key:"seed",get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t}}]),n}(M);function zf(t){return function(e){var n=new Hf(t),i=e.lift(n);return n.caught=i}}var Hf=function(){function t(e){a(this,t),this.selector=e}return s(t,[{key:"call",value:function(t,e){return e.subscribe(new Uf(t,this.selector,this.caught))}}]),t}(),Uf=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return a(this,n),(o=e.call(this,t)).selector=i,o.caught=r,o}return s(n,[{key:"error",value:function(t){if(!this.isStopped){var e;try{e=this.selector(t,this.caught)}catch(s){return void r(i(n.prototype),"error",this).call(this,s)}this._unsubscribeAndRecycle();var a=new rt(this);this.add(a);var o=ot(e,a);o!==a&&this.add(o)}}}]),n}(at);function qf(t){return function(e){return 0===t?Df():e.lift(new Wf(t))}}var Wf=function(){function t(e){if(a(this,t),this.total=e,this.total<0)throw new Pf}return s(t,[{key:"call",value:function(t,e){return e.subscribe(new Yf(t,this.total))}}]),t}(),Yf=function(t){u(n,t);var e=p(n);function n(t,i){var r;return a(this,n),(r=e.call(this,t)).total=i,r.ring=new Array,r.count=0,r}return s(n,[{key:"_next",value:function(t){var e=this.ring,n=this.total,i=this.count++;e.length0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,r=0;r0&&void 0!==arguments[0]?arguments[0]:$f;return function(e){return e.lift(new Kf(t))}}var Kf=function(){function t(e){a(this,t),this.errorFactory=e}return s(t,[{key:"call",value:function(t,e){return e.subscribe(new Zf(t,this.errorFactory))}}]),t}(),Zf=function(t){u(n,t);var e=p(n);function n(t,i){var r;return a(this,n),(r=e.call(this,t)).errorFactory=i,r.hasValue=!1,r}return s(n,[{key:"_next",value:function(t){this.hasValue=!0,this.destination.next(t)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}]),n}(M);function $f(){return new Sf}function Xf(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(e){return e.lift(new Qf(t))}}var Qf=function(){function t(e){a(this,t),this.defaultValue=e}return s(t,[{key:"call",value:function(t,e){return e.subscribe(new Jf(t,this.defaultValue))}}]),t}(),Jf=function(t){u(n,t);var e=p(n);function n(t,i){var r;return a(this,n),(r=e.call(this,t)).defaultValue=i,r.isEmpty=!0,r}return s(n,[{key:"_next",value:function(t){this.isEmpty=!1,this.destination.next(t)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(M);function tp(t,e){var n=arguments.length>=2;return function(i){return i.pipe(t?Pd(function(e,n){return t(e,n,i)}):N,Mf(1),n?Xf(e):Gf(function(){return new Sf}))}}function ep(){}function np(t,e,n){return function(i){return i.lift(new ip(t,e,n))}}var ip=function(){function t(e,n,i){a(this,t),this.nextOrObserver=e,this.error=n,this.complete=i}return s(t,[{key:"call",value:function(t,e){return e.subscribe(new rp(t,this.nextOrObserver,this.error,this.complete))}}]),t}(),rp=function(t){u(n,t);var e=p(n);function n(t,i,r,o){var s;return a(this,n),(s=e.call(this,t))._tapNext=ep,s._tapError=ep,s._tapComplete=ep,s._tapError=r||ep,s._tapComplete=o||ep,x(i)?(s._context=d(s),s._tapNext=i):i&&(s._context=i,s._tapNext=i.next||ep,s._tapError=i.error||ep,s._tapComplete=i.complete||ep),s}return s(n,[{key:"_next",value:function(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}},{key:"_error",value:function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}]),n}(M),ap=function(){function t(e){a(this,t),this.callback=e}return s(t,[{key:"call",value:function(t,e){return e.subscribe(new op(t,this.callback))}}]),t}(),op=function(t){u(n,t);var e=p(n);function n(t,i){var r;return a(this,n),(r=e.call(this,t)).add(new A(i)),r}return n}(M),sp=function t(e,n){a(this,t),this.id=e,this.url=n},lp=function(t){u(n,t);var e=p(n);function n(t,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return a(this,n),(r=e.call(this,t,i)).navigationTrigger=o,r.restoredState=s,r}return s(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(sp),up=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return a(this,n),(o=e.call(this,t,i)).urlAfterRedirects=r,o}return s(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(sp),cp=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return a(this,n),(o=e.call(this,t,i)).reason=r,o}return s(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(sp),hp=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return a(this,n),(o=e.call(this,t,i)).error=r,o}return s(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(sp),dp=function(t){u(n,t);var e=p(n);function n(t,i,r,o){var s;return a(this,n),(s=e.call(this,t,i)).urlAfterRedirects=r,s.state=o,s}return s(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(sp),fp=function(t){u(n,t);var e=p(n);function n(t,i,r,o){var s;return a(this,n),(s=e.call(this,t,i)).urlAfterRedirects=r,s.state=o,s}return s(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(sp),pp=function(t){u(n,t);var e=p(n);function n(t,i,r,o,s){var l;return a(this,n),(l=e.call(this,t,i)).urlAfterRedirects=r,l.state=o,l.shouldActivate=s,l}return s(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}(sp),mp=function(t){u(n,t);var e=p(n);function n(t,i,r,o){var s;return a(this,n),(s=e.call(this,t,i)).urlAfterRedirects=r,s.state=o,s}return s(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(sp),vp=function(t){u(n,t);var e=p(n);function n(t,i,r,o){var s;return a(this,n),(s=e.call(this,t,i)).urlAfterRedirects=r,s.state=o,s}return s(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(sp),gp=function(){function t(e){a(this,t),this.route=e}return s(t,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),t}(),yp=function(){function t(e){a(this,t),this.route=e}return s(t,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),t}(),_p=function(){function t(e){a(this,t),this.snapshot=e}return s(t,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),bp=function(){function t(e){a(this,t),this.snapshot=e}return s(t,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),kp=function(){function t(e){a(this,t),this.snapshot=e}return s(t,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),wp=function(){function t(e){a(this,t),this.snapshot=e}return s(t,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),Cp=function(){function t(e,n,i){a(this,t),this.routerEvent=e,this.position=n,this.anchor=i}return s(t,[{key:"toString",value:function(){var t=this.position?"".concat(this.position[0],", ").concat(this.position[1]):null;return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(t,"')")}}]),t}(),Sp="primary",xp=function(){function t(e){a(this,t),this.params=e||{}}return s(t,[{key:"has",value:function(t){return Object.prototype.hasOwnProperty.call(this.params,t)}},{key:"get",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null}},{key:"getAll",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),t}();function Ep(t){return new xp(t)}function Ap(t){var e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function Dp(t,e,n){var i=n.path.split("/");if(i.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||i.length0?t[t.length-1]:null}function Pp(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Mp(t){return ks(t)?t:_s(t)?it(Promise.resolve(t)):Td(t)}function Fp(t,e,n){return n?function(t,e){return Ip(t,e)}(t.queryParams,e.queryParams)&&Lp(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return Op(t[n],e[n])})}(t.queryParams,e.queryParams)&&Np(t.root,e.root)}function Lp(t,e){if(!Hp(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(var n in e.children){if(!t.children[n])return!1;if(!Lp(t.children[n],e.children[n]))return!1}return!0}function Np(t,e){return Vp(t,e,e.segments)}function Vp(t,e,n){if(t.segments.length>n.length)return!!Hp(t.segments.slice(0,n.length),n)&&!e.hasChildren();if(t.segments.length===n.length){if(!Hp(t.segments,n))return!1;for(var i in e.children){if(!t.children[i])return!1;if(!Np(t.children[i],e.children[i]))return!1}return!0}var r=n.slice(0,t.segments.length),a=n.slice(t.segments.length);return!!Hp(t.segments,r)&&!!t.children.primary&&Vp(t.children.primary,e,a)}var jp=function(){function t(e,n,i){a(this,t),this.root=e,this.queryParams=n,this.fragment=i}return s(t,[{key:"toString",value:function(){return Wp.serialize(this)}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Ep(this.queryParams)),this._queryParamMap}}]),t}(),Bp=function(){function t(e,n){var i=this;a(this,t),this.segments=e,this.children=n,this.parent=null,Pp(n,function(t,e){return t.parent=i})}return s(t,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"toString",value:function(){return Yp(this)}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}}]),t}(),zp=function(){function t(e,n){a(this,t),this.path=e,this.parameters=n}return s(t,[{key:"toString",value:function(){return Jp(this)}},{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=Ep(this.parameters)),this._parameterMap}}]),t}();function Hp(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}var Up=function t(){a(this,t)},qp=function(){function t(){a(this,t)}return s(t,[{key:"parse",value:function(t){var e=new rm(t);return new jp(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}},{key:"serialize",value:function(t){var e,n,i="/".concat(Gp(t.root,!0)),r=(e=t.queryParams,(n=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(e){return"".concat(Zp(t),"=").concat(Zp(e))}).join("&"):"".concat(Zp(t),"=").concat(Zp(n))})).length?"?".concat(n.join("&")):""),a="string"==typeof t.fragment?"#".concat(encodeURI(t.fragment)):"";return"".concat(i).concat(r).concat(a)}}]),t}(),Wp=new qp;function Yp(t){return t.segments.map(function(t){return Jp(t)}).join("/")}function Gp(t,e){if(!t.hasChildren())return Yp(t);if(e){var n=t.children.primary?Gp(t.children.primary,!1):"",i=[];return Pp(t.children,function(t,e){e!==Sp&&i.push("".concat(e,":").concat(Gp(t,!1)))}),i.length>0?"".concat(n,"(").concat(i.join("//"),")"):n}var r=function(t,e){var n=[];return Pp(t.children,function(t,i){i===Sp&&(n=n.concat(e(t,i)))}),Pp(t.children,function(t,i){i!==Sp&&(n=n.concat(e(t,i)))}),n}(t,function(e,n){return n===Sp?[Gp(t.children.primary,!1)]:["".concat(n,":").concat(Gp(e,!1))]});return 1===Object.keys(t.children).length&&null!=t.children.primary?"".concat(Yp(t),"/").concat(r[0]):"".concat(Yp(t),"/(").concat(r.join("//"),")")}function Kp(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Zp(t){return Kp(t).replace(/%3B/gi,";")}function $p(t){return Kp(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Xp(t){return decodeURIComponent(t)}function Qp(t){return Xp(t.replace(/\+/g,"%20"))}function Jp(t){return"".concat($p(t.path)).concat((e=t.parameters,Object.keys(e).map(function(t){return";".concat($p(t),"=").concat($p(e[t]))}).join("")));var e}var tm=/^[^\/()?;=#]+/;function em(t){var e=t.match(tm);return e?e[0]:""}var nm=/^[^=?&#]+/,im=/^[^?&#]+/,rm=function(){function t(e){a(this,t),this.url=e,this.remaining=e}return s(t,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Bp([],{}):new Bp([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value: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 Bp(t,e)),n}},{key:"parseSegment",value:function(){var t=em(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(t),new zp(Xp(t),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t}},{key:"parseParam",value:function(t){var e=em(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var i=em(this.remaining);i&&this.capture(n=i)}t[Xp(e)]=Xp(n)}}},{key:"parseQueryParam",value:function(t){var e,n=(e=this.remaining.match(nm))?e[0]:"";if(n){this.capture(n);var i="";if(this.consumeOptional("=")){var r=function(t){var e=t.match(im);return e?e[0]:""}(this.remaining);r&&this.capture(i=r)}var a=Qp(n),o=Qp(i);if(t.hasOwnProperty(a)){var s=t[a];Array.isArray(s)||(t[a]=s=[s]),s.push(o)}else t[a]=o}}},{key:"parseParens",value:function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=em(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '".concat(this.url,"'"));var r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):t&&(r=Sp);var a=this.parseChildren();e[r]=1===Object.keys(a).length?a.primary:new Bp([],a),this.consumeOptional("//")}return e}},{key:"peekStartsWith",value:function(t){return this.remaining.startsWith(t)}},{key:"consumeOptional",value:function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}},{key:"capture",value:function(t){if(!this.consumeOptional(t))throw new Error('Expected "'.concat(t,'".'))}}]),t}(),am=function(){function t(e){a(this,t),this._root=e}return s(t,[{key:"parent",value:function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}},{key:"children",value:function(t){var e=om(t,this._root);return e?e.children.map(function(t){return t.value}):[]}},{key:"firstChild",value:function(t){var e=om(t,this._root);return e&&e.children.length>0?e.children[0].value:null}},{key:"siblings",value:function(t){var e=sm(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(t){return t.value}).filter(function(e){return e!==t})}},{key:"pathFromRoot",value:function(t){return sm(t,this._root).map(function(t){return t.value})}},{key:"root",get:function(){return this._root.value}}]),t}();function om(t,e){if(t===e.value)return e;var n,i=g(e.children);try{for(i.s();!(n=i.n()).done;){var r=om(t,n.value);if(r)return r}}catch(a){i.e(a)}finally{i.f()}return null}function sm(t,e){if(t===e.value)return[e];var n,i=g(e.children);try{for(i.s();!(n=i.n()).done;){var r=sm(t,n.value);if(r.length)return r.unshift(e),r}}catch(a){i.e(a)}finally{i.f()}return[]}var lm=function(){function t(e,n){a(this,t),this.value=e,this.children=n}return s(t,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),t}();function um(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}var cm=function(t){u(n,t);var e=p(n);function n(t,i){var r;return a(this,n),(r=e.call(this,t)).snapshot=i,gm(d(r),t),r}return s(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(am);function hm(t,e){var n=function(t,e){var n=new mm([],{},{},"",{},Sp,e,null,t.root,-1,{});return new vm("",new lm(n,[]))}(t,e),i=new vf([new zp("",{})]),r=new vf({}),a=new vf({}),o=new vf({}),s=new vf(""),l=new dm(i,r,o,s,a,Sp,e,n.root);return l.snapshot=n.root,new cm(new lm(l,[]),n)}var dm=function(){function t(e,n,i,r,o,s,l,u){a(this,t),this.url=e,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=l,this._futureSnapshot=u}return s(t,[{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}},{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(G(function(t){return Ep(t)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(G(function(t){return Ep(t)}))),this._queryParamMap}}]),t}();function fm(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",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 pm(n.slice(i))}function pm(t){return t.reduce(function(t,e){return{params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}},{params:{},data:{},resolve:{}})}var mm=function(){function t(e,n,i,r,o,s,l,u,c,h,d){a(this,t),this.url=e,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=l,this.routeConfig=u,this._urlSegment=c,this._lastPathIndex=h,this._resolve=d}return s(t,[{key:"toString",value:function(){var t=this.url.map(function(t){return t.toString()}).join("/"),e=this.routeConfig?this.routeConfig.path:"";return"Route(url:'".concat(t,"', path:'").concat(e,"')")}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=Ep(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Ep(this.queryParams)),this._queryParamMap}}]),t}(),vm=function(t){u(n,t);var e=p(n);function n(t,i){var r;return a(this,n),(r=e.call(this,i)).url=t,gm(d(r),i),r}return s(n,[{key:"toString",value:function(){return ym(this._root)}}]),n}(am);function gm(t,e){e.value._routerState=t,e.children.forEach(function(e){return gm(t,e)})}function ym(t){var e=t.children.length>0?" { ".concat(t.children.map(ym).join(", ")," } "):"";return"".concat(t.value).concat(e)}function _m(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Ip(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Ip(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;nr;){if(a-=r,!(i=i.parent))throw new Error("Invalid number of '../'");r=i.segments.length}return new Im(i,!1,r-a)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(a,e,t),s=o.processChildren?Tm(o.segmentGroup,o.index,a.commands):Om(o.segmentGroup,o.index,a.commands);return Em(o.segmentGroup,s,e,i,r)}function Sm(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function xm(t){return"object"==typeof t&&null!=t&&t.outlets}function Em(t,e,n,i,r){var a={};return i&&Pp(i,function(t,e){a[e]=Array.isArray(t)?t.map(function(t){return"".concat(t)}):"".concat(t)}),new jp(n.root===t?e:Am(n.root,t,e),a,r)}function Am(t,e,n){var i={};return Pp(t.children,function(t,r){i[r]=t===e?n:Am(t,e,n)}),new Bp(t.segments,i)}var Dm=function(){function t(e,n,i){if(a(this,t),this.isAbsolute=e,this.numberOfDoubleDots=n,this.commands=i,e&&i.length>0&&Sm(i[0]))throw new Error("Root segment cannot have matrix parameters");var r=i.find(xm);if(r&&r!==Rp(i))throw new Error("{outlets:{}} has to be the last command")}return s(t,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),t}(),Im=function t(e,n,i){a(this,t),this.segmentGroup=e,this.processChildren=n,this.index=i};function Om(t,e,n){if(t||(t=new Bp([],{})),0===t.segments.length&&t.hasChildren())return Tm(t,e,n);var i=function(t,e,n){for(var i=0,r=e,a={match:!1,pathIndex:0,commandIndex:0};r=n.length)return a;var o=t.segments[r],s=n[i];if(xm(s))break;var l="".concat(s),u=i0&&void 0===l)break;if(l&&u&&"object"==typeof u&&void 0===u.outlets){if(!Fm(l,u,o))return a;i+=2}else{if(!Fm(l,{},o))return a;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,e,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex1&&void 0!==arguments[1]?arguments[1]:"",n=0;n0)?Object.assign({},$m):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var r=(e.matcher||Dp)(n,t,e);if(!r)return Object.assign({},$m);var a={};Pp(r.posParams,function(t,e){a[e]=t.path});var o=r.consumed.length>0?Object.assign(Object.assign({},a),r.consumed[r.consumed.length-1].parameters):a;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function Qm(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(n.length>0&&ev(t,n,i)){var a=new Bp(e,tv(t,e,i,new Bp(n,t.children)));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:[]}}if(0===n.length&&nv(t,n,i)){var o=new Bp(t.segments,Jm(t,e,n,i,t.children,r));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}var s=new Bp(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}function Jm(t,e,n,i,r,a){var o,s={},l=g(i);try{for(l.s();!(o=l.n()).done;){var u=o.value;if(iv(t,n,u)&&!r[Km(u)]){var c=new Bp([],{});c._sourceSegment=t,c._segmentIndexShift="legacy"===a?t.segments.length:e.length,s[Km(u)]=c}}}catch(h){l.e(h)}finally{l.f()}return Object.assign(Object.assign({},r),s)}function tv(t,e,n,i){var r={};r.primary=i,i._sourceSegment=t,i._segmentIndexShift=e.length;var a,o=g(n);try{for(o.s();!(a=o.n()).done;){var s=a.value;if(""===s.path&&Km(s)!==Sp){var l=new Bp([],{});l._sourceSegment=t,l._segmentIndexShift=e.length,r[Km(s)]=l}}}catch(u){o.e(u)}finally{o.f()}return r}function ev(t,e,n){return n.some(function(n){return iv(t,e,n)&&Km(n)!==Sp})}function nv(t,e,n){return n.some(function(n){return iv(t,e,n)})}function iv(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function rv(t,e,n,i){return!!(Km(t)===i||i!==Sp&&iv(e,n,t))&&("**"===t.path||Xm(e,t,n).matched)}function av(t,e,n){return 0===e.length&&!t.children[n]}var ov=function t(e){a(this,t),this.segmentGroup=e||null},sv=function t(e){a(this,t),this.urlTree=e};function lv(t){return new j(function(e){return e.error(new ov(t))})}function uv(t){return new j(function(e){return e.error(new sv(t))})}function cv(t){return new j(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(t,"'")))})}var hv=function(){function t(e,n,i,r,o){a(this,t),this.configLoader=n,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0,this.ngModule=e.get(cu)}return s(t,[{key:"apply",value:function(){var t=this,e=Qm(this.urlTree.root,[],[],this.config).segmentGroup,n=new Bp(e.segments,e.children);return this.expandSegmentGroup(this.ngModule,this.config,n,Sp).pipe(G(function(e){return t.createUrlTree(dv(e),t.urlTree.queryParams,t.urlTree.fragment)})).pipe(zf(function(e){if(e instanceof sv)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof ov)throw t.noMatchError(e);throw e}))}},{key:"match",value:function(t){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,Sp).pipe(G(function(n){return e.createUrlTree(dv(n),t.queryParams,t.fragment)})).pipe(zf(function(t){if(t instanceof ov)throw e.noMatchError(t);throw t}))}},{key:"noMatchError",value:function(t){return new Error("Cannot match any routes. URL Segment: '".concat(t.segmentGroup,"'"))}},{key:"createUrlTree",value:function(t,e,n){var i=t.segments.length>0?new Bp([],_({},Sp,t)):t;return new jp(i,e,n)}},{key:"expandSegmentGroup",value:function(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(G(function(t){return new Bp([],t)})):this.expandSegment(t,n,e,n.segments,i,!0)}},{key:"expandChildren",value:function(t,e,n){for(var i=this,r=[],a=0,o=Object.keys(n.children);a=2;return function(i){return i.pipe(t?Pd(function(e,n){return t(e,n,i)}):N,qf(1),n?Xf(e):Gf(function(){return new Sf}))}}())}},{key:"expandSegment",value:function(t,e,n,i,r,a){var o=this;return it(n).pipe(Rd(function(s){return o.expandSegmentAgainstRoute(t,e,n,s,i,r,a).pipe(zf(function(t){if(t instanceof ov)return Td(null);throw t}))}),tp(function(t){return!!t}),zf(function(t,n){if(t instanceof Sf||"EmptyError"===t.name){if(av(e,i,r))return Td(new Bp([],{}));throw new ov(e)}throw t}))}},{key:"expandSegmentAgainstRoute",value:function(t,e,n,i,r,a,o){return rv(i,e,r,a)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,r,a):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,r,a):lv(e):lv(e)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(t,e,n,i,r,a){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,a):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,r,a)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(t,e,n,i){var r=this,a=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?uv(a):this.lineralizeSegments(n,a).pipe(st(function(n){var a=new Bp(n,{});return r.expandSegment(t,a,e,n,i,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(t,e,n,i,r,a){var o=this,s=Xm(e,i,r),l=s.consumedSegments,u=s.lastChild,c=s.positionalParamSegments;if(!s.matched)return lv(e);var h=this.applyRedirectCommands(l,i.redirectTo,c);return i.redirectTo.startsWith("/")?uv(h):this.lineralizeSegments(i,h).pipe(st(function(i){return o.expandSegment(t,e,n,i.concat(r.slice(u)),a,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(t,e,n,i,r){var a=this;if("**"===n.path)return n.loadChildren?(n._loadedConfig?Td(n._loadedConfig):this.configLoader.load(t.injector,n)).pipe(G(function(t){return n._loadedConfig=t,new Bp(i,{})})):Td(new Bp(i,{}));var o=Xm(e,n,i),s=o.consumedSegments,l=o.lastChild;if(!o.matched)return lv(e);var u=i.slice(l);return this.getChildConfig(t,n,i).pipe(st(function(t){var i=t.module,o=t.routes,l=Qm(e,s,u,o),c=l.segmentGroup,h=l.slicedSegments,d=new Bp(c.segments,c.children);if(0===h.length&&d.hasChildren())return a.expandChildren(i,o,d).pipe(G(function(t){return new Bp(s,t)}));if(0===o.length&&0===h.length)return Td(new Bp(s,{}));var f=Km(n)===r;return a.expandSegment(i,d,o,h,f?Sp:r,!0).pipe(G(function(t){return new Bp(s.concat(t.segments),t.children)}))}))}},{key:"getChildConfig",value:function(t,e,n){var i=this;return e.children?Td(new Vm(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Td(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(st(function(n){return n?i.configLoader.load(t.injector,e).pipe(G(function(t){return e._loadedConfig=t,t})):function(t){return new j(function(e){return e.error(Ap("Cannot load children because the guard of the route \"path: '".concat(t.path,"'\" returned false")))})}(e)})):Td(new Vm([],t))}},{key:"runCanLoadGuards",value:function(t,e,n){var i=this,r=e.canLoad;return r&&0!==r.length?Td(r.map(function(i){var r,a=t.get(i);if(function(t){return t&&jm(t.canLoad)}(a))r=a.canLoad(e,n);else{if(!jm(a))throw new Error("Invalid CanLoad guard");r=a(e,n)}return Mp(r)})).pipe(Hm(),np(function(t){if(Bm(t)){var e=Ap('Redirecting to "'.concat(i.urlSerializer.serialize(t),'"'));throw e.url=t,e}}),G(function(t){return!0===t})):Td(!0)}},{key:"lineralizeSegments",value:function(t,e){for(var n=[],i=e.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Td(n);if(i.numberOfChildren>1||!i.children.primary)return cv(t.redirectTo);i=i.children.primary}}},{key:"applyRedirectCommands",value:function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}},{key:"applyRedirectCreatreUrlTree",value:function(t,e,n,i){var r=this.createSegmentGroup(t,e.root,n,i);return new jp(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}},{key:"createQueryParams",value:function(t,e){var n={};return Pp(t,function(t,i){if("string"==typeof t&&t.startsWith(":")){var r=t.substring(1);n[i]=e[r]}else n[i]=t}),n}},{key:"createSegmentGroup",value:function(t,e,n,i){var r=this,a=this.createSegments(t,e.segments,n,i),o={};return Pp(e.children,function(e,a){o[a]=r.createSegmentGroup(t,e,n,i)}),new Bp(a,o)}},{key:"createSegments",value: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)})}},{key:"findPosParam",value:function(t,e,n){var i=n[e.path.substring(1)];if(!i)throw new Error("Cannot redirect to '".concat(t,"'. Cannot find '").concat(e.path,"'."));return i}},{key:"findOrReturn",value:function(t,e){var n,i=0,r=g(e);try{for(r.s();!(n=r.n()).done;){var a=n.value;if(a.path===t.path)return e.splice(i),a;i++}}catch(o){r.e(o)}finally{r.f()}return t}}]),t}();function dv(t){for(var e={},n=0,i=Object.keys(t.children);n0||a.hasChildren())&&(e[r]=a)}return function(t){if(1===t.numberOfChildren&&t.children.primary){var e=t.children.primary;return new Bp(t.segments.concat(e.segments),e.children)}return t}(new Bp(t.segments,e))}var fv=function t(e){a(this,t),this.path=e,this.route=this.path[this.path.length-1]},pv=function t(e,n){a(this,t),this.component=e,this.route=n};function mv(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 vv(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=um(e);return t.children.forEach(function(t){gv(t,a[t.value.outlet],n,i.concat([t.value]),r),delete a[t.value.outlet]}),Pp(a,function(t,e){return _v(t,n.getContext(e),r)}),r}function gv(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=t.value,o=e?e.value:null,s=n?n.getContext(t.value.outlet):null;if(o&&a.routeConfig===o.routeConfig){var l=yv(o,a,a.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new fv(i)):(a.data=o.data,a._resolvedData=o._resolvedData),vv(t,e,a.component?s?s.children:null:n,i,r),l&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new pv(s.outlet.component,o))}else o&&_v(e,s,r),r.canActivateChecks.push(new fv(i)),vv(t,null,a.component?s?s.children:null:n,i,r);return r}function yv(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Hp(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Hp(t.url,e.url)||!Ip(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!bm(t,e)||!Ip(t.queryParams,e.queryParams);case"paramsChange":default:return!bm(t,e)}}function _v(t,e,n){var i=um(t),r=t.value;Pp(i,function(t,i){_v(t,r.component?e?e.children.getContext(i):null:e,n)}),n.canDeactivateChecks.push(new pv(r.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,r))}var bv=function t(){a(this,t)};function kv(t){return new j(function(e){return e.error(t)})}var wv=function(){function t(e,n,i,r,o,s){a(this,t),this.rootComponentType=e,this.config=n,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=s}return s(t,[{key:"recognize",value:function(){var t=Qm(this.urlTree.root,[],[],this.config.filter(function(t){return void 0===t.redirectTo}),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,Sp);if(null===e)return null;var n=new mm([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Sp,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new lm(n,e),r=new vm(this.url,i);return this.inheritParamsAndData(r._root),r}},{key:"inheritParamsAndData",value:function(t){var e=this,n=t.value,i=fm(n,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),t.children.forEach(function(t){return e.inheritParamsAndData(t)})}},{key:"processSegmentGroup",value:function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}},{key:"processChildren",value:function(t,e){for(var n=[],i=0,r=Object.keys(e.children);i0?Rp(n).parameters:{};r=new mm(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,xv(t),Km(t),t.component,t,Cv(e),Sv(e)+n.length,Ev(t))}else{var l=Xm(e,t,n);if(!l.matched)return null;a=l.consumedSegments,o=n.slice(l.lastChild),r=new mm(a,l.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,xv(t),Km(t),t.component,t,Cv(e),Sv(e)+a.length,Ev(t))}var u=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),c=Qm(e,a,o,u.filter(function(t){return void 0===t.redirectTo}),this.relativeLinkResolution),h=c.segmentGroup,d=c.slicedSegments;if(0===d.length&&h.hasChildren()){var f=this.processChildren(u,h);return null===f?null:[new lm(r,f)]}if(0===u.length&&0===d.length)return[new lm(r,[])];var p=Km(t)===i,m=this.processSegment(u,h,d,p?Sp:i);return null===m?null:[new lm(r,m)]}}]),t}();function Cv(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function Sv(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 xv(t){return t.data||{}}function Ev(t){return t.resolve||{}}function Av(t){return Of(function(e){var n=t(e);return n?it(n).pipe(G(function(){return e})):Td(e)})}var Dv=function(t){u(n,t);var e=p(n);function n(){return a(this,n),e.apply(this,arguments)}return n}(function(){function t(){a(this,t)}return s(t,[{key:"shouldDetach",value:function(t){return!1}},{key:"store",value:function(t,e){}},{key:"shouldAttach",value:function(t){return!1}},{key:"retrieve",value:function(t){return null}},{key:"shouldReuseRoute",value:function(t,e){return t.routeConfig===e.routeConfig}}]),t}()),Iv=new bi("ROUTES"),Ov=function(){function t(e,n,i,r){a(this,t),this.loader=e,this.compiler=n,this.onLoadStartListener=i,this.onLoadEndListener=r}return s(t,[{key:"load",value:function(t,e){var n=this;if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);var i=this.loadModuleFactory(e.loadChildren).pipe(G(function(i){n.onLoadEndListener&&n.onLoadEndListener(e);var r=i.create(t);return new Vm(Tp(r.injector.get(Iv,void 0,Ht.Self|Ht.Optional)).map(Gm),r)}),zf(function(t){throw e._loader$=void 0,t}));return e._loader$=new vt(i,function(){return new q}).pipe(ft()),e._loader$}},{key:"loadModuleFactory",value:function(t){var e=this;return"string"==typeof t?it(this.loader.load(t)):Mp(t()).pipe(st(function(t){return t instanceof hu?Td(t):it(e.compiler.compileModuleAsync(t))}))}}]),t}(),Tv=function t(){a(this,t),this.outlet=null,this.route=null,this.resolver=null,this.children=new Rv,this.attachRef=null},Rv=function(){function t(){a(this,t),this.contexts=new Map}return s(t,[{key:"onChildOutletCreated",value:function(t,e){var n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}},{key:"onChildOutletDestroyed",value:function(t){var e=this.getContext(t);e&&(e.outlet=null)}},{key:"onOutletDeactivated",value:function(){var t=this.contexts;return this.contexts=new Map,t}},{key:"onOutletReAttached",value:function(t){this.contexts=t}},{key:"getOrCreateContext",value:function(t){var e=this.getContext(t);return e||(e=new Tv,this.contexts.set(t,e)),e}},{key:"getContext",value:function(t){return this.contexts.get(t)||null}}]),t}(),Pv=function(){function t(){a(this,t)}return s(t,[{key:"shouldProcessUrl",value:function(t){return!0}},{key:"extract",value:function(t){return t}},{key:"merge",value:function(t,e){return t}}]),t}();function Mv(t){throw t}function Fv(t,e,n){return e.parse("/")}function Lv(t,e){return Td(null)}var Nv=function(){var t=function(){function t(e,n,i,r,o,s,l,u){var c=this;a(this,t),this.rootComponentType=e,this.urlSerializer=n,this.rootContexts=i,this.location=r,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new q,this.errorHandler=Mv,this.malformedUriErrorHandler=Fv,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Lv,afterPreactivation:Lv},this.urlHandlingStrategy=new Pv,this.routeReuseStrategy=new Dv,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=o.get(cu),this.console=o.get(dc);var h=o.get(xc);this.isNgZoneEnabled=h instanceof xc&&xc.isInAngularZone(),this.resetConfig(u),this.currentUrlTree=new jp(new Bp([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Ov(s,l,function(t){return c.triggerEvent(new gp(t))},function(t){return c.triggerEvent(new yp(t))}),this.routerState=hm(this.currentUrlTree,this.rootComponentType),this.transitions=new vf({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 s(t,[{key:"setupNavigations",value:function(t){var e=this,n=this.events;return t.pipe(Pd(function(t){return 0!==t.id}),G(function(t){return Object.assign(Object.assign({},t),{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})}),Of(function(t){var i,r,a,o,s=!1,l=!1;return Td(t).pipe(np(function(t){e.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:e.lastSuccessfulNavigation?Object.assign(Object.assign({},e.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Of(function(t){var i,r,a,o,s=!e.navigated||t.extractedUrl.toString()!==e.browserUrlTree.toString();if(("reload"===e.onSameUrlNavigation||s)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Td(t).pipe(Of(function(t){var i=e.transitions.getValue();return n.next(new lp(t.id,e.serializeUrl(t.extractedUrl),t.source,t.restoredState)),i!==e.transitions.getValue()?Af:Promise.resolve(t)}),(i=e.ngModule.injector,r=e.configLoader,a=e.urlSerializer,o=e.config,Of(function(t){return function(t,e,n,i,r){return new hv(t,e,n,i,r).apply()}(i,r,a,t.extractedUrl,o).pipe(G(function(e){return Object.assign(Object.assign({},t),{urlAfterRedirects:e})}))})),np(function(t){e.currentNavigation=Object.assign(Object.assign({},e.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,n,i,r,a){return st(function(i){return function(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var o=new wv(t,e,n,i,r,a).recognize();return null===o?kv(new bv):Td(o)}catch(s){return kv(s)}}(t,n,i.urlAfterRedirects,(o=i.urlAfterRedirects,e.serializeUrl(o)),r,a).pipe(G(function(t){return Object.assign(Object.assign({},i),{targetSnapshot:t})}));var o})}(e.rootComponentType,e.config,0,e.paramsInheritanceStrategy,e.relativeLinkResolution),np(function(t){"eager"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),e.browserUrlTree=t.urlAfterRedirects);var i=new dp(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);n.next(i)}));if(s&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var l=t.extractedUrl,u=t.source,c=t.restoredState,h=t.extras,d=new lp(t.id,e.serializeUrl(l),u,c);n.next(d);var f=hm(l,e.rootComponentType).snapshot;return Td(Object.assign(Object.assign({},t),{targetSnapshot:f,urlAfterRedirects:l,extras:Object.assign(Object.assign({},h),{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,e.browserUrlTree=t.urlAfterRedirects,t.resolve(null),Af}),Av(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})}),np(function(t){var n=new fp(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),G(function(t){return Object.assign(Object.assign({},t),{guards:(n=t.targetSnapshot,i=t.currentSnapshot,r=e.rootContexts,a=n._root,vv(a,i?i._root:null,r,[a.value]))});var n,i,r,a}),function(t,e){return st(function(n){var i=n.targetSnapshot,r=n.currentSnapshot,a=n.guards,o=a.canActivateChecks,s=a.canDeactivateChecks;return 0===s.length&&0===o.length?Td(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return it(t).pipe(st(function(t){return function(t,e,n,i,r){var a=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return a&&0!==a.length?Td(a.map(function(a){var o,s=mv(a,e,r);if(function(t){return t&&jm(t.canDeactivate)}(s))o=Mp(s.canDeactivate(t,e,n,i));else{if(!jm(s))throw new Error("Invalid CanDeactivate guard");o=Mp(s(t,e,n,i))}return o.pipe(tp())})).pipe(Hm()):Td(!0)}(t.component,t.route,n,e,i)}),tp(function(t){return!0!==t},!0))}(s,i,r,t).pipe(st(function(n){return n&&"boolean"==typeof n?function(t,e,n,i){return it(e).pipe(Rd(function(e){return Ef(function(t,e){return null!==t&&e&&e(new _p(t)),Td(!0)}(e.route.parent,i),function(t,e){return null!==t&&e&&e(new kp(t)),Td(!0)}(e.route,i),function(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 If(function(){return Td(e.guards.map(function(r){var a,o=mv(r,e.node,n);if(function(t){return t&&jm(t.canActivateChild)}(o))a=Mp(o.canActivateChild(i,t));else{if(!jm(o))throw new Error("Invalid CanActivateChild guard");a=Mp(o(i,t))}return a.pipe(tp())})).pipe(Hm())})});return Td(r).pipe(Hm())}(t,e.path,n),function(t,e,n){var i=e.routeConfig?e.routeConfig.canActivate:null;return i&&0!==i.length?Td(i.map(function(i){return If(function(){var r,a=mv(i,e,n);if(function(t){return t&&jm(t.canActivate)}(a))r=Mp(a.canActivate(e,t));else{if(!jm(a))throw new Error("Invalid CanActivate guard");r=Mp(a(e,t))}return r.pipe(tp())})})).pipe(Hm()):Td(!0)}(t,e.route,n))}),tp(function(t){return!0!==t},!0))}(i,o,t,e):Td(n)}),G(function(t){return Object.assign(Object.assign({},n),{guardsResult:t})}))})}(e.ngModule.injector,function(t){return e.triggerEvent(t)}),np(function(t){if(Bm(t.guardsResult)){var n=Ap('Redirecting to "'.concat(e.serializeUrl(t.guardsResult),'"'));throw n.url=t.guardsResult,n}var i=new pp(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(i)}),Pd(function(t){if(!t.guardsResult){e.resetUrlToCurrentUrlTree();var i=new cp(t.id,e.serializeUrl(t.extractedUrl),"");return n.next(i),t.resolve(!1),!1}return!0}),Av(function(t){if(t.guards.canActivateChecks.length)return Td(t).pipe(np(function(t){var n=new mp(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),Of(function(t){var i,r,a=!1;return Td(t).pipe((i=e.paramsInheritanceStrategy,r=e.ngModule.injector,st(function(t){var e=t.targetSnapshot,n=t.guards.canActivateChecks;if(!n.length)return Td(t);var a=0;return it(n).pipe(Rd(function(t){return function(t,e,n,i){return function(t,e,n,i){var r=Object.keys(t);if(0===r.length)return Td({});var a={};return it(r).pipe(st(function(r){return function(t,e,n,i){var r=mv(t,e,i);return Mp(r.resolve?r.resolve(e,n):r(e,n))}(t[r],e,n,i).pipe(np(function(t){a[r]=t}))}),qf(1),st(function(){return Object.keys(a).length===r.length?Td(a):Af}))}(t._resolve,t,e,i).pipe(G(function(e){return t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),fm(t,n).resolve),null}))}(t.route,e,i,r)}),np(function(){return a++}),qf(1),st(function(e){return a===n.length?Td(t):Af}))})),np({next:function(){return a=!0},complete:function(){if(!a){var i=new cp(t.id,e.serializeUrl(t.extractedUrl),"At least one route resolver didn't emit any value.");n.next(i),t.resolve(!1)}}}))}),np(function(t){var n=new vp(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}))}),Av(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})}),G(function(t){var n,i,r,a=(r=km(e.routeReuseStrategy,(n=t.targetSnapshot)._root,(i=t.currentRouterState)?i._root:void 0),new cm(r,n));return Object.assign(Object.assign({},t),{targetRouterState:a})}),np(function(t){e.currentUrlTree=t.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(e.currentUrlTree,t.rawUrl),e.routerState=t.targetRouterState,"deferred"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),e.browserUrlTree=t.urlAfterRedirects)}),(r=e.rootContexts,a=e.routeReuseStrategy,o=function(t){return e.triggerEvent(t)},G(function(t){return new Lm(a,t.targetRouterState,t.currentRouterState,o).activate(r),t})),np({next:function(){s=!0},complete:function(){s=!0}}),(i=function(){if(!s&&!l){e.resetUrlToCurrentUrlTree();var i=new cp(t.id,e.serializeUrl(t.extractedUrl),"Navigation ID ".concat(t.id," is not equal to the current navigation id ").concat(e.navigationId));n.next(i),t.resolve(!1)}e.currentNavigation=null},function(t){return t.lift(new ap(i))}),zf(function(i){if(l=!0,(s=i)&&s.ngNavigationCancelingError){var r=Bm(i.url);r||(e.navigated=!0,e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));var a=new cp(t.id,e.serializeUrl(t.extractedUrl),i.message);n.next(a),r?setTimeout(function(){var n=e.urlHandlingStrategy.merge(i.url,e.rawUrlTree);e.scheduleNavigation(n,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);var o=new hp(t.id,e.serializeUrl(t.extractedUrl),i);n.next(o);try{t.resolve(e.errorHandler(i))}catch(u){t.reject(u)}}var s;return Af}))}))}},{key:"resetRootComponentType",value:function(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}},{key:"setTransition",value:function(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(e){var n=t.extractLocationChangeInfoFromEvent(e);t.shouldScheduleNavigation(t.lastLocationChangeInfo,n)&&setTimeout(function(){var e=n.source,i=n.state,r=n.urlTree,a={replaceUrl:!0};if(i){var o=Object.assign({},i);delete o.navigationId,0!==Object.keys(o).length&&(a.state=o)}t.scheduleNavigation(r,e,i,a)},0),t.lastLocationChangeInfo=n}))}},{key:"extractLocationChangeInfoFromEvent",value:function(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(t,e){if(!t)return!0;var n=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&n&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(t){this.events.next(t)}},{key:"resetConfig",value:function(t){qm(t),this.config=t.map(Gm),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.relativeTo,i=e.queryParams,r=e.fragment,a=e.queryParamsHandling,o=e.preserveFragment,s=n||this.routerState.root,l=o?this.currentUrlTree.fragment:r,u=null;switch(a){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=i||null}return null!==u&&(u=this.removeEmptyProps(u)),Cm(s,this.currentUrlTree,t,u,l)}},{key:"navigateByUrl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},n=Bm(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,e)}},{key:"navigate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return Vv(t),this.navigateByUrl(this.createUrlTree(t,e),e)}},{key:"serializeUrl",value:function(t){return this.urlSerializer.serialize(t)}},{key:"parseUrl",value:function(t){var e;try{e=this.urlSerializer.parse(t)}catch(n){e=this.malformedUriErrorHandler(n,this.urlSerializer,t)}return e}},{key:"isActive",value:function(t,e){if(Bm(t))return Fp(this.currentUrlTree,t,e);var n=this.parseUrl(t);return Fp(this.currentUrlTree,n,e)}},{key:"removeEmptyProps",value:function(t){return Object.keys(t).reduce(function(e,n){var i=t[n];return null!=i&&(e[n]=i),e},{})}},{key:"processNavigations",value:function(){var t=this;this.navigations.subscribe(function(e){t.navigated=!0,t.lastSuccessfulId=e.id,t.events.next(new up(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(t.currentUrlTree))),t.lastSuccessfulNavigation=t.currentNavigation,t.currentNavigation=null,e.resolve(!0)},function(e){t.console.warn("Unhandled Navigation Error: ")})}},{key:"scheduleNavigation",value:function(t,e,n,i,r){if(this.disposed)return Promise.resolve(!1);var a,o,s,l=this.getTransition(),u="imperative"!==e&&"imperative"===(null==l?void 0:l.source),c=(this.lastSuccessfulId===l.id||this.currentNavigation?l.rawUrl:l.urlAfterRedirects).toString()===t.toString();if(u&&c)return Promise.resolve(!0);r?(a=r.resolve,o=r.reject,s=r.promise):s=new Promise(function(t,e){a=t,o=e});var h=++this.navigationId;return this.setTransition({id:h,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:a,reject:o,promise:s,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),s.catch(function(t){return Promise.reject(t)})}},{key:"setBrowserUrl",value:function(t,e,n,i){var r=this.urlSerializer.serialize(t);i=i||{},this.location.isCurrentPathEqualTo(r)||e?this.location.replaceState(r,"",Object.assign(Object.assign({},i),{navigationId:n})):this.location.go(r,"",Object.assign(Object.assign({},i),{navigationId:n}))}},{key:"resetStateAndUrl",value:function(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Vi(wi),Vi(Up),Vi(Rv),Vi(wh),Vi(qo),Vi($c),Vi(wc),Vi(void 0))},t.\u0275prov=Rt({token:t,factory:t.\u0275fac}),t}();function Vv(t){for(var e=0;e2&&void 0!==arguments[2]?arguments[2]:{};a(this,t),this.router=e,this.viewportScroller=n,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}return s(t,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var t=this;return this.router.events.subscribe(function(e){e instanceof lp?(t.store[t.lastId]=t.viewportScroller.getScrollPosition(),t.lastSource=e.navigationTrigger,t.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof up&&(t.lastId=e.id,t.scheduleScrollEvent(e,t.router.parseUrl(e.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var t=this;return this.router.events.subscribe(function(e){e instanceof Cp&&(e.position?"top"===t.options.scrollPositionRestoration?t.viewportScroller.scrollToPosition([0,0]):"enabled"===t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===t.options.anchorScrolling?t.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(t,e){this.router.triggerEvent(new Cp(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Vi(Nv),Vi(Zh),Vi(void 0))},t.\u0275prov=Rt({token:t,factory:t.\u0275fac}),t}(),Zv=new bi("ROUTER_CONFIGURATION"),$v=new bi("ROUTER_FORROOT_GUARD"),Xv=[wh,{provide:Up,useClass:qp},{provide:Nv,useFactory:function(t,e,n,i,r,a,o){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},l=arguments.length>8?arguments[8]:void 0,u=arguments.length>9?arguments[9]:void 0,c=new Nv(null,t,e,n,i,r,a,Tp(o));if(l&&(c.urlHandlingStrategy=l),u&&(c.routeReuseStrategy=u),rg(s,c),s.enableTracing){var h=ah();c.events.subscribe(function(t){h.logGroup("Router Event: ".concat(t.constructor.name)),h.log(t.toString()),h.log(t),h.logGroupEnd()})}return c},deps:[Up,Rv,wh,qo,$c,wc,Iv,Zv,[function t(){a(this,t)},new Yi],[function t(){a(this,t)},new Yi]]},Rv,{provide:dm,useFactory:function(t){return t.routerState.root},deps:[Nv]},{provide:$c,useClass:Jc},Gv,Yv,Wv,{provide:Zv,useValue:{enableTracing:!1}}];function Qv(){return new zc("Router",Nv)}var Jv=function(){var t=function(){function t(e,n){a(this,t)}return s(t,null,[{key:"forRoot",value:function(e,n){return{ngModule:t,providers:[Xv,ig(e),{provide:$v,useFactory:ng,deps:[[Nv,new Yi,new Gi]]},{provide:Zv,useValue:n||{}},{provide:gh,useFactory:eg,deps:[lh,[new Wi(_h),new Yi],Zv]},{provide:Kv,useFactory:tg,deps:[Nv,Zh,Zv]},{provide:qv,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Yv},{provide:zc,multi:!0,useFactory:Qv},[ag,{provide:rc,multi:!0,useFactory:og,deps:[ag]},{provide:lg,useFactory:sg,deps:[ag]},{provide:hc,multi:!0,useExisting:lg}]]}}},{key:"forChild",value:function(e){return{ngModule:t,providers:[ig(e)]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Vi($v,8),Vi(Nv,8))},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({}),t}();function tg(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Kv(t,e,n)}function eg(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new kh(t,e):new bh(t,e)}function ng(t){return"guarded"}function ig(t){return[{provide:ki,multi:!0,useValue:t},{provide:Iv,multi:!0,useValue:t}]}function rg(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}var ag=function(){var t=function(){function t(e){a(this,t),this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new q}return s(t,[{key:"appInitializer",value:function(){var t=this;return this.injector.get(ch,Promise.resolve(null)).then(function(){var e=null,n=new Promise(function(t){return e=t}),i=t.injector.get(Nv),r=t.injector.get(Zv);return"disabled"===r.initialNavigation?(i.setUpLocationChangeListener(),e(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(i.hooks.afterPreactivation=function(){return t.initNavigation?Td(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},i.initialNavigation()):e(!0),n})}},{key:"bootstrapListener",value:function(t){var e=this.injector.get(Zv),n=this.injector.get(Gv),i=this.injector.get(Kv),r=this.injector.get(Nv),a=this.injector.get(Kc);t===a.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||r.initialNavigation(),n.setUpPreloading(),i.init(),r.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Vi(qo))},t.\u0275prov=Rt({token:t,factory:t.\u0275fac}),t}();function og(t){return t.appInitializer.bind(t)}function sg(t){return t.bootstrapListener.bind(t)}var lg=new bi("Router Initializer"),ug=function(){function t(t){this.user=t.user,this.role=t.role,this.admin=t.admin}return Object.defineProperty(t.prototype,"isStaff",{get:function(){return"staff"===this.role||"admin"===this.role},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAdmin",{get:function(){return"admin"===this.role},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLogged",{get:function(){return null!=this.user},enumerable:!1,configurable:!0}),t}();function cg(t){return null!=t&&"false"!=="".concat(t)}function hg(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return dg(t)?Number(t):e}function dg(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function fg(t){return Array.isArray(t)?t:[t]}function pg(t){return null==t?"":"string"==typeof t?t:"".concat(t,"px")}function mg(t){return t instanceof Dl?t.nativeElement:t}function vg(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\s+/,n=[];if(null!=t){var i,r=Array.isArray(t)?t:"".concat(t).split(e),a=g(r);try{for(a.s();!(i=a.n()).done;){var o=i.value,s="".concat(o).trim();s&&n.push(s)}}catch(l){a.e(l)}finally{a.f()}}return n}function gg(t,e,n,i){return x(n)&&(i=n,n=void 0),i?gg(t,e,n).pipe(G(function(t){return C(t)?i.apply(void 0,b(t)):i(t)})):new j(function(i){yg(t,e,function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},i,n)})}function yg(t,e,n,i,r){var a;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){var o=t;t.addEventListener(e,n,r),a=function(){return o.removeEventListener(e,n,r)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){var s=t;t.on(e,n),a=function(){return s.off(e,n)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){var l=t;t.addListener(e,n),a=function(){return l.removeListener(e,n)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var u=0,c=t.length;u1&&void 0!==arguments[1]?arguments[1]:0;if(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}},{key:"requestAsyncId",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(t.flush.bind(t,this),n)}},{key:"recycleAsyncId",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}},{key:"execute",value: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))}},{key:"_execute",value: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}},{key:"_unsubscribe",value: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}}]),n}(function(t){u(n,t);var e=p(n);function n(t,i){return a(this,n),e.call(this)}return s(n,[{key:"schedule",value:function(t){return this}}]),n}(A)),bg=function(){var t=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.now;a(this,t),this.SchedulerAction=e,this.now=n}return s(t,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,t).schedule(n,e)}}]),t}();return t.now=function(){return Date.now()},t}(),kg=function(t){u(n,t);var e=p(n);function n(t){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:bg.now;return a(this,n),(i=e.call(this,t,function(){return n.delegate&&n.delegate!==d(i)?n.delegate.now():r()})).actions=[],i.active=!1,i.scheduled=void 0,i}return s(n,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(t,e,a):r(i(n.prototype),"schedule",this).call(this,t,e,a)}},{key:"flush",value: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}}}}]),n}(bg),wg=1,Cg=function(){return Promise.resolve()}(),Sg={};function xg(t){return t in Sg&&(delete Sg[t],!0)}var Eg=function(t){var e=wg++;return Sg[e]=!0,Cg.then(function(){return xg(e)&&t()}),e},Ag=function(t){xg(t)},Dg=function(t){u(n,t);var e=p(n);function n(t,i){var r;return a(this,n),(r=e.call(this,t,i)).scheduler=t,r.work=i,r}return s(n,[{key:"requestAsyncId",value:function(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==a&&a>0?r(i(n.prototype),"requestAsyncId",this).call(this,t,e,a):(t.actions.push(this),t.scheduled||(t.scheduled=Eg(t.flush.bind(t,null))))}},{key:"recycleAsyncId",value:function(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==a&&a>0||null===a&&this.delay>0)return r(i(n.prototype),"recycleAsyncId",this).call(this,t,e,a);0===t.actions.length&&(Ag(e),t.scheduled=void 0)}}]),n}(_g),Ig=new(function(t){u(n,t);var e=p(n);function n(){return a(this,n),e.apply(this,arguments)}return s(n,[{key:"flush",value: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 Vg(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=-1;return Ng(e)?i=Number(e)<1?1:Number(e):Y(e)&&(n=e),Y(n)||(n=Pg),new j(function(e){var r=Ng(t)?t:+t-n.now();return n.schedule(jg,r,{index:0,period:i,subscriber:e})})}function jg(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 Bg(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pg;return Mg(function(){return Vg(t,e)})}function zg(t){return function(e){return e.lift(new Hg(t))}}var Hg=function(){function t(e){a(this,t),this.notifier=e}return s(t,[{key:"call",value:function(t,e){var n=new Ug(t),i=ot(this.notifier,new rt(n));return i&&!n.seenValue?(n.add(i),e.subscribe(n)):n}}]),t}(),Ug=function(t){u(n,t);var e=p(n);function n(t){var i;return a(this,n),(i=e.call(this,t)).seenValue=!1,i}return s(n,[{key:"notifyNext",value:function(){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),n}(at);function qg(t,e){return new j(e?function(n){return e.schedule(Wg,0,{error:t,subscriber:n})}:function(e){return e.error(t)})}function Wg(t){t.subscriber.error(t.error)}var Yg,Gg=function(){var t=function(){function t(e,n,i){a(this,t),this.kind=e,this.value=n,this.error=i,this.hasValue="N"===e}return s(t,[{key:"observe",value: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()}}},{key:"do",value: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()}}},{key:"accept",value:function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return Td(this.value);case"E":return qg(this.error);case"C":return Df()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}},{key:"createError",value:function(e){return new t("E",void 0,e)}},{key:"createComplete",value:function(){return t.completeNotification}}]),t}();return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();try{Yg="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(zB){Yg=!1}var Kg,Zg,$g,Xg,Qg=function(){var t=function t(e){a(this,t),this._platformId=e,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&&!Yg)&&"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.\u0275fac=function(e){return new(e||t)(Vi(cc))},t.\u0275prov=Rt({factory:function(){return new t(Vi(cc))},token:t,providedIn:"root"}),t}(),Jg=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({}),t}(),ty=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function ey(){if(Kg)return Kg;if("object"!=typeof document||!document)return Kg=new Set(ty);var t=document.createElement("input");return Kg=new Set(ty.filter(function(e){return t.setAttribute("type",e),t.type===e}))}function ny(t){return function(){if(null==Zg&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Zg=!0}}))}finally{Zg=Zg||!1}return Zg}()?t:!!t.capture}function iy(){if(null==$g){if("object"!=typeof document||!document)return $g=!1;if("scrollBehavior"in document.documentElement.style)$g=!0;else{var t=Element.prototype.scrollTo;$g=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return $g}function ry(t){if(function(){if(null==Xg){var t="undefined"!=typeof document?document.head:null;Xg=!(!t||!t.createShadowRoot&&!t.attachShadow)}return Xg}()){var e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}var ay=new bi("cdk-dir-doc",{providedIn:"root",factory:function(){return ji(sh)}}),oy=function(){var t=function(){function t(e){if(a(this,t),this.value="ltr",this.change=new Vu,e){var n=(e.body?e.body.dir:null)||(e.documentElement?e.documentElement.dir:null);this.value="ltr"===n||"rtl"===n?n:"ltr"}}return s(t,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Vi(ay,8))},t.\u0275prov=Rt({factory:function(){return new t(Vi(ay,8))},token:t,providedIn:"root"}),t}(),sy=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({}),t}(),ly=function t(){a(this,t)};function uy(t){return t&&"function"==typeof t.connect}var cy=function(){function t(){a(this,t)}return s(t,[{key:"applyChanges",value:function(t,e,n,i,r){t.forEachOperation(function(t,i,a){var o,s;if(null==t.previousIndex){var l=n(t,i,a);o=e.createEmbeddedView(l.templateRef,l.context,l.index),s=1}else null==a?(e.remove(i),s=3):(o=e.get(i),e.move(o,a),s=2);r&&r({context:null==o?void 0:o.context,operation:s,record:t})})}},{key:"detach",value:function(){}}]),t}(),hy=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1?arguments[1]:void 0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];a(this,t),this._multiple=n,this._emitChanges=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new q,i&&i.length&&(n?i.forEach(function(t){return e._markSelected(t)}):this._markSelected(i[0]),this._selectedToEmit.length=0)}return s(t,[{key:"select",value:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new j(function(n){t._globalSubscription||t._addGlobalListener();var i=e>0?t._scrolled.pipe(Bg(e)).subscribe(n):t._scrolled.subscribe(n);return t._scrolledCount++,function(){i.unsubscribe(),t._scrolledCount--,t._scrolledCount||t._removeGlobalListener()}}):Td()}},{key:"ngOnDestroy",value:function(){var t=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(e,n){return t.deregister(n)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(t,e){var n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Pd(function(t){return!t||n.indexOf(t)>-1}))}},{key:"getAncestorScrollContainers",value:function(t){var e=this,n=[];return this.scrollContainers.forEach(function(i,r){e._scrollableContainsElement(r,t)&&n.push(r)}),n}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(t,e){var n=mg(e),i=t.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var t=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return gg(t._getWindow().document,"scroll").subscribe(function(){return t._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Vi(xc),Vi(Qg),Vi(sh,8))},t.\u0275prov=Rt({factory:function(){return new t(Vi(xc),Vi(Qg),Vi(sh,8))},token:t,providedIn:"root"}),t}(),py=function(){var t=function(){function t(e,n,i){var r=this;a(this,t),this._platform=e,this._change=new q,this._changeListener=function(t){r._change.next(t)},this._document=i,n.runOutsideAngular(function(){if(e.isBrowser){var t=r._getWindow();t.addEventListener("resize",r._changeListener),t.addEventListener("orientationchange",r._changeListener)}r.change().subscribe(function(){return r._updateViewportSize()})})}return s(t,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}},{key:"getViewportRect",value: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}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var t=this._document,e=this._getWindow(),n=t.documentElement,i=n.getBoundingClientRect();return{top:-i.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-i.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}},{key:"change",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return t>0?this._change.pipe(Bg(t)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Vi(Qg),Vi(xc),Vi(sh,8))},t.\u0275prov=Rt({factory:function(){return new t(Vi(Qg),Vi(xc),Vi(sh,8))},token:t,providedIn:"root"}),t}(),my=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({}),t}(),vy=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({imports:[[sy,Jg,my],sy,my]}),t}(),gy=function(){function t(){a(this,t)}return s(t,[{key:"attach",value:function(t){return this._attachedHost=t,t.attach(this)}},{key:"detach",value:function(){var t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}},{key:"setAttachedHost",value:function(t){this._attachedHost=t}},{key:"isAttached",get:function(){return null!=this._attachedHost}}]),t}(),yy=function(t){u(n,t);var e=p(n);function n(t,i,r,o){var s;return a(this,n),(s=e.call(this)).component=t,s.viewContainerRef=i,s.injector=r,s.componentFactoryResolver=o,s}return n}(gy),_y=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return a(this,n),(o=e.call(this)).templateRef=t,o.viewContainerRef=i,o.context=r,o}return s(n,[{key:"attach",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=e,r(i(n.prototype),"attach",this).call(this,t)}},{key:"detach",value:function(){return this.context=void 0,r(i(n.prototype),"detach",this).call(this)}},{key:"origin",get:function(){return this.templateRef.elementRef}}]),n}(gy),by=function(t){u(n,t);var e=p(n);function n(t){var i;return a(this,n),(i=e.call(this)).element=t instanceof Dl?t.nativeElement:t,i}return n}(gy),ky=function(){function t(){a(this,t),this._isDisposed=!1,this.attachDomPortal=null}return s(t,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(t){return t instanceof yy?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof _y?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof by?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(t){this._disposeFn=t}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),t}(),wy=function(t){u(n,t);var e=p(n);function n(t,o,s,l,u){var c,h;return a(this,n),(h=e.call(this)).outletElement=t,h._componentFactoryResolver=o,h._appRef=s,h._defaultInjector=l,h.attachDomPortal=function(t){var e=t.element,a=h._document.createComment("dom-portal");e.parentNode.insertBefore(a,e),h.outletElement.appendChild(e),r((c=d(h),i(n.prototype)),"setDisposeFn",c).call(c,function(){a.parentNode&&a.parentNode.replaceChild(e,a)})},h._document=u,h}return s(n,[{key:"attachComponentPortal",value:function(t){var e,n=this,i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);return t.viewContainerRef?(e=t.viewContainerRef.createComponent(i,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(function(){return e.destroy()})):(e=i.create(t.injector||this._defaultInjector),this._appRef.attachView(e.hostView),this.setDisposeFn(function(){n._appRef.detachView(e.hostView),e.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(e)),e}},{key:"attachTemplatePortal",value:function(t){var e=this,n=t.viewContainerRef,i=n.createEmbeddedView(t.templateRef,t.context);return i.rootNodes.forEach(function(t){return e.outletElement.appendChild(t)}),i.detectChanges(),this.setDisposeFn(function(){var t=n.indexOf(i);-1!==t&&n.remove(t)}),i}},{key:"dispose",value:function(){r(i(n.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(t){return t.hostView.rootNodes[0]}}]),n}(ky),Cy=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i){return a(this,n),e.call(this,t,i)}return n}(_y);return t.\u0275fac=function(e){return new(e||t)(us(su),us(fu))},t.\u0275dir=ve({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[Yo]}),t}(),Sy=function(){var t=function(t){u(n,t);var e=p(n);function n(t,o,s){var l,u;return a(this,n),(u=e.call(this))._componentFactoryResolver=t,u._viewContainerRef=o,u._isInitialized=!1,u.attached=new Vu,u.attachDomPortal=function(t){var e=t.element,a=u._document.createComment("dom-portal");t.setAttachedHost(d(u)),e.parentNode.insertBefore(a,e),u._getRootNode().appendChild(e),r((l=d(u),i(n.prototype)),"setDisposeFn",l).call(l,function(){a.parentNode&&a.parentNode.replaceChild(e,a)})},u._document=s,u}return s(n,[{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){r(i(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(t){t.setAttachedHost(this);var e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,a=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),o=e.createComponent(a,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),r(i(n.prototype),"setDisposeFn",this).call(this,function(){return o.destroy()}),this._attachedPortal=t,this._attachedRef=o,this.attached.emit(o),o}},{key:"attachTemplatePortal",value:function(t){var e=this;t.setAttachedHost(this);var a=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return r(i(n.prototype),"setDisposeFn",this).call(this,function(){return e._viewContainerRef.clear()}),this._attachedPortal=t,this._attachedRef=a,this.attached.emit(a),a}},{key:"_getRootNode",value:function(){var t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}},{key:"portal",get:function(){return this._attachedPortal},set:function(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&r(i(n.prototype),"detach",this).call(this),t&&r(i(n.prototype),"attach",this).call(this,t),this._attachedPortal=t)}},{key:"attachedRef",get:function(){return this._attachedRef}}]),n}(ky);return t.\u0275fac=function(e){return new(e||t)(us(Sl),us(fu),us(sh))},t.\u0275dir=ve({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Yo]}),t}(),xy=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({}),t}(),Ey=function(){function t(e,n){a(this,t),this.predicate=e,this.inclusive=n}return s(t,[{key:"call",value:function(t,e){return e.subscribe(new Ay(t,this.predicate,this.inclusive))}}]),t}(),Ay=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return a(this,n),(o=e.call(this,t)).predicate=i,o.inclusive=r,o.index=0,o}return s(n,[{key:"_next",value:function(t){var e,n=this.destination;try{e=this.predicate(t,this.index++)}catch(i){return void n.error(i)}this.nextOrComplete(t,e)}},{key:"nextOrComplete",value:function(t,e){var n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())}}]),n}(M),Dy=13,Iy=27,Oy=32,Ty=35,Ry=36,Py=37,My=38,Fy=39,Ly=40;function Ny(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;ie.height||t.scrollWidth>e.width}}]),t}(),By=function(){function t(e,n,i,r){var o=this;a(this,t),this._scrollDispatcher=e,this._ngZone=n,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=function(){o.disable(),o._overlayRef.hasAttached()&&o._ngZone.run(function(){return o._overlayRef.detach()})}}return s(t,[{key:"attach",value:function(t){this._overlayRef=t}},{key:"enable",value: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)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),t}(),zy=function(){function t(){a(this,t)}return s(t,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),t}();function Hy(t,e){return e.some(function(e){return t.bottome.bottom||t.righte.right})}function Uy(t,e){return e.some(function(e){return t.tope.bottom||t.lefte.right})}var qy=function(){function t(e,n,i,r){a(this,t),this._scrollDispatcher=e,this._viewportRuler=n,this._ngZone=i,this._config=r,this._scrollSubscription=null}return s(t,[{key:"attach",value:function(t){this._overlayRef=t}},{key:"enable",value: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;Hy(e,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(t.disable(),t._ngZone.run(function(){return t._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),t}(),Wy=function(){var t=function t(e,n,i,r){var o=this;a(this,t),this._scrollDispatcher=e,this._viewportRuler=n,this._ngZone=i,this.noop=function(){return new zy},this.close=function(t){return new By(o._scrollDispatcher,o._ngZone,o._viewportRuler,t)},this.block=function(){return new jy(o._viewportRuler,o._document)},this.reposition=function(t){return new qy(o._scrollDispatcher,o._viewportRuler,o._ngZone,t)},this._document=r};return t.\u0275fac=function(e){return new(e||t)(Vi(fy),Vi(py),Vi(xc),Vi(sh))},t.\u0275prov=Rt({factory:function(){return new t(Vi(fy),Vi(py),Vi(xc),Vi(sh))},token:t,providedIn:"root"}),t}(),Yy=function t(e){if(a(this,t),this.scrollStrategy=new zy,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e)for(var n=0,i=Object.keys(e);n-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Vi(sh))},t.\u0275prov=Rt({factory:function(){return new t(Vi(sh))},token:t,providedIn:"root"}),t}(),$y=function(){var t=function(t){u(n,t);var e=p(n);function n(t){var i;return a(this,n),(i=e.call(this,t))._keydownListener=function(t){for(var e=i._attachedOverlays,n=e.length-1;n>-1;n--)if(e[n]._keydownEvents.observers.length>0){e[n]._keydownEvents.next(t);break}},i}return s(n,[{key:"add",value:function(t){r(i(n.prototype),"add",this).call(this,t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),n}(Zy);return t.\u0275fac=function(e){return new(e||t)(Vi(sh))},t.\u0275prov=Rt({factory:function(){return new t(Vi(sh))},token:t,providedIn:"root"}),t}(),Xy=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i){var r;return a(this,n),(r=e.call(this,t))._platform=i,r._cursorStyleIsSet=!1,r._clickListener=function(t){for(var e=t.composedPath?t.composedPath()[0]:t.target,n=r._attachedOverlays.slice(),i=n.length-1;i>-1;i--){var a=n[i];if(!(a._outsidePointerEvents.observers.length<1)&&a.hasAttached()){if(a.overlayElement.contains(e))break;a._outsidePointerEvents.next(t)}}},r}return s(n,[{key:"add",value:function(t){r(i(n.prototype),"add",this).call(this,t),this._isAttached||(this._document.body.addEventListener("click",this._clickListener,!0),this._document.body.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=this._document.body.style.cursor,this._document.body.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("click",this._clickListener,!0),this._document.body.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}}]),n}(Zy);return t.\u0275fac=function(e){return new(e||t)(Vi(sh),Vi(Qg))},t.\u0275prov=Rt({factory:function(){return new t(Vi(sh),Vi(Qg))},token:t,providedIn:"root"}),t}(),Qy=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine),Jy=function(){var t=function(){function t(e,n){a(this,t),this._platform=n,this._document=e}return s(t,[{key:"ngOnDestroy",value:function(){var t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var t="cdk-overlay-container";if(this._platform.isBrowser||Qy)for(var e=this._document.querySelectorAll(".".concat(t,'[platform="server"], ')+".".concat(t,'[platform="test"]')),n=0;nf&&(f=v,d=m)}}catch(y){p.e(y)}finally{p.f()}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)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&r_(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(e_),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value: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)}}},{key:"withScrollableContainers",value:function(t){return this._scrollables=t,this}},{key:"withPositions",value:function(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(t){return this._viewportMargin=t,this}},{key:"withFlexibleDimensions",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=t,this}},{key:"withGrowAfterOpen",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=t,this}},{key:"withPush",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=t,this}},{key:"withLockedPosition",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=t,this}},{key:"setOrigin",value:function(t){return this._origin=t,this}},{key:"withDefaultOffsetX",value:function(t){return this._offsetX=t,this}},{key:"withDefaultOffsetY",value:function(t){return this._offsetY=t,this}},{key:"withTransformOriginOn",value:function(t){return this._transformOriginSelector=t,this}},{key:"_getOriginPoint",value: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}}},{key:"_getOverlayPoint",value: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)}}},{key:"_getOverlayFit",value:function(t,e,n,i){var r=o_(e),a=t.x,o=t.y,s=this._getOffset(i,"x"),l=this._getOffset(i,"y");s&&(a+=s),l&&(o+=l);var u=0-o,c=o+r.height-n.height,h=this._subtractOverflows(r.width,0-a,a+r.width-n.width),d=this._subtractOverflows(r.height,u,c),f=h*d;return{visibleArea:f,isCompletelyWithinViewport:r.width*r.height===f,fitsInViewportVertically:d===r.height,fitsInViewportHorizontally:h==r.width}}},{key:"_canFitWithFlexibleDimensions",value:function(t,e,n){if(this._hasFlexibleDimensions){var i=n.bottom-e.y,r=n.right-e.x,a=a_(this._overlayRef.getConfig().minHeight),o=a_(this._overlayRef.getConfig().minWidth);return(t.fitsInViewportVertically||null!=a&&a<=i)&&(t.fitsInViewportHorizontally||null!=o&&o<=r)}return!1}},{key:"_pushOverlayOnScreen",value: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,a=o_(e),o=this._viewportRect,s=Math.max(t.x+a.width-o.width,0),l=Math.max(t.y+a.height-o.height,0),u=Math.max(o.top-n.top-t.y,0),c=Math.max(o.left-n.left-t.x,0);return this._previousPushAmount={x:i=a.width<=o.width?c||-s:t.xh&&!this._isInitialRender&&!this._growAfterOpen&&(i=t.y-h/2)}if("end"===e.overlayX&&!u||"start"===e.overlayX&&u)s=l.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!u||"end"===e.overlayX&&u)o=t.x,a=l.right-t.x;else{var d=Math.min(l.right-t.x+l.left,t.x),f=this._lastBoundingBoxSize.width;o=t.x-d,(a=2*d)>f&&!this._isInitialRender&&!this._growAfterOpen&&(o=t.x-f/2)}return{top:i,left:o,bottom:r,right:s,width:a,height:n}}},{key:"_setBoundingBoxStyles",value: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.maxHeight=i.maxWidth="",i.width=i.height="100%";else{var r=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;i.height=pg(n.height),i.top=pg(n.top),i.bottom=pg(n.bottom),i.width=pg(n.width),i.left=pg(n.left),i.right=pg(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=pg(r)),a&&(i.maxWidth=pg(a))}this._lastBoundingBoxSize=n,r_(this._boundingBox.style,i)}},{key:"_resetBoundingBoxStyles",value:function(){r_(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){r_(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(t,e){var n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(i){var o=this._viewportRuler.getViewportScrollPosition();r_(n,this._getExactOverlayY(e,t,o)),r_(n,this._getExactOverlayX(e,t,o))}else n.position="static";var s="",l=this._getOffset(e,"x"),u=this._getOffset(e,"y");l&&(s+="translateX(".concat(l,"px) ")),u&&(s+="translateY(".concat(u,"px)")),n.transform=s.trim(),a.maxHeight&&(i?n.maxHeight=pg(a.maxHeight):r&&(n.maxHeight="")),a.maxWidth&&(i?n.maxWidth=pg(a.maxWidth):r&&(n.maxWidth="")),r_(this._pane.style,n)}},{key:"_getExactOverlayY",value:function(t,e,n){var i={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));var a=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=a,"bottom"===t.overlayY?i.bottom="".concat(this._document.documentElement.clientHeight-(r.y+this._overlayRect.height),"px"):i.top=pg(r.y),i}},{key:"_getExactOverlayX",value:function(t,e,n){var i={left:"",right:""},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="".concat(this._document.documentElement.clientWidth-(r.x+this._overlayRect.width),"px"):i.left=pg(r.x),i}},{key:"_getScrollVisibility",value:function(){var t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(function(t){return t.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:Uy(t,n),isOriginOutsideView:Hy(t,n),isOverlayClipped:Uy(e,n),isOverlayOutsideView:Hy(e,n)}}},{key:"_subtractOverflows",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}},{key:"left",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}},{key:"right",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}},{key:"width",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}},{key:"height",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}},{key:"centerHorizontally",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(t),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(t),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),i=n.width,r=n.height,a=n.maxWidth,o=n.maxHeight,s=!("100%"!==i&&"100vw"!==i||a&&"100%"!==a&&"100vw"!==a),l=!("100%"!==r&&"100vh"!==r||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=s?"0":this._leftOffset,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,s?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=l?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(l_),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}}]),t}(),c_=function(){var t=function(){function t(e,n,i,r){a(this,t),this._viewportRuler=e,this._document=n,this._platform=i,this._overlayContainer=r}return s(t,[{key:"global",value:function(){return new u_}},{key:"connectedTo",value:function(t,e,n){return new s_(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(t){return new i_(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Vi(py),Vi(sh),Vi(Qg),Vi(Jy))},t.\u0275prov=Rt({factory:function(){return new t(Vi(py),Vi(sh),Vi(Qg),Vi(Jy))},token:t,providedIn:"root"}),t}(),h_=0,d_=function(){var t=function(){function t(e,n,i,r,o,s,l,u,c,h,d){a(this,t),this.scrollStrategies=e,this._overlayContainer=n,this._componentFactoryResolver=i,this._positionBuilder=r,this._keyboardDispatcher=o,this._injector=s,this._ngZone=l,this._document=u,this._directionality=c,this._location=h,this._outsideClickDispatcher=d}return s(t,[{key:"create",value:function(t){var e=this._createHostElement(),n=this._createPaneElement(e),i=this._createPortalOutlet(n),r=new Yy(t);return r.direction=r.direction||this._directionality.value,new t_(i,e,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(t){var e=this._document.createElement("div");return e.id="cdk-overlay-".concat(h_++),e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}},{key:"_createHostElement",value:function(){var t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}},{key:"_createPortalOutlet",value:function(t){return this._appRef||(this._appRef=this._injector.get(Kc)),new wy(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Vi(Wy),Vi(Jy),Vi(Sl),Vi(c_),Vi($y),Vi(qo),Vi(xc),Vi(sh),Vi(oy),Vi(wh),Vi(Xy))},t.\u0275prov=Rt({token:t,factory:t.\u0275fac}),t}(),f_=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],p_=new bi("cdk-connected-overlay-scroll-strategy"),m_=function(){var t=function t(e){a(this,t),this.elementRef=e};return t.\u0275fac=function(e){return new(e||t)(us(Dl))},t.\u0275dir=ve({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t}(),v_=function(){var t=function(){function t(e,n,i,r,o){a(this,t),this._overlay=e,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=A.EMPTY,this._attachSubscription=A.EMPTY,this._detachSubscription=A.EMPTY,this._positionSubscription=A.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new Vu,this.positionChange=new Vu,this.attach=new Vu,this.detach=new Vu,this.overlayKeydown=new Vu,this.overlayOutsideClick=new Vu,this._templatePortal=new _y(n,i),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}return s(t,[{key:"ngOnDestroy",value:function(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}},{key:"ngOnChanges",value:function(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var t=this;this.positions&&this.positions.length||(this.positions=f_);var e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(function(){return t.attach.emit()}),this._detachSubscription=e.detachments().subscribe(function(){return t.detach.emit()}),e.keydownEvents().subscribe(function(e){t.overlayKeydown.next(e),e.keyCode!==Iy||t.disableClose||Ny(e)||(e.preventDefault(),t._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(e){t.overlayOutsideClick.next(e)})}},{key:"_buildConfig",value:function(){var t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new Yy({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}},{key:"_updatePositionStrategy",value:function(t){var e=this,n=this.positions.map(function(t){return{originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||e.offsetX,offsetY:t.offsetY||e.offsetY,panelClass:t.panelClass||void 0}});return t.setOrigin(this.origin.elementRef).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t}},{key:"_attachOverlay",value:function(){var t=this;this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(function(e){t.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){return n.lift(new Ey(t,e))}}(function(){return t.positionChange.observers.length>0})).subscribe(function(e){t.positionChange.emit(e),0===t.positionChange.observers.length&&t._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}},{key:"offsetX",get:function(){return this._offsetX},set:function(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(t){this._hasBackdrop=cg(t)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(t){this._lockPosition=cg(t)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(t){this._flexibleDimensions=cg(t)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(t){this._growAfterOpen=cg(t)}},{key:"push",get:function(){return this._push},set:function(t){this._push=cg(t)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(d_),us(su),us(fu),us(p_),us(oy,8))},t.\u0275dir=ve({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Oe]}),t}(),g_={provide:p_,deps:[d_],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},y_=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({providers:[d_,g_],imports:[[sy,xy,vy],vy]}),t}();function __(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pg;return function(n){return n.lift(new b_(t,e))}}var b_=function(){function t(e,n){a(this,t),this.dueTime=e,this.scheduler=n}return s(t,[{key:"call",value:function(t,e){return e.subscribe(new k_(t,this.dueTime,this.scheduler))}}]),t}(),k_=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return a(this,n),(o=e.call(this,t)).dueTime=i,o.scheduler=r,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return s(n,[{key:"_next",value:function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(w_,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}},{key:"clearDebounce",value:function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}]),n}(M);function w_(t){t.debouncedNext()}var C_=function(){var t=function(){function t(){a(this,t)}return s(t,[{key:"create",value:function(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Rt({factory:function(){return new t},token:t,providedIn:"root"}),t}(),S_=function(){var t=function(){function t(e){a(this,t),this._mutationObserverFactory=e,this._observedElements=new Map}return s(t,[{key:"ngOnDestroy",value:function(){var t=this;this._observedElements.forEach(function(e,n){return t._cleanupObserver(n)})}},{key:"observe",value:function(t){var e=this,n=mg(t);return new j(function(t){var i=e._observeElement(n).subscribe(t);return function(){i.unsubscribe(),e._unobserveElement(n)}})}},{key:"_observeElement",value:function(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{var e=new q,n=this._mutationObserverFactory.create(function(t){return e.next(t)});n&&n.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:n,stream:e,count:1})}return this._observedElements.get(t).stream}},{key:"_unobserveElement",value:function(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}},{key:"_cleanupObserver",value:function(t){if(this._observedElements.has(t)){var e=this._observedElements.get(t),n=e.observer,i=e.stream;n&&n.disconnect(),i.complete(),this._observedElements.delete(t)}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Vi(C_))},t.\u0275prov=Rt({factory:function(){return new t(Vi(C_))},token:t,providedIn:"root"}),t}(),x_=function(){var t=function(){function t(e,n,i){a(this,t),this._contentObserver=e,this._elementRef=n,this._ngZone=i,this.event=new Vu,this._disabled=!1,this._currentSubscription=null}return s(t,[{key:"ngAfterContentInit",value:function(){this._currentSubscription||this.disabled||this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var t=this;this._unsubscribe();var e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(function(){t._currentSubscription=(t.debounce?e.pipe(__(t.debounce)):e).subscribe(t.event)})}},{key:"_unsubscribe",value:function(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=cg(t),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(t){this._debounce=hg(t),this._subscribe()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(S_),us(Dl),us(xc))},t.\u0275dir=ve({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t}(),E_=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({providers:[C_]}),t}();function A_(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}var D_="cdk-describedby-message-container",I_="cdk-describedby-message",O_="cdk-describedby-host",T_=0,R_=new Map,P_=null,M_=function(){var t=function(){function t(e){a(this,t),this._document=e}return s(t,[{key:"describe",value:function(t,e,n){if(this._canBeDescribed(t,e)){var i=F_(e,n);"string"!=typeof e?(L_(e),R_.set(i,{messageElement:e,referenceCount:0})):R_.has(i)||this._createMessageElement(e,n),this._isElementDescribedByMessage(t,i)||this._addMessageReference(t,i)}}},{key:"removeDescription",value:function(t,e,n){if(e&&this._isElementNode(t)){var i=F_(e,n);if(this._isElementDescribedByMessage(t,i)&&this._removeMessageReference(t,i),"string"==typeof e){var r=R_.get(i);r&&0===r.referenceCount&&this._deleteMessageElement(i)}P_&&0===P_.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var t=this._document.querySelectorAll("[".concat(O_,"]")),e=0;e-1&&e!==n._activeItemIndex&&(n._activeItemIndex=e)}})}return s(t,[{key:"skipPredicate",value:function(t){return this._skipPredicateFn=t,this}},{key:"withWrap",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=t,this}},{key:"withVerticalOrientation",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=t,this}},{key:"withHorizontalOrientation",value:function(t){return this._horizontal=t,this}},{key:"withAllowedModifierKeys",value:function(t){return this._allowedModifierKeys=t,this}},{key:"withTypeAhead",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(np(function(e){return t._pressedLetters.push(e)}),__(e),Pd(function(){return t._pressedLetters.length>0}),G(function(){return t._pressedLetters.join("")})).subscribe(function(e){for(var n=t._getItemsArray(),i=1;i0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=t,this}},{key:"setActiveItem",value:function(t){var e=this._activeItem;this.updateActiveItem(t),this._activeItem!==e&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(t){var e=this,n=t.keyCode,i=["altKey","ctrlKey","metaKey","shiftKey"].every(function(n){return!t[n]||e._allowedModifierKeys.indexOf(n)>-1});switch(n){case 9:return void this.tabOut.next();case Ly:if(this._vertical&&i){this.setNextItemActive();break}return;case My:if(this._vertical&&i){this.setPreviousItemActive();break}return;case Fy:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case Py:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case Ry:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case Ty:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||Ny(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()}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value: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}},{key:"_setActiveItemByDelta",value:function(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}},{key:"_setActiveInWrapMode",value: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)}}},{key:"_setActiveInDefaultMode",value:function(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}},{key:"_setActiveItemByIndex",value:function(t,e){var n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}},{key:"_getItemsArray",value:function(){return this._items instanceof Bu?this._items.toArray():this._items}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}}]),t}(),V_=function(t){u(n,t);var e=p(n);function n(){return a(this,n),e.apply(this,arguments)}return s(n,[{key:"setActiveItem",value:function(t){this.activeItem&&this.activeItem.setInactiveStyles(),r(i(n.prototype),"setActiveItem",this).call(this,t),this.activeItem&&this.activeItem.setActiveStyles()}}]),n}(N_),j_=function(t){u(n,t);var e=p(n);function n(){var t;return a(this,n),(t=e.apply(this,arguments))._origin="program",t}return s(n,[{key:"setFocusOrigin",value:function(t){return this._origin=t,this}},{key:"setActiveItem",value:function(t){r(i(n.prototype),"setActiveItem",this).call(this,t),this.activeItem&&this.activeItem.focus(this._origin)}}]),n}(N_),B_=function(){var t=function(){function t(e){a(this,t),this._platform=e}return s(t,[{key:"isDisabled",value:function(t){return t.hasAttribute("disabled")}},{key:"isVisible",value:function(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}},{key:"isTabbable",value:function(t){if(!this._platform.isBrowser)return!1;var e,n=function(t){try{return t.frameElement}catch(zB){return null}}((e=t).ownerDocument&&e.ownerDocument.defaultView||window);if(n){if(-1===H_(n))return!1;if(!this.isVisible(n))return!1}var i=t.nodeName.toLowerCase(),r=H_(t);return t.hasAttribute("contenteditable")?-1!==r:"iframe"!==i&&"object"!==i&&!(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))&&("audio"===i?!!t.hasAttribute("controls")&&-1!==r:"video"===i?-1!==r&&(null!==r||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}},{key:"isFocusable",value:function(t,e){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")||z_(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Vi(Qg))},t.\u0275prov=Rt({factory:function(){return new t(Vi(Qg))},token:t,providedIn:"root"}),t}();function z_(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 H_(t){if(!z_(t))return null;var e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}var U_=function(){function t(e,n,i,r){var o=this,s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];a(this,t),this._element=e,this._checker=n,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=function(){return o.focusLastTabbableElement()},this.endAnchorListener=function(){return o.focusFirstTabbableElement()},this._enabled=!0,s||this.attachAnchors()}return s(t,[{key:"destroy",value: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,this._hasAttached=!1}},{key:"attachAnchors",value: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)}},{key:"focusInitialElementWhenReady",value:function(){var t=this;return new Promise(function(e){t._executeOnStable(function(){return e(t.focusInitialElement())})})}},{key:"focusFirstTabbableElementWhenReady",value:function(){var t=this;return new Promise(function(e){t._executeOnStable(function(){return e(t.focusFirstTabbableElement())})})}},{key:"focusLastTabbableElementWhenReady",value:function(){var t=this;return new Promise(function(e){t._executeOnStable(function(){return e(t.focusLastTabbableElement())})})}},{key:"_getRegionBoundary",value:function(t){for(var e=this._element.querySelectorAll("[cdk-focus-region-".concat(t,"], ")+"[cdkFocusRegion".concat(t,"], ")+"[cdk-focus-".concat(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}},{key:"_createAnchor",value: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}},{key:"_toggleAnchorTabIndex",value:function(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}},{key:"_executeOnStable",value:function(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(Mf(1)).subscribe(t)}},{key:"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))}}]),t}(),q_=function(){var t=function(){function t(e,n,i){a(this,t),this._checker=e,this._ngZone=n,this._document=i}return s(t,[{key:"create",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new U_(t,this._checker,this._ngZone,this._document,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Vi(B_),Vi(xc),Vi(sh))},t.\u0275prov=Rt({factory:function(){return new t(Vi(B_),Vi(xc),Vi(sh))},token:t,providedIn:"root"}),t}(),W_=function(){var t=function(){function t(e,n,i){a(this,t),this._elementRef=e,this._focusTrapFactory=n,this._previouslyFocusedElement=null,this._document=i,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}return s(t,[{key:"ngOnDestroy",value:function(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}},{key:"ngAfterContentInit",value:function(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}},{key:"ngDoCheck",value:function(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}},{key:"ngOnChanges",value:function(t){var e=t.autoCapture;e&&!e.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}},{key:"_captureFocus",value:function(){this._previouslyFocusedElement=this._document.activeElement,this.focusTrap.focusInitialElementWhenReady()}},{key:"enabled",get:function(){return this.focusTrap.enabled},set:function(t){this.focusTrap.enabled=cg(t)}},{key:"autoCapture",get:function(){return this._autoCapture},set:function(t){this._autoCapture=cg(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(Dl),us(q_),us(sh))},t.\u0275dir=ve({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[Oe]}),t}();"undefined"!=typeof Element&∈var Y_=new bi("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),G_=new bi("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),K_=function(){var t=function(){function t(e,n,i,r){a(this,t),this._ngZone=n,this._defaultOptions=r,this._document=i,this._liveElement=e||this._createLiveElement()}return s(t,[{key:"announce",value:function(t){for(var e,n,i=this,r=this._defaultOptions,a=arguments.length,o=new Array(a>1?a-1:0),s=1;s1&&void 0!==arguments[1]&&arguments[1],n=mg(t);if(!this._platform.isBrowser||1!==n.nodeType)return Td(null);var i=ry(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return e&&(r.checkChildren=!0),r.subject;var a={checkChildren:e,subject:new q,rootNode:i};return this._elementInfo.set(n,a),this._registerGlobalListeners(a),a.subject}},{key:"stopMonitoring",value:function(t){var e=mg(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))}},{key:"focusVia",value:function(t,e,n){var i=this,r=mg(t);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(function(t){var n=y(t,2);return i._originChanged(n[0],e,n[1])}):(this._setOriginForCurrentEventQueue(e),"function"==typeof r.focus&&r.focus(n))}},{key:"ngOnDestroy",value:function(){var t=this;this._elementInfo.forEach(function(e,n){return t.stopMonitoring(n)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(t,e,n){n?t.classList.add(e):t.classList.remove(e)}},{key:"_getFocusOrigin",value:function(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}},{key:"_setClasses",value:function(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}},{key:"_setOriginForCurrentEventQueue",value:function(t){var e=this;this._ngZone.runOutsideAngular(function(){e._origin=t,0===e._detectionMode&&(e._originTimeoutId=setTimeout(function(){return e._origin=null},1))})}},{key:"_wasCausedByTouch",value:function(t){var e=eb(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}},{key:"_onFocus",value:function(t,e){var n=this._elementInfo.get(e);n&&(n.checkChildren||e===eb(t))&&this._originChanged(e,this._getFocusOrigin(t),n)}},{key:"_onBlur",value:function(t,e){var n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}},{key:"_emitOrigin",value:function(t,e){this._ngZone.run(function(){return t.next(e)})}},{key:"_registerGlobalListeners",value:function(t){var e=this;if(this._platform.isBrowser){var n=t.rootNode,i=this._rootNodeFocusListenerCount.get(n)||0;i||this._ngZone.runOutsideAngular(function(){n.addEventListener("focus",e._rootNodeFocusAndBlurListener,J_),n.addEventListener("blur",e._rootNodeFocusAndBlurListener,J_)}),this._rootNodeFocusListenerCount.set(n,i+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(function(){var t=e._getDocument(),n=e._getWindow();t.addEventListener("keydown",e._documentKeydownListener,J_),t.addEventListener("mousedown",e._documentMousedownListener,J_),t.addEventListener("touchstart",e._documentTouchstartListener,J_),n.addEventListener("focus",e._windowFocusListener)})}}},{key:"_removeGlobalListeners",value:function(t){var e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){var n=this._rootNodeFocusListenerCount.get(e);n>1?this._rootNodeFocusListenerCount.set(e,n-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,J_),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,J_),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){var i=this._getDocument(),r=this._getWindow();i.removeEventListener("keydown",this._documentKeydownListener,J_),i.removeEventListener("mousedown",this._documentMousedownListener,J_),i.removeEventListener("touchstart",this._documentTouchstartListener,J_),r.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}},{key:"_originChanged",value:function(t,e,n){this._setClasses(t,e),this._emitOrigin(n.subject,e),this._lastFocusOrigin=e}},{key:"_getClosestElementsInfo",value:function(t){var e=[];return this._elementInfo.forEach(function(n,i){(i===t||n.checkChildren&&i.contains(t))&&e.push([i,n])}),e}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Vi(xc),Vi(Qg),Vi(sh,8),Vi(Q_,8))},t.\u0275prov=Rt({factory:function(){return new t(Vi(xc),Vi(Qg),Vi(sh,8),Vi(Q_,8))},token:t,providedIn:"root"}),t}();function eb(t){return t.composedPath?t.composedPath()[0]:t.target}var nb=function(){var t=function(){function t(e,n){a(this,t),this._elementRef=e,this._focusMonitor=n,this.cdkFocusChange=new Vu}return s(t,[{key:"ngAfterViewInit",value:function(){var t=this,e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(function(e){return t.cdkFocusChange.emit(e)})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(Dl),us(tb))},t.\u0275dir=ve({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t}(),ib="cdk-high-contrast-black-on-white",rb="cdk-high-contrast-white-on-black",ab="cdk-high-contrast-active",ob=function(){var t=function(){function t(e,n){a(this,t),this._platform=e,this._document=n}return s(t,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);var e=this._document.defaultView||window,n=e&&e.getComputedStyle?e.getComputedStyle(t):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(this._platform.isBrowser&&this._document.body){var t=this._document.body.classList;t.remove(ab),t.remove(ib),t.remove(rb);var e=this.getHighContrastMode();1===e?(t.add(ab),t.add(ib)):2===e&&(t.add(ab),t.add(rb))}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Vi(Qg),Vi(sh))},t.\u0275prov=Rt({factory:function(){return new t(Vi(Qg),Vi(sh))},token:t,providedIn:"root"}),t}(),sb=function(){var t=function t(e){a(this,t),e._applyBodyHighContrastModeCssClasses()};return t.\u0275fac=function(e){return new(e||t)(Vi(ob))},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({imports:[[Jg,E_]]}),t}(),lb=new Ml("11.2.4"),ub=function t(){a(this,t)},cb=function t(){a(this,t)},hb="*";function db(t,e){return{type:7,name:t,definitions:e,options:{}}}function fb(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:e,timings:t}}function pb(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:t,options:e}}function mb(t){return{type:6,styles:t,offset:null}}function vb(t,e,n){return{type:0,name:t,styles:e,options:n}}function gb(t){return{type:5,steps:t}}function yb(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:t,animation:e,options:n}}function _b(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:t}}function bb(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:t,animation:e,options:n}}function kb(t){Promise.resolve(null).then(t)}var wb=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;a(this,t),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+n}return s(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var t=this;kb(function(){return t._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){}},{key:"setPosition",value:function(t){this._position=this.totalTime?t*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}}]),t}(),Cb=function(){function t(e){var n=this;a(this,t),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;var i=0,r=0,o=0,s=this.players.length;0==s?kb(function(){return n._onFinish()}):this.players.forEach(function(t){t.onDone(function(){++i==s&&n._onFinish()}),t.onDestroy(function(){++r==s&&n._onDestroy()}),t.onStart(function(){++o==s&&n._onStart()})}),this.totalTime=this.players.reduce(function(t,e){return Math.max(t,e.totalTime)},0)}return s(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(t){return t.init()})}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[])}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(t){return t.play()})}},{key:"pause",value:function(){this.players.forEach(function(t){return t.pause()})}},{key:"restart",value:function(){this.players.forEach(function(t){return t.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(t){return t.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(t){return t.destroy()}),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(t){var e=t*this.totalTime;this.players.forEach(function(t){var n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}},{key:"getPosition",value:function(){var t=this.players.reduce(function(t,e){return null===t||e.totalTime>t.totalTime?e:t},null);return null!=t?t.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(t){t.beforeDestroy&&t.beforeDestroy()})}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}}]),t}(),Sb="!";function xb(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Eb(t){switch(t.length){case 0:return new wb;case 1:return t[0];default:return new Cb(t)}}function Ab(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=[],s=[],l=-1,u=null;if(i.forEach(function(t){var n=t.offset,i=n==l,c=i&&u||{};Object.keys(t).forEach(function(n){var i=n,s=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,o),s){case Sb:s=r[n];break;case hb:s=a[n];break;default:s=e.normalizeStyleValue(n,i,s,o)}c[i]=s}),i||s.push(c),u=c,l=n}),o.length){var c="\n - ";throw new Error("Unable to animate due to the following errors:".concat(c).concat(o.join(c)))}return s}function Db(t,e,n,i){switch(e){case"start":t.onStart(function(){return i(n&&Ib(n,"start",t))});break;case"done":t.onDone(function(){return i(n&&Ib(n,"done",t))});break;case"destroy":t.onDestroy(function(){return i(n&&Ib(n,"destroy",t))})}}function Ib(t,e,n){var i=n.totalTime,r=Ob(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),a=t._data;return null!=a&&(r._data=a),r}function Ob(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=arguments.length>6?arguments[6]:void 0;return{element:t,triggerName:e,fromState:n,toState:i,phaseName:r,totalTime:a,disabled:!!o}}function Tb(t,e,n){var i;return t instanceof Map?(i=t.get(e))||t.set(e,i=n):(i=t[e])||(i=t[e]=n),i}function Rb(t){var e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}var Pb=function(t,e){return!1},Mb=function(t,e){return!1},Fb=function(t,e,n){return[]},Lb=xb();(Lb||"undefined"!=typeof Element)&&(Pb=function(t,e){return t.contains(e)},Mb=function(){if(Lb||Element.prototype.matches)return function(t,e){return t.matches(e)};var t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?function(t,n){return e.apply(t,[n])}:Mb}(),Fb=function(t,e,n){var i=[];if(n)for(var r=t.querySelectorAll(e),a=0;a1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).forEach(function(n){e[n]=t[n]}),e}function nk(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e)for(var i in t)n[i]=t[i];else ek(t,n);return n}function ik(t,e,n){return n?e+":"+n+";":""}function rk(t){for(var e="",n=0;n *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e) *"}}(t,n);if("function"==typeof 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 "'.concat(t,'" is not supported')),e;var a=r[1],o=r[2],s=r[3];e.push(kk(a,s)),"<"!=o[0]||a==yk&&s==yk||e.push(kk(s,a))}(t,r,i)}):r.push(n),r),animation:a,queryCount:e.queryCount,depCount:e.depCount,options:Dk(t.options)}}},{key:"visitSequence",value:function(t,e){var n=this;return{type:2,steps:t.steps.map(function(t){return vk(n,t,e)}),options:Dk(t.options)}}},{key:"visitGroup",value:function(t,e){var n=this,i=e.currentTime,r=0,a=t.steps.map(function(t){e.currentTime=i;var a=vk(n,t,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:a,options:Dk(t.options)}}},{key:"visitAnimate",value:function(t,e){var n,i=function(t,e){var n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return Ik(tk(t,e).duration,0,"");var i=t;if(i.split(/\s+/).some(function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)})){var r=Ik(0,0,"");return r.dynamic=!0,r.strValue=i,r}return Ik((n=n||tk(i,e)).duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;var r=t.styles?t.styles:mb({});if(5==r.type)n=this.visitKeyframes(r,e);else{var a=t.styles,o=!1;if(!a){o=!0;var s={};i.easing&&(s.easing=i.easing),a=mb(s)}e.currentTime+=i.duration+i.delay;var l=this.visitStyle(a,e);l.isEmptyStep=o,n=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}},{key:"visitStyle",value:function(t,e){var n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}},{key:"_makeStyleAst",value:function(t,e){var n=[];Array.isArray(t.styles)?t.styles.forEach(function(t){"string"==typeof t?t==hb?n.push(t):e.errors.push("The provided style string value ".concat(t," is not allowed.")):n.push(t)}):n.push(t.styles);var i=!1,r=null;return n.forEach(function(t){if(Ak(t)){var e=t,n=e.easing;if(n&&(r=n,delete e.easing),!i)for(var a in e)if(e[a].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:t.offset,containsDynamicStyles:i,options:null}}},{key:"_validateStyleAst",value:function(t,e){var n=this,i=e.currentAnimateTimings,r=e.currentTime,a=e.currentTime;i&&a>0&&(a-=i.duration+i.delay),t.styles.forEach(function(t){"string"!=typeof t&&Object.keys(t).forEach(function(i){if(n._driver.validateStyleProperty(i)){var o,s,l,u=e.collectedStyles[e.currentQuerySelector],c=u[i],h=!0;c&&(a!=r&&a>=c.startTime&&r<=c.endTime&&(e.errors.push('The CSS property "'.concat(i,'" that exists between the times of "').concat(c.startTime,'ms" and "').concat(c.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(a,'ms" and "').concat(r,'ms"')),h=!1),a=c.startTime),h&&(u[i]={startTime:a,endTime:r}),e.options&&(o=e.errors,s=e.options.params||{},(l=uk(t[i])).length&&l.forEach(function(t){s.hasOwnProperty(t)||o.push("Unable to resolve the local animation param ".concat(t," in the given list of values"))}))}else e.errors.push('The provided animation property "'.concat(i,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value: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,a=[],o=!1,s=!1,l=0,u=t.steps.map(function(t){var i=n._makeStyleAst(t,e),u=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(Ak(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}});else if(Ak(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}return e}(i.styles),c=0;return null!=u&&(r++,c=i.offset=u),s=s||c<0||c>1,o=o||c0&&r0?r==d?1:h*r:a[r],s=o*m;e.currentTime=f+p.delay+s,p.duration=s,n._validateStyleAst(t,e),t.offset=o,i.styles.push(t)}),i}},{key:"visitReference",value:function(t,e){return{type:8,animation:vk(this,sk(t.animation),e),options:Dk(t.options)}}},{key:"visitAnimateChild",value:function(t,e){return e.depCount++,{type:9,options:Dk(t.options)}}},{key:"visitAnimateRef",value:function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Dk(t.options)}}},{key:"visitQuery",value:function(t,e){var n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;var r=y(function(t){var e=!!t.split(/\s*,\s*/).find(function(t){return t==wk});return e&&(t=t.replace(Ck,"")),[t=t.replace(/@\*/g,Zb).replace(/@\w+/g,function(t){return".ng-trigger-"+t.substr(1)}).replace(/:animating/g,Xb),e]}(t.selector),2),a=r[0],o=r[1];e.currentQuerySelector=n.length?n+" "+a:a,Tb(e.collectedStyles,e.currentQuerySelector,{});var s=vk(this,sk(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:a,limit:i.limit||0,optional:!!i.optional,includeSelf:o,animation:s,originalSelector:t.selector,options:Dk(t.options)}}},{key:"visitStagger",value: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"}:tk(t.timings,e.errors,!0);return{type:12,animation:vk(this,sk(t.animation),e),timings:n,options:null}}}]),t}(),Ek=function t(e){a(this,t),this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function Ak(t){return!Array.isArray(t)&&"object"==typeof t}function Dk(t){var e;return t?(t=ek(t)).params&&(t.params=(e=t.params)?ek(e):null):t={},t}function Ik(t,e,n){return{duration:t,delay:e,easing:n}}function Ok(t,e,n,i,r,a){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:r,delay:a,totalTime:r+a,easing:o,subTimeline:s}}var Tk=function(){function t(){a(this,t),this._map=new Map}return s(t,[{key:"consume",value:function(t){var e=this._map.get(t);return e?this._map.delete(t):e=[],e}},{key:"append",value:function(t,e){var n,i=this._map.get(t);i||this._map.set(t,i=[]),(n=i).push.apply(n,b(e))}},{key:"has",value:function(t){return this._map.has(t)}},{key:"clear",value:function(){this._map.clear()}}]),t}(),Rk=new RegExp(":enter","g"),Pk=new RegExp(":leave","g");function Mk(t,e,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0,u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new Fk).buildKeyframes(t,e,n,i,r,a,o,s,l,u)}var Fk=function(){function t(){a(this,t)}return s(t,[{key:"buildKeyframes",value:function(t,e,n,i,r,a,o,s,l){var u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];l=l||new Tk;var c=new Nk(t,e,l,i,r,u,[]);c.options=s,c.currentTimeline.setStyles([a],null,c.errors,s),vk(this,n,c);var h=c.timelines.filter(function(t){return t.containsAnimation()});if(h.length&&Object.keys(o).length){var d=h[h.length-1];d.allowOnlyTimelineStyles()||d.setStyles([o],null,c.errors,s)}return h.length?h.map(function(t){return t.buildKeyframes()}):[Ok(e,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(t,e){}},{key:"visitState",value:function(t,e){}},{key:"visitTransition",value:function(t,e){}},{key:"visitAnimateChild",value:function(t,e){var n=e.subInstructions.consume(e.element);if(n){var i=e.createSubContext(t.options),r=e.currentTimeline.currentTime,a=this._visitSubInstructions(n,i,i.options);r!=a&&e.transformIntoNewTimeline(a)}e.previousNode=t}},{key:"visitAnimateRef",value:function(t,e){var n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}},{key:"_visitSubInstructions",value:function(t,e,n){var i=e.currentTimeline.currentTime,r=null!=n.duration?Qb(n.duration):null,a=null!=n.delay?Qb(n.delay):null;return 0!==r&&t.forEach(function(t){var n=e.appendInstructionToTimeline(t,r,a);i=Math.max(i,n.duration+n.delay)}),i}},{key:"visitReference",value:function(t,e){e.updateOptions(t.options,!0),vk(this,t.animation,e),e.previousNode=t}},{key:"visitSequence",value:function(t,e){var n=this,i=e.subContextCount,r=e,a=t.options;if(a&&(a.params||a.delay)&&((r=e.createSubContext(a)).transformIntoNewTimeline(),null!=a.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Lk);var o=Qb(a.delay);r.delayNextStep(o)}t.steps.length&&(t.steps.forEach(function(t){return vk(n,t,r)}),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}},{key:"visitGroup",value:function(t,e){var n=this,i=[],r=e.currentTimeline.currentTime,a=t.options&&t.options.delay?Qb(t.options.delay):0;t.steps.forEach(function(o){var s=e.createSubContext(t.options);a&&s.delayNextStep(a),vk(n,o,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}},{key:"_visitTiming",value:function(t,e){if(t.dynamic){var n=t.strValue;return tk(e.params?ck(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}},{key:"visitAnimate",value: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}},{key:"visitStyle",value: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}},{key:"visitKeyframes",value:function(t,e){var n=e.currentAnimateTimings,i=e.currentTimeline.duration,r=n.duration,a=e.createSubContext().currentTimeline;a.easing=n.easing,t.styles.forEach(function(t){a.forwardTime((t.offset||0)*r),a.setStyles(t.styles,t.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(i+r),e.previousNode=t}},{key:"visitQuery",value:function(t,e){var n=this,i=e.currentTimeline.currentTime,r=t.options||{},a=r.delay?Qb(r.delay):0;a&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Lk);var o=i,s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=s.length;var l=null;s.forEach(function(i,r){e.currentQueryIndex=r;var s=e.createSubContext(t.options,i);a&&s.delayNextStep(a),i===e.element&&(l=s.currentTimeline),vk(n,t.animation,s),s.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,s.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}},{key:"visitStagger",value:function(t,e){var n=e.parentContext,i=e.currentTimeline,r=t.timings,a=Math.abs(r.duration),o=a*(e.currentQueryTotal-1),s=a*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":s=o-s;break;case"full":s=n.currentStaggerTime}var l=e.currentTimeline;s&&l.delayNextStep(s);var u=l.currentTime;vk(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-u+(i.startTime-n.currentTimeline.startTime)}}]),t}(),Lk={},Nk=function(){function t(e,n,i,r,o,s,l,u){a(this,t),this._driver=e,this.element=n,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=l,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Lk,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new Vk(this._driver,n,0),l.push(this.currentTimeline)}return s(t,[{key:"updateOptions",value:function(t,e){var n=this;if(t){var i=t,r=this.options;null!=i.duration&&(r.duration=Qb(i.duration)),null!=i.delay&&(r.delay=Qb(i.delay));var a=i.params;if(a){var o=r.params;o||(o=this.options.params={}),Object.keys(a).forEach(function(t){e&&o.hasOwnProperty(t)||(o[t]=ck(a[t],o,n.errors))})}}}},{key:"_copyOptions",value: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}},{key:"createSubContext",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=n||this.element,a=new t(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return a.previousNode=this.previousNode,a.currentAnimateTimings=this.currentAnimateTimings,a.options=this._copyOptions(),a.updateOptions(e),a.currentQueryIndex=this.currentQueryIndex,a.currentQueryTotal=this.currentQueryTotal,a.parentContext=this,this.subContextCount++,a}},{key:"transformIntoNewTimeline",value:function(t){return this.previousNode=Lk,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value: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 jk(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(r),i}},{key:"incrementTime",value:function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}},{key:"delayNextStep",value:function(t){t>0&&this.currentTimeline.delayNextStep(t)}},{key:"invokeQuery",value:function(t,e,n,i,r,a){var o=[];if(i&&o.push(this.element),t.length>0){t=(t=t.replace(Rk,"."+this._enterClassName)).replace(Pk,"."+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)),o.push.apply(o,b(s))}return r||0!=o.length||a.push('`query("'.concat(e,'")` returned zero elements. (Use `query("').concat(e,'", { optional: true })` if you wish to allow this.)')),o}},{key:"params",get:function(){return this.options.params}}]),t}(),Vk=function(){function t(e,n,i,r){a(this,t),this._driver=e,this.element=n,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return s(t,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"delayNextStep",value: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}},{key:"fork",value:function(e,n){return this.applyStylesToKeyframe(),new t(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value: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))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}},{key:"_updateStyle",value:function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(t){var e=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(function(t){e._backFill[t]=e._globalTimelineStyles[t]||hb,e._currentKeyframe[t]=hb}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(t,e,n,i){var r=this;e&&(this._previousKeyframe.easing=e);var a=i&&i.params||{},o=function(t,e){var n,i={};return t.forEach(function(t){"*"===t?(n=n||Object.keys(e)).forEach(function(t){i[t]=hb}):nk(t,!1,i)}),i}(t,this._globalTimelineStyles);Object.keys(o).forEach(function(t){var e=ck(o[t],a,n);r._pendingStyles[t]=e,r._localTimelineStyles.hasOwnProperty(t)||(r._backFill[t]=r._globalTimelineStyles.hasOwnProperty(t)?r._globalTimelineStyles[t]:hb),r._updateStyle(t,e)})}},{key:"applyStylesToKeyframe",value: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])}))}},{key:"snapshotCurrentStyles",value:function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(e){var n=t._localTimelineStyles[e];t._pendingStyles[e]=n,t._updateStyle(e,n)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"mergeTimelineCollectedStyles",value: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)})}},{key:"buildKeyframes",value: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(a,o){var s=nk(a,!0);Object.keys(s).forEach(function(t){var i=s[t];i==Sb?e.add(t):i==hb&&n.add(t)}),i||(s.offset=o/t.duration),r.push(s)});var a=e.size?hk(e.values()):[],o=n.size?hk(n.values()):[];if(i){var s=r[0],l=ek(s);s.offset=0,l.offset=1,r=[s,l]}return Ok(this.element,r,a,o,this.duration,this.startTime,this.easing,!1)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"properties",get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t}}]),t}(),jk=function(t){u(n,t);var e=p(n);function n(t,i,r,o,s,l){var u,c=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return a(this,n),(u=e.call(this,t,i,l.delay)).element=i,u.keyframes=r,u.preStyleProps=o,u.postStyleProps=s,u._stretchStartingKeyframe=c,u.timings={duration:l.duration,delay:l.delay,easing:l.easing},u}return s(n,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var t=this.keyframes,e=this.timings,n=e.delay,i=e.duration,r=e.easing;if(this._stretchStartingKeyframe&&n){var a=[],o=i+n,s=n/o,l=nk(t[0],!1);l.offset=0,a.push(l);var u=nk(t[0],!1);u.offset=Bk(s),a.push(u);for(var c=t.length-1,h=1;h<=c;h++){var d=nk(t[h],!1);d.offset=Bk((n+d.offset*i)/o),a.push(d)}i=o,n=0,r="",t=a}return Ok(this.element,t,this.preStyleProps,this.postStyleProps,i,n,r,!0)}}]),n}(Vk);function Bk(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,e-1);return Math.round(t*n)/n}var zk=function t(){a(this,t)},Hk=function(t){u(n,t);var e=p(n);function n(){return a(this,n),e.apply(this,arguments)}return s(n,[{key:"normalizePropertyName",value:function(t,e){return fk(t)}},{key:"normalizeStyleValue",value:function(t,e,n,i){var r="",a=n.toString().trim();if(Uk[e]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var o=n.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&0==o[1].length&&i.push("Please provide a CSS unit value for ".concat(t,":").concat(n))}return a+r}}]),n}(zk),Uk=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 qk(t,e,n,i,r,a,o,s,l,u,c,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:n,fromStyles:a,toState:i,toStyles:o,timelines:s,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:h,errors:d}}var Wk={},Yk=function(){function t(e,n,i){a(this,t),this._triggerName=e,this.ast=n,this._stateStyles=i}return s(t,[{key:"match",value: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)}},{key:"buildStyles",value:function(t,e,n){var i=this._stateStyles["*"],r=this._stateStyles[t],a=i?i.buildStyles(e,n):{};return r?r.buildStyles(e,n):a}},{key:"build",value:function(t,e,n,i,r,a,o,s,l,u){var c=[],h=this.ast.options&&this.ast.options.params||Wk,d=this.buildStyles(n,o&&o.params||Wk,c),f=s&&s.params||Wk,p=this.buildStyles(i,f,c),m=new Set,v=new Map,g=new Map,y="void"===i,_={params:Object.assign(Object.assign({},h),f)},b=u?[]:Mk(t,e,this.ast.animation,r,a,d,p,_,l,c),k=0;if(b.forEach(function(t){k=Math.max(t.duration+t.delay,k)}),c.length)return qk(e,this._triggerName,n,i,y,d,p,[],[],v,g,k,c);b.forEach(function(t){var n=t.element,i=Tb(v,n,{});t.preStyleProps.forEach(function(t){return i[t]=!0});var r=Tb(g,n,{});t.postStyleProps.forEach(function(t){return r[t]=!0}),n!==e&&m.add(n)});var w=hk(m.values());return qk(e,this._triggerName,n,i,y,d,p,b,w,v,g,k)}}]),t}(),Gk=function(){function t(e,n){a(this,t),this.styles=e,this.defaultParams=n}return s(t,[{key:"buildStyles",value:function(t,e){var n={},i=ek(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 a=r[t];a.length>1&&(a=ck(a,i,e)),n[t]=a})}}),n}}]),t}(),Kk=function(){function t(e,n){var i=this;a(this,t),this.name=e,this.ast=n,this.transitionFactories=[],this.states={},n.states.forEach(function(t){i.states[t.name]=new Gk(t.style,t.options&&t.options.params||{})}),Zk(this.states,"true","1"),Zk(this.states,"false","0"),n.transitions.forEach(function(t){i.transitionFactories.push(new Yk(e,t,i.states))}),this.fallbackTransition=new Yk(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,e){return!0}],options:null,queryCount:0,depCount:0},this.states)}return s(t,[{key:"matchTransition",value:function(t,e,n,i){return this.transitionFactories.find(function(r){return r.match(t,e,n,i)})||null}},{key:"matchStyles",value:function(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}},{key:"containsQueries",get:function(){return this.ast.queryCount>0}}]),t}();function Zk(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}var $k=new Tk,Xk=function(){function t(e,n,i){a(this,t),this.bodyNode=e,this._driver=n,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}return s(t,[{key:"register",value:function(t,e){var n=[],i=Sk(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: ".concat(n.join("\n")));this._animations[t]=i}},{key:"_buildPlayer",value:function(t,e,n){var i=t.element,r=Ab(this._driver,this._normalizer,i,t.keyframes,e,n);return this._driver.animate(i,r,t.duration,t.delay,t.easing,[],!0)}},{key:"create",value:function(t,e){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=[],o=this._animations[t],s=new Map;if(o?(n=Mk(this._driver,e,o,Yb,Gb,{},{},r,$k,a)).forEach(function(t){var e=Tb(s,t.element,{});t.postStyleProps.forEach(function(t){return e[t]=null})}):(a.push("The requested animation doesn't exist or has already been destroyed"),n=[]),a.length)throw new Error("Unable to create the animation due to the following errors: ".concat(a.join("\n")));s.forEach(function(t,e){Object.keys(t).forEach(function(n){t[n]=i._driver.computeStyle(e,n,hb)})});var l=n.map(function(t){var e=s.get(t.element);return i._buildPlayer(t,{},e)}),u=Eb(l);return this._playersById[t]=u,u.onDestroy(function(){return i.destroy(t)}),this.players.push(u),u}},{key:"destroy",value: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)}},{key:"_getPlayer",value:function(t){var e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by ".concat(t));return e}},{key:"listen",value:function(t,e,n,i){var r=Ob(e,"","","");return Db(this._getPlayer(t),n,r,i),function(){}}},{key:"command",value: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}(),Qk="ng-animate-queued",Jk="ng-animate-disabled",tw=".ng-animate-disabled",ew="ng-star-inserted",nw=[],iw={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},rw={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},aw=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";a(this,t),this.namespaceId=n;var i=e&&e.hasOwnProperty("value"),r=i?e.value:e;if(this.value=hw(r),i){var o=ek(e);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}return s(t,[{key:"absorbOptions",value: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])})}}},{key:"params",get:function(){return this.options.params}}]),t}(),ow="void",sw=new aw(ow),lw=function(){function t(e,n,i){a(this,t),this.id=e,this.hostElement=n,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,vw(n,this._hostClassName)}return s(t,[{key:"listen",value:function(t,e,n,i){var r,a=this;if(!this._triggers.hasOwnProperty(e))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(e,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(e,'" because the provided event is undefined!'));if("start"!=(r=n)&&"done"!=r)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(e,'" is not supported!'));var o=Tb(this._elementListeners,t,[]),s={name:e,phase:n,callback:i};o.push(s);var l=Tb(this._engine.statesByElement,t,{});return l.hasOwnProperty(e)||(vw(t,Kb),vw(t,"ng-trigger-"+e),l[e]=sw),function(){a._engine.afterFlush(function(){var t=o.indexOf(s);t>=0&&o.splice(t,1),a._triggers[e]||delete l[e]})}}},{key:"register",value:function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}},{key:"_getTrigger",value:function(t){var e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'.concat(t,'" has not been registered!'));return e}},{key:"trigger",value:function(t,e,n){var i=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=this._getTrigger(e),o=new cw(this.id,e,t),s=this._engine.statesByElement.get(t);s||(vw(t,Kb),vw(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,s={}));var l=s[e],u=new aw(n,this.id),c=n&&n.hasOwnProperty("value");!c&&l&&u.absorbOptions(l.options),s[e]=u,l||(l=sw);var h=u.value===ow;if(h||l.value!==u.value){var d=Tb(this._engine.playersByElement,t,[]);d.forEach(function(t){t.namespaceId==i.id&&t.triggerName==e&&t.queued&&t.destroy()});var f=a.matchTransition(l.value,u.value,t,u.params),p=!1;if(!f){if(!r)return;f=a.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:f,fromState:l,toState:u,player:o,isFallbackTransition:p}),p||(vw(t,Qk),o.onStart(function(){gw(t,Qk)})),o.onDone(function(){var e=i.players.indexOf(o);e>=0&&i.players.splice(e,1);var n=i._engine.playersByElement.get(t);if(n){var r=n.indexOf(o);r>=0&&n.splice(r,1)}}),this.players.push(o),d.push(o),o}if(!bw(l.params,u.params)){var m=[],v=a.matchStyles(l.value,l.params,m),g=a.matchStyles(u.value,u.params,m);m.length?this._engine.reportError(m):this._engine.afterFlush(function(){ok(t,v),ak(t,g)})}}},{key:"deregister",value:function(t){var e=this;delete this._triggers[t],this._engine.statesByElement.forEach(function(e,n){delete e[t]}),this._elementListeners.forEach(function(n,i){e._elementListeners.set(i,n.filter(function(e){return e.name!=t}))})}},{key:"clearElementCache",value:function(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);var e=this._engine.playersByElement.get(t);e&&(e.forEach(function(t){return t.destroy()}),this._engine.playersByElement.delete(t))}},{key:"_signalRemovalForInnerTriggers",value:function(t,e){var n=this,i=this._engine.driver.query(t,Zb,!0);i.forEach(function(t){if(!t.__ng_removed){var i=n._engine.fetchNamespacesByElement(t);i.size?i.forEach(function(n){return n.triggerLeaveAnimation(t,e,!1,!0)}):n.clearElementCache(t)}}),this._engine.afterFlushAnimationsDone(function(){return i.forEach(function(t){return n.clearElementCache(t)})})}},{key:"triggerLeaveAnimation",value:function(t,e,n,i){var r=this,a=this._engine.statesByElement.get(t);if(a){var o=[];if(Object.keys(a).forEach(function(e){if(r._triggers[e]){var n=r.trigger(t,e,ow,i);n&&o.push(n)}}),o.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&Eb(o).onDone(function(){return r._engine.processLeaveNode(t)}),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(t){var e=this,n=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(n&&i){var r=new Set;n.forEach(function(n){var a=n.name;if(!r.has(a)){r.add(a);var o=e._triggers[a].fallbackTransition,s=i[a]||sw,l=new aw(ow),u=new cw(e.id,a,t);e._engine.totalQueuedPlayers++,e._queue.push({element:t,triggerName:a,transition:o,fromState:s,toState:l,player:u,isFallbackTransition:!0})}})}}},{key:"removeNode",value:function(t,e){var n=this,i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),!this.triggerLeaveAnimation(t,e,!0)){var r=!1;if(i.totalAnimations){var a=i.players.length?i.playersByQueriedElement.get(t):[];if(a&&a.length)r=!0;else for(var o=t;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{var s=t.__ng_removed;s&&s!==iw||(i.afterFlush(function(){return n.clearElementCache(t)}),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}}},{key:"insertNode",value:function(t,e){vw(t,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(t){var e=this,n=[];return this._queue.forEach(function(i){var r=i.player;if(!r.destroyed){var a=i.element,o=e._elementListeners.get(a);o&&o.forEach(function(e){if(e.name==i.triggerName){var n=Ob(a,i.triggerName,i.fromState.value,i.toState.value);n._data=t,Db(i.player,e.phase,n,e.callback)}}),r.markedForDestroy?e._engine.afterFlush(function(){r.destroy()}):n.push(i)}}),this._queue=[],n.sort(function(t,n){var i=t.transition.ast.depCount,r=n.transition.ast.depCount;return 0==i||0==r?i-r:e._engine.driver.containsElement(t.element,n.element)?1:-1})}},{key:"destroy",value:function(t){this.players.forEach(function(t){return t.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,t)}},{key:"elementContainsData",value:function(t){var e=!1;return this._elementListeners.has(t)&&(e=!0),!!this._queue.find(function(e){return e.element===t})||e}}]),t}(),uw=function(){function t(e,n,i){a(this,t),this.bodyNode=e,this.driver=n,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=function(t,e){}}return s(t,[{key:"_onRemovalComplete",value:function(t,e){this.onRemovalComplete(t,e)}},{key:"createNamespace",value:function(t,e){var n=new lw(t,e,this);return e.parentNode?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}},{key:"_balanceNamespaceList",value:function(t,e){var n=this._namespaceList.length-1;if(n>=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}},{key:"register",value:function(t,e){var n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}},{key:"registerTrigger",value:function(t,e,n){var i=this._namespaceLookup[t];i&&i.register(e,n)&&this.totalAnimations++}},{key:"destroy",value: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)})}}},{key:"_fetchNamespace",value:function(t){return this._namespaceLookup[t]}},{key:"fetchNamespacesByElement",value: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(a,1)}if(t){var o=this._fetchNamespace(t);o&&o.insertNode(e,n)}i&&this.collectEnterElement(e)}}},{key:"collectEnterElement",value:function(t){this.collectedEnterElements.push(t)}},{key:"markElementAsDisabled",value:function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),vw(t,Jk)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),gw(t,Jk))}},{key:"removeNode",value:function(t,e,n,i){if(dw(e)){var r=t?this._fetchNamespace(t):null;if(r?r.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){var a=this.namespacesByHostElement.get(e);a&&a.id!==t&&a.removeNode(e,i)}}else this._onRemovalComplete(e,i)}},{key:"markElementAsRemoved",value:function(t,e,n,i){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(t,e,n,i,r){return dw(e)?this._fetchNamespace(t).listen(e,n,i,r):function(){}}},{key:"_buildInstruction",value: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)}},{key:"destroyInnerAnimations",value:function(t){var e=this,n=this.driver.query(t,Zb,!0);n.forEach(function(t){return e.destroyActiveAnimationsForElement(t)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(t,Xb,!0)).forEach(function(t){return e.finishActiveQueriedAnimationOnElement(t)})}},{key:"destroyActiveAnimationsForElement",value:function(t){var e=this.playersByElement.get(t);e&&e.forEach(function(t){t.queued?t.markedForDestroy=!0:t.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(t){var e=this.playersByQueriedElement.get(t);e&&e.forEach(function(t){return t.finish()})}},{key:"whenRenderingDone",value:function(){var t=this;return new Promise(function(e){if(t.players.length)return Eb(t.players).onDone(function(){return e()});e()})}},{key:"processLeaveNode",value:function(t){var e=this,n=t.__ng_removed;if(n&&n.setForRemoval){if(t.__ng_removed=iw,n.namespaceId){this.destroyInnerAnimations(t);var i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}this.driver.matchesElement(t,tw)&&this.markElementAsDisabled(t,!1),this.driver.query(t,tw,!0).forEach(function(t){e.markElementAsDisabled(t,!1)})}},{key:"flush",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(e,n){return t._balanceNamespaceList(e,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var i=0;i=0;A--)this._namespaceList[A].drainQueuedTransitions(e).forEach(function(t){var e=t.player,a=t.element;if(x.push(e),n.collectedEnterElements.length){var c=a.__ng_removed;if(c&&c.setForMove)return void e.destroy()}var d=!h||!n.driver.containsElement(h,a),f=C.get(a),m=p.get(a),v=n._buildInstruction(t,i,m,f,d);if(v.errors&&v.errors.length)E.push(v);else{if(d)return e.onStart(function(){return ok(a,v.fromStyles)}),e.onDestroy(function(){return ak(a,v.toStyles)}),void r.push(e);if(t.isFallbackTransition)return e.onStart(function(){return ok(a,v.fromStyles)}),e.onDestroy(function(){return ak(a,v.toStyles)}),void r.push(e);v.timelines.forEach(function(t){return t.stretchStartingKeyframe=!0}),i.append(a,v.timelines),o.push({instruction:v,player:e,element:a}),v.queriedElements.forEach(function(t){return Tb(s,t,[]).push(e)}),v.preStyleProps.forEach(function(t,e){var n=Object.keys(t);if(n.length){var i=l.get(e);i||l.set(e,i=new Set),n.forEach(function(t){return i.add(t)})}}),v.postStyleProps.forEach(function(t,e){var n=Object.keys(t),i=u.get(e);i||u.set(e,i=new Set),n.forEach(function(t){return i.add(t)})})}});if(E.length){var D=[];E.forEach(function(t){D.push("@".concat(t.triggerName," has failed due to:\n")),t.errors.forEach(function(t){return D.push("- ".concat(t,"\n"))})}),x.forEach(function(t){return t.destroy()}),this.reportError(D)}var I=new Map,O=new Map;o.forEach(function(t){var e=t.element;i.has(e)&&(O.set(e,e),n._beforeAnimationBuild(t.player.namespaceId,t.instruction,I))}),r.forEach(function(t){var e=t.element;n._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(function(t){Tb(I,e,[]).push(t),t.destroy()})});var T=v.filter(function(t){return kw(t,l,u)}),R=new Map;pw(R,this.driver,y,u,hb).forEach(function(t){kw(t,l,u)&&T.push(t)});var P=new Map;f.forEach(function(t,e){pw(P,n.driver,new Set(t),l,Sb)}),T.forEach(function(t){var e=R.get(t),n=P.get(t);R.set(t,Object.assign(Object.assign({},e),n))});var M=[],F=[],L={};o.forEach(function(t){var e=t.element,o=t.player,s=t.instruction;if(i.has(e)){if(c.has(e))return o.onDestroy(function(){return ak(e,s.toStyles)}),o.disabled=!0,o.overrideTotalTime(s.totalTime),void r.push(o);var l=L;if(O.size>1){for(var u=e,h=[];u=u.parentNode;){var d=O.get(u);if(d){l=d;break}h.push(u)}h.forEach(function(t){return O.set(t,l)})}var f=n._buildAnimation(o.namespaceId,s,I,a,P,R);if(o.setRealPlayer(f),l===L)M.push(o);else{var p=n.playersByElement.get(l);p&&p.length&&(o.parentPlayer=Eb(p)),r.push(o)}}else ok(e,s.fromStyles),o.onDestroy(function(){return ak(e,s.toStyles)}),F.push(o),c.has(e)&&r.push(o)}),F.forEach(function(t){var e=a.get(t.element);if(e&&e.length){var n=Eb(e);t.setRealPlayer(n)}}),r.forEach(function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(var N=0;N0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new wb(t.duration,t.delay)}},{key:"queuedPlayers",get:function(){var t=[];return this._namespaceList.forEach(function(e){e.players.forEach(function(e){e.queued&&t.push(e)})}),t}}]),t}(),cw=function(){function t(e,n,i){a(this,t),this.namespaceId=e,this.triggerName=n,this.element=i,this._player=new wb,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return s(t,[{key:"setRealPlayer",value:function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(function(n){e._queuedCallbacks[n].forEach(function(e){return Db(t,n,void 0,e)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(t){this.totalTime=t}},{key:"syncPlayerEvents",value: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()})}},{key:"_queueEvent",value:function(t,e){Tb(this._queuedCallbacks,t,[]).push(e)}},{key:"onDone",value:function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}},{key:"onStart",value:function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}},{key:"onDestroy",value:function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(t){this.queued||this._player.setPosition(t)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(t){var e=this._player;e.triggerCallback&&e.triggerCallback(t)}}]),t}();function hw(t){return null!=t?t:null}function dw(t){return t&&1===t.nodeType}function fw(t,e){var n=t.style.display;return t.style.display=null!=e?e:"none",n}function pw(t,e,n,i,r){var a=[];n.forEach(function(t){return a.push(fw(t))});var o=[];i.forEach(function(n,i){var a={};n.forEach(function(t){var n=a[t]=e.computeStyle(i,t,r);n&&0!=n.length||(i.__ng_removed=rw,o.push(i))}),t.set(i,a)});var s=0;return n.forEach(function(t){return fw(t,a[s++])}),o}function mw(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;function a(t){if(!t)return 1;var e=r.get(t);if(e)return e;var o=t.parentNode;return e=n.has(o)?o:i.has(o)?1:a(o),r.set(t,e),e}return e.forEach(function(t){var e=a(t);1!==e&&n.get(e).push(t)}),n}function vw(t,e){if(t.classList)t.classList.add(e);else{var n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function gw(t,e){if(t.classList)t.classList.remove(e);else{var n=t.$$classes;n&&delete n[e]}}function yw(t,e,n){Eb(n).onDone(function(){return t.processLeaveNode(e)})}function _w(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(t)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}}]),t}();function Cw(t,e){var n=null,i=null;return Array.isArray(e)&&e.length?(n=xw(e[0]),e.length>1&&(i=xw(e[e.length-1]))):e&&(n=xw(e)),n||i?new Sw(t,n,i):null}var Sw=function(){var t=function(){function t(e,n,i){a(this,t),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 s(t,[{key:"start",value:function(){this._state<1&&(this._startStyles&&ak(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(ak(this._element,this._initialStyles),this._endStyles&&(ak(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(ok(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ok(this._element,this._endStyles),this._endStyles=null),ak(this._element,this._initialStyles),this._state=3)}}]),t}();return t.initialStylesByElement=new WeakMap,t}();function xw(t){for(var e=null,n=Object.keys(t),i=0;i=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),Pw(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var t,e,n,i;this._destroyed||(this._destroyed=!0,this.finish(),e=this._name,(i=Rw(n=Fw(t=this._element,"").split(","),e))>=0&&(n.splice(i,1),Mw(t,"",n.join(","))))}}]),t}();function Ow(t,e,n){Mw(t,"PlayState",n,Tw(t,e))}function Tw(t,e){var n=Fw(t,"");return n.indexOf(",")>0?Rw(n.split(","),e):Rw([n],e)}function Rw(t,e){for(var n=0;n=0)return n;return-1}function Pw(t,e,n){n?t.removeEventListener(Dw,e):t.addEventListener(Dw,e)}function Mw(t,e,n,i){var r=Aw+e;if(null!=i){var a=t.style[r];if(a.length){var o=a.split(",");o[i]=n,n=o.join(",")}}t.style[r]=n}function Fw(t,e){return t.style[Aw+e]||""}var Lw=function(){function t(e,n,i,r,o,s,l,u){a(this,t),this.element=e,this.keyframes=n,this.animationName=i,this._duration=r,this._delay=o,this._finalStyles=l,this._specialStyles=u,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=s||"linear",this.totalTime=r+o,this._buildStyler()}return s(t,[{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"destroy",value: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=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(t){this._styler.setPosition(t)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var t=this;this._styler=new Iw(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return t.finish()})}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}},{key:"beforeDestroy",value: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]:gk(t.element,i))})}this.currentSnapshot=e}}]),t}(),Nw=function(t){u(n,t);var e=p(n);function n(t,i){var r;return a(this,n),(r=e.call(this)).element=t,r._startingStyles={},r.__initialized=!1,r._styles=Ub(i),r}return s(n,[{key:"init",value:function(){var t=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(e){t._startingStyles[e]=t.element.style[e]}),r(i(n.prototype),"init",this).call(this))}},{key:"play",value:function(){var t=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(e){return t.element.style.setProperty(e,t._styles[e])}),r(i(n.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var t=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(e){var n=t._startingStyles[e];n?t.element.style.setProperty(e,n):t.element.style.removeProperty(e)}),this._startingStyles=null,r(i(n.prototype),"destroy",this).call(this))}}]),n}(wb),Vw="gen_css_kf_",jw=function(){function t(){a(this,t),this._count=0,this._head=document.querySelector("head")}return s(t,[{key:"validateStyleProperty",value:function(t){return jb(t)}},{key:"matchesElement",value:function(t,e){return Bb(t,e)}},{key:"containsElement",value:function(t,e){return zb(t,e)}},{key:"query",value:function(t,e,n){return Hb(t,e,n)}},{key:"computeStyle",value:function(t,e,n){return window.getComputedStyle(t)[e]}},{key:"buildKeyframeElement",value:function(t,e,n){n=n.map(function(t){return Ub(t)});var i="@keyframes ".concat(e," {\n"),r="";n.forEach(function(t){r=" ";var e=parseFloat(t.offset);i+="".concat(r).concat(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+="".concat(r,"animation-timing-function: ").concat(n,";\n")));default:return void(i+="".concat(r).concat(e,": ").concat(n,";\n"))}}),i+="".concat(r,"}\n")}),i+="}\n";var a=document.createElement("style");return a.textContent=i,a}},{key:"animate",value:function(t,e,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],o=a.filter(function(t){return t instanceof Lw}),s={};pk(n,i)&&o.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return s[t]=e[t]})});var l=Bw(e=mk(t,e,s));if(0==n)return new Nw(t,l);var u="".concat(Vw).concat(this._count++),c=this.buildKeyframeElement(t,u,e);document.querySelector("head").appendChild(c);var h=Cw(t,e),d=new Lw(t,e,u,n,i,r,l,h);return d.onDestroy(function(){return zw(c)}),d}}]),t}();function Bw(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}function zw(t){t.parentNode.removeChild(t)}var Hw=function(){function t(e,n,i,r){a(this,t),this.element=e,this.keyframes=n,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}return s(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value: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()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(t,e,n){return t.animate(e,n)}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"play",value: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()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"beforeDestroy",value:function(){var t=this,e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(e[n]=t._finished?t._finalKeyframe[n]:gk(t.element,n))}),this.currentSnapshot=e}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}},{key:"totalTime",get:function(){return this._delay+this._duration}}]),t}(),Uw=function(){function t(){a(this,t),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(qw().toString()),this._cssKeyframesDriver=new jw}return s(t,[{key:"validateStyleProperty",value:function(t){return jb(t)}},{key:"matchesElement",value:function(t,e){return Bb(t,e)}},{key:"containsElement",value:function(t,e){return zb(t,e)}},{key:"query",value:function(t,e,n){return Hb(t,e,n)}},{key:"computeStyle",value:function(t,e,n){return window.getComputedStyle(t)[e]}},{key:"overrideWebAnimationsSupport",value:function(t){this._isNativeImpl=t}},{key:"animate",value:function(t,e,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],o=arguments.length>6?arguments[6]:void 0,s=!o&&!this._isNativeImpl;if(s)return this._cssKeyframesDriver.animate(t,e,n,i,r,a);var l=0==i?"both":"forwards",u={duration:n,delay:i,fill:l};r&&(u.easing=r);var c={},h=a.filter(function(t){return t instanceof Hw});pk(n,i)&&h.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return c[t]=e[t]})});var d=Cw(t,e=mk(t,e=e.map(function(t){return nk(t,!1)}),c));return new Hw(t,e,u,d)}}]),t}();function qw(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var Ww=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i){var r;return a(this,n),(r=e.call(this))._nextAnimationId=0,r._renderer=t.createRenderer(i.body,{id:"0",encapsulation:Kt.None,styles:[],data:{animation:[]}}),r}return s(n,[{key:"build",value:function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(t)?pb(t):t;return Kw(this._renderer,null,e,"register",[n]),new Yw(e,this._renderer)}}]),n}(ub);return t.\u0275fac=function(e){return new(e||t)(Vi(Ol),Vi(sh))},t.\u0275prov=Rt({token:t,factory:t.\u0275fac}),t}(),Yw=function(t){u(n,t);var e=p(n);function n(t,i){var r;return a(this,n),(r=e.call(this))._id=t,r._renderer=i,r}return s(n,[{key:"create",value:function(t,e){return new Gw(this._id,t,e||{},this._renderer)}}]),n}(cb),Gw=function(){function t(e,n,i,r){a(this,t),this.id=e,this.element=n,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}return s(t,[{key:"_listen",value:function(t,e){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(t),e)}},{key:"_command",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i=0&&t3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,i)}},{key:"removeChild",value:function(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}},{key:"selectRootElement",value:function(t,e){return this.delegate.selectRootElement(t,e)}},{key:"parentNode",value:function(t){return this.delegate.parentNode(t)}},{key:"nextSibling",value:function(t){return this.delegate.nextSibling(t)}},{key:"setAttribute",value:function(t,e,n,i){this.delegate.setAttribute(t,e,n,i)}},{key:"removeAttribute",value:function(t,e,n){this.delegate.removeAttribute(t,e,n)}},{key:"addClass",value:function(t,e){this.delegate.addClass(t,e)}},{key:"removeClass",value:function(t,e){this.delegate.removeClass(t,e)}},{key:"setStyle",value:function(t,e,n,i){this.delegate.setStyle(t,e,n,i)}},{key:"removeStyle",value:function(t,e,n){this.delegate.removeStyle(t,e,n)}},{key:"setProperty",value:function(t,e,n){e.charAt(0)==Zw&&e==$w?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}},{key:"setValue",value:function(t,e){this.delegate.setValue(t,e)}},{key:"listen",value:function(t,e,n){return this.delegate.listen(t,e,n)}},{key:"disableAnimations",value:function(t,e){this.engine.disableAnimations(t,e)}},{key:"data",get:function(){return this.delegate.data}}]),t}(),Jw=function(t){u(n,t);var e=p(n);function n(t,i,r,o){var s;return a(this,n),(s=e.call(this,i,r,o)).factory=t,s.namespaceId=i,s}return s(n,[{key:"setProperty",value:function(t,e,n){e.charAt(0)==Zw?"."==e.charAt(1)&&e==$w?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}},{key:"listen",value:function(t,e,n){var i,r,a=this;if(e.charAt(0)==Zw){var o=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t),s=e.substr(1),l="";if(s.charAt(0)!=Zw){var u=y((r=(i=s).indexOf("."),[i.substring(0,r),i.substr(r+1)]),2);s=u[0],l=u[1]}return this.engine.listen(this.namespaceId,o,s,l,function(t){a.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}]),n}(Qw),tC=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r){return a(this,n),e.call(this,t.body,i,r)}return n}(ww);return t.\u0275fac=function(e){return new(e||t)(Vi(sh),Vi(Wb),Vi(zk))},t.\u0275prov=Rt({token:t,factory:t.\u0275fac}),t}(),eC=new bi("AnimationModuleType"),nC=[{provide:ub,useClass:Ww},{provide:zk,useFactory:function(){return new Hk}},{provide:ww,useClass:tC},{provide:Ol,useFactory:function(t,e,n){return new Xw(t,e,n)},deps:[vd,ww,xc]}],iC=[{provide:Wb,useFactory:function(){return"function"==typeof qw()?new Uw:new jw}},{provide:eC,useValue:"BrowserAnimations"}].concat(nC),rC=([{provide:Wb,useClass:qb},{provide:eC,useValue:"NoopAnimations"}].concat(nC),function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({providers:iC,imports:[Od]}),t}());function aC(t,e){if(1&t&&ps(0,"mat-pseudo-checkbox",4),2&t){var n=Ds();cs("state",n.selected?"checked":"unchecked")("disabled",n.disabled)}}function oC(t,e){if(1&t&&(ds(0,"span",5),Js(1),fs()),2&t){var n=Ds();Ia(1),el("(",n.group.label,")")}}var sC=["*"],lC=function(){var t=function t(){a(this,t)};return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t}(),uC=function(){var t=function t(){a(this,t)};return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t}(),cC=new Ml("11.2.4"),hC=new bi("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),dC=function(){var t=function(){function t(e,n,i){a(this,t),this._hasDoneGlobalChecks=!1,this._document=i,e._applyBodyHighContrastModeCssClasses(),this._sanityChecks=n,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return s(t,[{key:"_getWindow",value:function(){var t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}},{key:"_checksAreEnabled",value:function(){return Vc()&&!this._isTestEnv()}},{key:"_isTestEnv",value:function(){var t=this._getWindow();return t&&(t.__karma__||t.jasmine)}},{key:"_checkDoctypeIsDefined",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}},{key:"_checkThemeIsPresent",value:function(){if(this._checksAreEnabled()&&!1!==this._sanityChecks&&this._sanityChecks.theme&&this._document.body&&"function"==typeof getComputedStyle){var t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);var e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}}},{key:"_checkCdkVersionMatch",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&cC.full!==lb.full&&console.warn("The Angular Material version ("+cC.full+") does not match the Angular CDK version ("+lb.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Vi(ob),Vi(hC,8),Vi(sh))},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({imports:[[sy],sy]}),t}();function fC(t){return function(t){u(n,t);var e=p(n);function n(){var t;a(this,n);for(var i=arguments.length,r=new Array(i),o=0;o1&&void 0!==arguments[1]?arguments[1]:0,n=function(t){u(i,t);var n=p(i);function i(){var t;a(this,i);for(var r=arguments.length,o=new Array(r),s=0;s0?n:t}}]),t}(),wC=new bi("mat-date-formats");try{_C="undefined"!=typeof Intl}catch(zB){_C=!1}var CC={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"]},SC=AC(31,function(t){return String(t+1)}),xC={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},EC=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function AC(t,e){for(var n=Array(t),i=0;i9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign(Object.assign({},e),{timeZone:"utc"});var n=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(n,t))}return this._stripDirectionalityCharacters(t.toDateString())}},{key:"addCalendarYears",value:function(t,e){return this.addCalendarMonths(t,12*e)}},{key:"addCalendarMonths",value: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}},{key:"addCalendarDays",value:function(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}},{key:"toIso8601",value:function(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}},{key:"deserialize",value:function(t){if("string"==typeof t){if(!t)return null;if(EC.test(t)){var e=new Date(t);if(this.isValid(e))return e}}return r(i(n.prototype),"deserialize",this).call(this,t)}},{key:"isDateInstance",value:function(t){return t instanceof Date}},{key:"isValid",value:function(t){return!isNaN(t.getTime())}},{key:"invalid",value:function(){return new Date(NaN)}},{key:"_createDateWithOverflow",value:function(t,e,n){var i=new Date;return i.setFullYear(t,e,n),i.setHours(0,0,0,0),i}},{key:"_2digit",value:function(t){return("00"+t).slice(-2)}},{key:"_stripDirectionalityCharacters",value:function(t){return t.replace(/[\u200e\u200f]/g,"")}},{key:"_format",value:function(t,e){var n=new Date;return n.setUTCFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setUTCHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t.format(n)}}]),n}(kC);return t.\u0275fac=function(e){return new(e||t)(Vi(bC,8),Vi(Qg))},t.\u0275prov=Rt({token:t,factory:t.\u0275fac}),t}(),IC=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({providers:[{provide:kC,useClass:DC}],imports:[[Jg]]}),t}(),OC={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"}}},TC=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({providers:[{provide:wC,useValue:OC}],imports:[[IC]]}),t}(),RC=function(){var t=function(){function t(){a(this,t)}return s(t,[{key:"isErrorState",value:function(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Rt({factory:function(){return new t},token:t,providedIn:"root"}),t}(),PC=function(){function t(e,n,i){a(this,t),this._renderer=e,this.element=n,this.config=i,this.state=3}return s(t,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),t}(),MC={enterDuration:450,exitDuration:400},FC=ny({passive:!0}),LC=["mousedown","touchstart"],NC=["mouseup","mouseleave","touchend","touchcancel"],VC=function(){function t(e,n,i,r){a(this,t),this._target=e,this._ngZone=n,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=mg(i))}return s(t,[{key:"fadeInRipple",value:function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),a=Object.assign(Object.assign({},MC),i.animation);i.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);var o=i.radius||BC(t,e,r),s=t-r.left,l=e-r.top,u=a.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left="".concat(s-o,"px"),c.style.top="".concat(l-o,"px"),c.style.height="".concat(2*o,"px"),c.style.width="".concat(2*o,"px"),null!=i.color&&(c.style.backgroundColor=i.color),c.style.transitionDuration="".concat(u,"ms"),this._containerElement.appendChild(c),jC(c),c.style.transform="scale(1)";var h=new PC(this,c,i);return h.state=0,this._activeRipples.add(h),i.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(function(){var t=h===n._mostRecentTransientRipple;h.state=1,i.persistent||t&&n._isPointerDown||h.fadeOut()},u),h}},{key:"fadeOutRipple",value:function(t){var e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),e){var n=t.element,i=Object.assign(Object.assign({},MC),t.config.animation);n.style.transitionDuration="".concat(i.exitDuration,"ms"),n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(function(){t.state=3,n.parentNode.removeChild(n)},i.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(t){return t.fadeOut()})}},{key:"setupTriggerEvents",value:function(t){var e=mg(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(LC))}},{key:"handleEvent",value:function(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(NC),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(t){var e=$_(t),n=this._lastTouchStartEvent&&Date.now()1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(t,e)})}},{key:"_registerEvents",value:function(t){var e=this;this._ngZone.runOutsideAngular(function(){t.forEach(function(t){e._triggerElement.addEventListener(t,e,FC)})})}},{key:"_removeTriggerEvents",value:function(){var t=this;this._triggerElement&&(LC.forEach(function(e){t._triggerElement.removeEventListener(e,t,FC)}),this._pointerUpEventsRegistered&&NC.forEach(function(e){t._triggerElement.removeEventListener(e,t,FC)}))}}]),t}();function jC(t){window.getComputedStyle(t).getPropertyValue("opacity")}function BC(t,e,n){var i=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),r=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(i*i+r*r)}var zC=new bi("mat-ripple-global-options"),HC=function(){var t=function(){function t(e,n,i,r,o){a(this,t),this._elementRef=e,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new VC(this,n,e,i)}return s(t,[{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=t,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(Dl),us(xc),us(Qg),us(zC,8),us(eC,8))},t.\u0275dir=ve({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&Hs("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t}(),UC=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({imports:[[dC,Jg],dC]}),t}(),qC=function(){var t=function t(e){a(this,t),this._animationMode=e,this.state="unchecked",this.disabled=!1};return t.\u0275fac=function(e){return new(e||t)(us(eC,8))},t.\u0275cmp=ce({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&Hs("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),t}(),WC=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({imports:[[dC]]}),t}(),YC=new bi("MAT_OPTION_PARENT_COMPONENT"),GC=fC(function t(){a(this,t)}),KC=0,ZC=function(){var t=function(t){u(n,t);var e=p(n);function n(t){var i,r;return a(this,n),(i=e.call(this))._labelId="mat-optgroup-label-".concat(KC++),i._inert=null!==(r=null==t?void 0:t.inertGroups)&&void 0!==r&&r,i}return n}(GC);return t.\u0275fac=function(e){return new(e||t)(us(YC,8))},t.\u0275dir=ve({type:t,inputs:{label:"label"},features:[Yo]}),t}(),$C=new bi("MatOptgroup"),XC=0,QC=function t(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];a(this,t),this.source=e,this.isUserInput=n},JC=function(){var t=function(){function t(e,n,i,r){a(this,t),this._element=e,this._changeDetectorRef=n,this._parent=i,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-".concat(XC++),this.onSelectionChange=new Vu,this._stateChanges=new q}return s(t,[{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(t,e){var n=this._getHostElement();"function"==typeof n.focus&&n.focus(e)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(t){t.keyCode!==Dy&&t.keyCode!==Oy||Ny(t)||(this._selectViaInteraction(),t.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new QC(this,t))}},{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(t){this._disabled=cg(t)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(Dl),us(tu),us(void 0),us(ZC))},t.\u0275dir=ve({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t}(),tS=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o){return a(this,n),e.call(this,t,i,r,o)}return n}(JC);return t.\u0275fac=function(e){return new(e||t)(us(Dl),us(tu),us(YC,8),us($C,8))},t.\u0275cmp=ce({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&ws("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(il("id",e.id),as("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),Hs("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[Yo],ngContentSelectors:sC,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(t,e){1&t&&(Os(),ss(0,aC,1,2,"mat-pseudo-checkbox",0),ds(1,"span",1),Ts(2),fs(),ss(3,oC,2,1,"span",2),ps(4,"div",3)),2&t&&(cs("ngIf",e.multiple),Ia(3),cs("ngIf",e.group&&e.group._inert),Ia(1),cs("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[Ph,HC,qC],styles:[".mat-option{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;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t}();function eS(t,e,n){if(n.length){for(var i=e.toArray(),r=n.toArray(),a=0,o=0;on+i?Math.max(0,t-i+e):n}var iS=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({imports:[[UC,Kh,dC,WC]]}),t}();function rS(t,e){}var aS=function t(){a(this,t),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},oS={dialogContainer:db("dialogContainer",[vb("void, exit",mb({opacity:0,transform:"scale(0.7)"})),vb("enter",mb({transform:"none"})),yb("* => enter",fb("150ms cubic-bezier(0, 0, 0.2, 1)",mb({transform:"none",opacity:1}))),yb("* => void, * => exit",fb("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",mb({opacity:0})))])},sS=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,s,l){var u;return a(this,n),(u=e.call(this))._elementRef=t,u._focusTrapFactory=i,u._changeDetectorRef=r,u._config=s,u._focusMonitor=l,u._animationStateChanged=new Vu,u._elementFocusedBeforeDialogWasOpened=null,u._closeInteractionType=null,u.attachDomPortal=function(t){return u._portalOutlet.hasAttached(),u._portalOutlet.attachDomPortal(t)},u._ariaLabelledBy=s.ariaLabelledBy||null,u._document=o,u}return s(n,[{key:"_initializeWithAttachedContent",value:function(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}},{key:"attachComponentPortal",value:function(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(t)}},{key:"attachTemplatePortal",value:function(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(t)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){var e=this._getActiveElement(),n=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==n&&!n.contains(e)||(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}},{key:"_capturePreviouslyFocusedElement",value:function(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._getActiveElement())}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var t=this._elementRef.nativeElement,e=this._getActiveElement();return t===e||t.contains(e)}},{key:"_getActiveElement",value:function(){var t,e=this._document.activeElement;return(null===(t=null==e?void 0:e.shadowRoot)||void 0===t?void 0:t.activeElement)||e}}]),n}(ky);return t.\u0275fac=function(e){return new(e||t)(us(Dl),us(q_),us(tu),us(sh,8),us(aS),us(tb))},t.\u0275dir=ve({type:t,viewQuery:function(t,e){var n;1&t&&Xu(Sy,3),2&t&&$u(n=Ju())&&(e._portalOutlet=n.first)},features:[Yo]}),t}(),lS=function(){var t=function(t){u(n,t);var e=p(n);function n(){var t;return a(this,n),(t=e.apply(this,arguments))._state="enter",t}return s(n,[{key:"_onAnimationDone",value:function(t){var e=t.toState,n=t.totalTime;"enter"===e?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:n})):"exit"===e&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:n}))}},{key:"_onAnimationStart",value:function(t){var e=t.toState,n=t.totalTime;"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:n}):"exit"!==e&&"void"!==e||this._animationStateChanged.next({state:"closing",totalTime:n})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),n}(sS);return t.\u0275fac=function(e){return uS(e||t)},t.\u0275cmp=ce({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&Cs("@dialogContainer.start",function(t){return e._onAnimationStart(t)})("@dialogContainer.done",function(t){return e._onAnimationDone(t)}),2&t&&(il("id",e._id),as("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),rl("@dialogContainer",e._state))},features:[Yo],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&ss(0,rS,0,0,"ng-template",0)},directives:[Sy],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}.cdk-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;box-sizing:content-box;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,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[oS.dialogContainer]}}),t}(),uS=mi(lS),cS=0,hS=function(){function t(e,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-".concat(cS++);a(this,t),this._overlayRef=e,this._containerInstance=n,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new q,this._afterClosed=new q,this._beforeClosed=new q,this._state=0,n._id=r,n._animationStateChanged.pipe(Pd(function(t){return"opened"===t.state}),Mf(1)).subscribe(function(){i._afterOpened.next(),i._afterOpened.complete()}),n._animationStateChanged.pipe(Pd(function(t){return"closed"===t.state}),Mf(1)).subscribe(function(){clearTimeout(i._closeFallbackTimeout),i._finishDialogClose()}),e.detachments().subscribe(function(){i._beforeClosed.next(i._result),i._beforeClosed.complete(),i._afterClosed.next(i._result),i._afterClosed.complete(),i.componentInstance=null,i._overlayRef.dispose()}),e.keydownEvents().pipe(Pd(function(t){return t.keyCode===Iy&&!i.disableClose&&!Ny(t)})).subscribe(function(t){t.preventDefault(),dS(i,"keyboard")}),e.backdropClick().subscribe(function(){i.disableClose?i._containerInstance._recaptureFocus():dS(i,"mouse")})}return s(t,[{key:"close",value:function(t){var e=this;this._result=t,this._containerInstance._animationStateChanged.pipe(Pd(function(t){return"closing"===t.state}),Mf(1)).subscribe(function(n){e._beforeClosed.next(t),e._beforeClosed.complete(),e._overlayRef.detachBackdrop(),e._closeFallbackTimeout=setTimeout(function(){return e._finishDialogClose()},n.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"afterClosed",value:function(){return this._afterClosed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value: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}},{key:"updateSize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(t){return this._overlayRef.addPanelClass(t),this}},{key:"removePanelClass",value:function(t){return this._overlayRef.removePanelClass(t),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),t}();function dS(t,e,n){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(n)}var fS=new bi("MatDialogData"),pS=new bi("mat-dialog-default-options"),mS=new bi("mat-dialog-scroll-strategy"),vS={provide:mS,deps:[d_],useFactory:function(t){return function(){return t.scrollStrategies.block()}}},gS=function(){var t=function(){function t(e,n,i,r,o,s,l,u,c){var h=this;a(this,t),this._overlay=e,this._injector=n,this._defaultOptions=i,this._parentDialog=r,this._overlayContainer=o,this._dialogRefConstructor=l,this._dialogContainerType=u,this._dialogDataToken=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new q,this._afterOpenedAtThisLevel=new q,this._ariaHiddenElements=new Map,this.afterAllClosed=If(function(){return h.openDialogs.length?h._getAfterAllClosed():h._getAfterAllClosed().pipe(Nf(void 0))}),this._scrollStrategy=s}return s(t,[{key:"_getAfterAllClosed",value:function(){var t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(t,e){var n=this;(e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new aS)).id&&this.getDialogById(e.id);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),r._initializeWithAttachedContent(),a}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(t){return this.openDialogs.find(function(e){return e.id===t})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(t){var e=this._getOverlayConfig(t);return this._overlay.create(e)}},{key:"_getOverlayConfig",value:function(t){var e=new Yy({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}},{key:"_attachDialogContainer",value:function(t,e){var n=qo.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:aS,useValue:e}]}),i=new yy(this._dialogContainerType,e.viewContainerRef,n,e.componentFactoryResolver);return t.attach(i).instance}},{key:"_attachDialogContent",value:function(t,e,n,i){var r=new this._dialogRefConstructor(n,e,i.id);if(t instanceof su)e.attachTemplatePortal(new _y(t,null,{$implicit:i.data,dialogRef:r}));else{var a=this._createInjector(i,r,e),o=e.attachComponentPortal(new yy(t,i.viewContainerRef,a));r.componentInstance=o.instance}return r.updateSize(i.width,i.height).updatePosition(i.position),r}},{key:"_createInjector",value:function(t,e,n){var i=t&&t.viewContainerRef&&t.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return!t.direction||i&&i.get(oy,null)||r.push({provide:oy,useValue:{value:t.direction,change:Td()}}),qo.create({parent:i||this._injector,providers:r})}},{key:"_removeOpenDialog",value: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._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value: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"))}}},{key:"_closeDialogs",value:function(t){for(var e=t.length;e--;)t[e].close()}},{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(d_),us(qo),us(void 0),us(void 0),us(Jy),us(void 0),us(wi),us(wi),us(bi))},t.\u0275dir=ve({type:t}),t}(),yS=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,s,l,u){return a(this,n),e.call(this,t,i,o,l,u,s,hS,lS,fS)}return n}(gS);return t.\u0275fac=function(e){return new(e||t)(Vi(d_),Vi(qo),Vi(wh,8),Vi(pS,8),Vi(mS),Vi(t,12),Vi(Jy))},t.\u0275prov=Rt({token:t,factory:t.\u0275fac}),t}(),_S=0,bS=function(){var t=function(){function t(e,n,i){a(this,t),this.dialogRef=e,this._elementRef=n,this._dialog=i,this.type="button"}return s(t,[{key:"ngOnInit",value:function(){this.dialogRef||(this.dialogRef=SS(this._elementRef,this._dialog.openDialogs))}},{key:"ngOnChanges",value:function(t){var e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)}},{key:"_onButtonClick",value:function(t){dS(this.dialogRef,0===t.screenX&&0===t.screenY?"keyboard":"mouse",this.dialogResult)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(hS,8),us(Dl),us(yS))},t.\u0275dir=ve({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,e){1&t&&ws("click",function(t){return e._onButtonClick(t)}),2&t&&as("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:[Oe]}),t}(),kS=function(){var t=function(){function t(e,n,i){a(this,t),this._dialogRef=e,this._elementRef=n,this._dialog=i,this.id="mat-dialog-title-".concat(_S++)}return s(t,[{key:"ngOnInit",value:function(){var t=this;this._dialogRef||(this._dialogRef=SS(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var e=t._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=t.id)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(hS,8),us(Dl),us(yS))},t.\u0275dir=ve({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&il("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t}(),wS=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ve({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t}(),CS=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ve({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t}();function SS(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 xS=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({providers:[yS,vS],imports:[[y_,xy,dC],dC]}),t}();function ES(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 AS=["mat-button",""],DS=["*"],IS=".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-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:none;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-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-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,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-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:none;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 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-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-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{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:none;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 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 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.mat-button-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:none;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 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 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.mat-button-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 i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{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 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .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:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n",OS=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],TS=pC(fC(mC(function t(e){a(this,t),this._elementRef=e}))),RS=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;a(this,n),(o=e.call(this,t))._focusMonitor=i,o._animationMode=r,o.isRoundButton=o._hasHostAttributes("mat-fab","mat-mini-fab"),o.isIconButton=o._hasHostAttributes("mat-icon-button");var s,l=g(OS);try{for(l.s();!(s=l.n()).done;){var u=s.value;o._hasHostAttributes(u)&&o._getHostElement().classList.add(u)}}catch(c){l.e(c)}finally{l.f()}return t.nativeElement.classList.add("mat-button-base"),o.isRoundButton&&(o.color="accent"),o}return s(n,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(t,e){t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i0&&(this.dialogRef.afterClosed().subscribe(function(e){t.closed()}),this.setExtra(this.data.autoclose),this.subscription=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pg;return(!Ng(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=Pg),new j(function(n){return n.add(e.schedule(ES,t,{subscriber:n,counter:0,period:t})),n})}(1e3).subscribe(function(e){var n=t.data.autoclose-1e3*(e+1);t.setExtra(n),n<=0&&t.close()}))},t.prototype.initYesNo=function(){},t.prototype.ngOnInit=function(){!0===this.data.warnOnYes&&(this.yesColor="warn",this.noColor="primary"),this.data.type===BS.yesno?this.initYesNo():this.initAlert()},t.\u0275fac=function(e){return new(e||t)(us(hS),us(fS))},t.\u0275cmp=ce({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&&(ps(0,"h4",0),Pu(1,"safeHtml"),ps(2,"mat-dialog-content",1),Pu(3,"safeHtml"),ds(4,"mat-dialog-actions"),ss(5,NS,4,1,"button",2),ss(6,VS,3,1,"button",3),ss(7,jS,3,1,"button",3),fs()),2&t&&(cs("innerHtml",Mu(1,5,e.data.title),Ir),Ia(2),cs("innerHTML",Mu(3,7,e.data.body),Ir),Ia(3),cs("ngIf",0==e.data.type),Ia(1),cs("ngIf",1==e.data.type),Ia(1),cs("ngIf",1==e.data.type))},directives:[kS,wS,CS,Ph,RS,bS,FS],pipes:[LS],styles:[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}(),HS=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}({}),US=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 qS(t,e){return new j(function(n){var i=t.length;if(0!==i)for(var r=new Array(i),a=0,o=0,s=function(s){var l=it(t[s]),u=!1;n.add(l.subscribe({next:function(t){u||(u=!0,o++),r[s]=t},error:function(t){return n.error(t)},complete:function(){++a!==i&&u||(o===i&&n.next(e?e.reduce(function(t,e,n){return t[e]=r[n],t},{}):r),n.complete())}}))},l=0;lt?{max:{max:t,actual:e.value}}:null}}},{key:"required",value:function(t){return XS(t.value)?{required:!0}:null}},{key:"requiredTrue",value:function(t){return!0===t.value?null:{required:!0}}},{key:"email",value:function(t){return XS(t.value)||ex.test(t.value)?null:{email:!0}}},{key:"minLength",value:function(t){return function(e){return XS(e.value)||!QS(e.value)?null:e.value.lengtht?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}}},{key:"pattern",value: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(XS(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:i,actualValue:e}}}):t.nullValidator;var n,i}},{key:"nullValidator",value:function(t){return null}},{key:"compose",value:function(t){if(!t)return null;var e=t.filter(ix);return 0==e.length?null:function(t){return ax(ox(t,e))}}},{key:"composeAsync",value:function(t){if(!t)return null;var e=t.filter(ix);return 0==e.length?null:function(t){return function(){for(var t=arguments.length,e=new Array(t),n=0;n0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(t)}},{key:"hasError",value:function(t,e){return!!this.control&&this.control.hasError(t,e)}},{key:"getError",value:function(t,e){return this.control?this.control.getError(t,e):null}},{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ve({type:t}),t}(),px=function(){var t=function(t){u(n,t);var e=p(n);function n(){return a(this,n),e.apply(this,arguments)}return s(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(fx);return t.\u0275fac=function(e){return mx(e||t)},t.\u0275dir=ve({type:t,features:[Yo]}),t}(),mx=mi(px),vx=function(t){u(n,t);var e=p(n);function n(){var t;return a(this,n),(t=e.apply(this,arguments))._parent=null,t.name=null,t.valueAccessor=null,t}return n}(fx),gx=function(){function t(e){a(this,t),this._cd=e}return s(t,[{key:"is",value:function(t){var e,n;return!!(null===(n=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===n?void 0:n[t])}}]),t}(),yx=function(){var t=function(t){u(n,t);var e=p(n);function n(t){return a(this,n),e.call(this,t)}return n}(gx);return t.\u0275fac=function(e){return new(e||t)(us(vx,2))},t.\u0275dir=ve({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&Hs("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[Yo]}),t}(),_x=function(){var t=function(t){u(n,t);var e=p(n);function n(t){return a(this,n),e.call(this,t)}return n}(gx);return t.\u0275fac=function(e){return new(e||t)(us(px,10))},t.\u0275dir=ve({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&Hs("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[Yo]}),t}(),bx={provide:WS,useExisting:xt(function(){return kx}),multi:!0},kx=function(){var t=function(){function t(e,n){a(this,t),this._renderer=e,this._elementRef=n,this.onChange=function(t){},this.onTouched=function(){}}return s(t,[{key:"writeValue",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}},{key:"registerOnChange",value:function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(Tl),us(Dl))},t.\u0275dir=ve({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&ws("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[bl([bx])]}),t}(),wx={provide:WS,useExisting:xt(function(){return Sx}),multi:!0},Cx=function(){var t=function(){function t(){a(this,t),this._accessors=[]}return s(t,[{key:"add",value:function(t,e){this._accessors.push([t,e])}},{key:"remove",value:function(t){for(var e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}},{key:"select",value:function(t){var e=this;this._accessors.forEach(function(n){e._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)})}},{key:"_isSameGroup",value:function(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Rt({token:t,factory:t.\u0275fac}),t}(),Sx=function(){var t=function(){function t(e,n,i,r){a(this,t),this._renderer=e,this._elementRef=n,this._registry=i,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return s(t,[{key:"ngOnInit",value:function(){this._control=this._injector.get(vx),this._checkName(),this._registry.add(this._control,this)}},{key:"ngOnDestroy",value:function(){this._registry.remove(this)}},{key:"writeValue",value:function(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}},{key:"registerOnChange",value:function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}}},{key:"fireUncheck",value:function(t){this.writeValue(t)}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}},{key:"_checkName",value:function(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(Tl),us(Dl),us(Cx),us(qo))},t.\u0275dir=ve({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&ws("change",function(){return e.onChange()})("blur",function(){return e.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[bl([wx])]}),t}(),xx={provide:WS,useExisting:xt(function(){return Ex}),multi:!0},Ex=function(){var t=function(){function t(e,n){a(this,t),this._renderer=e,this._elementRef=n,this.onChange=function(t){},this.onTouched=function(){}}return s(t,[{key:"writeValue",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}},{key:"registerOnChange",value:function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(Tl),us(Dl))},t.\u0275dir=ve({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&ws("change",function(t){return e.onChange(t.target.value)})("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[bl([xx])]}),t}(),Ax={provide:WS,useExisting:xt(function(){return Dx}),multi:!0},Dx=function(){var t=function(){function t(e,n){a(this,t),this._renderer=e,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=Object.is}return s(t,[{key:"writeValue",value:function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=function(t,e){return null==t?"".concat(e):(e&&"object"==typeof e&&(e="Object"),"".concat(t,": ").concat(e).slice(0,50))}(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}},{key:"registerOnChange",value:function(t){var e=this;this.onChange=function(n){e.value=e._getOptionValue(n),t(e.value)}}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(t){for(var e=0,n=Array.from(this._optionMap.keys());e-1)}}else e=function(t,e){t._setSelected(!1)};this._optionMap.forEach(e)}},{key:"registerOnChange",value:function(t){var e=this;this.onChange=function(n){var i=[];if(void 0!==n.selectedOptions)for(var r=n.selectedOptions,a=0;a0){var a=r.filter(function(t){return t!==e.validator});a.length!==r.length&&(i=!0,t.setValidators(a))}}if(null!==e.asyncValidator){var o=dx(t);if(Array.isArray(o)&&o.length>0){var s=o.filter(function(t){return t!==e.asyncValidator});s.length!==o.length&&(i=!0,t.setAsyncValidators(s))}}}if(n){var l=function(){};Px(e._rawValidators,l),Px(e._rawAsyncValidators,l)}return i}function Lx(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Nx(t,e){Mx(t,e,!1)}var Vx=[GS,Ex,kx,Dx,Ox,Sx];function jx(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 Bx(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var zx="VALID",Hx="INVALID",Ux="PENDING",qx="DISABLED";function Wx(t){return(Zx(t)?t.validators:t)||null}function Yx(t){return Array.isArray(t)?lx(t):t||null}function Gx(t,e){return(Zx(e)?e.asyncValidators:t)||null}function Kx(t){return Array.isArray(t)?ux(t):t||null}function Zx(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var $x=function(){function t(e,n){a(this,t),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=n,this._composedValidatorFn=Yx(this._rawValidators),this._composedAsyncValidatorFn=Kx(this._rawAsyncValidators)}return s(t,[{key:"setValidators",value:function(t){this._rawValidators=t,this._composedValidatorFn=Yx(t)}},{key:"setAsyncValidators",value:function(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=Kx(t)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(t){return t.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(t){t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"markAsDirty",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}},{key:"markAsPristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(t){t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"markAsPending",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=Ux,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}},{key:"disable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status=qx,this.errors=null,this._forEachChild(function(e){e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(function(t){return t(!0)})}},{key:"enable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status=zx,this._forEachChild(function(e){e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(function(t){return t(!1)})}},{key:"_updateAncestors",value:function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(t){this._parent=t}},{key:"updateValueAndValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==zx&&this.status!==Ux||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)}},{key:"_updateTreeValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(e){return e._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?qx:zx}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(t){var e=this;if(this.asyncValidator){this.status=Ux,this._hasOwnPendingAsyncValidator=!0;var n=rx(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){e._hasOwnPendingAsyncValidator=!1,e.setErrors(n,{emitEvent:t})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}},{key:"get",value: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 Qx?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof Jx&&i.at(t)||null}),i}(this,t)}},{key:"getError",value:function(t,e){var n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}},{key:"hasError",value:function(t,e){return!!this.getError(t,e)}},{key:"_updateControlsErrors",value:function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}},{key:"_initObservables",value:function(){this.valueChanges=new Vu,this.statusChanges=new Vu}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?qx:this.errors?Hx:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ux)?Ux:this._anyControlsHaveStatus(Hx)?Hx:zx}},{key:"_anyControlsHaveStatus",value:function(t){return this._anyControls(function(e){return e.status===t})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(t){return t.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(t){return t.touched})}},{key:"_updatePristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"_updateTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"_isBoxedValue",value:function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}},{key:"_registerOnCollectionChange",value:function(t){this._onCollectionChange=t}},{key:"_setUpdateStrategy",value:function(t){Zx(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}},{key:"_parentMarkedDirty",value:function(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}},{key:"validator",get:function(){return this._composedValidatorFn},set:function(t){this._rawValidators=this._composedValidatorFn=t}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===zx}},{key:"invalid",get:function(){return this.status===Hx}},{key:"pending",get:function(){return this.status==Ux}},{key:"disabled",get:function(){return this.status===qx}},{key:"enabled",get:function(){return this.status!==qx}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"root",get:function(){for(var t=this;t._parent;)t=t._parent;return t}}]),t}(),Xx=function(t){u(n,t);var e=p(n);function n(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return a(this,n),(t=e.call(this,Wx(r),Gx(o,r)))._onChange=[],t._applyFormState(i),t._setUpdateStrategy(r),t._initObservables(),t.updateValueAndValidity({onlySelf:!0,emitEvent:!!o}),t}return s(n,[{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=t,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(function(t){return t(e.value,!1!==n.emitViewToModelChange)}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(t,e)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(t){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(t){this._onChange.push(t)}},{key:"_unregisterOnChange",value:function(t){Bx(this._onChange,t)}},{key:"registerOnDisabledChange",value:function(t){this._onDisabledChange.push(t)}},{key:"_unregisterOnDisabledChange",value:function(t){Bx(this._onDisabledChange,t)}},{key:"_forEachChild",value:function(t){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}]),n}($x),Qx=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return a(this,n),(o=e.call(this,Wx(i),Gx(r,i))).controls=t,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!r}),o}return s(n,[{key:"registerControl",value:function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}},{key:"addControl",value:function(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"removeControl",value:function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setControl",value:function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"contains",value:function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}},{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),Object.keys(t).forEach(function(i){e._throwIfControlMissing(i),e.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=t&&(Object.keys(t).forEach(function(i){e.controls[i]&&e.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(t,e,n){return t[n]=e instanceof Xx?e.value:e.getRawValue(),t})}},{key:"_syncPendingControls",value:function(){var t=this._reduceChildren(!1,function(t,e){return!!e._syncPendingControls()||t});return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value: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: ".concat(t,"."))}},{key:"_forEachChild",value:function(t){var e=this;Object.keys(this.controls).forEach(function(n){var i=e.controls[n];i&&t(i,n)})}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild(function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(t){for(var e=0,n=Object.keys(this.controls);e0||this.disabled}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))})}}]),n}($x),Jx=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return a(this,n),(o=e.call(this,Wx(i),Gx(r,i))).controls=t,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!r}),o}return s(n,[{key:"at",value:function(t){return this.controls[t]}},{key:"push",value:function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"insert",value:function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}},{key:"removeAt",value:function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity()}},{key:"setControl",value: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()}},{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),t.forEach(function(t,i){e._throwIfControlMissing(i),e.at(i).setValue(t,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=t&&(t.forEach(function(t,i){e.at(i)&&e.at(i).patchValue(t,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this.controls.map(function(t){return t instanceof Xx?t.value:t.getRawValue()})}},{key:"clear",value:function(){this.controls.length<1||(this._forEachChild(function(t){return t._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity())}},{key:"_syncPendingControls",value:function(){var t=this.controls.reduce(function(t,e){return!!e._syncPendingControls()||t},!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value: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 ".concat(t))}},{key:"_forEachChild",value:function(t){this.controls.forEach(function(e,n){t(e,n)})}},{key:"_updateValue",value:function(){var t=this;this.value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})}},{key:"_anyControls",value:function(t){return this.controls.some(function(e){return e.enabled&&t(e)})}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))})}},{key:"_allControlsDisabled",value:function(){var t,e=g(this.controls);try{for(e.s();!(t=e.n()).done;)if(t.value.enabled)return!1}catch(n){e.e(n)}finally{e.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}},{key:"length",get:function(){return this.controls.length}}]),n}($x),tE={provide:px,useExisting:xt(function(){return nE})},eE=function(){return Promise.resolve(null)}(),nE=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i){var r;return a(this,n),(r=e.call(this)).submitted=!1,r._directives=[],r.ngSubmit=new Vu,r.form=new Qx({},lx(t),ux(i)),r}return s(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"addControl",value:function(t){var e=this;eE.then(function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),Tx(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)})}},{key:"getControl",value:function(t){return this.form.get(t.path)}},{key:"removeControl",value:function(t){var e=this;eE.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name),Bx(e._directives,t)})}},{key:"addFormGroup",value:function(t){var e=this;eE.then(function(){var n=e._findContainer(t.path),i=new Qx({});Nx(i,t),n.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(t){var e=this;eE.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})}},{key:"getFormGroup",value:function(t){return this.form.get(t.path)}},{key:"updateModel",value:function(t,e){var n=this;eE.then(function(){n.form.get(t.path).setValue(e)})}},{key:"setValue",value:function(t){this.control.setValue(t)}},{key:"onSubmit",value:function(t){return this.submitted=!0,jx(this.form,this._directives),this.ngSubmit.emit(t),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(t),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(t){return t.pop(),t.length?this.form.get(t):this.form}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}}]),n}(px);return t.\u0275fac=function(e){return new(e||t)(us(JS,10),us(tx,10))},t.\u0275dir=ve({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&ws("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[bl([tE]),Yo]}),t}(),iE={provide:vx,useExisting:xt(function(){return aE})},rE=function(){return Promise.resolve(null)}(),aE=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o){var s;return a(this,n),(s=e.call(this)).control=new Xx,s._registered=!1,s.update=new Vu,s._parent=t,s._setValidators(i),s._setAsyncValidators(r),s.valueAccessor=function(t,e){if(!e)return null;Array.isArray(e);var n=void 0,i=void 0,r=void 0;return e.forEach(function(t){var e;t.constructor===$S?n=t:(e=t,Vx.some(function(t){return e.constructor===t})?i=t:r=t)}),r||i||n||null}(d(s),o),s}return s(n,[{key:"ngOnChanges",value:function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),function(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){Tx(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(t){var e=this;rE.then(function(){e.control.setValue(t,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(t){var e=this,n=t.isDisabled.currentValue,i=""===n||n&&"false"!==n;rE.then(function(){i&&!e.control.disabled?e.control.disable():!i&&e.control.disabled&&e.control.enable()})}},{key:"path",get:function(){return this._parent?(t=this.name,[].concat(b(this._parent.path),[t])):[this.name];var t}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}}]),n}(vx);return t.\u0275fac=function(e){return new(e||t)(us(px,9),us(JS,10),us(tx,10),us(WS,10))},t.\u0275dir=ve({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[bl([iE]),Yo,Oe]}),t}(),oE=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ve({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t}(),sE=new bi("NgModelWithFormControlWarning"),lE={provide:px,useExisting:xt(function(){return uE})},uE=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i){var r;return a(this,n),(r=e.call(this)).validators=t,r.asyncValidators=i,r.submitted=!1,r._onCollectionChange=function(){return r._updateDomValue()},r.directives=[],r.form=null,r.ngSubmit=new Vu,r._setValidators(t),r._setAsyncValidators(i),r}return s(n,[{key:"ngOnChanges",value:function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(Fx(this.form,this,!1),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"addControl",value:function(t){var e=this.form.get(t.path);return Tx(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}},{key:"getControl",value:function(t){return this.form.get(t.path)}},{key:"removeControl",value:function(t){Rx(t.control||null,t),Bx(this.directives,t)}},{key:"addFormGroup",value:function(t){this._setUpFormContainer(t)}},{key:"removeFormGroup",value:function(t){this._cleanUpFormContainer(t)}},{key:"getFormGroup",value:function(t){return this.form.get(t.path)}},{key:"addFormArray",value:function(t){this._setUpFormContainer(t)}},{key:"removeFormArray",value:function(t){this._cleanUpFormContainer(t)}},{key:"getFormArray",value:function(t){return this.form.get(t.path)}},{key:"updateModel",value:function(t,e){this.form.get(t.path).setValue(e)}},{key:"onSubmit",value:function(t){return this.submitted=!0,jx(this.form,this.directives),this.ngSubmit.emit(t),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(t),this.submitted=!1}},{key:"_updateDomValue",value:function(){var t=this;this.directives.forEach(function(e){var n=t.form.get(e.path);e.control!==n&&(Rx(e.control||null,e),n&&Tx(n,e),e.control=n)}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(t){var e=this.form.get(t.path);Nx(e,t),e.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(t){if(this.form){var e=this.form.get(t.path);e&&function(t,e){return Fx(t,e,!1)}(e,t)&&e.updateValueAndValidity({emitEvent:!1})}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){Mx(this.form,this,!1),this._oldForm&&Fx(this._oldForm,this,!1)}},{key:"_checkFormPresent",value:function(){}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}}]),n}(px);return t.\u0275fac=function(e){return new(e||t)(us(JS,10),us(tx,10))},t.\u0275dir=ve({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&ws("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[bl([lE]),Yo,Oe]}),t}(),cE={provide:JS,useExisting:xt(function(){return dE}),multi:!0},hE={provide:JS,useExisting:xt(function(){return fE}),multi:!0},dE=function(){var t=function(){function t(){a(this,t),this._required=!1}return s(t,[{key:"validate",value:function(t){return this.required?nx.required(t):null}},{key:"registerOnValidatorChange",value:function(t){this._onChange=t}},{key:"required",get:function(){return this._required},set:function(t){this._required=null!=t&&!1!==t&&"false"!=="".concat(t),this._onChange&&this._onChange()}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ve({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&&as("required",e.required?"":null)},inputs:{required:"required"},features:[bl([cE])]}),t}(),fE=function(){var t=function(t){u(n,t);var e=p(n);function n(){return a(this,n),e.apply(this,arguments)}return s(n,[{key:"validate",value:function(t){return this.required?nx.requiredTrue(t):null}}]),n}(dE);return t.\u0275fac=function(e){return pE(e||t)},t.\u0275dir=ve({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&as("required",e.required?"":null)},features:[bl([hE]),Yo]}),t}(),pE=mi(fE),mE={provide:JS,useExisting:xt(function(){return vE}),multi:!0},vE=function(){var t=function(){function t(){a(this,t),this._validator=nx.nullValidator}return s(t,[{key:"ngOnChanges",value:function(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(t){return null!=this.maxlength?this._validator(t):null}},{key:"registerOnValidatorChange",value:function(t){this._onChange=t}},{key:"_createValidator",value:function(){this._validator=nx.maxLength("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ve({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&as("maxlength",e.maxlength?e.maxlength:null)},inputs:{maxlength:"maxlength"},features:[bl([mE]),Oe]}),t}(),gE=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({}),t}();function yE(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}var _E=function(){var t=function(){function t(){a(this,t)}return s(t,[{key:"group",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this._reduceControls(t),i=null,r=null,a=void 0;return null!=e&&(yE(e)?(i=null!=e.validators?e.validators:null,r=null!=e.asyncValidators?e.asyncValidators:null,a=null!=e.updateOn?e.updateOn:void 0):(i=null!=e.validator?e.validator:null,r=null!=e.asyncValidator?e.asyncValidator:null)),new Qx(n,{asyncValidators:r,updateOn:a,validators:i})}},{key:"control",value:function(t,e,n){return new Xx(t,e,n)}},{key:"array",value:function(t,e,n){var i=this,r=t.map(function(t){return i._createControl(t)});return new Jx(r,e,n)}},{key:"_reduceControls",value:function(t){var e=this,n={};return Object.keys(t).forEach(function(i){n[i]=e._createControl(t[i])}),n}},{key:"_createControl",value:function(t){return t instanceof Xx||t instanceof Qx||t instanceof Jx?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Rt({token:t,factory:t.\u0275fac}),t}(),bE=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({providers:[Cx],imports:[gE]}),t}(),kE=function(){var t=function(){function t(){a(this,t)}return s(t,null,[{key:"withConfig",value:function(e){return{ngModule:t,providers:[{provide:sE,useValue:e.warnOnNgModelWithFormControl}]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({providers:[_E,Cx],imports:[gE]}),t}();function wE(t,e){1&t&&Ts(0)}var CE=["*"];function SE(t,e){}var xE=function(t){return{animationDuration:t}},EE=function(t,e){return{value:t,params:e}},AE=["tabBodyWrapper"],DE=["tabHeader"];function IE(t,e){}function OE(t,e){1&t&&ss(0,IE,0,0,"ng-template",9),2&t&&cs("cdkPortalOutlet",Ds().$implicit.templateLabel)}function TE(t,e){1&t&&Js(0),2&t&&tl(Ds().$implicit.textLabel)}function RE(t,e){if(1&t){var n=ys();ds(0,"div",6),ws("click",function(){nn(n);var t=e.$implicit,i=e.index,r=Ds(),a=ls(1);return r._handleClick(t,a,i)})("cdkFocusChange",function(t){nn(n);var i=e.index;return Ds()._tabFocusChanged(t,i)}),ds(1,"div",7),ss(2,OE,1,1,"ng-template",8),ss(3,TE,1,1,"ng-template",8),fs(),fs()}if(2&t){var i=e.$implicit,r=e.index,a=Ds();Hs("mat-tab-label-active",a.selectedIndex==r),cs("id",a._getTabLabelId(r))("disabled",i.disabled)("matRippleDisabled",i.disabled||a.disableRipple),as("tabIndex",a._getTabIndex(i,r))("aria-posinset",r+1)("aria-setsize",a._tabs.length)("aria-controls",a._getTabContentId(r))("aria-selected",a.selectedIndex==r)("aria-label",i.ariaLabel||null)("aria-labelledby",!i.ariaLabel&&i.ariaLabelledby?i.ariaLabelledby:null),Ia(2),cs("ngIf",i.templateLabel),Ia(1),cs("ngIf",!i.templateLabel)}}function PE(t,e){if(1&t){var n=ys();ds(0,"mat-tab-body",10),ws("_onCentered",function(){return nn(n),Ds()._removeTabBodyWrapperHeight()})("_onCentering",function(t){return nn(n),Ds()._setTabBodyWrapperHeight(t)}),fs()}if(2&t){var i=e.$implicit,r=e.index,a=Ds();Hs("mat-tab-body-active",a.selectedIndex==r),cs("id",a._getTabContentId(r))("content",i.content)("position",i.position)("origin",i.origin)("animationDuration",a.animationDuration),as("aria-labelledby",a._getTabLabelId(r))}}var ME=["tabListContainer"],FE=["tabList"],LE=["nextPaginator"],NE=["previousPaginator"],VE=new bi("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(t){return{left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"}}}}),jE=function(){var t=function(){function t(e,n,i,r){a(this,t),this._elementRef=e,this._ngZone=n,this._inkBarPositioner=i,this._animationMode=r}return s(t,[{key:"alignToElement",value:function(t){var e=this;this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return e._setStyles(t)})}):this._setStyles(t)}},{key:"show",value:function(){this._elementRef.nativeElement.style.visibility="visible"}},{key:"hide",value:function(){this._elementRef.nativeElement.style.visibility="hidden"}},{key:"_setStyles",value:function(t){var e=this._inkBarPositioner(t),n=this._elementRef.nativeElement;n.style.left=e.left,n.style.width=e.width}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(Dl),us(xc),us(VE),us(eC,8))},t.\u0275dir=ve({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&Hs("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),t}(),BE=new bi("MatTabContent"),zE=new bi("MatTabLabel"),HE=function(){var t=function(t){u(n,t);var e=p(n);function n(){return a(this,n),e.apply(this,arguments)}return n}(Cy);return t.\u0275fac=function(e){return UE(e||t)},t.\u0275dir=ve({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[bl([{provide:zE,useExisting:t}]),Yo]}),t}(),UE=mi(HE),qE=fC(function t(){a(this,t)}),WE=new bi("MAT_TAB_GROUP"),YE=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i){var r;return a(this,n),(r=e.call(this))._viewContainerRef=t,r._closestTabGroup=i,r.textLabel="",r._contentPortal=null,r._stateChanges=new q,r.position=null,r.origin=null,r.isActive=!1,r}return s(n,[{key:"ngOnChanges",value:function(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"ngOnInit",value:function(){this._contentPortal=new _y(this._explicitContent||this._implicitContent,this._viewContainerRef)}},{key:"_setTemplateLabelInput",value:function(t){t&&(this._templateLabel=t)}},{key:"templateLabel",get:function(){return this._templateLabel},set:function(t){this._setTemplateLabelInput(t)}},{key:"content",get:function(){return this._contentPortal}}]),n}(qE);return t.\u0275fac=function(e){return new(e||t)(us(fu),us(WE))},t.\u0275cmp=ce({type:t,selectors:[["mat-tab"]],contentQueries:function(t,e,n){var i;1&t&&(Qu(n,zE,1),Qu(n,BE,3,su)),2&t&&($u(i=Ju())&&(e.templateLabel=i.first),$u(i=Ju())&&(e._explicitContent=i.first))},viewQuery:function(t,e){var n;1&t&&Xu(su,3),2&t&&$u(n=Ju())&&(e._implicitContent=n.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[Yo,Oe],ngContentSelectors:CE,decls:1,vars:0,template:function(t,e){1&t&&(Os(),ss(0,wE,1,0,"ng-template"))},encapsulation:2}),t}(),GE={translateTab:db("translateTab",[vb("center, void, left-origin-center, right-origin-center",mb({transform:"none"})),vb("left",mb({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),vb("right",mb({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),yb("* => left, * => right, left => center, right => center",fb("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),yb("void => left-origin-center",[mb({transform:"translate3d(-100%, 0, 0)"}),fb("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),yb("void => right-origin-center",[mb({transform:"translate3d(100%, 0, 0)"}),fb("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},KE=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o){var s;return a(this,n),(s=e.call(this,t,i,o))._host=r,s._centeringSub=A.EMPTY,s._leavingSub=A.EMPTY,s}return s(n,[{key:"ngOnInit",value:function(){var t=this;r(i(n.prototype),"ngOnInit",this).call(this),this._centeringSub=this._host._beforeCentering.pipe(Nf(this._host._isCenterPosition(this._host._position))).subscribe(function(e){e&&!t.hasAttached()&&t.attach(t._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(function(){t.detach()})}},{key:"ngOnDestroy",value:function(){r(i(n.prototype),"ngOnDestroy",this).call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}]),n}(Sy);return t.\u0275fac=function(e){return new(e||t)(us(Sl),us(fu),us(xt(function(){return $E})),us(sh))},t.\u0275dir=ve({type:t,selectors:[["","matTabBodyHost",""]],features:[Yo]}),t}(),ZE=function(){var t=function(){function t(e,n,i){var r=this;a(this,t),this._elementRef=e,this._dir=n,this._dirChangeSubscription=A.EMPTY,this._translateTabComplete=new q,this._onCentering=new Vu,this._beforeCentering=new Vu,this._afterLeavingCenter=new Vu,this._onCentered=new Vu(!0),this.animationDuration="500ms",n&&(this._dirChangeSubscription=n.change.subscribe(function(t){r._computePositionAnimationState(t),i.markForCheck()})),this._translateTabComplete.pipe(Og(function(t,e){return t.fromState===e.fromState&&t.toState===e.toState})).subscribe(function(t){r._isCenterPosition(t.toState)&&r._isCenterPosition(r._position)&&r._onCentered.emit(),r._isCenterPosition(t.fromState)&&!r._isCenterPosition(r._position)&&r._afterLeavingCenter.emit()})}return s(t,[{key:"ngOnInit",value:function(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}},{key:"ngOnDestroy",value:function(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}},{key:"_onTranslateTabStarted",value:function(t){var e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_isCenterPosition",value:function(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t}},{key:"_computePositionAnimationState",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._getLayoutDirection();this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"}},{key:"_computePositionFromOrigin",value:function(t){var e=this._getLayoutDirection();return"ltr"==e&&t<=0||"rtl"==e&&t>0?"left-origin-center":"right-origin-center"}},{key:"position",set:function(t){this._positionIndex=t,this._computePositionAnimationState()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(Dl),us(oy,8),us(tu))},t.\u0275dir=ve({type:t,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t}(),$E=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r){return a(this,n),e.call(this,t,i,r)}return n}(ZE);return t.\u0275fac=function(e){return new(e||t)(us(Dl),us(oy,8),us(tu))},t.\u0275cmp=ce({type:t,selectors:[["mat-tab-body"]],viewQuery:function(t,e){var n;1&t&&Xu(Sy,1),2&t&&$u(n=Ju())&&(e._portalHost=n.first)},hostAttrs:[1,"mat-tab-body"],features:[Yo],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){1&t&&(ds(0,"div",0,1),ws("@translateTab.start",function(t){return e._onTranslateTabStarted(t)})("@translateTab.done",function(t){return e._translateTabComplete.next(t)}),ss(2,SE,0,0,"ng-template",2),fs()),2&t&&cs("@translateTab",Iu(3,EE,e._position,Du(1,xE,e.animationDuration)))},directives:[KE],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[GE.translateTab]}}),t}(),XE=new bi("MAT_TABS_CONFIG"),QE=0,JE=function t(){a(this,t)},tA=pC(mC(function t(e){a(this,t),this._elementRef=e}),"primary"),eA=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o){var s;return a(this,n),(s=e.call(this,t))._changeDetectorRef=i,s._animationMode=o,s._tabs=new Bu,s._indexToSelect=0,s._tabBodyWrapperHeight=0,s._tabsSubscription=A.EMPTY,s._tabLabelSubscription=A.EMPTY,s._selectedIndex=null,s.headerPosition="above",s.selectedIndexChange=new Vu,s.focusChange=new Vu,s.animationDone=new Vu,s.selectedTabChange=new Vu(!0),s._groupId=QE++,s.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",s.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,s.dynamicHeight=!(!r||null==r.dynamicHeight)&&r.dynamicHeight,s}return s(n,[{key:"ngAfterContentChecked",value: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())}},{key:"ngAfterContentInit",value:function(){var t=this;this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(function(){if(t._clampTabIndex(t._indexToSelect)===t._selectedIndex)for(var e=t._tabs.toArray(),n=0;n.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 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}\n"],encapsulation:2}),t}(),iA=fC(function t(){a(this,t)}),rA=function(){var t=function(t){u(n,t);var e=p(n);function n(t){var i;return a(this,n),(i=e.call(this)).elementRef=t,i}return s(n,[{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"getOffsetLeft",value:function(){return this.elementRef.nativeElement.offsetLeft}},{key:"getOffsetWidth",value:function(){return this.elementRef.nativeElement.offsetWidth}}]),n}(iA);return t.\u0275fac=function(e){return new(e||t)(us(Dl))},t.\u0275dir=ve({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,e){2&t&&(as("aria-disabled",!!e.disabled),Hs("mat-tab-disabled",e.disabled))},inputs:{disabled:"disabled"},features:[Yo]}),t}(),aA=ny({passive:!0}),oA=function(){var t=function(){function t(e,n,i,r,o,s,l){var u=this;a(this,t),this._elementRef=e,this._changeDetectorRef=n,this._viewportRuler=i,this._dir=r,this._ngZone=o,this._platform=s,this._animationMode=l,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new q,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new q,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new Vu,this.indexFocused=new Vu,o.runOutsideAngular(function(){gg(e.nativeElement,"mouseleave").pipe(zg(u._destroyed)).subscribe(function(){u._stopInterval()})})}return s(t,[{key:"ngAfterViewInit",value:function(){var t=this;gg(this._previousPaginator.nativeElement,"touchstart",aA).pipe(zg(this._destroyed)).subscribe(function(){t._handlePaginatorPress("before")}),gg(this._nextPaginator.nativeElement,"touchstart",aA).pipe(zg(this._destroyed)).subscribe(function(){t._handlePaginatorPress("after")})}},{key:"ngAfterContentInit",value:function(){var t=this,e=this._dir?this._dir.change:Td(null),n=this._viewportRuler.change(150),i=function(){t.updatePagination(),t._alignInkBarToSelectedTab()};this._keyManager=new j_(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(i):i(),dt(e,n,this._items.changes).pipe(zg(this._destroyed)).subscribe(function(){Promise.resolve().then(i),t._keyManager.withHorizontalOrientation(t._getLayoutDirection())}),this._keyManager.change.pipe(zg(this._destroyed)).subscribe(function(e){t.indexFocused.emit(e),t._setTabFocus(e)})}},{key:"ngAfterContentChecked",value:function(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}},{key:"_handleKeydown",value:function(t){if(!Ny(t))switch(t.keyCode){case Dy:case Oy:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t));break;default:this._keyManager.onKeydown(t)}}},{key:"_onContentChanges",value:function(){var t=this,e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(function(){t.updatePagination(),t._alignInkBarToSelectedTab(),t._changeDetectorRef.markForCheck()}))}},{key:"updatePagination",value:function(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}},{key:"_isValidIndex",value:function(t){if(!this._items)return!0;var e=this._items?this._items.toArray()[t]:null;return!!e&&!e.disabled}},{key:"_setTabFocus",value:function(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();var e=this._tabListContainer.nativeElement,n=this._getLayoutDirection();e.scrollLeft="ltr"==n?0:e.scrollWidth-e.offsetWidth}}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_updateTabScrollPosition",value:function(){if(!this.disablePagination){var t=this.scrollDistance,e="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform="translateX(".concat(Math.round(e),"px)"),(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}}},{key:"_scrollHeader",value:function(t){return this._scrollTo(this._scrollDistance+("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}},{key:"_handlePaginatorClick",value:function(t){this._stopInterval(),this._scrollHeader(t)}},{key:"_scrollToLabel",value:function(t){if(!this.disablePagination){var e=this._items?this._items.toArray()[t]:null;if(e){var n,i,r=this._tabListContainer.nativeElement.offsetWidth,a=e.elementRef.nativeElement,o=a.offsetLeft,s=a.offsetWidth;"ltr"==this._getLayoutDirection()?i=(n=o)+s:n=(i=this._tabList.nativeElement.offsetWidth-o)-s;var l=this.scrollDistance,u=this.scrollDistance+r;nu&&(this.scrollDistance+=i-u+60)}}}},{key:"_checkPaginationEnabled",value:function(){if(this.disablePagination)this._showPaginationControls=!1;else{var t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}}},{key:"_checkScrollingControls",value:function(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}},{key:"_getMaxScrollDistance",value:function(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}},{key:"_alignInkBarToSelectedTab",value: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()}},{key:"_stopInterval",value:function(){this._stopScrolling.next()}},{key:"_handlePaginatorPress",value:function(t,e){var n=this;e&&null!=e.button&&0!==e.button||(this._stopInterval(),Vg(650,100).pipe(zg(dt(this._stopScrolling,this._destroyed))).subscribe(function(){var e=n._scrollHeader(t),i=e.distance;(0===i||i>=e.maxScrollDistance)&&n._stopInterval()}))}},{key:"_scrollTo",value:function(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(t){t=hg(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}},{key:"focusIndex",get:function(){return this._keyManager?this._keyManager.activeItemIndex:0},set:function(t){this._isValidIndex(t)&&this.focusIndex!==t&&this._keyManager&&this._keyManager.setActiveItem(t)}},{key:"scrollDistance",get:function(){return this._scrollDistance},set:function(t){this._scrollTo(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(Dl),us(tu),us(py),us(oy,8),us(xc),us(Qg),us(eC,8))},t.\u0275dir=ve({type:t,inputs:{disablePagination:"disablePagination"}}),t}(),sA=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,s,l,u){var c;return a(this,n),(c=e.call(this,t,i,r,o,s,l,u))._disableRipple=!1,c}return s(n,[{key:"_itemSelected",value:function(t){t.preventDefault()}},{key:"disableRipple",get:function(){return this._disableRipple},set:function(t){this._disableRipple=cg(t)}}]),n}(oA);return t.\u0275fac=function(e){return new(e||t)(us(Dl),us(tu),us(py),us(oy,8),us(xc),us(Qg),us(eC,8))},t.\u0275dir=ve({type:t,inputs:{disableRipple:"disableRipple"},features:[Yo]}),t}(),lA=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,s,l,u){return a(this,n),e.call(this,t,i,r,o,s,l,u)}return n}(sA);return t.\u0275fac=function(e){return new(e||t)(us(Dl),us(tu),us(py),us(oy,8),us(xc),us(Qg),us(eC,8))},t.\u0275cmp=ce({type:t,selectors:[["mat-tab-header"]],contentQueries:function(t,e,n){var i;1&t&&Qu(n,rA,0),2&t&&$u(i=Ju())&&(e._items=i)},viewQuery:function(t,e){var n;1&t&&(Xu(jE,3),Xu(ME,3),Xu(FE,3),Xu(LE,1),Xu(NE,1)),2&t&&($u(n=Ju())&&(e._inkBar=n.first),$u(n=Ju())&&(e._tabListContainer=n.first),$u(n=Ju())&&(e._tabList=n.first),$u(n=Ju())&&(e._nextPaginator=n.first),$u(n=Ju())&&(e._previousPaginator=n.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e){2&t&&Hs("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[Yo],ngContentSelectors:CE,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&&(Os(),ds(0,"div",0,1),ws("click",function(){return e._handlePaginatorClick("before")})("mousedown",function(t){return e._handlePaginatorPress("before",t)})("touchend",function(){return e._stopInterval()}),ps(2,"div",2),fs(),ds(3,"div",3,4),ws("keydown",function(t){return e._handleKeydown(t)}),ds(5,"div",5,6),ws("cdkObserveContent",function(){return e._onContentChanges()}),ds(7,"div",7),Ts(8),fs(),ps(9,"mat-ink-bar"),fs(),fs(),ds(10,"div",8,9),ws("mousedown",function(t){return e._handlePaginatorPress("after",t)})("click",function(){return e._handlePaginatorClick("after")})("touchend",function(){return e._stopInterval()}),ps(12,"div",2),fs()),2&t&&(Hs("mat-tab-header-pagination-disabled",e._disableScrollBefore),cs("matRippleDisabled",e._disableScrollBefore||e.disableRipple),Ia(5),Hs("_mat-animation-noopable","NoopAnimations"===e._animationMode),Ia(5),Hs("mat-tab-header-pagination-disabled",e._disableScrollAfter),cs("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[HC,x_,jE],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-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .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 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 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}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .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:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-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}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),t}(),uA=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({imports:[[Kh,dC,xy,UC,E_,sb],dC]}),t}();function cA(t,e){if(1&t){var n=ys();ds(0,"uds-field-text",2),ws("changed",function(t){return nn(n),Ds().changed.emit(t)}),fs()}2&t&&cs("field",Ds().field)}function hA(t,e){if(1&t){var n=ys();ds(0,"uds-field-textbox",2),ws("changed",function(t){return nn(n),Ds().changed.emit(t)}),fs()}2&t&&cs("field",Ds().field)}function dA(t,e){if(1&t){var n=ys();ds(0,"uds-field-numeric",2),ws("changed",function(t){return nn(n),Ds().changed.emit(t)}),fs()}2&t&&cs("field",Ds().field)}function fA(t,e){if(1&t){var n=ys();ds(0,"uds-field-password",2),ws("changed",function(t){return nn(n),Ds().changed.emit(t)}),fs()}2&t&&cs("field",Ds().field)}function pA(t,e){if(1&t){var n=ys();ds(0,"uds-field-hidden",2),ws("changed",function(t){return nn(n),Ds().changed.emit(t)}),fs()}2&t&&cs("field",Ds().field)}function mA(t,e){if(1&t){var n=ys();ds(0,"uds-field-choice",2),ws("changed",function(t){return nn(n),Ds().changed.emit(t)}),fs()}2&t&&cs("field",Ds().field)}function vA(t,e){if(1&t){var n=ys();ds(0,"uds-field-multichoice",2),ws("changed",function(t){return nn(n),Ds().changed.emit(t)}),fs()}2&t&&cs("field",Ds().field)}function gA(t,e){if(1&t){var n=ys();ds(0,"uds-field-editlist",2),ws("changed",function(t){return nn(n),Ds().changed.emit(t)}),fs()}2&t&&cs("field",Ds().field)}function yA(t,e){if(1&t){var n=ys();ds(0,"uds-field-checkbox",2),ws("changed",function(t){return nn(n),Ds().changed.emit(t)}),fs()}2&t&&cs("field",Ds().field)}function _A(t,e){if(1&t){var n=ys();ds(0,"uds-field-imgchoice",2),ws("changed",function(t){return nn(n),Ds().changed.emit(t)}),fs()}2&t&&cs("field",Ds().field)}function bA(t,e){if(1&t){var n=ys();ds(0,"uds-field-date",2),ws("changed",function(t){return nn(n),Ds().changed.emit(t)}),fs()}2&t&&cs("field",Ds().field)}function kA(t,e){if(1&t){var n=ys();ds(0,"uds-field-tags",2),ws("changed",function(t){return nn(n),Ds().changed.emit(t)}),fs()}2&t&&cs("field",Ds().field)}var wA=function(){function t(){this.changed=new Vu,this.udsGuiFieldType=HS}return t.prototype.ngOnInit=function(){},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["uds-field"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:13,vars:14,consts:[["matTooltipShowDelay","1000",1,"field",3,"ngSwitch","matTooltip"],[3,"field","changed",4,"ngSwitchCase"],[3,"field","changed"]],template:function(t,e){1&t&&(ds(0,"div",0),ss(1,cA,1,1,"uds-field-text",1),ss(2,hA,1,1,"uds-field-textbox",1),ss(3,dA,1,1,"uds-field-numeric",1),ss(4,fA,1,1,"uds-field-password",1),ss(5,pA,1,1,"uds-field-hidden",1),ss(6,mA,1,1,"uds-field-choice",1),ss(7,vA,1,1,"uds-field-multichoice",1),ss(8,gA,1,1,"uds-field-editlist",1),ss(9,yA,1,1,"uds-field-checkbox",1),ss(10,_A,1,1,"uds-field-imgchoice",1),ss(11,bA,1,1,"uds-field-date",1),ss(12,kA,1,1,"uds-field-tags",1),fs()),2&t&&(cs("ngSwitch",e.field.gui.type)("matTooltip",e.field.gui.tooltip),Ia(1),cs("ngSwitchCase",e.udsGuiFieldType.TEXT),Ia(1),cs("ngSwitchCase",e.udsGuiFieldType.TEXTBOX),Ia(1),cs("ngSwitchCase",e.udsGuiFieldType.NUMERIC),Ia(1),cs("ngSwitchCase",e.udsGuiFieldType.PASSWORD),Ia(1),cs("ngSwitchCase",e.udsGuiFieldType.HIDDEN),Ia(1),cs("ngSwitchCase",e.udsGuiFieldType.CHOICE),Ia(1),cs("ngSwitchCase",e.udsGuiFieldType.MULTI_CHOICE),Ia(1),cs("ngSwitchCase",e.udsGuiFieldType.EDITLIST),Ia(1),cs("ngSwitchCase",e.udsGuiFieldType.CHECKBOX),Ia(1),cs("ngSwitchCase",e.udsGuiFieldType.IMAGECHOICE),Ia(1),cs("ngSwitchCase",e.udsGuiFieldType.DATE),Ia(1),cs("ngSwitchCase",e.udsGuiFieldType.TAGLIST))},styles:["uds-field[_ngcontent-%COMP%]{flex:1 50%} .mat-form-field{width:calc(100% - 1px)} .mat-form-field-flex{padding-top:0!important} .mat-tooltip{font-size:.9rem!important;margin:0!important;max-width:26em!important}"]}),t}();function CA(t,e){1&t&&Js(0),2&t&&el(" ",Ds().$implicit," ")}function SA(t,e){if(1&t){var n=ys();ds(0,"uds-field",7),ws("changed",function(t){return nn(n),Ds(3).changed.emit(t)}),fs()}2&t&&cs("field",e.$implicit)}function xA(t,e){if(1&t&&(ds(0,"mat-tab"),ss(1,CA,1,1,"ng-template",4),ds(2,"div",5),ss(3,SA,1,1,"uds-field",6),fs(),fs()),2&t){var n=e.$implicit,i=Ds(2);Ia(3),cs("ngForOf",i.fieldsByTab[n])}}function EA(t,e){if(1&t&&(ds(0,"mat-tab-group",2),ss(1,xA,4,1,"mat-tab",3),fs()),2&t){var n=Ds();cs("disableRipple",!0)("@.disabled",!0),Ia(1),cs("ngForOf",n.tabs)}}function AA(t,e){if(1&t&&(ds(0,"div"),ps(1,"uds-field",8),fs()),2&t){var n=e.$implicit;Ia(1),cs("field",n)}}function DA(t,e){1&t&&ss(0,AA,2,1,"div",3),2&t&&cs("ngForOf",Ds().fields)}var IA=django.gettext("Main"),OA=function(){function t(){this.changed=new Vu}return t.prototype.ngOnInit=function(){var t=this;this.tabs=new Array,this.fieldsByTab={},this.fields.forEach(function(e){var n=void 0===e.gui.tab?IA:e.gui.tab;t.tabs.includes(n)||(t.tabs.push(n),t.fieldsByTab[n]=new Array),t.fieldsByTab[n].push(e)})},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["uds-form"]],inputs:{fields:"fields"},outputs:{changed:"changed"},decls:3,vars:2,consts:[[3,"disableRipple",4,"ngIf","ngIfElse"],["onlyone",""],[3,"disableRipple"],[4,"ngFor","ngForOf"],["mat-tab-label",""],[1,"content"],[3,"field","changed",4,"ngFor","ngForOf"],[3,"field","changed"],[3,"field"]],template:function(t,e){if(1&t&&(ss(0,EA,2,3,"mat-tab-group",0),ss(1,DA,1,1,"ng-template",null,1,ic)),2&t){var n=ls(2);cs("ngIf",e.tabs.length>1)("ngIfElse",n)}},directives:[Ph,nA,Th,YE,HE,wA],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 TA(t,e){if(1&t){var n=ys();ds(0,"button",10),ws("click",function(){return nn(n),Ds().customButtonClicked()}),Js(1),fs()}if(2&t){var i=Ds();Ia(1),tl(i.data.customButton)}}var RA,PA=function(){function t(t,e){this.dialogRef=t,this.data=e,this.onEvent=new Vu(!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;n.gui.required&&0!==i&&(!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)(us(hS),us(fS))},t.\u0275cmp=ce({type:t,selectors:[["uds-modal-form"]],decls:17,vars:7,consts:[["mat-dialog-title","",3,"innerHtml"],["vc",""],["autocomplete","off"],[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&&(ps(0,"h4",0),Pu(1,"safeHtml"),ds(2,"mat-dialog-content",null,1),ds(4,"form",2),ds(5,"uds-form",3),ws("changed",function(t){return e.changed(t)}),fs(),fs(),fs(),ds(6,"mat-dialog-actions"),ds(7,"div",4),ds(8,"div",5),ss(9,TA,2,1,"button",6),fs(),ds(10,"div",7),ds(11,"button",8),ws("click",function(){return e.dialogRef.close()}),ds(12,"uds-translate"),Js(13,"Discard & close"),fs(),fs(),ds(14,"button",9),ws("click",function(){return e.save()}),ds(15,"uds-translate"),Js(16,"Save"),fs(),fs(),fs(),fs(),fs()),2&t&&(cs("innerHtml",Mu(1,5,e.data.title),Ir),Ia(5),cs("fields",e.data.guiFields),Ia(4),cs("ngIf",null!=e.data.customButton),Ia(2),cs("disabled",e.saving),Ia(3),cs("disabled",e.saving))},directives:[kS,wS,oE,_x,nE,OA,CS,Ph,RS,FS,Ih],pipes:[LS],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}(),MA=function(){function t(t){this.gui=t}return 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===HS.TEXT&&t.gui.multiline&&(t.gui.type=HS.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 a=window.innerWidth<800?"80%":"50%";return this.gui.dialog.open(PA,{position:{top:"64px"},width:a,data:{title:t,guiFields:e,customButton:i,gui:this.gui},disableClose:!0}).componentInstance.onEvent},t.prototype.typedForm=function(t,e,n,i,r,a,o){var s=this;o=o||{};var l=new Vu,u=n?django.gettext("Test"):void 0,c={},h={},d=function(e){h.hasOwnProperty(e.name)&&""!==e.value&&void 0!==e.value&&s.executeCallback(t,e,c)};return o.snack||(o.snack=this.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss"))),t.table.rest.gui(a).subscribe(function(n){o.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&&(h[t.name]=t.gui.fills)}),s.modalForm(e,n,r,u).subscribe(function(e){switch(e.data&&(e.data.data_type=a),e.type){case u: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(a,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,h=n;i"+i.join(", ")+"";this.gui.yesno(e,a,!0).subscribe(function(e){if(e){var i=r.length,a=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&&a()},function(t){0==--i&&a()})})}})},t.prototype.executeCallback=function(t,e,n,i){var r=this;void 0===i&&(i={});var a=new Array;e.gui.fills.parameters.forEach(function(t){a.push(t+"="+encodeURIComponent(n[t].value))}),t.table.rest.callback(e.gui.fills.callbackName,a.join("&")).subscribe(function(e){var a=new Array;e.forEach(function(t){var e=n[t.name];void 0!==e&&(void 0!==e.gui.fills&&a.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:""))}),a.forEach(function(e){void 0===i[e.name]&&(i[e.name]=!0,r.executeCallback(t,e,n,i))})})},t}(),FA=function(){function t(t,e){this.dialog=t,this.snackbar=e,this.forms=new MA(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(zS,{width:r,data:{title:t,body:e,autoclose:n,type:BS.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(zS,{width:i,data:{title:t,body:e,type:BS.yesno,warnOnYes:n},disableClose:!0}).componentInstance.yesno},t.prototype.icon=function(t,e){return void 0===e&&(e="24px"),''},t}(),LA=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}({}),NA=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}({}),VA="provider",jA="service",BA="pool",zA="user",HA="group",UA="transport",qA="osmanager",WA="calendar",YA="poolgroup",GA={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")},KA=function(){function t(t){this.router=t}return t.getGotoButton=function(t,e,n){return{id:t,html:'link'+django.gettext("Go to")+" "+GA[t]+"",type:NA.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 VA:this.gotoProvider(i(0));break;case jA:this.gotoService(i(0),i(1));break;case BA:this.gotoServicePool(i(0));break;case"authenticator":this.gotoAuthenticator(i(0));break;case zA:this.gotoUser(i(0),i(1));break;case HA:this.gotoGroup(i(0),i(1));break;case UA:this.gotoTransport(i(0));break;case qA:this.gotoOSManager(i(0));break;case WA:this.gotoCalendar(i(0));break;case YA:this.gotoPoolGroup(i(0))}}catch(r){}},t}(),ZA=function(){function t(e){a(this,t),this.total=e}return s(t,[{key:"call",value:function(t,e){return e.subscribe(new $A(t,this.total))}}]),t}(),$A=function(t){u(n,t);var e=p(n);function n(t,i){var r;return a(this,n),(r=e.call(this,t)).total=i,r.count=0,r}return s(n,[{key:"_next",value:function(t){++this.count>this.total&&this.destination.next(t)}}]),n}(M),XA=new Set,QA=function(){var t=function(){function t(e){a(this,t),this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):JA}return s(t,[{key:"matchMedia",value:function(t){return this._platform.WEBKIT&&function(t){if(!XA.has(t))try{RA||((RA=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(RA)),RA.sheet&&(RA.sheet.insertRule("@media ".concat(t," {.fx-query-test{ }}"),0),XA.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Vi(Qg))},t.\u0275prov=Rt({factory:function(){return new t(Vi(Qg))},token:t,providedIn:"root"}),t}();function JA(t){return{matches:"all"===t||""===t,media:t,addListener:function(){},removeListener:function(){}}}var tD=function(){var t=function(){function t(e,n){a(this,t),this._mediaMatcher=e,this._zone=n,this._queries=new Map,this._destroySubject=new q}return s(t,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(t){var e=this;return eD(fg(t)).some(function(t){return e._registerQuery(t).mql.matches})}},{key:"observe",value:function(t){var e=this,n=kf(eD(fg(t)).map(function(t){return e._registerQuery(t).observable}));return(n=Ef(n.pipe(Mf(1)),n.pipe(function(t){return t.lift(new ZA(1))},__(0)))).pipe(G(function(t){var e={matches:!1,breakpoints:{}};return t.forEach(function(t){var n=t.matches,i=t.query;e.matches=e.matches||n,e.breakpoints[i]=n}),e}))}},{key:"_registerQuery",value:function(t){var e=this;if(this._queries.has(t))return this._queries.get(t);var n=this._mediaMatcher.matchMedia(t),i={observable:new j(function(t){var i=function(n){return e._zone.run(function(){return t.next(n)})};return n.addListener(i),function(){n.removeListener(i)}}).pipe(Nf(n),G(function(e){return{query:t,matches:e.matches}}),zg(this._destroySubject)),mql:n};return this._queries.set(t,i),i}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Vi(QA),Vi(xc))},t.\u0275prov=Rt({factory:function(){return new t(Vi(QA),Vi(xc))},token:t,providedIn:"root"}),t}();function eD(t){return t.map(function(t){return t.split(",")}).reduce(function(t,e){return t.concat(e)}).map(function(t){return t.trim()})}function nD(t,e){if(1&t){var n=ys();ds(0,"div",1),ds(1,"button",2),ws("click",function(){return nn(n),Ds().action()}),Js(2),fs(),fs()}if(2&t){var i=Ds();Ia(2),tl(i.data.action)}}function iD(t,e){}var rD=new bi("MatSnackBarData"),aD=function t(){a(this,t),this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"},oD=Math.pow(2,31)-1,sD=function(){function t(e,n){var i=this;a(this,t),this._overlayRef=n,this._afterDismissed=new q,this._afterOpened=new q,this._onAction=new q,this._dismissedByAction=!1,this.containerInstance=e,this.onAction().subscribe(function(){return i.dismiss()}),e._onExit.subscribe(function(){return i._finishDismiss()})}return s(t,[{key:"dismiss",value:function(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}},{key:"dismissWithAction",value:function(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete())}},{key:"closeWithAction",value:function(){this.dismissWithAction()}},{key:"_dismissAfter",value:function(t){var e=this;this._durationTimeoutId=setTimeout(function(){return e.dismiss()},Math.min(t,oD))}},{key:"_open",value:function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}},{key:"_finishDismiss",value:function(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}},{key:"afterDismissed",value:function(){return this._afterDismissed}},{key:"afterOpened",value:function(){return this.containerInstance._onEnter}},{key:"onAction",value:function(){return this._onAction}}]),t}(),lD=function(){var t=function(){function t(e,n){a(this,t),this.snackBarRef=e,this.data=n}return s(t,[{key:"action",value:function(){this.snackBarRef.dismissWithAction()}},{key:"hasAction",get:function(){return!!this.data.action}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(sD),us(rD))},t.\u0275cmp=ce({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&&(ds(0,"span"),Js(1),fs(),ss(2,nD,3,1,"div",0)),2&t&&(Ia(1),tl(e.data.message),Ia(1),cs("ngIf",e.hasAction))},directives:[Ph,RS],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}\n"],encapsulation:2,changeDetection:0}),t}(),uD={snackBarState:db("state",[vb("void, hidden",mb({transform:"scale(0.8)",opacity:0})),vb("visible",mb({transform:"scale(1)",opacity:1})),yb("* => visible",fb("150ms cubic-bezier(0, 0, 0.2, 1)")),yb("* => void, * => hidden",fb("75ms cubic-bezier(0.4, 0.0, 1, 1)",mb({opacity:0})))])},cD=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,s){var l;return a(this,n),(l=e.call(this))._ngZone=t,l._elementRef=i,l._changeDetectorRef=r,l._platform=o,l.snackBarConfig=s,l._announceDelay=150,l._destroyed=!1,l._onAnnounce=new q,l._onExit=new q,l._onEnter=new q,l._animationState="void",l.attachDomPortal=function(t){return l._assertNotAttached(),l._applySnackBarClasses(),l._portalOutlet.attachDomPortal(t)},l._live="assertive"!==s.politeness||s.announcementMessage?"off"===s.politeness?"off":"polite":"assertive",l._platform.FIREFOX&&("polite"===l._live&&(l._role="status"),"assertive"===l._live&&(l._role="alert")),l}return s(n,[{key:"attachComponentPortal",value:function(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(t)}},{key:"attachTemplatePortal",value:function(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(t)}},{key:"onAnimationEnd",value: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()})}}},{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}},{key:"exit",value:function(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._onExit}},{key:"ngOnDestroy",value:function(){this._destroyed=!0,this._completeExit()}},{key:"_completeExit",value:function(){var t=this;this._ngZone.onMicrotaskEmpty.pipe(Mf(1)).subscribe(function(){t._onExit.next(),t._onExit.complete()})}},{key:"_applySnackBarClasses",value: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")}},{key:"_assertNotAttached",value:function(){this._portalOutlet.hasAttached()}},{key:"_screenReaderAnnounce",value:function(){var t=this;this._announceTimeoutId||this._ngZone.runOutsideAngular(function(){t._announceTimeoutId=setTimeout(function(){var e=t._elementRef.nativeElement.querySelector("[aria-hidden]"),n=t._elementRef.nativeElement.querySelector("[aria-live]");if(e&&n){var i=null;t._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(i=document.activeElement),e.removeAttribute("aria-hidden"),n.appendChild(e),null==i||i.focus(),t._onAnnounce.next(),t._onAnnounce.complete()}},t._announceDelay)})}}]),n}(ky);return t.\u0275fac=function(e){return new(e||t)(us(xc),us(Dl),us(tu),us(Qg),us(aD))},t.\u0275cmp=ce({type:t,selectors:[["snack-bar-container"]],viewQuery:function(t,e){var n;1&t&&Xu(Sy,3),2&t&&$u(n=Ju())&&(e._portalOutlet=n.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(t,e){1&t&&Cs("@state.done",function(t){return e.onAnimationEnd(t)}),2&t&&rl("@state",e._animationState)},features:[Yo],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(t,e){1&t&&(ds(0,"div",0),ss(1,iD,0,0,"ng-template",1),fs(),ps(2,"div")),2&t&&(Ia(2),as("aria-live",e._live)("role",e._role))},directives:[Sy],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}.cdk-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%}\n"],encapsulation:2,data:{animation:[uD.snackBarState]}}),t}(),hD=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({imports:[[y_,xy,Kh,MS,dC],dC]}),t}(),dD=new bi("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new aD}}),fD=function(){var t=function(){function t(e,n,i,r,o,s){a(this,t),this._overlay=e,this._live=n,this._injector=i,this._breakpointObserver=r,this._parentSnackBar=o,this._defaultConfig=s,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=lD,this.snackBarContainerComponent=cD,this.handsetCssClass="mat-snack-bar-handset"}return s(t,[{key:"openFromComponent",value:function(t,e){return this._attach(t,e)}},{key:"openFromTemplate",value:function(t,e){return this._attach(t,e)}},{key:"open",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,i=Object.assign(Object.assign({},this._defaultConfig),n);return i.data={message:t,action:e},i.announcementMessage===t&&(i.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,i)}},{key:"dismiss",value:function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}},{key:"ngOnDestroy",value:function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}},{key:"_attachSnackBarContainer",value:function(t,e){var n=qo.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:aD,useValue:e}]}),i=new yy(this.snackBarContainerComponent,e.viewContainerRef,n),r=t.attach(i);return r.instance.snackBarConfig=e,r.instance}},{key:"_attach",value:function(t,e){var n=this,i=Object.assign(Object.assign(Object.assign({},new aD),this._defaultConfig),e),r=this._createOverlay(i),a=this._attachSnackBarContainer(r,i),o=new sD(a,r);if(t instanceof su){var s=new _y(t,null,{$implicit:i.data,snackBarRef:o});o.instance=a.attachTemplatePortal(s)}else{var l=this._createInjector(i,o),u=new yy(t,void 0,l),c=a.attachComponentPortal(u);o.instance=c.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(zg(r.detachments())).subscribe(function(t){var e=r.overlayElement.classList;t.matches?e.add(n.handsetCssClass):e.remove(n.handsetCssClass)}),i.announcementMessage&&a._onAnnounce.subscribe(function(){n._live.announce(i.announcementMessage,i.politeness)}),this._animateSnackBar(o,i),this._openedSnackBarRef=o,this._openedSnackBarRef}},{key:"_animateSnackBar",value: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)})}},{key:"_createOverlay",value:function(t){var e=new Yy;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,a=!r&&"center"!==t.horizontalPosition;return r?n.left("0"):a?n.right("0"):n.centerHorizontally(),"top"===t.verticalPosition?n.top("0"):n.bottom("0"),e.positionStrategy=n,this._overlay.create(e)}},{key:"_createInjector",value:function(t,e){return qo.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:sD,useValue:e},{provide:rD,useValue:t.data}]})}},{key:"_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}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Vi(d_),Vi(K_),Vi(qo),Vi(tD),Vi(t,12),Vi(dD))},t.\u0275prov=Rt({factory:function(){return new t(Vi(d_),Vi(K_),Vi(Ao),Vi(tD),Vi(t,12),Vi(dD))},token:t,providedIn:hD}),t}(),pD=function(){function t(t,e,n,i,r,a){this.http=t,this.router=e,this.dialog=n,this.snackbar=i,this.sanitizer=r,this.dateAdapter=a,this.user=new ug(udsData.profile),this.navigation=new KA(this.router),this.gui=new FA(this.dialog,this.snackbar),this.dateAdapter.setLocale(this.config.language)}return Object.defineProperty(t.prototype,"config",{get:function(){return udsData.config},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"notices",{get:function(){return udsData.errors},enumerable:!1,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=Rt({token:t,factory:t.\u0275fac=function(e){return new(e||t)(Vi(Jd),Vi(Nv),Vi(yS),Vi(fD),Vi(Ed),Vi(kC))},providedIn:"root"}),t}(),mD=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=Rt({token:t,factory:t.\u0275fac=function(e){return new(e||t)(Vi(pD))},providedIn:"root"}),t}(),vD=function(t,e){return(vD=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 gD(t,e){function n(){this.constructor=t}vD(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var yD=function(t){return t[t.NONE=0]="NONE",t[t.READ=32]="READ",t[t.MANAGEMENT=64]="MANAGEMENT",t[t.ALL=96]="ALL",t}({}),_D=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 Vd).set("Content-Type","application/json; charset=utf8").set(this.api.config.auth_header,this.api.config.auth_token)}return 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(zf(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(zf(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(zf(function(t){return e.handleError(t)}))},t.prototype.permision=function(){return this.api.user.isAdmin?yD.ALL:yD.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,a=this.getPath("permissions/"+this.paths.base+"/"+t+"/"+e+"/add/"+n);return this.api.http.put(a,{perm:i},{headers:this.headers}).pipe(zf(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(zf(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 bD(this,t,e)},t.prototype.invoke=function(t,e){var n=t;return e&&(n=n+"?"+e),this.get(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(zf(function(t){return e.handleError(t)}))},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),qg(n)},t}(),bD=function(t){function e(e,n,i,r){var a=t.call(this,e.api,[e.paths.base,n,i].join("/"))||this;return a.parentModel=e,a.parentId=n,a.model=i,a.perm=r,a}return gD(e,t),e.prototype.permision=function(){return this.perm||yD.ALL},e}(_D),kD=function(t){function e(e){var n=t.call(this,e,"providers")||this;return n.api=e,n}return gD(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}(_D),wD=function(t){function e(e){var n=t.call(this,e,"authenticators")||this;return n.api=e,n}return gD(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}(_D),CD=function(t){function e(e){var n=t.call(this,e,"osmanagers")||this;return n.api=e,n}return gD(e,t),e}(_D),SD=function(t){function e(e){var n=t.call(this,e,"transports")||this;return n.api=e,n}return gD(e,t),e}(_D),xD=function(t){function e(e){var n=t.call(this,e,"networks")||this;return n.api=e,n}return gD(e,t),e}(_D),ED=function(t){function e(e){var n=t.call(this,e,"servicespools")||this;return n.api=e,n}return gD(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}(_D),AD=function(t){function e(e){var n=t.call(this,e,"metapools")||this;return n.api=e,n}return gD(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}(_D),DD=function(t){function e(e){var n=t.call(this,e,"config")||this;return n.api=e,n}return gD(e,t),e}(_D),ID=function(t){function e(e){var n=t.call(this,e,"gallery/images")||this;return n.api=e,n}return gD(e,t),e}(_D),OD=function(t){function e(e){var n=t.call(this,e,"gallery/servicespoolgroups")||this;return n.api=e,n}return gD(e,t),e}(_D),TD=function(t){function e(e){var n=t.call(this,e,"system")||this;return n.api=e,n}return gD(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}(_D),RD=function(t){function e(e){var n=t.call(this,e,"reports")||this;return n.api=e,n}return gD(e,t),e.prototype.types=function(){return Td([])},e}(_D),PD=function(t){function e(e){var n=t.call(this,e,"calendars")||this;return n.api=e,n}return gD(e,t),e}(_D),MD=function(t){function e(e){var n=t.call(this,e,"accounts")||this;return n.api=e,n}return gD(e,t),e.prototype.timemark=function(t){return this.get(t+"/timemark")},e}(_D),FD=function(t){function e(e){var n=t.call(this,e,"proxies")||this;return n.api=e,n}return gD(e,t),e}(_D),LD=function(t){function e(e){var n=t.call(this,e,"actortokens")||this;return n.api=e,n}return gD(e,t),e}(_D),ND=function(){function t(t){this.api=t,this.providers=new kD(t),this.authenticators=new wD(t),this.osManagers=new CD(t),this.transports=new SD(t),this.networks=new xD(t),this.servicesPools=new ED(t),this.metaPools=new AD(t),this.gallery=new ID(t),this.servicesPoolGroups=new OD(t),this.calendars=new PD(t),this.accounts=new MD(t),this.proxy=new FD(t),this.system=new TD(t),this.configuration=new DD(t),this.actorToken=new LD(t),this.reports=new RD(t)}return t.\u0275prov=Rt({token:t,factory:t.\u0275fac=function(e){return new(e||t)(Vi(pD))},providedIn:"root"}),t}();function VD(t,e){if(1&t&&(ds(0,"div",17),ds(1,"div",11),ps(2,"img",3),ds(3,"div",12),Js(4),fs(),fs(),ds(5,"div",13),ds(6,"a",15),ds(7,"uds-translate"),Js(8,"View service pools"),fs(),fs(),fs(),fs()),2&t){var n=Ds(2);Ia(2),cs("src",n.api.staticURL("admin/img/icons/logs.png"),Or),Ia(2),el(" ",n.data.restrained," ")}}function jD(t,e){if(1&t&&(ds(0,"div"),ds(1,"div",8),ds(2,"div",9),ds(3,"div",10),ds(4,"div",11),ps(5,"img",3),ds(6,"div",12),Js(7),fs(),fs(),ds(8,"div",13),ds(9,"a",14),ds(10,"uds-translate"),Js(11,"View authenticators"),fs(),fs(),fs(),fs(),ds(12,"div",10),ds(13,"div",11),ps(14,"img",3),ds(15,"div",12),Js(16),fs(),fs(),ds(17,"div",13),ds(18,"a",15),ds(19,"uds-translate"),Js(20,"View service pools"),fs(),fs(),fs(),fs(),ds(21,"div",10),ds(22,"div",11),ps(23,"img",3),ds(24,"div",12),Js(25),fs(),fs(),ds(26,"div",13),ds(27,"a",15),ds(28,"uds-translate"),Js(29,"View service pools"),fs(),fs(),fs(),fs(),ss(30,VD,9,2,"div",16),fs(),fs(),fs()),2&t){var n=Ds();Ia(5),cs("src",n.api.staticURL("admin/img/icons/authenticators.png"),Or),Ia(2),el(" ",n.data.users," "),Ia(7),cs("src",n.api.staticURL("admin/img/icons/pools.png"),Or),Ia(2),el(" ",n.data.pools," "),Ia(7),cs("src",n.api.staticURL("admin/img/icons/services.png"),Or),Ia(2),el(" ",n.data.user_services," "),Ia(5),cs("ngIf",n.data.restrained)}}function BD(t,e){1&t&&(ds(0,"div",18),ds(1,"div",19),ds(2,"div",20),ds(3,"uds-translate"),Js(4,"UDS Administration"),fs(),fs(),ds(5,"div",21),ds(6,"p"),ds(7,"uds-translate"),Js(8,"You are accessing UDS Administration as staff member."),fs(),fs(),ds(9,"p"),ds(10,"uds-translate"),Js(11,"This means that you have restricted access to elements."),fs(),fs(),ds(12,"p"),ds(13,"uds-translate"),Js(14,"In order to increase your access privileges, please contact your local UDS administrator. "),fs(),fs(),ps(15,"br"),ds(16,"p"),ds(17,"uds-translate"),Js(18,"Thank you."),fs(),fs(),fs(),fs(),fs())}var zD=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)(us(pD),us(ND))},t.\u0275cmp=ce({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-container"],[1,"staff","mat-elevation-z8"],[1,"staff-header"],[1,"staff-content"]],template:function(t,e){if(1&t&&(ds(0,"div",0),ds(1,"div",1),ds(2,"div",2),ps(3,"img",3),ds(4,"uds-translate"),Js(5,"Dashboard"),fs(),fs(),ps(6,"div",4),fs(),ds(7,"div",5),ss(8,jD,31,7,"div",6),ss(9,BD,19,0,"ng-template",null,7,ic),fs(),fs()),2&t){var n=ls(10);Ia(3),cs("src",e.api.staticURL("admin/img/icons/dashboard-monitor.png"),Or),Ia(5),cs("ngIf",e.api.user.isAdmin)("ngIfElse",n)}},directives:[FS,Ph,PS,Bv],styles:[".card[_ngcontent-%COMP%]{height:80%}.staff-container[_ngcontent-%COMP%]{margin-top:2rem;display:flex;justify-content:center}.staff[_ngcontent-%COMP%]{border:#337ab7;border-width:1px;border-style:solid}.staff-header[_ngcontent-%COMP%]{display:flex;justify-content:center;background-color:#337ab7;color:#fff;font-weight:700}.staff-content[_ngcontent-%COMP%], .staff-header[_ngcontent-%COMP%]{padding:.5rem 1rem}.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}(),HD=["underline"],UD=["connectionContainer"],qD=["inputContainer"],WD=["label"];function YD(t,e){1&t&&(ms(0),ds(1,"div",14),ps(2,"div",15),ps(3,"div",16),ps(4,"div",17),fs(),ds(5,"div",18),ps(6,"div",15),ps(7,"div",16),ps(8,"div",17),fs(),vs())}function GD(t,e){1&t&&(ds(0,"div",19),Ts(1,1),fs())}function KD(t,e){if(1&t&&(ms(0),Ts(1,2),ds(2,"span"),Js(3),fs(),vs()),2&t){var n=Ds(2);Ia(3),tl(n._control.placeholder)}}function ZD(t,e){1&t&&Ts(0,3,["*ngSwitchCase","true"])}function $D(t,e){1&t&&(ds(0,"span",23),Js(1," *"),fs())}function XD(t,e){if(1&t){var n=ys();ds(0,"label",20,21),ws("cdkObserveContent",function(){return nn(n),Ds().updateOutlineGap()}),ss(2,KD,4,1,"ng-container",12),ss(3,ZD,1,0,"ng-content",12),ss(4,$D,2,0,"span",22),fs()}if(2&t){var i=Ds();Hs("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),cs("cdkObserveContentDisabled","outline"!=i.appearance)("id",i._labelId)("ngSwitch",i._hasLabel()),as("for",i._control.id)("aria-owns",i._control.id),Ia(2),cs("ngSwitchCase",!1),Ia(1),cs("ngSwitchCase",!0),Ia(1),cs("ngIf",!i.hideRequiredMarker&&i._control.required&&!i._control.disabled)}}function QD(t,e){1&t&&(ds(0,"div",24),Ts(1,4),fs())}function JD(t,e){if(1&t&&(ds(0,"div",25,26),ps(2,"span",27),fs()),2&t){var n=Ds();Ia(2),Hs("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function tI(t,e){1&t&&(ds(0,"div"),Ts(1,5),fs()),2&t&&cs("@transitionMessages",Ds()._subscriptAnimationState)}function eI(t,e){if(1&t&&(ds(0,"div",31),Js(1),fs()),2&t){var n=Ds(2);cs("id",n._hintLabelId),Ia(1),tl(n.hintLabel)}}function nI(t,e){if(1&t&&(ds(0,"div",28),ss(1,eI,2,2,"div",29),Ts(2,6),ps(3,"div",30),Ts(4,7),fs()),2&t){var n=Ds();cs("@transitionMessages",n._subscriptAnimationState),Ia(1),cs("ngIf",n.hintLabel)}}var iI=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],rI=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],aI=new bi("MatError"),oI={transitionMessages:db("transitionMessages",[vb("enter",mb({opacity:1,transform:"translateY(0%)"})),yb("void => enter",[mb({opacity:0,transform:"translateY(-5px)"}),fb("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},sI=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ve({type:t}),t}(),lI=new bi("MatHint"),uI=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ve({type:t,selectors:[["mat-label"]]}),t}(),cI=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ve({type:t,selectors:[["mat-placeholder"]]}),t}(),hI=new bi("MatPrefix"),dI=new bi("MatSuffix"),fI=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ve({type:t,selectors:[["","matSuffix",""]],features:[bl([{provide:dI,useExisting:t}])]}),t}(),pI=0,mI=pC(function t(e){a(this,t),this._elementRef=e},"primary"),vI=new bi("MAT_FORM_FIELD_DEFAULT_OPTIONS"),gI=new bi("MatFormField"),yI=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,s,l,u,c){var h;return a(this,n),(h=e.call(this,t))._elementRef=t,h._changeDetectorRef=i,h._dir=o,h._defaults=s,h._platform=l,h._ngZone=u,h._outlineGapCalculationNeededImmediately=!1,h._outlineGapCalculationNeededOnStable=!1,h._destroyed=new q,h._showAlwaysAnimate=!1,h._subscriptAnimationState="",h._hintLabel="",h._hintLabelId="mat-hint-".concat(pI++),h._labelId="mat-form-field-label-".concat(pI++),h.floatLabel=h._getDefaultFloatLabelState(),h._animationsEnabled="NoopAnimations"!==c,h.appearance=s&&s.appearance?s.appearance:"legacy",h._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker,h}return s(n,[{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var t=this;this._validateControlChild();var e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(e.controlType)),e.stateChanges.pipe(Nf(null)).subscribe(function(){t._validatePlaceholders(),t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(zg(this._destroyed)).subscribe(function(){return t._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){t._ngZone.onStable.pipe(zg(t._destroyed)).subscribe(function(){t._outlineGapCalculationNeededOnStable&&t.updateOutlineGap()})}),dt(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){t._outlineGapCalculationNeededOnStable=!0,t._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Nf(null)).subscribe(function(){t._processHints(),t._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Nf(null)).subscribe(function(){t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(zg(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?t._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return t.updateOutlineGap()})}):t.updateOutlineGap()})}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(t){var e=this._control?this._control.ngControl:null;return e&&e[t]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var t=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,gg(this._label.nativeElement,"transitionend").pipe(Mf(1)).subscribe(function(){t._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push.apply(t,b(this._control.userAriaDescribedBy.split(" "))),"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.push.apply(t,b(this._errorChildren.map(function(t){return t.id})));this._control.setDescribedByIds(t)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var t=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&t&&t.children.length&&t.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var e=0,n=0,i=this._connectionContainerRef.nativeElement,r=i.querySelectorAll(".mat-form-field-outline-start"),a=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var o=i.getBoundingClientRect();if(0===o.width&&0===o.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var s=this._getStartEnd(o),l=t.children,u=this._getStartEnd(l[0].getBoundingClientRect()),c=0,h=0;h0?.75*c+10:0}for(var d=0;d void",bb("@transformPanel",[_b()],{optional:!0}))]),transformPanel:db("transformPanel",[vb("void",mb({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),vb("showing",mb({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),vb("showing-multiple",mb({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),yb("void => *",fb("120ms cubic-bezier(0, 0, 0.2, 1)")),yb("* => void",fb("100ms 25ms linear",mb({opacity:0})))])},OI=0,TI=256,RI=new bi("mat-select-scroll-strategy"),PI=new bi("MAT_SELECT_CONFIG"),MI={provide:RI,deps:[d_],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},FI=function t(e,n){a(this,t),this.source=e,this.value=n},LI=mC(vC(fC(gC(function t(e,n,i,r,o){a(this,t),this._elementRef=e,this._defaultErrorStateMatcher=n,this._parentForm=i,this._parentFormGroup=r,this.ngControl=o})))),NI=new bi("MatSelectTrigger"),VI=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ve({type:t,selectors:[["mat-select-trigger"]],features:[bl([{provide:NI,useExisting:t}])]}),t}(),jI=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,s,l,u,c,h,f,p,m,v,g){var y,_,k,w;return a(this,n),(y=e.call(this,s,o,u,c,f))._viewportRuler=t,y._changeDetectorRef=i,y._ngZone=r,y._dir=l,y._parentFormField=h,y.ngControl=f,y._liveAnnouncer=v,y._defaultOptions=g,y._panelOpen=!1,y._compareWith=function(t,e){return t===e},y._uid="mat-select-".concat(OI++),y._triggerAriaLabelledBy=null,y._destroy=new q,y._onChange=function(){},y._onTouched=function(){},y._valueId="mat-select-value-".concat(OI++),y._panelDoneAnimatingStream=new q,y._overlayPanelClass=(null===(_=y._defaultOptions)||void 0===_?void 0:_.overlayPanelClass)||"",y._focused=!1,y.controlType="mat-select",y._required=!1,y._multiple=!1,y._disableOptionCentering=null!==(w=null===(k=y._defaultOptions)||void 0===k?void 0:k.disableOptionCentering)&&void 0!==w&&w,y.ariaLabel="",y.optionSelectionChanges=If(function(){var t=y.options;return t?t.changes.pipe(Nf(t),Of(function(){return dt.apply(void 0,b(t.map(function(t){return t.onSelectionChange})))})):y._ngZone.onStable.pipe(Mf(1),Of(function(){return y.optionSelectionChanges}))}),y.openedChange=new Vu,y._openedStream=y.openedChange.pipe(Pd(function(t){return t}),G(function(){})),y._closedStream=y.openedChange.pipe(Pd(function(t){return!t}),G(function(){})),y.selectionChange=new Vu,y.valueChange=new Vu,y.ngControl&&(y.ngControl.valueAccessor=d(y)),null!=(null==g?void 0:g.typeaheadDebounceInterval)&&(y._typeaheadDebounceInterval=g.typeaheadDebounceInterval),y._scrollStrategyFactory=m,y._scrollStrategy=y._scrollStrategyFactory(),y.tabIndex=parseInt(p)||0,y.id=y.id,y}return s(n,[{key:"ngOnInit",value:function(){var t=this;this._selectionModel=new hy(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Og(),zg(this._destroy)).subscribe(function(){return t._panelDoneAnimating(t.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var t=this;this._initKeyManager(),this._selectionModel.changed.pipe(zg(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(Nf(null),zg(this._destroy)).subscribe(function(){t._resetOptions(),t._initializeSelection()})}},{key:"ngDoCheck",value:function(){var t=this._getTriggerAriaLabelledby();if(t!==this._triggerAriaLabelledBy){var e=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?e.setAttribute("aria-labelledby",t):e.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(t){t.disabled&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}},{key:"ngOnDestroy",value:function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}},{key:"toggle",value:function(){this.panelOpen?this.close():this.open()}},{key:"open",value:function(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(t){this.value=t}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}},{key:"_handleClosedKeydown",value:function(t){var e=t.keyCode,n=e===Ly||e===My||e===Py||e===Fy,i=e===Dy||e===Oy,r=this._keyManager;if(!r.isTyping()&&i&&!Ny(t)||(this.multiple||t.altKey)&&n)t.preventDefault(),this.open();else if(!this.multiple){var a=this.selected;r.onKeydown(t);var o=this.selected;o&&a!==o&&this._liveAnnouncer.announce(o.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(t){var e=this._keyManager,n=t.keyCode,i=n===Ly||n===My,r=e.isTyping();if(i&&t.altKey)t.preventDefault(),this.close();else if(r||n!==Dy&&n!==Oy||!e.activeItem||Ny(t))if(!r&&this._multiple&&65===n&&t.ctrlKey){t.preventDefault();var a=this.options.some(function(t){return!t.disabled&&!t.selected});this.options.forEach(function(t){t.disabled||(a?t.select():t.deselect())})}else{var o=e.activeItemIndex;e.onKeydown(t),this._multiple&&i&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==o&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var t=this;this.overlayDir.positionChange.pipe(Mf(1)).subscribe(function(){t._changeDetectorRef.detectChanges(),t._positioningSettled()})}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{key:"_initializeSelection",value:function(){var t=this;Promise.resolve().then(function(){t._setSelectionByValue(t.ngControl?t.ngControl.value:t._value),t.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(t){var e=this;if(this._selectionModel.selected.forEach(function(t){return t.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(function(t){return e._selectValue(t)}),this._sortValues();else{var n=this._selectValue(t);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(t){var e=this,n=this.options.find(function(n){if(e._selectionModel.isSelected(n))return!1;try{return null!=n.value&&e._compareWith(n.value,t)}catch(i){return!1}});return n&&this._selectionModel.select(n),n}},{key:"_initKeyManager",value:function(){var t=this;this._keyManager=new V_(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(zg(this._destroy)).subscribe(function(){t.panelOpen&&(!t.multiple&&t._keyManager.activeItem&&t._keyManager.activeItem._selectViaInteraction(),t.focus(),t.close())}),this._keyManager.change.pipe(zg(this._destroy)).subscribe(function(){t._panelOpen&&t.panel?t._scrollOptionIntoView(t._keyManager.activeItemIndex||0):t._panelOpen||t.multiple||!t._keyManager.activeItem||t._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var t=this,e=dt(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(zg(e)).subscribe(function(e){t._onSelect(e.source,e.isUserInput),e.isUserInput&&!t.multiple&&t._panelOpen&&(t.close(),t.focus())}),dt.apply(void 0,b(this.options.map(function(t){return t._stateChanges}))).pipe(zg(e)).subscribe(function(){t._changeDetectorRef.markForCheck(),t.stateChanges.next()})}},{key:"_onSelect",value: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(),null!=this.value&&this._propagateChanges(t.value)),n!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value: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()}}},{key:"_propagateChanges",value: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(this._getChangeEvent(e)),this._changeDetectorRef.markForCheck()}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_canOpen",value:function(){var t;return!this._panelOpen&&!this.disabled&&(null===(t=this.options)||void 0===t?void 0:t.length)>0}},{key:"focus",value:function(t){this._elementRef.nativeElement.focus(t)}},{key:"_getPanelAriaLabelledby",value:function(){if(this.ariaLabel)return null;var t=this._getLabelId();return this.ariaLabelledby?t+" "+this.ariaLabelledby:t}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getLabelId",value:function(){var t;return(null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId())||""}},{key:"_getTriggerAriaLabelledby",value:function(){if(this.ariaLabel)return null;var t=this._getLabelId()+" "+this._valueId;return this.ariaLabelledby&&(t+=" "+this.ariaLabelledby),t}},{key:"_panelDoneAnimating",value:function(t){this.openedChange.emit(t)}},{key:"setDescribedByIds",value:function(t){this._ariaDescribedby=t.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(t){this._placeholder=t,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(t){this._required=cg(t),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(t){this._multiple=cg(t)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(t){this._disableOptionCentering=cg(t)}},{key:"compareWith",get:function(){return this._compareWith},set:function(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(t){(t!==this._value||this._multiple&&Array.isArray(t))&&(this.options&&this._setSelectionByValue(t),this._value=t)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(t){this._typeaheadDebounceInterval=hg(t)}},{key:"id",get:function(){return this._id},set:function(t){this._id=t||this._uid,this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"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}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty}}]),n}(LI);return t.\u0275fac=function(e){return new(e||t)(us(py),us(tu),us(xc),us(RC),us(Dl),us(oy,8),us(nE,8),us(uE,8),us(gI,8),us(vx,10),gi("tabindex"),us(RI),us(K_),us(PI,8))},t.\u0275dir=ve({type:t,viewQuery:function(t,e){var n;1&t&&(Xu(bI,1),Xu(kI,1),Xu(v_,1)),2&t&&($u(n=Ju())&&(e.trigger=n.first),$u(n=Ju())&&(e.panel=n.first),$u(n=Ju())&&(e.overlayDir=n.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[Yo,Oe]}),t}(),BI=function(){var t=function(t){u(n,t);var e=p(n);function n(){var t;return a(this,n),(t=e.apply(this,arguments))._scrollTop=0,t._triggerFontSize=0,t._transformOrigin="top",t._offsetY=0,t._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],t}return s(n,[{key:"_calculateOverlayScroll",value:function(t,e,n){var i=this._getItemHeight();return Math.min(Math.max(0,i*t-e+i/2),n)}},{key:"ngOnInit",value:function(){var t=this;r(i(n.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe(zg(this._destroy)).subscribe(function(){t.panelOpen&&(t._triggerRect=t.trigger.nativeElement.getBoundingClientRect(),t._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var t=this;r(i(n.prototype),"_canOpen",this).call(this)&&(r(i(n.prototype),"open",this).call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(Mf(1)).subscribe(function(){t._triggerFontSize&&t.overlayDir.overlayRef&&t.overlayDir.overlayRef.overlayElement&&(t.overlayDir.overlayRef.overlayElement.style.fontSize="".concat(t._triggerFontSize,"px"))}))}},{key:"_scrollOptionIntoView",value:function(t){var e=eS(t,this.options,this.optionGroups),n=this._getItemHeight();this.panel.nativeElement.scrollTop=nS((t+e)*n,n,this.panel.nativeElement.scrollTop,TI)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(t){this.panelOpen?this._scrollTop=0:(this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),r(i(n.prototype),"_panelDoneAnimating",this).call(this,t)}},{key:"_getChangeEvent",value:function(t){return new FI(this,t)}},{key:"_calculateOverlayOffsetX",value: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 if(this.disableOptionCentering)t=16;else{var a=this._selectionModel.selected[0]||this.options.first;t=a&&a.group?32:16}i||(t*=-1);var o=0-(e.left+t-(i?r:0)),s=e.right+t-n.width+(i?0:r);o>0?t+=o+8:s>0&&(t-=s+8),this.overlayDir.offsetX=Math.round(t),this.overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(t,e,n){var i,r=this._getItemHeight(),a=(r-this._triggerRect.height)/2,o=Math.floor(TI/r);return this.disableOptionCentering?0:(i=0===this._scrollTop?t*r:this._scrollTop===n?(t-(this._getItemCount()-o))*r+(r-(this._getItemCount()*r-TI)%r):e-r/2,Math.round(-1*i-a))}},{key:"_checkOverlayWithinViewport",value:function(t){var e=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,a=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*e,TI)-a-this._triggerRect.height;o>r?this._adjustPanelUp(o,r):a>i?this._adjustPanelDown(a,i,t):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value: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")}},{key:"_adjustPanelDown",value: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")}},{key:"_calculateOverlayPosition",value:function(){var t,e=this._getItemHeight(),n=this._getItemCount(),i=Math.min(n*e,TI),r=n*e-i;t=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),t+=eS(t,this.options,this.optionGroups);var a=i/2;this._scrollTop=this._calculateOverlayScroll(t,a,r),this._offsetY=this._calculateOverlayOffsetY(t,a,r),this._checkOverlayWithinViewport(r)}},{key:"_getOriginBasedOnOption",value:function(){var t=this._getItemHeight(),e=(t-this._triggerRect.height)/2,n=Math.abs(this._offsetY)-e+t/2;return"50% ".concat(n,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),n}(jI);return t.\u0275fac=function(e){return zI(e||t)},t.\u0275cmp=ce({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,n){var i;1&t&&(Qu(n,NI,1),Qu(n,tS,1),Qu(n,$C,1)),2&t&&($u(i=Ju())&&(e.customTrigger=i.first),$u(i=Ju())&&(e.options=i),$u(i=Ju())&&(e.optionGroups=i))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,e){1&t&&ws("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e._onFocus()})("blur",function(){return e._onBlur()}),2&t&&(as("id",e.id)("tabindex",e.tabIndex)("aria-controls",e.panelOpen?e.id+"-panel":null)("aria-expanded",e.panelOpen)("aria-label",e.ariaLabel||null)("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),Hs("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty)("mat-select-multiple",e.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[bl([{provide:sI,useExisting:t},{provide:YC,useExisting:t}]),Yo],ngContentSelectors:DI,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",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,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(t,e){if(1&t&&(Os(AI),ds(0,"div",0,1),ws("click",function(){return e.toggle()}),ds(3,"div",2),ss(4,wI,2,1,"span",3),ss(5,xI,3,2,"span",4),fs(),ds(6,"div",5),ps(7,"div",6),fs(),fs(),ss(8,EI,4,14,"ng-template",7),ws("backdropClick",function(){return e.close()})("attach",function(){return e._onAttached()})("detach",function(){return e.close()})),2&t){var n=ls(1);as("aria-owns",e.panelOpen?e.id+"-panel":null),Ia(3),cs("ngSwitch",e.empty),as("id",e._valueId),Ia(1),cs("ngSwitchCase",!0),Ia(1),cs("ngSwitchCase",!1),Ia(3),cs("cdkConnectedOverlayPanelClass",e._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",n)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[m_,Nh,Vh,v_,jh,Ih],styles:['.mat-select{display:inline-block;width:100%;outline:none}.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 400ms cubic-bezier(0.25, 0.8, 0.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;outline:0}.cdk-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 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.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}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px}\n'],encapsulation:2,data:{animation:[II.transformPanelWrap,II.transformPanel]},changeDetection:0}),t}(),zI=mi(BI),HI=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({providers:[MI],imports:[[Kh,y_,iS,dC],my,_I,iS,dC]}),t}(),UI={tooltipState:db("state",[vb("initial, void, hidden",mb({opacity:0,transform:"scale(0)"})),vb("visible",mb({transform:"scale(1)"})),yb("* => visible",fb("200ms cubic-bezier(0, 0, 0.2, 1)",gb([mb({opacity:0,transform:"scale(0)",offset:0}),mb({opacity:.5,transform:"scale(0.99)",offset:.5}),mb({opacity:1,transform:"scale(1)",offset:1})]))),yb("* => hidden",fb("100ms cubic-bezier(0, 0, 0.2, 1)",mb({opacity:0})))])},qI=ny({passive:!0}),WI=new bi("mat-tooltip-scroll-strategy"),YI={provide:WI,deps:[d_],useFactory:function(t){return function(){return t.scrollStrategies.reposition({scrollThrottle:20})}}},GI=new bi("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),KI=function(){var t=function(){function t(e,n,i,r,o,s,l,u,c,h,d,f){var p=this;a(this,t),this._overlay=e,this._elementRef=n,this._scrollDispatcher=i,this._viewContainerRef=r,this._ngZone=o,this._platform=s,this._ariaDescriber=l,this._focusMonitor=u,this._dir=h,this._defaultOptions=d,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new q,this._handleKeydown=function(t){p._isTooltipVisible()&&t.keyCode===Iy&&!Ny(t)&&(t.preventDefault(),t.stopPropagation(),p._ngZone.run(function(){return p.hide(0)}))},this._scrollStrategy=c,d&&(d.position&&(this.position=d.position),d.touchGestures&&(this.touchGestures=d.touchGestures)),o.runOutsideAngular(function(){n.nativeElement.addEventListener("keydown",p._handleKeydown)})}return s(t,[{key:"ngAfterViewInit",value:function(){var t=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(zg(this._destroyed)).subscribe(function(e){e?"keyboard"===e&&t._ngZone.run(function(){return t.show()}):t._ngZone.run(function(){return t.hide(0)})})}},{key:"ngOnDestroy",value:function(){var t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(function(e){var n=y(e,2);t.removeEventListener(n[0],n[1],qI)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}},{key:"show",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var n=this._createOverlay();this._detach(),this._portal=this._portal||new yy(ZI,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(zg(this._destroyed)).subscribe(function(){return t._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(e)}}},{key:"hide",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(t)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value: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(zg(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(zg(this._destroyed)).subscribe(function(){return t._detach()}),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(){var t=this._overlayRef.getConfig().positionStrategy,e=this._getOrigin(),n=this._getOverlayPosition();t.withPositions([Object.assign(Object.assign({},e.main),n.main),Object.assign(Object.assign({},e.fallback),n.fallback)])}},{key:"_getOrigin",value:function(){var t,e=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n||"below"==n?t={originX:"center",originY:"above"==n?"top":"bottom"}:"before"==n||"left"==n&&e||"right"==n&&!e?t={originX:"start",originY:"center"}:("after"==n||"right"==n&&e||"left"==n&&!e)&&(t={originX:"end",originY:"center"});var i=this._invertPosition(t.originX,t.originY);return{main:t,fallback:{originX:i.x,originY:i.y}}}},{key:"_getOverlayPosition",value:function(){var t,e=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n?t={overlayX:"center",overlayY:"bottom"}:"below"==n?t={overlayX:"center",overlayY:"top"}:"before"==n||"left"==n&&e||"right"==n&&!e?t={overlayX:"end",overlayY:"center"}:("after"==n||"right"==n&&e||"left"==n&&!e)&&(t={overlayX:"start",overlayY:"center"});var i=this._invertPosition(t.overlayX,t.overlayY);return{main:t,fallback:{overlayX:i.x,overlayY:i.y}}}},{key:"_updateTooltipMessage",value:function(){var t=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Mf(1),zg(this._destroyed)).subscribe(function(){t._tooltipInstance&&t._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value: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}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var t=this;!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){t._setupPointerExitEventsIfNeeded(),t.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){t._setupPointerExitEventsIfNeeded(),clearTimeout(t._touchstartTimeout),t._touchstartTimeout=setTimeout(function(){return t.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var t,e=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var n=[];if(this._platformSupportsMouseEvents())n.push(["mouseleave",function(){return e.hide()}],["wheel",function(t){return e._wheelListener(t)}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var i=function(){clearTimeout(e._touchstartTimeout),e.hide(e._defaultOptions.touchendHideDelay)};n.push(["touchend",i],["touchcancel",i])}this._addListeners(n),(t=this._passiveListeners).push.apply(t,n)}}},{key:"_addListeners",value:function(t){var e=this;t.forEach(function(t){var n=y(t,2);e._elementRef.nativeElement.addEventListener(n[0],n[1],qI)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_wheelListener",value:function(t){if(this._isTooltipVisible()){var e=(this._document||document).elementFromPoint(t.clientX,t.clientY),n=this._elementRef.nativeElement;e===n||n.contains(e)||this.hide()}}},{key:"_disableNativeGesturesIfNecessary",value:function(){var t=this.touchGestures;if("off"!==t){var e=this._elementRef.nativeElement,n=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),"on"!==t&&e.draggable||(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}},{key:"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()))}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=cg(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"message",get:function(){return this._message},set:function(t){var e=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){e._ariaDescriber.describe(e._elementRef.nativeElement,e.message,"tooltip")})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(d_),us(Dl),us(fy),us(fu),us(xc),us(Qg),us(M_),us(tb),us(WI),us(oy,8),us(GI,8),us(sh))},t.\u0275dir=ve({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),t}(),ZI=function(){var t=function(){function t(e,n){a(this,t),this._changeDetectorRef=e,this._breakpointObserver=n,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new q,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}return s(t,[{key:"show",value: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)}},{key:"hide",value: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)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(t){var e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(tu),us(tD))},t.\u0275cmp=ce({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&ws("click",function(){return e._handleBodyInteraction()},!1,Vr)("auxclick",function(){return e._handleBodyInteraction()},!1,Vr),2&t&&zs("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){var n;1&t&&(ds(0,"div",0),ws("@state.start",function(){return e._animationStart()})("@state.done",function(t){return e._animationDone(t)}),Pu(1,"async"),Js(2),fs()),2&t&&(Hs("mat-tooltip-handset",null==(n=Mu(1,5,e._isHandset))?null:n.matches),cs("ngClass",e.tooltipClass)("@state",e._visibility),Ia(2),tl(e.message))},directives:[Ih],pipes:[qh],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}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[UI.tooltipState]},changeDetection:0}),t}(),$I=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({providers:[YI],imports:[[sb,Kh,y_,dC],dC,my]}),t}();function XI(t,e){if(1&t&&(ds(0,"mat-option",19),Js(1),fs()),2&t){var n=e.$implicit;cs("value",n),Ia(1),el(" ",n," ")}}function QI(t,e){if(1&t){var n=ys();ds(0,"mat-form-field",16),ds(1,"mat-select",17),ws("selectionChange",function(t){return nn(n),Ds(2)._changePageSize(t.value)}),ss(2,XI,2,2,"mat-option",18),fs(),fs()}if(2&t){var i=Ds(2);cs("appearance",i._formFieldAppearance)("color",i.color),Ia(1),cs("value",i.pageSize)("disabled",i.disabled)("aria-label",i._intl.itemsPerPageLabel),Ia(1),cs("ngForOf",i._displayedPageSizeOptions)}}function JI(t,e){if(1&t&&(ds(0,"div",20),Js(1),fs()),2&t){var n=Ds(2);Ia(1),tl(n.pageSize)}}function tO(t,e){if(1&t&&(ds(0,"div",12),ds(1,"div",13),Js(2),fs(),ss(3,QI,3,6,"mat-form-field",14),ss(4,JI,2,1,"div",15),fs()),2&t){var n=Ds();Ia(2),el(" ",n._intl.itemsPerPageLabel," "),Ia(1),cs("ngIf",n._displayedPageSizeOptions.length>1),Ia(1),cs("ngIf",n._displayedPageSizeOptions.length<=1)}}function eO(t,e){if(1&t){var n=ys();ds(0,"button",21),ws("click",function(){return nn(n),Ds().firstPage()}),Tn(),ds(1,"svg",7),ps(2,"path",22),fs(),fs()}if(2&t){var i=Ds();cs("matTooltip",i._intl.firstPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),as("aria-label",i._intl.firstPageLabel)}}function nO(t,e){if(1&t){var n=ys();Tn(),Rn(),ds(0,"button",23),ws("click",function(){return nn(n),Ds().lastPage()}),Tn(),ds(1,"svg",7),ps(2,"path",24),fs(),fs()}if(2&t){var i=Ds();cs("matTooltip",i._intl.lastPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),as("aria-label",i._intl.lastPageLabel)}}var iO=function(){var t=function t(){a(this,t),this.changes=new q,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 ".concat(n);var i=t*e,r=i<(n=Math.max(n,0))?Math.min(i+e,n):i+e;return"".concat(i+1," \u2013 ").concat(r," of ").concat(n)}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Rt({factory:function(){return new t},token:t,providedIn:"root"}),t}(),rO={provide:iO,deps:[[new Yi,new Gi,iO]],useFactory:function(t){return t||new iO}},aO=new bi("MAT_PAGINATOR_DEFAULT_OPTIONS"),oO=fC(yC(function t(){a(this,t)})),sO=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;if(a(this,n),(o=e.call(this))._intl=t,o._changeDetectorRef=i,o._pageIndex=0,o._length=0,o._pageSizeOptions=[],o._hidePageSize=!1,o._showFirstLastButtons=!1,o.page=new Vu,o._intlChanges=t.changes.subscribe(function(){return o._changeDetectorRef.markForCheck()}),r){var s=r.pageSize,l=r.pageSizeOptions,u=r.hidePageSize,c=r.showFirstLastButtons;null!=s&&(o._pageSize=s),null!=l&&(o._pageSizeOptions=l),null!=u&&(o._hidePageSize=u),null!=c&&(o._showFirstLastButtons=c)}return o}return s(n,[{key:"ngOnInit",value:function(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}},{key:"ngOnDestroy",value:function(){this._intlChanges.unsubscribe()}},{key:"nextPage",value:function(){if(this.hasNextPage()){var t=this.pageIndex;this.pageIndex++,this._emitPageEvent(t)}}},{key:"previousPage",value:function(){if(this.hasPreviousPage()){var t=this.pageIndex;this.pageIndex--,this._emitPageEvent(t)}}},{key:"firstPage",value:function(){if(this.hasPreviousPage()){var t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}}},{key:"lastPage",value:function(){if(this.hasNextPage()){var t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}}},{key:"hasPreviousPage",value:function(){return this.pageIndex>=1&&0!=this.pageSize}},{key:"hasNextPage",value:function(){var t=this.getNumberOfPages()-1;return this.pageIndex=a.length&&(o=0),a[o]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"direction",get:function(){return this._direction},set:function(t){this._direction=t}},{key:"disableClear",get:function(){return this._disableClear},set:function(t){this._disableClear=cg(t)}}]),n}(pO);return t.\u0275fac=function(e){return new(e||t)(us(fO,8))},t.\u0275dir=ve({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[Yo,Oe]}),t}(),vO=uC.ENTERING+" "+lC.STANDARD_CURVE,gO={indicator:db("indicator",[vb("active-asc, asc",mb({transform:"translateY(0px)"})),vb("active-desc, desc",mb({transform:"translateY(10px)"})),yb("active-asc <=> active-desc",fb(vO))]),leftPointer:db("leftPointer",[vb("active-asc, asc",mb({transform:"rotate(-45deg)"})),vb("active-desc, desc",mb({transform:"rotate(45deg)"})),yb("active-asc <=> active-desc",fb(vO))]),rightPointer:db("rightPointer",[vb("active-asc, asc",mb({transform:"rotate(45deg)"})),vb("active-desc, desc",mb({transform:"rotate(-45deg)"})),yb("active-asc <=> active-desc",fb(vO))]),arrowOpacity:db("arrowOpacity",[vb("desc-to-active, asc-to-active, active",mb({opacity:1})),vb("desc-to-hint, asc-to-hint, hint",mb({opacity:.54})),vb("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",mb({opacity:0})),yb("* => asc, * => desc, * => active, * => hint, * => void",fb("0ms")),yb("* <=> *",fb(vO))]),arrowPosition:db("arrowPosition",[yb("* => desc-to-hint, * => desc-to-active",fb(vO,gb([mb({transform:"translateY(-25%)"}),mb({transform:"translateY(0)"})]))),yb("* => hint-to-desc, * => active-to-desc",fb(vO,gb([mb({transform:"translateY(0)"}),mb({transform:"translateY(25%)"})]))),yb("* => asc-to-hint, * => asc-to-active",fb(vO,gb([mb({transform:"translateY(25%)"}),mb({transform:"translateY(0)"})]))),yb("* => hint-to-asc, * => active-to-asc",fb(vO,gb([mb({transform:"translateY(0)"}),mb({transform:"translateY(-25%)"})]))),vb("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",mb({transform:"translateY(0)"})),vb("hint-to-desc, active-to-desc, desc",mb({transform:"translateY(-25%)"})),vb("hint-to-asc, active-to-asc, asc",mb({transform:"translateY(25%)"}))]),allowChildren:db("allowChildren",[yb("* <=> *",[bb("@*",_b(),{optional:!0})])])},yO=function(){var t=function t(){a(this,t),this.changes=new q,this.sortButtonLabel=function(t){return"Change sorting for ".concat(t)}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Rt({factory:function(){return new t},token:t,providedIn:"root"}),t}(),_O={provide:yO,deps:[[new Yi,new Gi,yO]],useFactory:function(t){return t||new yO}},bO=fC(function t(){a(this,t)}),kO=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,s,l){var u;return a(this,n),(u=e.call(this))._intl=t,u._changeDetectorRef=i,u._sort=r,u._columnDef=o,u._focusMonitor=s,u._elementRef=l,u._showIndicatorHint=!1,u._arrowDirection="",u._disableViewStateAnimation=!1,u.arrowPosition="after",u._handleStateChanges(),u}return s(n,[{key:"ngOnInit",value:function(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}},{key:"ngAfterViewInit",value:function(){var t=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(e){var n=!!e;n!==t._showIndicatorHint&&(t._setIndicatorHintVisible(n),t._changeDetectorRef.markForCheck())})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}},{key:"_setIndicatorHintVisible",value: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})))}},{key:"_setAnimationTransitionState",value:function(t){this._viewState=t,this._disableViewStateAnimation&&(this._viewState={toState:t.toState})}},{key:"_toggleOnInteraction",value:function(){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0)}},{key:"_handleClick",value:function(){this._isDisabled()||this._sort.sort(this)}},{key:"_handleKeydown",value:function(t){this._isDisabled()||t.keyCode!==Oy&&t.keyCode!==Dy||(t.preventDefault(),this._toggleOnInteraction())}},{key:"_isSorted",value:function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}},{key:"_getArrowDirectionState",value:function(){return"".concat(this._isSorted()?"active-":"").concat(this._arrowDirection)}},{key:"_getArrowViewState",value:function(){var t=this._viewState.fromState;return(t?"".concat(t,"-to-"):"")+this._viewState.toState}},{key:"_updateArrowDirection",value:function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}},{key:"_isDisabled",value:function(){return this._sort.disabled||this.disabled}},{key:"_getAriaSortAttribute",value:function(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}},{key:"_renderArrow",value:function(){return!this._isDisabled()||this._isSorted()}},{key:"_handleStateChanges",value:function(){var t=this;this._rerenderSubscription=dt(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(function(){t._isSorted()&&(t._updateArrowDirection(),"hint"!==t._viewState.toState&&"active"!==t._viewState.toState||(t._disableViewStateAnimation=!0),t._setAnimationTransitionState({fromState:t._arrowDirection,toState:"active"}),t._showIndicatorHint=!1),!t._isSorted()&&t._viewState&&"active"===t._viewState.toState&&(t._disableViewStateAnimation=!1,t._setAnimationTransitionState({fromState:"active",toState:t._arrowDirection})),t._changeDetectorRef.markForCheck()})}},{key:"disableClear",get:function(){return this._disableClear},set:function(t){this._disableClear=cg(t)}}]),n}(bO);return t.\u0275fac=function(e){return new(e||t)(us(yO),us(tu),us(mO,8),us("MAT_SORT_HEADER_COLUMN_DEF",8),us(tb),us(Dl))},t.\u0275cmp=ce({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,e){1&t&&ws("click",function(){return e._handleClick()})("keydown",function(t){return e._handleKeydown(t)})("mouseenter",function(){return e._setIndicatorHintVisible(!0)})("mouseleave",function(){return e._setIndicatorHintVisible(!1)}),2&t&&(as("aria-sort",e._getAriaSortAttribute()),Hs("mat-sort-header-disabled",e._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[Yo],attrs:cO,ngContentSelectors:dO,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["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&&(Os(),ds(0,"div",0),ds(1,"div",1),Ts(2),fs(),ss(3,hO,6,6,"div",2),fs()),2&t&&(Hs("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"==e.arrowPosition),as("tabindex",e._isDisabled()?null:0),Ia(3),cs("ngIf",e._renderArrow()))},directives:[Ph],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.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}.cdk-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)}.cdk-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}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .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}\n"],encapsulation:2,data:{animation:[gO.indicator,gO.leftPointer,gO.rightPointer,gO.arrowOpacity,gO.arrowPosition,gO.allowChildren]},changeDetection:0}),t}(),wO=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({providers:[_O],imports:[[Kh,dC]]}),t}(),CO=[[["caption"]],[["colgroup"],["col"]]],SO=["caption","colgroup, col"];function xO(t){return function(t){u(n,t);var e=p(n);function n(){var t;a(this,n);for(var i=arguments.length,r=new Array(i),o=0;o4&&void 0!==arguments[4])||arguments[4],s=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],l=arguments.length>6?arguments[6]:void 0;a(this,t),this._isNativeHtmlTable=e,this._stickCellCss=n,this.direction=i,this._coalescedStyleScheduler=r,this._isBrowser=o,this._needsPositionStickyOnElement=s,this._positionListener=l,this._cachedCellWidths=[],this._borderCellCss={top:"".concat(n,"-border-elem-top"),bottom:"".concat(n,"-border-elem-bottom"),left:"".concat(n,"-border-elem-left"),right:"".concat(n,"-border-elem-right")}}return s(t,[{key:"clearStickyPositioning",value:function(t,e){var n,i=this,r=[],a=g(t);try{for(a.s();!(n=a.n()).done;){var o=n.value;if(o.nodeType===o.ELEMENT_NODE){r.push(o);for(var s=0;s3&&void 0!==arguments[3])||arguments[3];if(t.length&&this._isBrowser&&(e.some(function(t){return t})||n.some(function(t){return t}))){var a=t[0],o=a.children.length,s=this._getCellWidths(a,r),l=this._getStickyStartColumnPositions(s,e),u=this._getStickyEndColumnPositions(s,n),c=e.lastIndexOf(!0),h=n.indexOf(!0);this._scheduleStyleChanges(function(){var r,a="rtl"===i.direction,d=a?"right":"left",f=a?"left":"right",p=g(t);try{for(p.s();!(r=p.n()).done;)for(var m=r.value,v=0;v1&&void 0!==arguments[1])||arguments[1];if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;for(var n=[],i=t.children,r=0;r0;r--)e[r]&&(n[r]=i,i+=t[r]);return n}},{key:"_scheduleStyleChanges",value:function(t){this._coalescedStyleScheduler?this._coalescedStyleScheduler.schedule(t):t()}}]),t}(),$O=new bi("CDK_SPL"),XO=function(){var t=function t(e,n){a(this,t),this.viewContainer=e,this.elementRef=n};return t.\u0275fac=function(e){return new(e||t)(us(fu),us(Dl))},t.\u0275dir=ve({type:t,selectors:[["","rowOutlet",""]]}),t}(),QO=function(){var t=function t(e,n){a(this,t),this.viewContainer=e,this.elementRef=n};return t.\u0275fac=function(e){return new(e||t)(us(fu),us(Dl))},t.\u0275dir=ve({type:t,selectors:[["","headerRowOutlet",""]]}),t}(),JO=function(){var t=function t(e,n){a(this,t),this.viewContainer=e,this.elementRef=n};return t.\u0275fac=function(e){return new(e||t)(us(fu),us(Dl))},t.\u0275dir=ve({type:t,selectors:[["","footerRowOutlet",""]]}),t}(),tT=function(){var t=function t(e,n){a(this,t),this.viewContainer=e,this.elementRef=n};return t.\u0275fac=function(e){return new(e||t)(us(fu),us(Dl))},t.\u0275dir=ve({type:t,selectors:[["","noDataRowOutlet",""]]}),t}(),eT=function(){var t=function(){function t(e,n,i,r,o,s,l,u,c,h,d){a(this,t),this._differs=e,this._changeDetectorRef=n,this._elementRef=i,this._dir=o,this._platform=l,this._viewRepeater=u,this._coalescedStyleScheduler=c,this._stickyPositioningListener=h,this._viewportRuler=d,this._onDestroy=new q,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._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.viewChange=new vf({start:0,end:Number.MAX_VALUE}),r||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=s,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return s(t,[{key:"ngOnInit",value: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}),this._viewportRuler&&this._viewportRuler.change().pipe(zg(this._onDestroy)).subscribe(function(){t._forceRecalculateCellWidths=!0})}},{key:"ngAfterContentChecked",value:function(){this._cacheRowDefs(),this._cacheColumnDefs();var t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||t,this._forceRecalculateCellWidths=t,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._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}},{key:"ngOnDestroy",value:function(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),uy(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var t=this;this._renderRows=this._getAllRenderRows();var e=this._dataDiffer.diff(this._renderRows);if(e){var n=this._rowOutlet.viewContainer;this._viewRepeater?this._viewRepeater.applyChanges(e,n,function(e,n,i){return t._getEmbeddedViewArgs(e.item,i)},function(t){return t.item.data},function(e){1===e.operation&&e.context&&t._renderCellTemplateForItem(e.record.item.rowDef,e.context)}):e.forEachOperation(function(e,i,r){if(null==e.previousIndex){var a=e.item;t._renderRow(t._rowOutlet,a.rowDef,r,{$implicit:a.data})}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._updateNoDataRow(),this.updateStickyColumnStyles()}else this._updateNoDataRow()}},{key:"addColumnDef",value:function(t){this._customColumnDefs.add(t)}},{key:"removeColumnDef",value:function(t){this._customColumnDefs.delete(t)}},{key:"addRowDef",value:function(t){this._customRowDefs.add(t)}},{key:"removeRowDef",value:function(t){this._customRowDefs.delete(t)}},{key:"addHeaderRowDef",value:function(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}},{key:"setNoDataRow",value:function(t){this._customNoDataRow=t}},{key:"updateStickyHeaderRowStyles",value: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()})}},{key:"updateStickyFooterRowStyles",value: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()})}},{key:"updateStickyColumnStyles",value:function(){var t=this,e=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([].concat(b(e),b(n),b(i)),["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach(function(e,n){t._addStickyColumnStyles([e],t._headerRowDefs[n])}),this._rowDefs.forEach(function(e){for(var i=[],r=0;r0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach(function(e,n){return t._renderRow(t._headerRowOutlet,e,n)}),this.updateStickyHeaderRowStyles()}},{key:"_forceRenderFooterRows",value: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()}},{key:"_addStickyColumnStyles",value:function(t,e){var n=this,i=Array.from(e.columns||[]).map(function(t){return n._columnDefsByName.get(t)}),r=i.map(function(t){return t.sticky}),a=i.map(function(t){return t.stickyEnd});this._stickyStyler.updateStickyColumns(t,r,a,!this._fixedLayout||this._forceRecalculateCellWidths)}},{key:"_getRenderedRows",value:function(t){for(var e=[],n=0;n3&&void 0!==arguments[3]?arguments[3]:{},r=t.viewContainer.createEmbeddedView(e.template,i,n);return this._renderCellTemplateForItem(e,i),r}},{key:"_renderCellTemplateForItem",value:function(t,e){var n,i=g(this._getCellTemplates(t));try{for(i.s();!(n=i.n()).done;)qO.mostRecentCellOutlet&&qO.mostRecentCellOutlet._viewContainer.createEmbeddedView(n.value,e)}catch(r){i.e(r)}finally{i.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var t=this._rowOutlet.viewContainer,e=0,n=t.length;e0&&void 0!==arguments[0]?arguments[0]:[];return a(this,n),(t=e.call(this))._renderData=new vf([]),t._filter=new vf(""),t._internalPageChanges=new q,t._renderChangesSubscription=null,t.sortingDataAccessor=function(t,e){var n=t[e];if(dg(n)){var i=Number(n);return io?u=1:a0)){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())}})}},{key:"connect",value:function(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}},{key:"disconnect",value:function(){var t;null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=null}},{key:"data",get:function(){return this._data.value},set:function(t){this._data.next(t),this._renderChangesSubscription||this._filterData(t)}},{key:"filter",get:function(){return this._filter.value},set:function(t){this._filter.next(t),this._renderChangesSubscription||this._filterData(this.data)}},{key:"sort",get:function(){return this._sort},set:function(t){this._sort=t,this._updateChangeSubscription()}},{key:"paginator",get:function(){return this._paginator},set:function(t){this._paginator=t,this._updateChangeSubscription()}}]),n}(ly));function IT(t){return t instanceof Date&&!isNaN(+t)}function OT(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pg,n=IT(t),i=n?+t-e.now():Math.abs(t);return function(t){return t.lift(new TT(i,e))}}var TT=function(){function t(e,n){a(this,t),this.delay=e,this.scheduler=n}return s(t,[{key:"call",value:function(t,e){return e.subscribe(new RT(t,this.delay,this.scheduler))}}]),t}(),RT=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return a(this,n),(o=e.call(this,t)).delay=i,o.scheduler=r,o.queue=[],o.active=!1,o.errored=!1,o}return s(n,[{key:"_schedule",value:function(t){this.active=!0,this.destination.add(t.schedule(n.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}},{key:"scheduleNotification",value:function(t){if(!0!==this.errored){var e=this.scheduler,n=new PT(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}}},{key:"_next",value:function(t){this.scheduleNotification(Gg.createNext(t))}},{key:"_error",value:function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(Gg.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value: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 a=Math.max(0,n[0].time-i.now());this.schedule(t,a)}else this.unsubscribe(),e.active=!1}}]),n}(M),PT=function t(e,n){a(this,t),this.time=e,this.notification=n},MT=ny({passive:!0}),FT=function(){var t=function(){function t(e,n){a(this,t),this._platform=e,this._ngZone=n,this._monitoredElements=new Map}return s(t,[{key:"monitor",value:function(t){var e=this;if(!this._platform.isBrowser)return Af;var n=mg(t),i=this._monitoredElements.get(n);if(i)return i.subject;var r=new q,a="cdk-text-field-autofilled",o=function(t){"cdk-text-field-autofill-start"!==t.animationName||n.classList.contains(a)?"cdk-text-field-autofill-end"===t.animationName&&n.classList.contains(a)&&(n.classList.remove(a),e._ngZone.run(function(){return r.next({target:t.target,isAutofilled:!1})})):(n.classList.add(a),e._ngZone.run(function(){return r.next({target:t.target,isAutofilled:!0})}))};return this._ngZone.runOutsideAngular(function(){n.addEventListener("animationstart",o,MT),n.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(n,{subject:r,unlisten:function(){n.removeEventListener("animationstart",o,MT)}}),r}},{key:"stopMonitoring",value:function(t){var e=mg(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))}},{key:"ngOnDestroy",value:function(){var t=this;this._monitoredElements.forEach(function(e,n){return t.stopMonitoring(n)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Vi(Qg),Vi(xc))},t.\u0275prov=Rt({factory:function(){return new t(Vi(Qg),Vi(xc))},token:t,providedIn:"root"}),t}(),LT=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({imports:[[Jg]]}),t}(),NT=new bi("MAT_INPUT_VALUE_ACCESSOR"),VT=["button","checkbox","file","hidden","image","radio","range","reset","submit"],jT=0,BT=gC(function t(e,n,i,r){a(this,t),this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r}),zT=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,s,l,u,c,h,d){var f;a(this,n),(f=e.call(this,l,o,s,r))._elementRef=t,f._platform=i,f.ngControl=r,f._autofillMonitor=c,f._formField=d,f._uid="mat-input-".concat(jT++),f.focused=!1,f.stateChanges=new q,f.controlType="mat-input",f.autofilled=!1,f._disabled=!1,f._required=!1,f._type="text",f._readonly=!1,f._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(t){return ey().has(t)});var p=f._elementRef.nativeElement,m=p.nodeName.toLowerCase();return f._inputValueAccessor=u||p,f._previousNativeValue=f.value,f.id=f.id,i.IOS&&h.runOutsideAngular(function(){t.nativeElement.addEventListener("keyup",function(t){var e=t.target;e.value||e.selectionStart||e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),f._isServer=!f._platform.isBrowser,f._isNativeSelect="select"===m,f._isTextarea="textarea"===m,f._isNativeSelect&&(f.controlType=p.multiple?"mat-native-select-multiple":"mat-native-select"),f}return s(n,[{key:"ngAfterViewInit",value:function(){var t=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(e){t.autofilled=e.isAutofilled,t.stateChanges.next()})}},{key:"ngOnChanges",value:function(){this.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}},{key:"focus",value:function(t){this._elementRef.nativeElement.focus(t)}},{key:"_focusChanged",value:function(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}},{key:"_onInput",value:function(){}},{key:"_dirtyCheckPlaceholder",value:function(){var t,e,n=(null===(e=null===(t=this._formField)||void 0===t?void 0:t._hideControlPlaceholder)||void 0===e?void 0:e.call(t))?null:this.placeholder;if(n!==this._previousPlaceholder){var i=this._elementRef.nativeElement;this._previousPlaceholder=n,n?i.setAttribute("placeholder",n):i.removeAttribute("placeholder")}}},{key:"_dirtyCheckNativeValue",value:function(){var t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}},{key:"_validateType",value:function(){VT.indexOf(this._type)}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var t=this._elementRef.nativeElement.validity;return t&&t.badInput}},{key:"setDescribedByIds",value:function(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}},{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(t){this._disabled=cg(t),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function(){return this._id},set:function(t){this._id=t||this._uid}},{key:"required",get:function(){return this._required},set:function(t){this._required=cg(t)}},{key:"type",get:function(){return this._type},set:function(t){this._type=t||"text",this._validateType(),!this._isTextarea&&ey().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function(){return this._inputValueAccessor.value},set:function(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}},{key:"readonly",get:function(){return this._readonly},set:function(t){this._readonly=cg(t)}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"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}}]),n}(BT);return t.\u0275fac=function(e){return new(e||t)(us(Dl),us(Qg),us(vx,10),us(nE,8),us(uE,8),us(RC),us(NT,10),us(FT),us(xc),us(gI,8))},t.\u0275dir=ve({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,e){1&t&&ws("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&t&&(il("disabled",e.disabled)("required",e.required),as("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.errorState&&!e.empty)("aria-required",e.required),Hs("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[bl([{provide:sI,useExisting:t}]),Yo,Oe]}),t}(),HT=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({providers:[RC],imports:[[LT,_I,dC],LT,_I]}),t}(),UT=["searchSelectInput"],qT=["innerSelectSearch"];function WT(t,e){if(1&t){var n=ys();ds(0,"button",6),ws("click",function(){return nn(n),Ds()._reset(!0)}),ds(1,"i",7),Js(2,"close"),fs(),fs()}}var YT=function(t){return{"mat-select-search-inner-multiple":t}},GT=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 Vu,this.overlayClassSet=!1,this.change=new Vu,this._onDestroy=new q}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!1,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(OT(1),zg(this._onDestroy)).subscribe(function(e){e?(t.getWidth(),t.disableInitialFocus||t._focus()):t.clearSearchInput&&t._reset()}),this.matSelect.openedChange.pipe(Mf(1)).pipe(zg(this._onDestroy)).subscribe(function(){t._options=t.matSelect.options,t._options.changes.pipe(zg(t._onDestroy)).subscribe(function(){var e=t.matSelect._keyManager;e&&t.matSelect.panelOpen&&setTimeout(function(){e.setFirstItemActive(),t.getWidth()},1)})}),this.change.pipe(zg(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(Mf(1),zg(this._onDestroy)).subscribe(function(){t.matSelect.options.changes.pipe(zg(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||t.keyCode===Oy)&&t.stopPropagation()},t.prototype.writeValue=function(t){t!==this._value&&(this._value=t,this.change.emit(t))},t.prototype.onInputChange=function(t){t.value!==this._value&&(this.initMultiSelectedValues(),this._value=t.value,this.changed.emit(t.value),this.change.emit(t.value))},t.prototype.onBlur=function(t){this.writeValue(t.value)},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.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.prototype.setOverlayClass=function(){var t=this;this.overlayClassSet||(this.matSelect.overlayDir.attach.pipe(zg(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(zg(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.\u0275fac=function(e){return new(e||t)(us(BI),us(tu))},t.\u0275cmp=ce({type:t,selectors:[["uds-mat-select-search"]],viewQuery:function(t,e){if(1&t&&(Xu(UT,3,Dl),Xu(qT,3,Dl)),2&t){var n=void 0;$u(n=Ju())&&(e.searchSelectInput=n.first),$u(n=Ju())&&(e.innerSelectSearch=n.first)}},inputs:{placeholderLabel:"placeholderLabel",noEntriesFoundLabel:"noEntriesFoundLabel",clearSearchInput:"clearSearchInput",disableInitialFocus:"disableInitialFocus"},outputs:{changed:"changed"},features:[bl([{provide:WS,useExisting:xt(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&&(ps(0,"input",0),ds(1,"div",1,2),ds(3,"input",3,4),ws("keydown",function(t){return e._handleKeydown(t)})("input",function(t){return e.onInputChange(t.target)})("blur",function(t){return e.onBlur(t.target)}),fs(),ss(5,WT,3,0,"button",5),fs()),2&t&&(Ia(1),cs("ngClass",Du(3,YT,e.matSelect.multiple)),Ia(2),cs("placeholder",e.placeholderLabel),Ia(2),cs("ngIf",e.value))},directives:[zT,Ih,Ph,RS],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 KT(t,e){1&t&&(ds(0,"uds-translate"),Js(1,"New user permission for"),fs())}function ZT(t,e){1&t&&(ds(0,"uds-translate"),Js(1,"New group permission for"),fs())}function $T(t,e){if(1&t&&(ds(0,"mat-option",11),Js(1),fs()),2&t){var n=e.$implicit;cs("value",n.id),Ia(1),tl(n.text)}}function XT(t,e){if(1&t){var n=ys();ds(0,"uds-mat-select-search",12),ws("changed",function(t){return nn(n),Ds().filterUser=t}),fs()}}function QT(t,e){if(1&t&&(ds(0,"mat-option",11),Js(1),fs()),2&t){var n=e.$implicit;cs("value",n.id),Ia(1),tl(n.text)}}function JT(t,e){if(1&t&&(ds(0,"mat-option",11),Js(1),fs()),2&t){var n=e.$implicit;cs("value",n.id),Ia(1),tl(n.text)}}var tR=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 Vu(!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)(us(pD),us(ND),us(hS),us(fS))},t.\u0275cmp=ce({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&&(ds(0,"h4",0),ss(1,KT,2,0,"uds-translate",1),ps(2,"b",2),ss(3,ZT,2,0,"ng-template",null,3,ic),fs(),ds(5,"mat-dialog-content"),ds(6,"div",4),ds(7,"mat-form-field"),ds(8,"mat-select",5),ws("valueChange",function(t){return e.changeAuth(t)})("ngModelChange",function(t){return e.authenticator=t}),ss(9,$T,2,2,"mat-option",6),fs(),fs(),ds(10,"mat-form-field"),ds(11,"mat-select",7),ws("ngModelChange",function(t){return e.entity=t}),ss(12,XT,1,0,"uds-mat-select-search",8),ss(13,QT,2,2,"mat-option",6),fs(),fs(),ds(14,"mat-form-field"),ds(15,"mat-select",7),ws("ngModelChange",function(t){return e.permission=t}),ss(16,JT,2,2,"mat-option",6),fs(),fs(),fs(),fs(),ds(17,"mat-dialog-actions"),ds(18,"button",9),ds(19,"uds-translate"),Js(20,"Cancel"),fs(),fs(),ds(21,"button",10),ws("click",function(){return e.save()}),ds(22,"uds-translate"),Js(23,"Ok"),fs(),fs(),fs()),2&t){var n=ls(4);Ia(1),cs("ngIf","user"===e.data.type)("ngIfElse",n),Ia(1),cs("innerHTML",e.data.item.name,Ir),Ia(6),cs("placeholder",e.getFieldLabel("auth"))("ngModel",e.authenticator),Ia(1),cs("ngForOf",e.authenticators),Ia(2),cs("placeholder",e.getFieldLabel(e.data.type))("ngModel",e.entity),Ia(1),cs("ngIf",e.entities.length>10),Ia(1),cs("ngForOf",e.filteredEntities()),Ia(2),cs("placeholder",e.getFieldLabel("perm"))("ngModel",e.permission),Ia(1),cs("ngForOf",e.permissions)}},directives:[kS,Ph,wS,yI,BI,yx,aE,Th,CS,RS,bS,FS,tS,GT],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 eR(t,e){if(1&t){var n=ys();ds(0,"div",11),ds(1,"div",12),Js(2),fs(),ds(3,"div",13),Js(4),ds(5,"a",14),ws("click",function(){nn(n);var t=e.$implicit;return Ds(2).revokePermission(t)}),ds(6,"i",15),Js(7,"close"),fs(),fs(),fs(),fs()}if(2&t){var i=e.$implicit;Ia(2),nl(" ",i.entity_name,"@",i.auth_name," "),Ia(2),el(" ",i.perm_name," \xa0")}}function nR(t,e){if(1&t){var n=ys();ds(0,"div",7),ds(1,"div",8),ds(2,"div",9),ws("click",function(t){nn(n);var i=e.$implicit;return Ds().newPermission(i),t.preventDefault()}),ds(3,"uds-translate"),Js(4,"New permission..."),fs(),fs(),ss(5,eR,8,3,"div",10),fs(),fs()}if(2&t){var i=e.$implicit;Ia(5),cs("ngForOf",i)}}var iR=function(t,e){return[t,e]},rR=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";tR.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)(us(pD),us(hS),us(fS))},t.\u0275cmp=ce({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&&(ds(0,"h4",0),ds(1,"uds-translate"),Js(2,"Permissions for"),fs(),Js(3,"\xa0"),ps(4,"b",1),fs(),ds(5,"mat-dialog-content"),ds(6,"div",2),ds(7,"uds-translate",3),Js(8,"Users"),fs(),ds(9,"uds-translate",3),Js(10,"Groups"),fs(),fs(),ds(11,"div",4),ss(12,nR,6,1,"div",5),fs(),fs(),ds(13,"mat-dialog-actions"),ds(14,"button",6),ds(15,"uds-translate"),Js(16,"Ok"),fs(),fs(),fs()),2&t&&(Ia(4),cs("innerHTML",e.data.item.name,Ir),Ia(8),cs("ngForOf",Iu(2,iR,e.userPermissions,e.groupPermissions)))},directives:[kS,FS,wS,Th,CS,RS,bS],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}(),aR=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],oR=[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")],sR=function(t){var e=[];return t.forEach(function(t){e.push(t.substr(0,3))}),e},lR=function(t,e,n){return uR(t,e,n)},uR=function(t,e,n,i){i=i||{},e=e||new Date,(n=n||yR).formats=n.formats||{};var r=e.getTime();return(i.utc||"number"==typeof i.timezone)&&(e=cR(e)),"number"==typeof i.timezone&&(e=new Date(e.getTime()+6e4*i.timezone)),t.replace(/%([-_0]?.)/g,function(t,a){var o,s,l,u,c,h,d,f;if(l=null,c=null,2===a.length){if("-"===(l=a[0]))c="";else if("_"===l)c=" ";else{if("0"!==l)return t;c="0"}a=a[1]}switch(a){case"A":return n.days[e.getDay()];case"a":return n.shortDays[e.getDay()];case"B":return n.months[e.getMonth()];case"b":return n.shortMonths[e.getMonth()];case"C":return hR(Math.floor(e.getFullYear()/100),c);case"D":return uR(n.formats.D||"%m/%d/%y",e,n);case"d":return hR(e.getDate(),c);case"e":return e.getDate();case"F":return uR(n.formats.F||"%Y-%m-%d",e,n);case"H":return hR(e.getHours(),c);case"h":return n.shortMonths[e.getMonth()];case"I":return hR(dR(e),c);case"j":return d=new Date(e.getFullYear(),0,1),o=Math.ceil((e.getTime()-d.getTime())/864e5),hR(o,3);case"k":return hR(e.getHours(),void 0===c?" ":c);case"L":return hR(Math.floor(r%1e3),3);case"l":return hR(dR(e),void 0===c?" ":c);case"M":return hR(e.getMinutes(),c);case"m":return hR(e.getMonth()+1,c);case"n":return"\n";case"o":return String(e.getDate())+fR(e.getDate());case"P":case"p":return"";case"R":return uR(n.formats.R||"%H:%M",e,n);case"r":return uR(n.formats.r||"%I:%M:%S %p",e,n);case"S":return hR(e.getSeconds(),c);case"s":return Math.floor(r/1e3);case"T":return uR(n.formats.T||"%H:%M:%S",e,n);case"t":return"\t";case"U":return hR(pR(e,"sunday"),c);case"u":return 0===(s=e.getDay())?7:s;case"v":return uR(n.formats.v||"%e-%b-%Y",e,n);case"W":return hR(pR(e,"monday"),c);case"w":return e.getDay();case"Y":return e.getFullYear();case"y":return(f=String(e.getFullYear())).slice(f.length-2);case"Z":return i.utc?"GMT":(h=e.toString().match(/\((\w+)\)/))&&h[1]||"";case"z":return i.utc?"+0000":((u="number"==typeof i.timezone?i.timezone:-e.getTimezoneOffset())<0?"-":"+")+hR(Math.abs(u/60))+hR(u%60);default:return a}})},cR=function(t){var e=6e4*(t.getTimezoneOffset()||0);return new Date(t.getTime()+e)},hR=function(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},fR=function(t){var e=t%10,n=t%100;if(n>=11&&n<=13||0===e||e>=4)return"th";switch(e){case 1:return"st";case 2:return"nd";case 3:return"rd"}},pR=function(t,e){e=e||"sunday";var n=t.getDay();"monday"===e&&(0===n?n=6:n--);var i=new Date(t.getFullYear(),0,1),r=Math.floor((t.getTime()-i.getTime())/864e5);return Math.floor((r+7-n)/7)},mR=function(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}})},vR=function(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=lR(mR(r),new Date(1e3*e))}return i},gR=function(t){return"yes"===t||!0===t||"true"===t||1===t},yR={days:aR,shortDays:sR(aR),months:oR,shortMonths:sR(oR),AM:"AM",PM:"PM",am:"am",pm:"pm"},_R=n("dunZ"),bR=function(t){return void 0!==t.changingThisBreaksApplicationSecurity&&(t=t.changingThisBreaksApplicationSecurity.replace(/<.*>/g,"")),'"'+(t=""+t).replace('"','""')+'"'},kR=function(t){var e="";t.columns.forEach(function(t){e+=bR(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 LA.DATE:i=vR("SHORT_DATE_FORMAT",i);break;case LA.DATETIME:i=vR("SHORT_DATETIME_FORMAT",i);break;case LA.DATETIMESEC:i=vR("SHORT_DATE_FORMAT",i," H:i:s");break;case LA.TIME:i=vR("TIME_FORMAT",i)}e+=bR(i)+","}),e=e.slice(0,-1)+"\r\n"});var n=new Blob([e],{type:"text/csv"});setTimeout(function(){Object(_R.saveAs)(n,t.title+".csv")},100)};function wR(t,e){if(1&t&&(Tn(),ps(0,"circle",3)),2&t){var n=Ds();zs("animation-name","mat-progress-spinner-stroke-rotate-"+n._spinnerAnimationLabel)("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),as("r",n._getCircleRadius())}}function CR(t,e){if(1&t&&(Tn(),ps(0,"circle",3)),2&t){var n=Ds();zs("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),as("r",n._getCircleRadius())}}var SR=pC(function t(e){a(this,t),this._elementRef=e},"primary"),xR=new bi("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),ER=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,s){var l;a(this,n),(l=e.call(this,t))._elementRef=t,l._document=r,l._diameter=100,l._value=0,l._fallbackAnimation=!1,l.mode="determinate";var u=n._diameters;return l._spinnerAnimationLabel=l._getSpinnerAnimationLabel(),u.has(r.head)||u.set(r.head,new Set([100])),l._fallbackAnimation=i.EDGE||i.TRIDENT,l._noopAnimations="NoopAnimations"===o&&!!s&&!s._forceAnimations,s&&(s.diameter&&(l.diameter=s.diameter),s.strokeWidth&&(l.strokeWidth=s.strokeWidth)),l}return s(n,[{key:"ngOnInit",value:function(){var t=this._elementRef.nativeElement;this._styleRoot=ry(t)||this._document.head,this._attachStyleNode();var e="mat-progress-spinner-indeterminate".concat(this._fallbackAnimation?"-fallback":"","-animation");t.classList.add(e)}},{key:"_getCircleRadius",value:function(){return(this.diameter-10)/2}},{key:"_getViewBox",value:function(){var t=2*this._getCircleRadius()+this.strokeWidth;return"0 0 ".concat(t," ").concat(t)}},{key:"_getStrokeCircumference",value:function(){return 2*Math.PI*this._getCircleRadius()}},{key:"_getStrokeDashOffset",value:function(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}},{key:"_getCircleStrokeWidth",value:function(){return this.strokeWidth/this.diameter*100}},{key:"_attachStyleNode",value:function(){var t=this._styleRoot,e=this._diameter,i=n._diameters,r=i.get(t);if(!r||!r.has(e)){var a=this._document.createElement("style");a.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),a.textContent=this._getAnimationText(),t.appendChild(a),r||(r=new Set,i.set(t,r)),r.add(e)}}},{key:"_getAnimationText",value:function(){var t=this._getStrokeCircumference();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,"".concat(.95*t)).replace(/END_VALUE/g,"".concat(.2*t)).replace(/DIAMETER/g,"".concat(this._spinnerAnimationLabel))}},{key:"_getSpinnerAnimationLabel",value:function(){return this.diameter.toString().replace(".","_")}},{key:"diameter",get:function(){return this._diameter},set:function(t){this._diameter=hg(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}},{key:"strokeWidth",get:function(){return this._strokeWidth||this.diameter/10},set:function(t){this._strokeWidth=hg(t)}},{key:"value",get:function(){return"determinate"===this.mode?this._value:0},set:function(t){this._value=Math.max(0,Math.min(100,hg(t)))}}]),n}(SR);return t.\u0275fac=function(e){return new(e||t)(us(Dl),us(Qg),us(sh,8),us(eC,8),us(xR))},t.\u0275cmp=ce({type:t,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(as("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),zs("width",e.diameter,"px")("height",e.diameter,"px"),Hs("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[Yo],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&&(Tn(),ds(0,"svg",0),ss(1,wR,1,9,"circle",1),ss(2,CR,1,7,"circle",2),fs()),2&t&&(zs("width",e.diameter,"px")("height",e.diameter,"px"),cs("ngSwitch","indeterminate"===e.mode),as("viewBox",e._getViewBox()),Ia(1),cs("ngSwitchCase",!0),Ia(1),cs("ngSwitchCase",!1))},directives:[Nh,Vh],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.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}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 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] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{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(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n"],encapsulation:2,changeDetection:0}),t._diameters=new WeakMap,t}(),AR=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({imports:[[dC,Kh],dC]}),t}(),DR=["mat-menu-item",""],IR=["*"];function OR(t,e){if(1&t){var n=ys();ds(0,"div",0),ws("keydown",function(t){return nn(n),Ds()._handleKeydown(t)})("click",function(){return nn(n),Ds().closed.emit("click")})("@transformMenu.start",function(t){return nn(n),Ds()._onAnimationStart(t)})("@transformMenu.done",function(t){return nn(n),Ds()._onAnimationDone(t)}),ds(1,"div",1),Ts(2),fs(),fs()}if(2&t){var i=Ds();cs("id",i.panelId)("ngClass",i._classList)("@transformMenu",i._panelAnimationState),as("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby||null)("aria-describedby",i.ariaDescribedby||null)}}var TR={transformMenu:db("transformMenu",[vb("void",mb({opacity:0,transform:"scale(0.8)"})),yb("void => enter",fb("120ms cubic-bezier(0, 0, 0.2, 1)",mb({opacity:1,transform:"scale(1)"}))),yb("* => void",fb("100ms 25ms linear",mb({opacity:0})))]),fadeInItems:db("fadeInItems",[vb("showing",mb({opacity:1})),yb("void => *",[mb({opacity:0}),fb("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},RR=new bi("MatMenuContent"),PR=function(){var t=function(){function t(e,n,i,r,o,s,l){a(this,t),this._template=e,this._componentFactoryResolver=n,this._appRef=i,this._injector=r,this._viewContainerRef=o,this._document=s,this._changeDetectorRef=l,this._attached=new q}return s(t,[{key:"attach",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._portal||(this._portal=new _y(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new wy(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()}},{key:"detach",value:function(){this._portal.isAttached&&this._portal.detach()}},{key:"ngOnDestroy",value:function(){this._outlet&&this._outlet.dispose()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(su),us(Sl),us(Kc),us(qo),us(fu),us(sh),us(tu))},t.\u0275dir=ve({type:t,selectors:[["ng-template","matMenuContent",""]],features:[bl([{provide:RR,useExisting:t}])]}),t}(),MR=new bi("MAT_MENU_PANEL"),FR=mC(fC(function t(){a(this,t)})),LR=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o){var s;return a(this,n),(s=e.call(this))._elementRef=t,s._focusMonitor=r,s._parentMenu=o,s.role="menuitem",s._hovered=new q,s._focused=new q,s._highlighted=!1,s._triggersSubmenu=!1,o&&o.addItem&&o.addItem(d(s)),s}return s(n,[{key:"focus",value:function(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),this._focused.next(this)}},{key:"ngAfterViewInit",value:function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){for(var t,e,n=this._elementRef.nativeElement.cloneNode(!0),i=n.querySelectorAll("mat-icon, .material-icons"),r=0;r0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.pipe(Mf(1)).subscribe(function(){return t._focusFirstItem(e)}):this._focusFirstItem(e)}},{key:"_focusFirstItem",value:function(t){var e=this._keyManager;if(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}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(t){var e=Math.min(4+t,24),n="mat-elevation-z".concat(e),i=Object.keys(this._classList).find(function(t){return t.startsWith("mat-elevation-z")});i&&i!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[n]=!0,this._previousElevation=n)}},{key:"setPositionClasses",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,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}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(t){this._animationDone.next(t),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var t=this;this._allItems.changes.pipe(Nf(this._allItems)).subscribe(function(e){t._directDescendantItems.reset(e.filter(function(e){return e._parentMenu===t})),t._directDescendantItems.notifyOnChanges()})}},{key:"xPosition",get:function(){return this._xPosition},set:function(t){this._xPosition=t,this.setPositionClasses()}},{key:"yPosition",get:function(){return this._yPosition},set:function(t){this._yPosition=t,this.setPositionClasses()}},{key:"overlapTrigger",get:function(){return this._overlapTrigger},set:function(t){this._overlapTrigger=cg(t)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(t){this._hasBackdrop=cg(t)}},{key:"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="")}},{key:"classList",get:function(){return this.panelClass},set:function(t){this.panelClass=t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(Dl),us(xc),us(NR))},t.\u0275dir=ve({type:t,contentQueries:function(t,e,n){var i;1&t&&(Qu(n,RR,1),Qu(n,LR,1),Qu(n,LR,0)),2&t&&($u(i=Ju())&&(e.lazyContent=i.first),$u(i=Ju())&&(e._allItems=i),$u(i=Ju())&&(e.items=i))},viewQuery:function(t,e){var n;1&t&&Xu(su,1),2&t&&$u(n=Ju())&&(e.templateRef=n.first)},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t}(),BR=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r){return a(this,n),e.call(this,t,i,r)}return n}(jR);return t.\u0275fac=function(e){return new(e||t)(us(Dl),us(xc),us(NR))},t.\u0275cmp=ce({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,e){2&t&&as("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[bl([{provide:MR,useExisting:t}]),Yo],ngContentSelectors:IR,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(Os(),ss(0,OR,3,6,"ng-template"))},directives:[Ih],styles:['mat-menu{display:none}.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}.cdk-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:none;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}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{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}\n'],encapsulation:2,data:{animation:[TR.transformMenu,TR.fadeInItems]},changeDetection:0}),t}(),zR=new bi("mat-menu-scroll-strategy"),HR={provide:zR,deps:[d_],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},UR=ny({passive:!0}),qR=function(){var t=function(){function t(e,n,i,r,o,s,l,u){var c=this;a(this,t),this._overlay=e,this._element=n,this._viewContainerRef=i,this._menuItemInstance=s,this._dir=l,this._focusMonitor=u,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=A.EMPTY,this._hoverSubscription=A.EMPTY,this._menuCloseSubscription=A.EMPTY,this._handleTouchStart=function(t){X_(t)||(c._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new Vu,this.onMenuOpen=this.menuOpened,this.menuClosed=new Vu,this.onMenuClose=this.menuClosed,this._scrollStrategy=r,this._parentMaterialMenu=o instanceof jR?o:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,UR),s&&(s._triggersSubmenu=this.triggersSubmenu())}return s(t,[{key:"ngAfterContentInit",value:function(){this._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,UR),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value: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 jR&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}},{key:"_destroyMenu",value:function(t){var e=this;if(this._overlayRef&&this.menuOpen){var n=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),!this.restoreFocus||"keydown"!==t&&this._openedBy&&this.triggersSubmenu()||this.focus(this._openedBy),this._openedBy=void 0,n instanceof jR?(n._resetAnimation(),n.lazyContent?n._animationDone.pipe(Pd(function(t){return"void"===t.toState}),Mf(1),zg(n.lazyContent._attached)).subscribe({next:function(){return n.lazyContent.detach()},complete:function(){return e._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),n.lazyContent&&n.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var t=0,e=this.menu.parentMenu;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}},{key:"_setIsMenuOpen",value:function(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}},{key:"_checkMenu",value:function(){}},{key:"_createOverlay",value: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}},{key:"_getOverlayConfig",value:function(){return new Yy({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value: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")})}},{key:"_setPosition",value:function(t){var e=y("before"===this.menu.xPosition?["end","start"]:["start","end"],2),n=e[0],i=e[1],r=y("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),a=r[0],o=r[1],s=a,l=o,u=n,c=i,h=0;this.triggersSubmenu()?(c=n="before"===this.menu.xPosition?"start":"end",i=u="end"===n?"start":"end",h="bottom"===a?8:-8):this.menu.overlapTrigger||(s="top"===a?"bottom":"top",l="top"===o?"bottom":"top"),t.withPositions([{originX:n,originY:s,overlayX:u,overlayY:a,offsetY:h},{originX:i,originY:s,overlayX:c,overlayY:a,offsetY:h},{originX:n,originY:l,overlayX:u,overlayY:o,offsetY:-h},{originX:i,originY:l,overlayX:c,overlayY:o,offsetY:-h}])}},{key:"_menuClosingActions",value:function(){var t=this,e=this._overlayRef.backdropClick(),n=this._overlayRef.detachments();return dt(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:Td(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Pd(function(e){return e!==t._menuItemInstance}),Pd(function(){return t._menuOpen})):Td(),n)}},{key:"_handleMousedown",value:function(t){$_(t)||(this._openedBy=0===t.button?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}},{key:"_handleKeydown",value:function(t){var e=t.keyCode;e!==Dy&&e!==Oy||(this._openedBy="keyboard"),this.triggersSubmenu()&&(e===Fy&&"ltr"===this.dir||e===Py&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}},{key:"_handleClick",value:function(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var t=this;this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Pd(function(e){return e===t._menuItemInstance&&!e.disabled}),OT(0,Ig)).subscribe(function(){t._openedBy="mouse",t.menu instanceof jR&&t.menu._isAnimating?t.menu._animationDone.pipe(Mf(1),OT(0,Ig),zg(t._parentMaterialMenu._hovered())).subscribe(function(){return t.openMenu()}):t.openMenu()}))}},{key:"_getPortal",value:function(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new _y(this.menu.templateRef,this._viewContainerRef)),this._portal}},{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(t){this.menu=t}},{key:"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.subscribe(function(t){e._destroyMenu(t),"click"!==t&&"tab"!==t||!e._parentMaterialMenu||e._parentMaterialMenu.closed.emit(t)})))}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(d_),us(Dl),us(fu),us(zR),us(MR,8),us(LR,10),us(oy,8),us(tb))},t.\u0275dir=ve({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&ws("mousedown",function(t){return e._handleMousedown(t)})("keydown",function(t){return e._handleKeydown(t)})("click",function(t){return e._handleClick(t)}),2&t&&as("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId: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}(),WR=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({providers:[HR],imports:[dC]}),t}(),YR=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({providers:[HR],imports:[[Kh,dC,UC,y_,WR],my,dC,WR]}),t}(),GR=function(){var t=function(){function t(){a(this,t),this._vertical=!1,this._inset=!1}return s(t,[{key:"vertical",get:function(){return this._vertical},set:function(t){this._vertical=cg(t)}},{key:"inset",get:function(){return this._inset},set:function(t){this._inset=cg(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,e){2&t&&(as("aria-orientation",e.vertical?"vertical":"horizontal"),Hs("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}\n"],encapsulation:2,changeDetection:0}),t}(),KR=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({imports:[[dC],dC]}),t}(),ZR=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=ge({name:"sort",type:t,pure:!0}),t}(),$R=["trigger"];function XR(t,e){1&t&&ps(0,"img",36),2&t&&cs("src",Ds().icon,Or)}function QR(t,e){if(1&t){var n=ys();ds(0,"button",46),ws("click",function(){nn(n);var t=e.$implicit,i=Ds(5);return i.newAction.emit({param:t,table:i})}),fs()}if(2&t){var i=e.$implicit,r=Ds(5);cs("innerHTML",r.api.safeString(r.api.gui.icon(i.icon)+i.name),Ir)}}function JR(t,e){if(1&t&&(ms(0),ds(1,"button",42),Js(2),fs(),ds(3,"mat-menu",43,44),ss(5,QR,1,1,"button",45),Pu(6,"sort"),fs(),vs()),2&t){var n=e.$implicit,i=ls(4);Ia(1),cs("matMenuTriggerFor",i),Ia(1),tl(n.key),Ia(1),cs("overlapTrigger",!1),Ia(2),cs("ngForOf",Fu(6,4,n.value,"name"))}}function tP(t,e){if(1&t&&(ms(0),ds(1,"mat-menu",37,38),ss(3,JR,7,7,"ng-container",39),Pu(4,"keyvalue"),fs(),ds(5,"a",40),ds(6,"i",17),Js(7,"insert_drive_file"),fs(),ds(8,"span",41),ds(9,"uds-translate"),Js(10,"New"),fs(),fs(),ds(11,"i",17),Js(12,"arrow_drop_down"),fs(),fs(),vs()),2&t){var n=ls(2),i=Ds(3);Ia(1),cs("overlapTrigger",!1),Ia(2),cs("ngForOf",Mu(4,3,i.grpTypes)),Ia(2),cs("matMenuTriggerFor",n)}}function eP(t,e){if(1&t){var n=ys();ds(0,"button",46),ws("click",function(){nn(n);var t=e.$implicit,i=Ds(4);return i.newAction.emit({param:t,table:i})}),fs()}if(2&t){var i=e.$implicit,r=Ds(4);cs("innerHTML",r.api.safeString(r.api.gui.icon(i.icon)+i.name),Ir)}}function nP(t,e){if(1&t&&(ms(0),ds(1,"mat-menu",37,38),ss(3,eP,1,1,"button",45),Pu(4,"sort"),fs(),ds(5,"a",40),ds(6,"i",17),Js(7,"insert_drive_file"),fs(),ds(8,"span",41),ds(9,"uds-translate"),Js(10,"New"),fs(),fs(),ds(11,"i",17),Js(12,"arrow_drop_down"),fs(),fs(),vs()),2&t){var n=ls(2),i=Ds(3);Ia(1),cs("overlapTrigger",!1),Ia(2),cs("ngForOf",Fu(4,3,i.oTypes,"name")),Ia(2),cs("matMenuTriggerFor",n)}}function iP(t,e){if(1&t&&(ms(0),ss(1,tP,13,5,"ng-container",8),ss(2,nP,13,6,"ng-container",8),vs()),2&t){var n=Ds(2);Ia(1),cs("ngIf",n.newGrouped),Ia(1),cs("ngIf",!n.newGrouped)}}function rP(t,e){if(1&t){var n=ys();ms(0),ds(1,"a",47),ws("click",function(){nn(n);var t=Ds(2);return t.newAction.emit({param:void 0,table:t})}),ds(2,"i",17),Js(3,"insert_drive_file"),fs(),ds(4,"span",41),ds(5,"uds-translate"),Js(6,"New"),fs(),fs(),fs(),vs()}}function aP(t,e){if(1&t&&(ms(0),ss(1,iP,3,2,"ng-container",8),ss(2,rP,7,0,"ng-container",8),vs()),2&t){var n=Ds();Ia(1),cs("ngIf",null!=n.oTypes&&0!=n.oTypes.length),Ia(1),cs("ngIf",null!=n.oTypes&&0==n.oTypes.length)}}function oP(t,e){if(1&t){var n=ys();ms(0),ds(1,"a",48),ws("click",function(){nn(n);var t=Ds();return t.emitIfSelection(t.editAction)}),ds(2,"i",17),Js(3,"edit"),fs(),ds(4,"span",41),ds(5,"uds-translate"),Js(6,"Edit"),fs(),fs(),fs(),vs()}if(2&t){var i=Ds();Ia(1),cs("disabled",1!=i.selection.selected.length)}}function sP(t,e){if(1&t){var n=ys();ms(0),ds(1,"a",48),ws("click",function(){return nn(n),Ds().permissions()}),ds(2,"i",17),Js(3,"perm_identity"),fs(),ds(4,"span",41),ds(5,"uds-translate"),Js(6,"Permissions"),fs(),fs(),fs(),vs()}if(2&t){var i=Ds();Ia(1),cs("disabled",1!=i.selection.selected.length)}}function lP(t,e){if(1&t){var n=ys();ds(0,"a",50),ws("click",function(){nn(n);var t=e.$implicit;return Ds(2).emitCustom(t)}),fs()}if(2&t){var i=e.$implicit;cs("disabled",Ds(2).isCustomDisabled(i))("innerHTML",i.html,Ir)}}function uP(t,e){if(1&t&&(ms(0),ss(1,lP,1,2,"a",49),vs()),2&t){var n=Ds();Ia(1),cs("ngForOf",n.getcustomButtons())}}function cP(t,e){if(1&t){var n=ys();ms(0),ds(1,"a",51),ws("click",function(){return nn(n),Ds().export()}),ds(2,"i",17),Js(3,"import_export"),fs(),ds(4,"span",41),ds(5,"uds-translate"),Js(6,"Export"),fs(),fs(),fs(),vs()}}function hP(t,e){if(1&t){var n=ys();ms(0),ds(1,"a",52),ws("click",function(){nn(n);var t=Ds();return t.emitIfSelection(t.deleteAction,!0)}),ds(2,"i",17),Js(3,"delete_forever"),fs(),ds(4,"span",41),ds(5,"uds-translate"),Js(6,"Delete"),fs(),fs(),fs(),vs()}if(2&t){var i=Ds();Ia(1),cs("disabled",i.selection.isEmpty())}}function dP(t,e){if(1&t){var n=ys();ds(0,"button",53),ws("click",function(){nn(n);var t=Ds();return t.filterText="",t.applyFilter()}),ds(1,"i",17),Js(2,"close"),fs(),fs()}}function fP(t,e){1&t&&ps(0,"mat-header-cell")}function pP(t,e){1&t&&(ds(0,"i",17),Js(1,"check_box"),fs())}function mP(t,e){1&t&&(ds(0,"i",17),Js(1,"check_box_outline_blank"),fs())}function vP(t,e){if(1&t){var n=ys();ds(0,"mat-cell",56),ws("click",function(t){nn(n);var i=e.$implicit;return Ds(2).clickRow(i,t)}),ss(1,pP,2,0,"i",57),ss(2,mP,2,0,"ng-template",null,58,ic),fs()}if(2&t){var i=e.$implicit,r=ls(3),a=Ds(2);Ia(1),cs("ngIf",a.selection.isSelected(i))("ngIfElse",r)}}function gP(t,e){1&t&&(ms(0,54),ss(1,fP,1,0,"mat-header-cell",22),ss(2,vP,4,2,"mat-cell",55),vs())}function yP(t,e){1&t&&ps(0,"mat-header-cell")}function _P(t,e){if(1&t){var n=ys();ds(0,"mat-cell"),ds(1,"div",59),ws("click",function(t){nn(n);var i=e.$implicit,r=Ds();return r.detailAction.emit({param:i,table:r}),t.stopPropagation()}),ds(2,"i",17),Js(3,"subdirectory_arrow_right"),fs(),fs(),fs()}}function bP(t,e){if(1&t&&(ds(0,"mat-header-cell",63),Js(1),fs()),2&t){var n=Ds().$implicit;Ia(1),tl(n.title)}}function kP(t,e){if(1&t){var n=ys();ds(0,"mat-cell",64),ws("click",function(t){nn(n);var i=e.$implicit;return Ds(2).clickRow(i,t)})("contextmenu",function(t){nn(n);var i=e.$implicit;return Ds(2).onContextMenu(i,t)}),ps(1,"div",65),fs()}if(2&t){var i=e.$implicit,r=Ds().$implicit,a=Ds();Ia(1),cs("innerHtml",a.getRowColumn(i,r),Ir)}}function wP(t,e){1&t&&(ms(0,60),ss(1,bP,2,1,"mat-header-cell",61),ss(2,kP,2,1,"mat-cell",62),vs()),2&t&&Rs("matColumnDef",e.$implicit.name)}function CP(t,e){1&t&&ps(0,"mat-header-row")}function SP(t,e){if(1&t&&ps(0,"mat-row",66),2&t){var n=e.$implicit;cs("ngClass",Ds().rowClass(n))}}function xP(t,e){if(1&t&&(ds(0,"div",67),Js(1),ds(2,"uds-translate"),Js(3,"Selected items"),fs(),fs()),2&t){var n=Ds();Ia(1),el(" ",n.selection.selected.length," ")}}function EP(t,e){if(1&t){var n=ys();ds(0,"button",71),ws("click",function(){nn(n);var t=Ds().item,e=Ds();return e.detailAction.emit({param:t,table:e})}),ds(1,"i",72),Js(2,"subdirectory_arrow_right"),fs(),ds(3,"uds-translate"),Js(4,"Detail"),fs(),fs()}}function AP(t,e){if(1&t){var n=ys();ds(0,"button",71),ws("click",function(){nn(n);var t=Ds(2);return t.emitIfSelection(t.editAction)}),ds(1,"i",72),Js(2,"edit"),fs(),ds(3,"uds-translate"),Js(4,"Edit"),fs(),fs()}}function DP(t,e){if(1&t){var n=ys();ds(0,"button",71),ws("click",function(){return nn(n),Ds(2).permissions()}),ds(1,"i",72),Js(2,"perm_identity"),fs(),ds(3,"uds-translate"),Js(4,"Permissions"),fs(),fs()}}function IP(t,e){if(1&t){var n=ys();ds(0,"button",73),ws("click",function(){nn(n);var t=e.$implicit;return Ds(2).emitCustom(t)}),fs()}if(2&t){var i=e.$implicit;cs("disabled",Ds(2).isCustomDisabled(i))("innerHTML",i.html,Ir)}}function OP(t,e){if(1&t){var n=ys();ds(0,"button",74),ws("click",function(){nn(n);var t=Ds(2);return t.emitIfSelection(t.deleteAction)}),ds(1,"i",72),Js(2,"delete_forever"),fs(),ds(3,"uds-translate"),Js(4,"Delete"),fs(),fs()}}function TP(t,e){if(1&t){var n=ys();ds(0,"button",73),ws("click",function(){nn(n);var t=e.$implicit;return Ds(3).emitCustom(t)}),fs()}if(2&t){var i=e.$implicit;cs("disabled",Ds(3).isCustomDisabled(i))("innerHTML",i.html,Ir)}}function RP(t,e){if(1&t&&(ms(0),ps(1,"mat-divider"),ss(2,TP,1,2,"button",69),vs()),2&t){var n=Ds(2);Ia(2),cs("ngForOf",n.getCustomAccelerators())}}function PP(t,e){if(1&t&&(ss(0,EP,5,0,"button",68),ss(1,AP,5,0,"button",68),ss(2,DP,5,0,"button",68),ss(3,IP,1,2,"button",69),ss(4,OP,5,0,"button",70),ss(5,RP,3,1,"ng-container",8)),2&t){var n=Ds();cs("ngIf",n.detailAction.observers.length>0),Ia(1),cs("ngIf",n.editAction.observers.length>0),Ia(1),cs("ngIf",!0===n.hasPermissions),Ia(1),cs("ngForOf",n.getCustomMenu()),Ia(1),cs("ngIf",n.deleteAction.observers.length>0),Ia(1),cs("ngIf",n.hasAccelerators)}}var MP=function(){return[5,10,25,100,1e3]},FP=function(){function t(t){this.api=t,this.pageSize=10,this.newGrouped=!1,this.loaded=new Vu,this.rowSelected=new Vu,this.newAction=new Vu,this.editAction=new Vu,this.deleteAction=new Vu,this.customButtonAction=new Vu,this.detailAction=new Vu,this.title="",this.subtitle="",this.displayedColumns=[],this.columns=[],this.rowStyleInfo=null,this.dataSource=new DT([]),this.firstLoad=!0,this.loading=!1,this.lastClickInfo={time:0,x:-1e4,y:-1e4},this.contextMenuPosition={x:"0px",y:"0px"},this.filterText=""}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 Error()})}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 hy(!0===this.multiSelect,[]);var e=this.rest.permision();0==(e&yD.MANAGEMENT)&&(this.newAction.observers.length=0,this.editAction.observers.length=0,this.deleteAction.observers.length=0,this.customButtonAction.observers.length=0),e!==yD.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?LA.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!==NA.ONLY_MENU&&t.type!==NA.ACCELERATOR}):[]},t.prototype.getCustomMenu=function(){return this.customButtons?this.customButtons.filter(function(t){return t.type!==NA.ACCELERATOR}):[]},t.prototype.getCustomAccelerators=function(){return this.customButtons?this.customButtons.filter(function(t){return t.type===NA.ACCELERATOR}):[]},t.prototype.getRowColumn=function(t,e){var n=t[e.name];switch(e.type){case LA.IMAGE:return this.api.safeString(this.api.gui.icon(n,"48px"));case LA.DATE:n=vR("SHORT_DATE_FORMAT",n);break;case LA.DATETIME:n=vR("SHORT_DATETIME_FORMAT",n);break;case LA.TIME:n=vR("TIME_FORMAT",n);break;case LA.DATETIMESEC:n=vR("SHORT_DATE_FORMAT",n," H:i:s");break;case LA.ICON:try{n=this.api.gui.icon(this.types.get(t.type).icon)+n}catch(i){}return this.api.safeString(n);case LA.CALLBACK:break;case LA.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 NA.SINGLE_SELECT:return 1!==this.selection.selected.length||!0===t.disabled;case NA.MULTI_SELECT:return this.selection.isEmpty()||!0===t.disabled;default:return!1}},t.prototype.emitCustom=function(t){(this.selection.selected.length||t.type===NA.ALWAYS)&&(t.type===NA.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=0,r=this.dataSource.sortData(this.dataSource.data,this.dataSource.sort);i0),Ia(1),cs("ngIf",e.editAction.observers.length>0),Ia(1),cs("ngIf",!0===e.hasPermissions),Ia(1),cs("ngIf",e.hasCustomButtons),Ia(1),cs("ngIf",1==e.allowExport),Ia(1),cs("ngIf",e.deleteAction.observers.length>0),Ia(7),cs("ngModel",e.filterText),Ia(1),cs("ngIf",e.filterText),Ia(2),cs("pageSize",e.pageSize)("hidePageSize",!0)("pageSizeOptions",Au(27,MP))("showFirstLastButtons",!0),Ia(6),cs("dataSource",e.dataSource),Ia(1),cs("ngIf",e.hasButtons),Ia(4),cs("ngForOf",e.columns),Ia(1),cs("matHeaderRowDef",e.displayedColumns),Ia(1),cs("matRowDefColumns",e.displayedColumns),Ia(1),cs("hidden",!e.loading),Ia(5),cs("ngIf",e.hasButtons&&e.selection.selected.length>0),Ia(1),zs("left",e.contextMenuPosition.x)("top",e.contextMenuPosition.y),cs("matMenuTriggerFor",n)}},directives:[Ph,FS,yI,zT,$S,yx,aE,lO,PS,oT,mO,dT,cT,lT,Th,yT,bT,ER,qR,BR,PR,LR,RS,fI,pT,vT,kO,wT,ST,Ih,GR],pipes:[Yh,ZR],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}(),LP='pause'+django.gettext("Maintenance")+"",NP='pause'+django.gettext("Exit maintenance mode")+"",VP='pause'+django.gettext("Enter maintenance mode")+"",jP=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.cButtons=[{id:"maintenance",html:LP,type:NA.SINGLE_SELECT}]}return t.prototype.ngOnInit=function(){},Object.defineProperty(t.prototype,"customButtons",{get:function(){return this.api.user.isAdmin?this.cButtons:[]},enumerable:!1,configurable:!0}),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?LP:e.selection.selected[0].maintenance_mode?NP:VP},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)(us(dm),us(ND),us(pD))},t.\u0275cmp=ce({type:t,selectors:[["uds-services"]],decls:1,vars:7,consts:[["tableId","service-providers","icon","providers",3,"rest","onItem","multiSelect","allowExport","hasPermissions","customButtons","pageSize","customButtonAction","newAction","editAction","deleteAction","rowSelected","detailAction","loaded"]],template:function(t,e){1&t&&(ds(0,"uds-table",0),ws("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)}),fs()),2&t&&cs("rest",e.rest.providers)("onItem",e.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",e.customButtons)("pageSize",e.api.config.admin.page_size)},directives:[FP],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}(),BP=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?LA.ALPHANUMERIC:t.type},e})}return t.prototype.get=function(t){return Af},t.prototype.getLogs=function(t){return Af},t.prototype.overview=function(t){return"function"==typeof this.data?this.data():Td([])},t.prototype.summary=function(t){return this.overview()},t.prototype.put=function(t,e){return Af},t.prototype.create=function(t){return Af},t.prototype.save=function(t,e){return Af},t.prototype.test=function(t,e){return Af},t.prototype.delete=function(t){return Af},t.prototype.permision=function(){return yD.ALL},t.prototype.getPermissions=function(t){return Af},t.prototype.addPermission=function(t,e,n,i){return Af},t.prototype.revokePermission=function(t){return Af},t.prototype.types=function(){return Td([])},t.prototype.gui=function(t){return Af},t.prototype.callback=function(t,e){return Af},t.prototype.tableInfo=function(){return Td({fields:this.columnsDefinition,title:this.title})},t.prototype.detail=function(t,e){return null},t.prototype.invoke=function(t,e){return Af},t}();function zP(t,e){if(1&t){var n=ys();ds(0,"button",24),ws("click",function(){nn(n);var t=Ds();return t.filterText="",t.applyFilter()}),ds(1,"i",8),Js(2,"close"),fs(),fs()}}function HP(t,e){if(1&t&&(ds(0,"mat-header-cell",28),Js(1),fs()),2&t){var n=Ds().$implicit;Ia(1),tl(n)}}function UP(t,e){if(1&t&&(ds(0,"mat-cell"),ps(1,"div",29),fs()),2&t){var n=e.$implicit,i=Ds().$implicit,r=Ds();Ia(1),cs("innerHtml",r.getRowColumn(n,i),Ir)}}function qP(t,e){1&t&&(ms(0,25),ss(1,HP,2,1,"mat-header-cell",26),ss(2,UP,2,1,"mat-cell",27),vs()),2&t&&cs("matColumnDef",e.$implicit)}function WP(t,e){1&t&&ps(0,"mat-header-row")}function YP(t,e){if(1&t&&ps(0,"mat-row",30),2&t){var n=e.$implicit;cs("ngClass",Ds().rowClass(n))}}var GP=function(){return[5,10,25,100,1e3]},KP=function(){function t(t){this.api=t,this.pageSize=10,this.filterText="",this.title="Logs",this.displayedColumns=["date","level","source","message"],this.columns=[],this.dataSource=new DT([]),this.selection=new hy}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?LA.DATETIMESEC:LA.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=vR("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(){kR(this)},t.prototype.keyDown=function(t){switch(t.keyCode){case Ry:this.paginator.firstPage(),t.preventDefault();break;case Ty:this.paginator.lastPage(),t.preventDefault();break;case Fy:this.paginator.nextPage(),t.preventDefault();break;case Py:this.paginator.previousPage(),t.preventDefault()}},t.\u0275fac=function(e){return new(e||t)(us(pD))},t.\u0275cmp=ce({type:t,selectors:[["uds-logs-table"]],viewQuery:function(t,e){if(1&t&&(Xu(lO,3),Xu(mO,3)),2&t){var n=void 0;$u(n=Ju())&&(e.paginator=n.first),$u(n=Ju())&&(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&&(ds(0,"div",0),ds(1,"div",1),ds(2,"div",2),ps(3,"img",3),Js(4," \xa0"),ds(5,"uds-translate"),Js(6,"Logs"),fs(),fs(),fs(),ds(7,"div",4),ds(8,"div",5),ds(9,"div",6),ds(10,"a",7),ws("click",function(){return e.export()}),ds(11,"i",8),Js(12,"import_export"),fs(),ds(13,"span",9),ds(14,"uds-translate"),Js(15,"Export"),fs(),fs(),fs(),fs(),ds(16,"div",10),ds(17,"div",11),ds(18,"uds-translate"),Js(19,"Filter"),fs(),Js(20,"\xa0 "),ds(21,"mat-form-field"),ds(22,"input",12),ws("keyup",function(){return e.applyFilter()})("ngModelChange",function(t){return e.filterText=t}),fs(),ss(23,zP,3,0,"button",13),fs(),fs(),ds(24,"div",14),ps(25,"mat-paginator",15),fs(),ds(26,"div",16),ds(27,"a",17),ws("click",function(){return e.overview()}),ds(28,"i",8),Js(29,"autorenew"),fs(),fs(),fs(),fs(),fs(),ds(30,"div",18),ws("keydown",function(t){return e.keyDown(t)}),ds(31,"mat-table",19),ws("matSortChange",function(t){return e.sortChanged(t)}),ss(32,qP,3,1,"ng-container",20),ss(33,WP,1,0,"mat-header-row",21),ss(34,YP,1,1,"mat-row",22),fs(),fs(),ps(35,"div",23),fs(),fs()),2&t&&(Ia(3),cs("src",e.api.staticURL("admin/img/icons/logs.png"),Or),Ia(19),cs("ngModel",e.filterText),Ia(1),cs("ngIf",e.filterText),Ia(2),cs("pageSize",e.pageSize)("hidePageSize",!0)("pageSizeOptions",Au(11,GP))("showFirstLastButtons",!0),Ia(6),cs("dataSource",e.dataSource),Ia(1),cs("ngForOf",e.displayedColumns),Ia(1),cs("matHeaderRowDef",e.displayedColumns),Ia(1),cs("matRowDefColumns",e.displayedColumns))},directives:[FS,PS,yI,zT,$S,yx,aE,Ph,lO,oT,mO,Th,yT,bT,RS,fI,dT,cT,lT,pT,kO,vT,wT,ST,Ih],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 ZP(t,e){1&t&&(ds(0,"uds-translate"),Js(1,"Services pools"),fs())}function $P(t,e){1&t&&(ds(0,"uds-translate"),Js(1,"Logs"),fs())}var XP=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],QP=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.customButtons=[KA.getGotoButton(BA,"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 BP(django.gettext("Service pools"),function(){return t.services.invoke(t.service.id+"/servicesPools")},XP,this.service.id+"infopsls")},t.\u0275fac=function(e){return new(e||t)(us(pD),us(ND),us(hS),us(fS))},t.\u0275cmp=ce({type:t,selectors:[["uds-service-information"]],decls:17,vars:8,consts:[["mat-dialog-title",""],["mat-tab-label",""],[3,"rest","customButtons","pageSize"],[1,"content"],[3,"rest","itemId","tableId","pageSize"],["mat-raised-button","","mat-dialog-close","","color","primary"]],template:function(t,e){1&t&&(ds(0,"h4",0),ds(1,"uds-translate"),Js(2,"Information for"),fs(),Js(3),fs(),ds(4,"mat-dialog-content"),ds(5,"mat-tab-group"),ds(6,"mat-tab"),ss(7,ZP,2,0,"ng-template",1),ps(8,"uds-table",2),fs(),ds(9,"mat-tab"),ss(10,$P,2,0,"ng-template",1),ds(11,"div",3),ps(12,"uds-logs-table",4),fs(),fs(),fs(),fs(),ds(13,"mat-dialog-actions"),ds(14,"button",5),ds(15,"uds-translate"),Js(16,"Ok"),fs(),fs(),fs()),2&t&&(Ia(3),el(" ",e.service.name,"\n"),Ia(5),cs("rest",e.servicePools)("customButtons",e.customButtons)("pageSize",6),Ia(4),cs("rest",e.services)("itemId",e.service.id)("tableId","serviceInfo-d-log"+e.service.id)("pageSize",5))},directives:[kS,FS,wS,nA,YE,HE,FP,KP,CS,RS,bS],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 JP(t,e){if(1&t&&(ds(0,"div",3),ps(1,"div",4),ps(2,"div",5),fs()),2&t){var n=e.$implicit;Ia(1),cs("innerHTML",n.gui.label,Ir),Ia(1),cs("innerHTML",n.value,Ir)}}var tM=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!==HS.HIDDEN});e.forEach(function(e){var n=t.value[e.name];switch(e.gui.type){case HS.CHECKBOX:e.value=n?django.gettext("Yes"):django.gettext("No");break;case HS.PASSWORD:e.value=django.gettext("(hidden)");break;case HS.CHOICE:var i=US.locateChoice(n,e);e.value=i.text;break;case HS.MULTI_CHOICE:e.value=django.gettext("Selected items :")+n.length;break;case HS.IMAGECHOICE:i=US.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)(us(pD))},t.\u0275cmp=ce({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&&(ds(0,"div",0),ds(1,"div",1),ss(2,JP,3,2,"div",2),fs(),ps(3,"div"),fs()),2&t&&(Ia(2),cs("ngForOf",e.displayables))},directives:[Th],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 eM(t,e){1&t&&(ds(0,"uds-translate"),Js(1,"Summary"),fs())}function nM(t,e){if(1&t&&ps(0,"uds-information",15),2&t){var n=Ds(2);cs("value",n.provider)("gui",n.gui)}}function iM(t,e){1&t&&(ds(0,"uds-translate"),Js(1,"Services"),fs())}function rM(t,e){1&t&&(ds(0,"uds-translate"),Js(1,"Usage"),fs())}function aM(t,e){1&t&&(ds(0,"uds-translate"),Js(1,"Logs"),fs())}function oM(t,e){if(1&t){var n=ys();ds(0,"div",6),ds(1,"div",7),ds(2,"mat-tab-group",8),ws("selectedIndexChange",function(t){return nn(n),Ds().selectedTab=t}),ds(3,"mat-tab"),ss(4,eM,2,0,"ng-template",9),ds(5,"div",10),ss(6,nM,1,2,"uds-information",11),fs(),fs(),ds(7,"mat-tab"),ss(8,iM,2,0,"ng-template",9),ds(9,"div",10),ds(10,"uds-table",12),ws("newAction",function(t){return nn(n),Ds().onNewService(t)})("editAction",function(t){return nn(n),Ds().onEditService(t)})("deleteAction",function(t){return nn(n),Ds().onDeleteService(t)})("customButtonAction",function(t){return nn(n),Ds().onInformation(t)})("loaded",function(t){return nn(n),Ds().onLoad(t)}),fs(),fs(),fs(),ds(11,"mat-tab"),ss(12,rM,2,0,"ng-template",9),ds(13,"div",10),ds(14,"uds-table",13),ws("deleteAction",function(t){return nn(n),Ds().onDeleteUsage(t)}),fs(),fs(),fs(),ds(15,"mat-tab"),ss(16,aM,2,0,"ng-template",9),ds(17,"div",10),ps(18,"uds-logs-table",14),fs(),fs(),fs(),fs(),fs()}if(2&t){var i=Ds();Ia(2),cs("selectedIndex",i.selectedTab)("@.disabled",!0),Ia(4),cs("ngIf",i.provider&&i.gui),Ia(4),cs("rest",i.services)("multiSelect",!0)("allowExport",!0)("customButtons",i.customButtons)("pageSize",i.api.config.admin.page_size)("tableId","providers-d-services"+i.provider.id),Ia(4),cs("rest",i.usage)("multiSelect",!0)("allowExport",!0)("pageSize",i.api.config.admin.page_size)("tableId","providers-d-usage"+i.provider.id),Ia(4),cs("rest",i.services.parentModel)("itemId",i.provider.id)("tableId","providers-d-log"+i.provider.id)}}var sM=function(t){return["/providers",t]},lM=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:NA.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){QP.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)(us(dm),us(ND),us(pD))},t.\u0275cmp=ce({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","pageSize","tableId","newAction","editAction","deleteAction","customButtonAction","loaded"],["icon","usage",3,"rest","multiSelect","allowExport","pageSize","tableId","deleteAction"],[3,"rest","itemId","tableId"],[3,"value","gui"]],template:function(t,e){1&t&&(ds(0,"div",0),ds(1,"div",1),ds(2,"a",2),ds(3,"i",3),Js(4,"arrow_back"),fs(),fs(),Js(5," \xa0"),ps(6,"img",4),Js(7),fs(),ss(8,oM,19,17,"div",5),fs()),2&t&&(Ia(2),cs("routerLink",Du(4,sM,e.services.parentId)),Ia(4),cs("src",e.api.staticURL("admin/img/icons/services.png"),Or),Ia(1),el(" \xa0",null==e.provider?null:e.provider.name," "),Ia(1),cs("ngIf",null!==e.provider))},directives:[Bv,Ph,nA,YE,HE,FP,KP,FS,tM],styles:[""]}),t}(),uM=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)(us(pD),us(dm),us(ND))},t.\u0275cmp=ce({type:t,selectors:[["uds-authenticators"]],decls:2,vars:6,consts:[["icon","authenticators",3,"rest","multiSelect","allowExport","hasPermissions","onItem","pageSize","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,e){1&t&&(ds(0,"div"),ds(1,"uds-table",0),ws("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)}),fs(),fs()),2&t&&(Ia(1),cs("rest",e.rest.authenticators)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",e.processElement)("pageSize",e.api.config.admin.page_size))},directives:[FP],styles:[""]}),t}(),cM=["panel"];function hM(t,e){if(1&t&&(ds(0,"div",0,1),Ts(2),fs()),2&t){var n=e.id,i=Ds();cs("id",i.id)("ngClass",i._classList),as("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(n))}}var dM=["*"],fM=0,pM=function t(e,n){a(this,t),this.source=e,this.option=n},mM=mC(function t(){a(this,t)}),vM=new bi("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}}),gM=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o){var s;return a(this,n),(s=e.call(this))._changeDetectorRef=t,s._elementRef=i,s._activeOptionChanges=A.EMPTY,s.showPanel=!1,s._isOpen=!1,s.displayWith=null,s.optionSelected=new Vu,s.opened=new Vu,s.closed=new Vu,s.optionActivated=new Vu,s._classList={},s.id="mat-autocomplete-".concat(fM++),s.inertGroups=(null==o?void 0:o.SAFARI)||!1,s._autoActiveFirstOption=!!r.autoActiveFirstOption,s}return s(n,[{key:"ngAfterContentInit",value:function(){var t=this;this._keyManager=new V_(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(function(e){t.optionActivated.emit({source:t,option:t.options.toArray()[e]||null})}),this._setVisibility()}},{key:"ngOnDestroy",value:function(){this._activeOptionChanges.unsubscribe()}},{key:"_setScrollTop",value:function(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}},{key:"_getScrollTop",value:function(){return this.panel?this.panel.nativeElement.scrollTop:0}},{key:"_setVisibility",value:function(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}},{key:"_emitSelectEvent",value:function(t){var e=new pM(this,t);this.optionSelected.emit(e)}},{key:"_getPanelAriaLabelledby",value:function(t){return this.ariaLabel?null:this.ariaLabelledby?t+" "+this.ariaLabelledby:t}},{key:"_setVisibilityClasses",value:function(t){t[this._visibleClass]=this.showPanel,t[this._hiddenClass]=!this.showPanel}},{key:"isOpen",get:function(){return this._isOpen&&this.showPanel}},{key:"autoActiveFirstOption",get:function(){return this._autoActiveFirstOption},set:function(t){this._autoActiveFirstOption=cg(t)}},{key:"classList",set:function(t){this._classList=t&&t.length?vg(t).reduce(function(t,e){return t[e]=!0,t},{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}}]),n}(mM);return t.\u0275fac=function(e){return new(e||t)(us(tu),us(Dl),us(vM),us(Qg))},t.\u0275dir=ve({type:t,viewQuery:function(t,e){var n;1&t&&(Xu(su,3),Xu(cM,1)),2&t&&($u(n=Ju())&&(e.template=n.first),$u(n=Ju())&&(e.panel=n.first))},inputs:{displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[Yo]}),t}(),yM=function(){var t=function(t){u(n,t);var e=p(n);function n(){var t;return a(this,n),(t=e.apply(this,arguments))._visibleClass="mat-autocomplete-visible",t._hiddenClass="mat-autocomplete-hidden",t}return n}(gM);return t.\u0275fac=function(e){return _M(e||t)},t.\u0275cmp=ce({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(t,e,n){var i;1&t&&(Qu(n,$C,1),Qu(n,tS,1)),2&t&&($u(i=Ju())&&(e.optionGroups=i),$u(i=Ju())&&(e.options=i))},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[bl([{provide:YC,useExisting:t}]),Yo],ngContentSelectors:dM,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,e){1&t&&(Os(),ss(0,hM,3,4,"ng-template"))},directives:[Ih],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}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),t}(),_M=mi(yM),bM=new bi("mat-autocomplete-scroll-strategy"),kM={provide:bM,deps:[d_],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},wM={provide:WS,useExisting:xt(function(){return SM}),multi:!0},CM=function(){var t=function(){function t(e,n,i,r,o,s,l,u,c,h,d){var f=this;a(this,t),this._element=e,this._overlay=n,this._viewContainerRef=i,this._zone=r,this._changeDetectorRef=o,this._dir=l,this._formField=u,this._document=c,this._viewportRuler=h,this._defaults=d,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=A.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new q,this._windowBlurHandler=function(){f._canOpenOnNextFocus=f._document.activeElement!==f._element.nativeElement||f.panelOpen},this._onChange=function(){},this._onTouched=function(){},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=If(function(){return f.autocomplete&&f.autocomplete.options?dt.apply(void 0,b(f.autocomplete.options.map(function(t){return t.onSelectionChange}))):f._zone.onStable.pipe(Mf(1),Of(function(){return f.optionSelections}))}),this._scrollStrategy=s}return s(t,[{key:"ngAfterViewInit",value:function(){var t=this,e=this._getWindow();void 0!==e&&this._zone.runOutsideAngular(function(){return e.addEventListener("blur",t._windowBlurHandler)})}},{key:"ngOnChanges",value:function(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}},{key:"ngOnDestroy",value:function(){var t=this._getWindow();void 0!==t&&t.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}},{key:"openPanel",value:function(){this._attachOverlay(),this._floatLabel()}},{key:"closePanel",value: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())}},{key:"updatePosition",value:function(){this._overlayAttached&&this._overlayRef.updatePosition()}},{key:"_getOutsideClickStream",value:function(){var t=this;return dt(gg(this._document,"click"),gg(this._document,"auxclick"),gg(this._document,"touchend")).pipe(Pd(function(e){var n=t._isInsideShadowRoot&&e.composedPath?e.composedPath()[0]:e.target,i=t._formField?t._formField._elementRef.nativeElement:null,r=t.connectedTo?t.connectedTo.elementRef.nativeElement:null;return t._overlayAttached&&n!==t._element.nativeElement&&(!i||!i.contains(n))&&(!r||!r.contains(n))&&!!t._overlayRef&&!t._overlayRef.overlayElement.contains(n)}))}},{key:"writeValue",value:function(t){var e=this;Promise.resolve(null).then(function(){return e._setTriggerValue(t)})}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this._element.nativeElement.disabled=t}},{key:"_handleKeydown",value:function(t){var e=t.keyCode;if(e!==Iy||Ny(t)||t.preventDefault(),this.activeOption&&e===Dy&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){var n=this.autocomplete._keyManager.activeItem,i=e===My||e===Ly;this.panelOpen||9===e?this.autocomplete._keyManager.onKeydown(t):i&&this._canOpen()&&this.openPanel(),(i||this.autocomplete._keyManager.activeItem!==n)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}},{key:"_handleInput",value: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())}},{key:"_handleFocus",value:function(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}},{key:"_floatLabel",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._formField&&"auto"===this._formField.floatLabel&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}},{key:"_resetLabel",value:function(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}},{key:"_subscribeToClosingActions",value:function(){var t=this;return dt(this._zone.onStable.pipe(Mf(1)),this.autocomplete.options.changes.pipe(np(function(){return t._positionStrategy.reapplyLastPosition()}),OT(0))).pipe(Of(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}),Mf(1)).subscribe(function(e){return t._setValueAndClose(e)})}},{key:"_destroyPanel",value:function(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}},{key:"_setTriggerValue",value: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}},{key:"_setValueAndClose",value: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()}},{key:"_clearPreviousSelectedOption",value:function(t){this.autocomplete.options.forEach(function(e){e!==t&&e.selected&&e.deselect()})}},{key:"_attachOverlay",value:function(){var t,e=this;null==this._isInsideShadowRoot&&(this._isInsideShadowRoot=!!ry(this._element.nativeElement));var n=this._overlayRef;n?(this._positionStrategy.setOrigin(this._getConnectedElement()),n.updateSize({width:this._getPanelWidth()})):(this._portal=new _y(this.autocomplete.template,this._viewContainerRef,{id:null===(t=this._formField)||void 0===t?void 0:t._labelId}),n=this._overlay.create(this._getOverlayConfig()),this._overlayRef=n,n.keydownEvents().subscribe(function(t){(t.keyCode===Iy&&!Ny(t)||t.keyCode===My&&Ny(t,"altKey"))&&(e._resetActiveItem(),e._closeKeyEventStream.next(),t.stopPropagation(),t.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(function(){e.panelOpen&&n&&n.updateSize({width:e._getPanelWidth()})})),n&&!n.hasAttached()&&(n.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());var i=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&i!==this.panelOpen&&this.autocomplete.opened.emit()}},{key:"_getOverlayConfig",value:function(){var t;return new Yy({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(t=this._defaults)||void 0===t?void 0:t.overlayPanelClass})}},{key:"_getOverlayPosition",value:function(){var t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}},{key:"_setStrategyPositions",value:function(t){var e,n=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],i=this._aboveClass,r=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:i},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:i}];e="above"===this.position?r:"below"===this.position?n:[].concat(n,r),t.withPositions(e)}},{key:"_getConnectedElement",value:function(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}},{key:"_getPanelWidth",value:function(){return this.autocomplete.panelWidth||this._getHostWidth()}},{key:"_getHostWidth",value:function(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}},{key:"_resetActiveItem",value:function(){var t=this.autocomplete;t.autoActiveFirstOption?t._keyManager.setFirstItemActive():t._keyManager.setActiveItem(-1)}},{key:"_canOpen",value:function(){var t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this._autocompleteDisabled}},{key:"_getWindow",value:function(){var t;return(null===(t=this._document)||void 0===t?void 0:t.defaultView)||window}},{key:"_scrollToOption",value:function(t){var e=this.autocomplete,n=eS(t,e.options,e.optionGroups);if(0===t&&1===n)e._setScrollTop(0);else{var i=e.options.toArray()[t];if(i){var r=i._getHostElement(),a=nS(r.offsetTop,r.offsetHeight,e._getScrollTop(),e.panel.nativeElement.offsetHeight);e._setScrollTop(a)}}}},{key:"autocompleteDisabled",get:function(){return this._autocompleteDisabled},set:function(t){this._autocompleteDisabled=cg(t)}},{key:"panelOpen",get:function(){return this._overlayAttached&&this.autocomplete.showPanel}},{key:"panelClosingActions",get:function(){var t=this;return dt(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Pd(function(){return t._overlayAttached})),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Pd(function(){return t._overlayAttached})):Td()).pipe(G(function(t){return t instanceof QC?t:null}))}},{key:"activeOption",get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(Dl),us(d_),us(fu),us(xc),us(tu),us(bM),us(oy,8),us(gI,9),us(sh,8),us(py),us(vM,8))},t.\u0275dir=ve({type:t,inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},features:[Oe]}),t}(),SM=function(){var t=function(t){u(n,t);var e=p(n);function n(){var t;return a(this,n),(t=e.apply(this,arguments))._aboveClass="mat-autocomplete-panel-above",t}return n}(CM);return t.\u0275fac=function(e){return xM(e||t)},t.\u0275dir=ve({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,e){1&t&&ws("focusin",function(){return e._handleFocus()})("blur",function(){return e._onTouched()})("input",function(t){return e._handleInput(t)})("keydown",function(t){return e._handleKeydown(t)}),2&t&&as("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==e.autocomplete?null:e.autocomplete.id)("aria-haspopup",!e.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[bl([wM]),Yo]}),t}(),xM=mi(SM),EM=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({providers:[kM],imports:[[y_,iS,dC,Kh],my,iS,dC]}),t}();function AM(t,e){if(1&t&&(ds(0,"div"),ds(1,"uds-translate"),Js(2,"Edit user"),fs(),Js(3),fs()),2&t){var n=Ds();Ia(3),el(" ",n.user.name," ")}}function DM(t,e){1&t&&(ds(0,"uds-translate"),Js(1,"New user"),fs())}function IM(t,e){if(1&t){var n=ys();ds(0,"mat-form-field"),ds(1,"mat-label"),Js(2),fs(),ds(3,"input",18),ws("ngModelChange",function(t){return nn(n),Ds().user.name=t}),fs(),fs()}if(2&t){var i=Ds();Ia(2),el(" ",i.authenticator.type_info.userNameLabel," "),Ia(1),cs("ngModel",i.user.name)("disabled",i.user.id)}}function OM(t,e){if(1&t&&(ds(0,"mat-option",21),Js(1),fs()),2&t){var n=e.$implicit;cs("value",n.id),Ia(1),nl(" ",n.id," (",n.name,") ")}}function TM(t,e){if(1&t){var n=ys();ds(0,"mat-form-field"),ds(1,"mat-label"),Js(2),fs(),ds(3,"input",19),ws("ngModelChange",function(t){return nn(n),Ds().user.name=t})("input",function(t){return nn(n),Ds().filterUser(t)}),fs(),ds(4,"mat-autocomplete",null,20),ss(6,OM,2,3,"mat-option",15),fs(),fs()}if(2&t){var i=ls(5),r=Ds();Ia(2),el(" ",r.authenticator.type_info.userNameLabel," "),Ia(1),cs("ngModel",r.user.name)("matAutocomplete",i),Ia(3),cs("ngForOf",r.users)}}function RM(t,e){if(1&t){var n=ys();ds(0,"mat-form-field"),ds(1,"mat-label"),Js(2),fs(),ds(3,"input",22),ws("ngModelChange",function(t){return nn(n),Ds().user.password=t}),fs(),fs()}if(2&t){var i=Ds();Ia(2),el(" ",i.authenticator.type_info.passwordLabel," "),Ia(1),cs("ngModel",i.user.password)}}function PM(t,e){if(1&t&&(ds(0,"mat-option",21),Js(1),fs()),2&t){var n=e.$implicit;cs("value",n.id),Ia(1),el(" ",n.name," ")}}var MM=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Vu(!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)(us(pD),us(ND),us(hS),us(fS))},t.\u0275cmp=ce({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&&(ds(0,"h4",0),ss(1,AM,4,1,"div",1),ss(2,DM,2,0,"ng-template",null,2,ic),fs(),ds(4,"mat-dialog-content"),ds(5,"div",3),ss(6,IM,4,3,"mat-form-field",4),ss(7,TM,7,4,"mat-form-field",4),ds(8,"mat-form-field"),ds(9,"mat-label"),ds(10,"uds-translate"),Js(11,"Real name"),fs(),fs(),ds(12,"input",5),ws("ngModelChange",function(t){return e.user.real_name=t}),fs(),fs(),ds(13,"mat-form-field"),ds(14,"mat-label"),ds(15,"uds-translate"),Js(16,"Comments"),fs(),fs(),ds(17,"input",5),ws("ngModelChange",function(t){return e.user.comments=t}),fs(),fs(),ds(18,"mat-form-field"),ds(19,"mat-label"),ds(20,"uds-translate"),Js(21,"State"),fs(),fs(),ds(22,"mat-select",6),ws("ngModelChange",function(t){return e.user.state=t}),ds(23,"mat-option",7),ds(24,"uds-translate"),Js(25,"Enabled"),fs(),fs(),ds(26,"mat-option",8),ds(27,"uds-translate"),Js(28,"Disabled"),fs(),fs(),ds(29,"mat-option",9),ds(30,"uds-translate"),Js(31,"Blocked"),fs(),fs(),fs(),fs(),ds(32,"mat-form-field"),ds(33,"mat-label"),ds(34,"uds-translate"),Js(35,"Role"),fs(),fs(),ds(36,"mat-select",10),ws("ngModelChange",function(t){return e.user.role=t})("valueChange",function(t){return e.roleChanged(t)}),ds(37,"mat-option",11),ds(38,"uds-translate"),Js(39,"Admin"),fs(),fs(),ds(40,"mat-option",12),ds(41,"uds-translate"),Js(42,"Staff member"),fs(),fs(),ds(43,"mat-option",13),ds(44,"uds-translate"),Js(45,"User"),fs(),fs(),fs(),fs(),ss(46,RM,4,2,"mat-form-field",4),ds(47,"mat-form-field"),ds(48,"mat-label"),ds(49,"uds-translate"),Js(50,"Groups"),fs(),fs(),ds(51,"mat-select",14),ws("ngModelChange",function(t){return e.user.groups=t}),ss(52,PM,2,2,"mat-option",15),fs(),fs(),fs(),fs(),ds(53,"mat-dialog-actions"),ds(54,"button",16),ds(55,"uds-translate"),Js(56,"Cancel"),fs(),fs(),ds(57,"button",17),ws("click",function(){return e.save()}),ds(58,"uds-translate"),Js(59,"Ok"),fs(),fs(),fs()),2&t){var n=ls(3);Ia(1),cs("ngIf",e.user.id)("ngIfElse",n),Ia(5),cs("ngIf",!1===e.authenticator.type_info.canSearchUsers||e.user.id),Ia(1),cs("ngIf",!0===e.authenticator.type_info.canSearchUsers&&!e.user.id),Ia(5),cs("ngModel",e.user.real_name),Ia(5),cs("ngModel",e.user.comments),Ia(5),cs("ngModel",e.user.state),Ia(14),cs("ngModel",e.user.role),Ia(10),cs("ngIf",e.authenticator.type_info.needsPassword),Ia(5),cs("ngModel",e.user.groups),Ia(1),cs("ngForOf",e.groups)}},directives:[kS,Ph,wS,yI,uI,FS,zT,$S,yx,aE,BI,tS,Th,CS,RS,bS,SM,yM],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}(),FM=["thumbContainer"],LM=["toggleBar"],NM=["input"],VM=function(){return{enterDuration:150}},jM=["*"],BM=new bi("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1}}}),zM=0,HM={provide:WS,useExisting:xt(function(){return WM}),multi:!0},UM=function t(e,n){a(this,t),this.source=e,this.checked=n},qM=vC(pC(mC(fC(function t(e){a(this,t),this._elementRef=e})),"accent")),WM=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,s,l){var u;return a(this,n),(u=e.call(this,t))._focusMonitor=i,u._changeDetectorRef=r,u.defaults=s,u._animationMode=l,u._onChange=function(t){},u._onTouched=function(){},u._uniqueId="mat-slide-toggle-".concat(++zM),u._required=!1,u._checked=!1,u.name=null,u.id=u._uniqueId,u.labelPosition="after",u.ariaLabel=null,u.ariaLabelledby=null,u.change=new Vu,u.toggleChange=new Vu,u.tabIndex=parseInt(o)||0,u}return s(n,[{key:"ngAfterContentInit",value:function(){var t=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(e){"keyboard"===e||"program"===e?t._inputElement.nativeElement.focus():e||Promise.resolve().then(function(){return t._onTouched()})})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"_onChangeEvent",value:function(t){t.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}},{key:"_onInputClick",value:function(t){t.stopPropagation()}},{key:"writeValue",value:function(t){this.checked=!!t}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t,this._changeDetectorRef.markForCheck()}},{key:"focus",value:function(t,e){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}},{key:"toggle",value:function(){this.checked=!this.checked,this._onChange(this.checked)}},{key:"_emitChangeEvent",value:function(){this._onChange(this.checked),this.change.emit(new UM(this,this.checked))}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}},{key:"required",get:function(){return this._required},set:function(t){this._required=cg(t)}},{key:"checked",get:function(){return this._checked},set:function(t){this._checked=cg(t),this._changeDetectorRef.markForCheck()}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}}]),n}(qM);return t.\u0275fac=function(e){return new(e||t)(us(Dl),us(tb),us(tu),gi("tabindex"),us(BM),us(eC,8))},t.\u0275cmp=ce({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(t,e){var n;1&t&&(Xu(FM,1),Xu(LM,1),Xu(NM,1)),2&t&&($u(n=Ju())&&(e._thumbEl=n.first),$u(n=Ju())&&(e._thumbBarEl=n.first),$u(n=Ju())&&(e._inputElement=n.first))},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(t,e){2&t&&(il("id",e.id),as("tabindex",e.disabled?null:-1)("aria-label",null)("aria-labelledby",null),Hs("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",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[bl([HM]),Yo],ngContentSelectors:jM,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"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",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&&(Os(),ds(0,"label",0,1),ds(2,"div",2,3),ds(4,"input",4,5),ws("change",function(t){return e._onChangeEvent(t)})("click",function(t){return e._onInputClick(t)}),fs(),ds(6,"div",6,7),ps(8,"div",8),ds(9,"div",9),ps(10,"div",10),fs(),fs(),fs(),ds(11,"span",11,12),ws("cdkObserveContent",function(){return e._onLabelTextChange()}),ds(13,"span",13),Js(14,"\xa0"),fs(),Ts(15),fs(),fs()),2&t){var n=ls(1),i=ls(12);as("for",e.inputId),Ia(2),Hs("mat-slide-toggle-bar-no-side-margin",!i.textContent||!i.textContent.trim()),Ia(2),cs("id",e.inputId)("required",e.required)("tabIndex",e.tabIndex)("checked",e.checked)("disabled",e.disabled),as("name",e.name)("aria-checked",e.checked.toString())("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),Ia(5),cs("matRippleTrigger",n)("matRippleDisabled",e.disableRipple||e.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",Au(17,VM))}},directives:[HC,x_],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline: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}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .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}._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}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),t}(),YM={provide:JS,useExisting:xt(function(){return GM}),multi:!0},GM=function(){var t=function(t){u(n,t);var e=p(n);function n(){return a(this,n),e.apply(this,arguments)}return n}(fE);return t.\u0275fac=function(e){return KM(e||t)},t.\u0275dir=ve({type:t,selectors:[["mat-slide-toggle","required","","formControlName",""],["mat-slide-toggle","required","","formControl",""],["mat-slide-toggle","required","","ngModel",""]],features:[bl([YM]),Yo]}),t}(),KM=mi(GM),ZM=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({}),t}(),$M=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({imports:[[ZM,UC,dC,E_],ZM,dC]}),t}();function XM(t,e){if(1&t&&(ds(0,"div"),ds(1,"uds-translate"),Js(2,"Edit group"),fs(),Js(3),fs()),2&t){var n=Ds();Ia(3),el(" ",n.group.name," ")}}function QM(t,e){1&t&&(ds(0,"uds-translate"),Js(1,"New group"),fs())}function JM(t,e){if(1&t){var n=ys();ds(0,"mat-form-field"),ds(1,"mat-label"),Js(2),fs(),ds(3,"input",13),ws("ngModelChange",function(t){return nn(n),Ds(2).group.name=t}),fs(),fs()}if(2&t){var i=Ds(2);Ia(2),el(" ",i.authenticator.type_info.groupNameLabel," "),Ia(1),cs("ngModel",i.group.name)("disabled",i.group.id)}}function tF(t,e){if(1&t&&(ds(0,"mat-option",17),Js(1),fs()),2&t){var n=e.$implicit;cs("value",n.id),Ia(1),nl(" ",n.id," (",n.name,") ")}}function eF(t,e){if(1&t){var n=ys();ds(0,"mat-form-field"),ds(1,"mat-label"),Js(2),fs(),ds(3,"input",14),ws("ngModelChange",function(t){return nn(n),Ds(2).group.name=t})("input",function(t){return nn(n),Ds(2).filterGroup(t)}),fs(),ds(4,"mat-autocomplete",null,15),ss(6,tF,2,3,"mat-option",16),fs(),fs()}if(2&t){var i=ls(5),r=Ds(2);Ia(2),el(" ",r.authenticator.type_info.groupNameLabel," "),Ia(1),cs("ngModel",r.group.name)("matAutocomplete",i),Ia(3),cs("ngForOf",r.fltrGroup)}}function nF(t,e){if(1&t&&(ms(0),ss(1,JM,4,3,"mat-form-field",12),ss(2,eF,7,4,"mat-form-field",12),vs()),2&t){var n=Ds();Ia(1),cs("ngIf",!1===n.authenticator.type_info.canSearchGroups||n.group.id),Ia(1),cs("ngIf",!0===n.authenticator.type_info.canSearchGroups&&!n.group.id)}}function iF(t,e){if(1&t){var n=ys();ds(0,"mat-form-field"),ds(1,"mat-label"),ds(2,"uds-translate"),Js(3,"Meta group name"),fs(),fs(),ds(4,"input",13),ws("ngModelChange",function(t){return nn(n),Ds().group.name=t}),fs(),fs()}if(2&t){var i=Ds();Ia(4),cs("ngModel",i.group.name)("disabled",i.group.id)}}function rF(t,e){if(1&t&&(ds(0,"mat-option",17),Js(1),fs()),2&t){var n=e.$implicit;cs("value",n.id),Ia(1),el(" ",n.name," ")}}function aF(t,e){if(1&t){var n=ys();ms(0),ds(1,"mat-form-field"),ds(2,"mat-label"),ds(3,"uds-translate"),Js(4,"Service Pools"),fs(),fs(),ds(5,"mat-select",18),ws("ngModelChange",function(t){return nn(n),Ds().group.pools=t}),ss(6,rF,2,2,"mat-option",16),fs(),fs(),vs()}if(2&t){var i=Ds();Ia(5),cs("ngModel",i.group.pools),Ia(1),cs("ngForOf",i.servicePools)}}function oF(t,e){if(1&t&&(ds(0,"mat-option",17),Js(1),fs()),2&t){var n=Ds().$implicit;cs("value",n.id),Ia(1),el(" ",n.name," ")}}function sF(t,e){if(1&t&&(ms(0),ss(1,oF,2,2,"mat-option",22),vs()),2&t){var n=e.$implicit;Ia(1),cs("ngIf","group"===n.type)}}function lF(t,e){if(1&t){var n=ys();ds(0,"div",19),ds(1,"span",20),ds(2,"uds-translate"),Js(3,"Match mode"),fs(),fs(),ds(4,"mat-slide-toggle",6),ws("ngModelChange",function(t){return nn(n),Ds().group.meta_if_any=t}),Js(5),fs(),fs(),ds(6,"mat-form-field"),ds(7,"mat-label"),ds(8,"uds-translate"),Js(9,"Selected Groups"),fs(),fs(),ds(10,"mat-select",18),ws("ngModelChange",function(t){return nn(n),Ds().group.groups=t}),ss(11,sF,2,1,"ng-container",21),fs(),fs()}if(2&t){var i=Ds();Ia(4),cs("ngModel",i.group.meta_if_any),Ia(1),el(" ",i.getMatchValue()," "),Ia(5),cs("ngModel",i.group.groups),Ia(1),cs("ngForOf",i.groups)}}var uF=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Vu(!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 a=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:a,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)(us(pD),us(ND),us(hS),us(fS))},t.\u0275cmp=ce({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&&(ds(0,"h4",0),ss(1,XM,4,1,"div",1),ss(2,QM,2,0,"ng-template",null,2,ic),fs(),ds(4,"mat-dialog-content"),ds(5,"div",3),ss(6,nF,3,2,"ng-container",1),ss(7,iF,5,2,"ng-template",null,4,ic),ds(9,"mat-form-field"),ds(10,"mat-label"),ds(11,"uds-translate"),Js(12,"Comments"),fs(),fs(),ds(13,"input",5),ws("ngModelChange",function(t){return e.group.comments=t}),fs(),fs(),ds(14,"mat-form-field"),ds(15,"mat-label"),ds(16,"uds-translate"),Js(17,"State"),fs(),fs(),ds(18,"mat-select",6),ws("ngModelChange",function(t){return e.group.state=t}),ds(19,"mat-option",7),ds(20,"uds-translate"),Js(21,"Enabled"),fs(),fs(),ds(22,"mat-option",8),ds(23,"uds-translate"),Js(24,"Disabled"),fs(),fs(),fs(),fs(),ss(25,aF,7,2,"ng-container",1),ss(26,lF,12,4,"ng-template",null,9,ic),fs(),fs(),ds(28,"mat-dialog-actions"),ds(29,"button",10),ds(30,"uds-translate"),Js(31,"Cancel"),fs(),fs(),ds(32,"button",11),ws("click",function(){return e.save()}),ds(33,"uds-translate"),Js(34,"Ok"),fs(),fs(),fs()),2&t){var n=ls(3),i=ls(8),r=ls(27);Ia(1),cs("ngIf",e.group.id)("ngIfElse",n),Ia(5),cs("ngIf","group"===e.group.type)("ngIfElse",i),Ia(7),cs("ngModel",e.group.comments),Ia(5),cs("ngModel",e.group.state),Ia(7),cs("ngIf","group"===e.group.type)("ngIfElse",r)}},directives:[kS,Ph,wS,yI,uI,FS,zT,$S,yx,aE,BI,tS,CS,RS,bS,SM,yM,Th,WM],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 cF(t,e){1&t&&(ds(0,"uds-translate"),Js(1,"Groups"),fs())}function hF(t,e){if(1&t&&(ds(0,"mat-tab"),ss(1,cF,2,0,"ng-template",3),ps(2,"uds-table",4),fs()),2&t){var n=Ds();Ia(2),cs("rest",n.group)("pageSize",6)}}function dF(t,e){1&t&&(ds(0,"uds-translate"),Js(1,"Services Pools"),fs())}function fF(t,e){if(1&t&&(ds(0,"mat-tab"),ss(1,dF,2,0,"ng-template",3),ps(2,"uds-table",4),fs()),2&t){var n=Ds();Ia(2),cs("rest",n.servicesPools)("pageSize",6)}}function pF(t,e){1&t&&(ds(0,"uds-translate"),Js(1,"Assigned Services"),fs())}function mF(t,e){if(1&t&&(ds(0,"mat-tab"),ss(1,pF,2,0,"ng-template",3),ps(2,"uds-table",4),fs()),2&t){var n=Ds();Ia(2),cs("rest",n.userServices)("pageSize",6)}}var vF=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],gF=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],yF=[{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")}],_F=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 BP(django.gettext("Groups"),function(){return t.rest.authenticators.detail(t.users.parentId,"groups").overview().pipe(G(function(t){return t.filter(function(t){return e.groups.includes(t.id)})}))},vF,t.user.id+"infogrp"),t.servicesPools=new BP(django.gettext("Services Pools"),function(){return t.users.invoke(t.user.id+"/servicesPools")},gF,t.user.id+"infopool"),t.userServices=new BP(django.gettext("Assigned services"),function(){return t.users.invoke(t.user.id+"/userServices").pipe(G(function(e){return e.map(function(e){return e.in_use=t.api.yesno(e.in_use),e})}))},yF,t.user.id+"userservpool")})},t.\u0275fac=function(e){return new(e||t)(us(pD),us(ND),us(hS),us(fS))},t.\u0275cmp=ce({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",""],[3,"rest","pageSize"]],template:function(t,e){1&t&&(ds(0,"h4",0),ds(1,"uds-translate"),Js(2,"Information for"),fs(),Js(3),fs(),ds(4,"mat-dialog-content"),ds(5,"mat-tab-group"),ss(6,hF,3,2,"mat-tab",1),ss(7,fF,3,2,"mat-tab",1),ss(8,mF,3,2,"mat-tab",1),fs(),fs(),ds(9,"mat-dialog-actions"),ds(10,"button",2),ds(11,"uds-translate"),Js(12,"Ok"),fs(),fs(),fs()),2&t&&(Ia(3),el(" ",e.user.name,"\n"),Ia(3),cs("ngIf",e.group),Ia(1),cs("ngIf",e.servicesPools),Ia(1),cs("ngIf",e.userServices))},directives:[kS,FS,wS,nA,Ph,CS,RS,bS,YE,HE,FP],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}();function bF(t,e){1&t&&(ds(0,"uds-translate"),Js(1,"Services Pools"),fs())}function kF(t,e){if(1&t&&(ds(0,"mat-tab"),ss(1,bF,2,0,"ng-template",3),ps(2,"uds-table",4),fs()),2&t){var n=Ds();Ia(2),cs("rest",n.servicesPools)("pageSize",6)}}function wF(t,e){1&t&&(ds(0,"uds-translate"),Js(1,"Users"),fs())}function CF(t,e){if(1&t&&(ds(0,"mat-tab"),ss(1,wF,2,0,"ng-template",3),ps(2,"uds-table",4),fs()),2&t){var n=Ds();Ia(2),cs("rest",n.users)("pageSize",6)}}function SF(t,e){1&t&&(ds(0,"uds-translate"),Js(1,"Groups"),fs())}function xF(t,e){if(1&t&&(ds(0,"mat-tab"),ss(1,SF,2,0,"ng-template",3),ps(2,"uds-table",4),fs()),2&t){var n=Ds();Ia(2),cs("rest",n.groups)("pageSize",6)}}var EF=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],AF=[{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:LA.DATETIME}],DF=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],IF=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 BP(django.gettext("Service pools"),function(){return e.invoke(t.data.group.id+"/servicesPools")},EF,this.data.group.id+"infopls"),this.users=new BP(django.gettext("Users"),function(){return e.invoke(t.data.group.id+"/users").pipe(G(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})}))},AF,this.data.group.id+"infousr"),"meta"===this.data.group.type&&(this.groups=new BP(django.gettext("Groups"),function(){return e.overview().pipe(G(function(e){return e.filter(function(e){return t.data.group.groups.includes(e.id)})}))},DF,this.data.group.id+"infogrps"))},t.\u0275fac=function(e){return new(e||t)(us(pD),us(ND),us(hS),us(fS))},t.\u0275cmp=ce({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",""],[3,"rest","pageSize"]],template:function(t,e){1&t&&(ds(0,"h4",0),ds(1,"uds-translate"),Js(2,"Information for"),fs(),fs(),ds(3,"mat-dialog-content"),ds(4,"mat-tab-group"),ss(5,kF,3,2,"mat-tab",1),ss(6,CF,3,2,"mat-tab",1),ss(7,xF,3,2,"mat-tab",1),fs(),fs(),ds(8,"mat-dialog-actions"),ds(9,"button",2),ds(10,"uds-translate"),Js(11,"Ok"),fs(),fs(),fs()),2&t&&(Ia(5),cs("ngIf",e.servicesPools),Ia(1),cs("ngIf",e.users),Ia(1),cs("ngIf",e.groups))},directives:[kS,FS,wS,nA,Ph,CS,RS,bS,YE,HE,FP],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}();function OF(t,e){1&t&&(ds(0,"uds-translate"),Js(1,"Summary"),fs())}function TF(t,e){if(1&t&&ps(0,"uds-information",16),2&t){var n=Ds(2);cs("value",n.authenticator)("gui",n.gui)}}function RF(t,e){1&t&&(ds(0,"uds-translate"),Js(1,"Users"),fs())}function PF(t,e){if(1&t){var n=ys();ds(0,"uds-table",17),ws("loaded",function(t){return nn(n),Ds(2).onLoad(t)})("newAction",function(t){return nn(n),Ds(2).onNewUser(t)})("editAction",function(t){return nn(n),Ds(2).onEditUser(t)})("deleteAction",function(t){return nn(n),Ds(2).onDeleteUser(t)})("customButtonAction",function(t){return nn(n),Ds(2).onUserInformation(t)}),fs()}if(2&t){var i=Ds(2);cs("rest",i.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+i.authenticator.id)("customButtons",i.customButtons)("pageSize",i.api.config.admin.page_size)}}function MF(t,e){if(1&t){var n=ys();ds(0,"uds-table",18),ws("loaded",function(t){return nn(n),Ds(2).onLoad(t)})("editAction",function(t){return nn(n),Ds(2).onEditUser(t)})("deleteAction",function(t){return nn(n),Ds(2).onDeleteUser(t)})("customButtonAction",function(t){return nn(n),Ds(2).onUserInformation(t)}),fs()}if(2&t){var i=Ds(2);cs("rest",i.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+i.authenticator.id)("customButtons",i.customButtons)("pageSize",i.api.config.admin.page_size)}}function FF(t,e){1&t&&(ds(0,"uds-translate"),Js(1,"Groups"),fs())}function LF(t,e){1&t&&(ds(0,"uds-translate"),Js(1,"Logs"),fs())}function NF(t,e){if(1&t){var n=ys();ds(0,"div",6),ds(1,"div",7),ds(2,"mat-tab-group",8),ws("selectedIndexChange",function(t){return nn(n),Ds().selectedTab=t}),ds(3,"mat-tab"),ss(4,OF,2,0,"ng-template",9),ds(5,"div",10),ss(6,TF,1,2,"uds-information",11),fs(),fs(),ds(7,"mat-tab"),ss(8,RF,2,0,"ng-template",9),ds(9,"div",10),ss(10,PF,1,6,"uds-table",12),ss(11,MF,1,6,"uds-table",13),fs(),fs(),ds(12,"mat-tab"),ss(13,FF,2,0,"ng-template",9),ds(14,"div",10),ds(15,"uds-table",14),ws("loaded",function(t){return nn(n),Ds().onLoad(t)})("newAction",function(t){return nn(n),Ds().onNewGroup(t)})("editAction",function(t){return nn(n),Ds().onEditGroup(t)})("deleteAction",function(t){return nn(n),Ds().onDeleteGroup(t)})("customButtonAction",function(t){return nn(n),Ds().onGroupInformation(t)}),fs(),fs(),fs(),ds(16,"mat-tab"),ss(17,LF,2,0,"ng-template",9),ds(18,"div",10),ps(19,"uds-logs-table",15),fs(),fs(),fs(),fs(),fs()}if(2&t){var i=Ds();Ia(2),cs("selectedIndex",i.selectedTab)("@.disabled",!0),Ia(4),cs("ngIf",i.authenticator&&i.gui),Ia(4),cs("ngIf",i.authenticator.type_info.canCreateUsers),Ia(1),cs("ngIf",!i.authenticator.type_info.canCreateUsers),Ia(4),cs("rest",i.groups)("multiSelect",!0)("allowExport",!0)("customButtons",i.customButtons)("tableId","authenticators-d-groups"+i.authenticator.id)("pageSize",i.api.config.admin.page_size),Ia(4),cs("rest",i.rest.authenticators)("itemId",i.authenticator.id)("tableId","authenticators-d-log"+i.authenticator.id)}}var VF=function(t){return["/authenticators",t]},jF=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:NA.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){MM.launch(this.api,this.authenticator).subscribe(function(e){return t.table.overview()})},t.prototype.onEditUser=function(t){MM.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){uF.launch(this.api,this.authenticator,t.param.type).subscribe(function(e){return t.table.overview()})},t.prototype.onEditGroup=function(t){uF.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){_F.launch(this.api,this.users,t.table.selection.selected[0])},t.prototype.onGroupInformation=function(t){IF.launch(this.api,this.groups,t.table.selection.selected[0])},t.\u0275fac=function(e){return new(e||t)(us(dm),us(ND),us(pD))},t.\u0275cmp=ce({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","pageSize","loaded","newAction","editAction","deleteAction","customButtonAction",4,"ngIf"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","loaded","editAction","deleteAction","customButtonAction",4,"ngIf"],["icon","groups",3,"rest","multiSelect","allowExport","customButtons","tableId","pageSize","loaded","newAction","editAction","deleteAction","customButtonAction"],[3,"rest","itemId","tableId"],[3,"value","gui"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","loaded","newAction","editAction","deleteAction","customButtonAction"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","loaded","editAction","deleteAction","customButtonAction"]],template:function(t,e){1&t&&(ds(0,"div",0),ds(1,"div",1),ds(2,"a",2),ds(3,"i",3),Js(4,"arrow_back"),fs(),fs(),Js(5," \xa0"),ps(6,"img",4),Js(7),fs(),ss(8,NF,20,14,"div",5),fs()),2&t&&(Ia(2),cs("routerLink",Du(4,VF,e.authenticator?e.authenticator.id:"")),Ia(4),cs("src",e.api.staticURL("admin/img/icons/services.png"),Or),Ia(1),el(" \xa0",null==e.authenticator?null:e.authenticator.name," "),Ia(1),cs("ngIf",e.authenticator))},directives:[Bv,Ph,nA,YE,HE,FP,KP,FS,tM],styles:[""]}),t}(),BF=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)(us(pD),us(dm),us(ND))},t.\u0275cmp=ce({type:t,selectors:[["uds-osmanagers"]],decls:2,vars:5,consts:[["icon","osmanagers",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(ds(0,"div"),ds(1,"uds-table",0),ws("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)}),fs(),fs()),2&t&&(Ia(1),cs("rest",e.rest.osManagers)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",e.api.config.admin.page_size))},directives:[FP],styles:[""]}),t}(),zF=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.processElement=function(t){try{t.allowed_oss=t.allowed_oss.map(function(t){return t.id}).join(", ")}catch(e){t.allowed_oss=""}},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)(us(pD),us(dm),us(ND))},t.\u0275cmp=ce({type:t,selectors:[["uds-transports"]],decls:2,vars:7,consts:[["icon","transports",3,"rest","multiSelect","allowExport","hasPermissions","newGrouped","onItem","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(ds(0,"div"),ds(1,"uds-table",0),ws("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)}),fs(),fs()),2&t&&(Ia(1),cs("rest",e.rest.transports)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("newGrouped",!0)("onItem",e.processElement)("pageSize",e.api.config.admin.page_size))},directives:[FP],styles:[".mat-column-priority{max-width:7rem;justify-content:center}"]}),t}(),HF=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)(us(pD),us(dm),us(ND))},t.\u0275cmp=ce({type:t,selectors:[["uds-networks"]],decls:2,vars:5,consts:[["icon","networks",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(ds(0,"div"),ds(1,"uds-table",0),ws("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)}),fs(),fs()),2&t&&(Ia(1),cs("rest",e.rest.networks)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",e.api.config.admin.page_size))},directives:[FP],styles:[""]}),t}(),UF=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)(us(pD),us(dm),us(ND))},t.\u0275cmp=ce({type:t,selectors:[["uds-proxies"]],decls:2,vars:5,consts:[["icon","proxy",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(ds(0,"div"),ds(1,"uds-table",0),ws("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)}),fs(),fs()),2&t&&(Ia(1),cs("rest",e.rest.proxy)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",e.api.config.admin.page_size))},directives:[FP],styles:[""]}),t}(),qF=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.customButtons=[KA.getGotoButton(VA,"provider_id"),KA.getGotoButton(jA,"provider_id","service_id"),KA.getGotoButton(qA,"osmanager_id"),KA.getGotoButton(YA,"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","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.value||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}),t.all.cache_l2_srvs.gui.rdonly=!1===i.info.uses_cache||!1===i.info.uses_cache_l2,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:HS.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)(us(dm),us(ND),us(pD))},t.\u0275cmp=ce({type:t,selectors:[["uds-service-pools"]],decls:1,vars:7,consts:[["icon","pools",3,"rest","multiSelect","allowExport","hasPermissions","onItem","customButtons","pageSize","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,e){1&t&&(ds(0,"uds-table",0),ws("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)}),fs()),2&t&&cs("rest",e.rest.servicesPools)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",e.processElement)("customButtons",e.customButtons)("pageSize",e.api.config.admin.page_size)},directives:[FP],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 WF(t,e){if(1&t&&(ds(0,"mat-option",8),Js(1),fs()),2&t){var n=e.$implicit;cs("value",n.id),Ia(1),el(" ",n.name," ")}}function YF(t,e){if(1&t){var n=ys();ds(0,"uds-mat-select-search",9),ws("changed",function(t){return nn(n),Ds().userFilter=t}),fs()}}function GF(t,e){if(1&t&&(ds(0,"mat-option",8),Js(1),fs()),2&t){var n=e.$implicit;cs("value",n.id),Ia(1),el(" ",n.name," ")}}var KF=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Vu(!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.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.prototype.authChanged=function(){var t=this;this.rest.authenticators.detail(this.authId,"users").summary().subscribe(function(e){t.users=e})},t.\u0275fac=function(e){return new(e||t)(us(pD),us(ND),us(hS),us(fS))},t.\u0275cmp=ce({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&&(ds(0,"h4",0),ds(1,"uds-translate"),Js(2,"Change owner of assigned service"),fs(),fs(),ds(3,"mat-dialog-content"),ds(4,"div",1),ds(5,"mat-form-field"),ds(6,"mat-label"),ds(7,"uds-translate"),Js(8,"Authenticator"),fs(),fs(),ds(9,"mat-select",2),ws("ngModelChange",function(t){return e.authId=t})("selectionChange",function(t){return e.changeAuth(t)}),ss(10,WF,2,2,"mat-option",3),fs(),fs(),ds(11,"mat-form-field"),ds(12,"mat-label"),ds(13,"uds-translate"),Js(14,"User"),fs(),fs(),ds(15,"mat-select",4),ws("ngModelChange",function(t){return e.userId=t}),ss(16,YF,1,0,"uds-mat-select-search",5),ss(17,GF,2,2,"mat-option",3),fs(),fs(),fs(),fs(),ds(18,"mat-dialog-actions"),ds(19,"button",6),ds(20,"uds-translate"),Js(21,"Cancel"),fs(),fs(),ds(22,"button",7),ws("click",function(){return e.save()}),ds(23,"uds-translate"),Js(24,"Ok"),fs(),fs(),fs()),2&t&&(Ia(9),cs("ngModel",e.authId),Ia(1),cs("ngForOf",e.auths),Ia(5),cs("ngModel",e.userId),Ia(1),cs("ngIf",e.users.length>10),Ia(1),cs("ngForOf",e.filteredUsers()))},directives:[kS,FS,wS,yI,uI,BI,yx,aE,Th,Ph,CS,RS,bS,tS,GT],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 ZF(t,e){1&t&&(ds(0,"uds-translate"),Js(1,"New access rule for"),fs())}function $F(t,e){1&t&&(ds(0,"uds-translate"),Js(1,"Edit access rule for"),fs())}function XF(t,e){1&t&&(ds(0,"uds-translate"),Js(1,"Default fallback access for"),fs())}function QF(t,e){if(1&t){var n=ys();ds(0,"uds-mat-select-search",11),ws("changed",function(t){return nn(n),Ds(2).calendarsFilter=t}),fs()}}function JF(t,e){if(1&t&&(ds(0,"mat-option",12),Js(1),fs()),2&t){var n=e.$implicit;cs("value",n.id),Ia(1),el(" ",n.name," ")}}function tL(t,e){if(1&t){var n=ys();ms(0),ds(1,"mat-form-field"),ds(2,"mat-label"),ds(3,"uds-translate"),Js(4,"Priority"),fs(),fs(),ds(5,"input",8),ws("ngModelChange",function(t){return nn(n),Ds().accessRule.priority=t}),fs(),fs(),ds(6,"mat-form-field"),ds(7,"mat-label"),ds(8,"uds-translate"),Js(9,"Calendar"),fs(),fs(),ds(10,"mat-select",3),ws("ngModelChange",function(t){return nn(n),Ds().accessRule.calendarId=t}),ss(11,QF,1,0,"uds-mat-select-search",9),ss(12,JF,2,2,"mat-option",10),fs(),fs(),vs()}if(2&t){var i=Ds();Ia(5),cs("ngModel",i.accessRule.priority),Ia(5),cs("ngModel",i.accessRule.calendarId),Ia(1),cs("ngIf",i.calendars.length>10),Ia(1),cs("ngForOf",i.filtered(i.calendars,i.calendarsFilter))}}var eL=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Vu(!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 a=window.innerWidth<800?"80%":"60%";return e.gui.dialog.open(t,{width:a,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)(us(pD),us(ND),us(hS),us(fS))},t.\u0275cmp=ce({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&&(ds(0,"h4",0),ss(1,ZF,2,0,"uds-translate",1),ss(2,$F,2,0,"uds-translate",1),ss(3,XF,2,0,"uds-translate",1),Js(4),fs(),ds(5,"mat-dialog-content"),ds(6,"div",2),ss(7,tL,13,4,"ng-container",1),ds(8,"mat-form-field"),ds(9,"mat-label"),ds(10,"uds-translate"),Js(11,"Action"),fs(),fs(),ds(12,"mat-select",3),ws("ngModelChange",function(t){return e.accessRule.access=t}),ds(13,"mat-option",4),Js(14," ALLOW "),fs(),ds(15,"mat-option",5),Js(16," DENY "),fs(),fs(),fs(),fs(),fs(),ds(17,"mat-dialog-actions"),ds(18,"button",6),ds(19,"uds-translate"),Js(20,"Cancel"),fs(),fs(),ds(21,"button",7),ws("click",function(){return e.save()}),ds(22,"uds-translate"),Js(23,"Ok"),fs(),fs(),fs()),2&t&&(Ia(1),cs("ngIf",void 0===e.accessRule.id),Ia(1),cs("ngIf",void 0!==e.accessRule.id&&-1!==e.accessRule.id),Ia(1),cs("ngIf",-1===e.accessRule.id),Ia(1),el(" ",e.pool.name,"\n"),Ia(3),cs("ngIf",-1!==e.accessRule.id),Ia(5),cs("ngModel",e.accessRule.access))},directives:[kS,Ph,wS,yI,uI,FS,BI,yx,aE,tS,CS,RS,bS,zT,kx,$S,Th,GT],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 nL(t,e){if(1&t&&(ds(0,"mat-option",8),Js(1),fs()),2&t){var n=e.$implicit;cs("value",n.id),Ia(1),el(" ",n.name," ")}}function iL(t,e){if(1&t){var n=ys();ds(0,"uds-mat-select-search",9),ws("changed",function(t){return nn(n),Ds().groupFilter=t}),fs()}}function rL(t,e){if(1&t&&(ms(0),Js(1),vs()),2&t){var n=Ds().$implicit;Ia(1),el(" (",n.comments,")")}}function aL(t,e){if(1&t&&(ds(0,"mat-option",8),Js(1),ss(2,rL,2,1,"ng-container",10),fs()),2&t){var n=e.$implicit;cs("value",n.id),Ia(1),el(" ",n.name,""),Ia(1),cs("ngIf",n.comments)}}var oL=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Vu(!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.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.prototype.authChanged=function(){var t=this;""!==this.authId&&this.rest.authenticators.detail(this.authId,"groups").summary().subscribe(function(e){t.groups=e})},t.\u0275fac=function(e){return new(e||t)(us(pD),us(ND),us(hS),us(fS))},t.\u0275cmp=ce({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&&(ds(0,"h4",0),ds(1,"uds-translate"),Js(2,"New group for"),fs(),Js(3),fs(),ds(4,"mat-dialog-content"),ds(5,"div",1),ds(6,"mat-form-field"),ds(7,"mat-label"),ds(8,"uds-translate"),Js(9,"Authenticator"),fs(),fs(),ds(10,"mat-select",2),ws("ngModelChange",function(t){return e.authId=t})("selectionChange",function(t){return e.changeAuth(t)}),ss(11,nL,2,2,"mat-option",3),fs(),fs(),ds(12,"mat-form-field"),ds(13,"mat-label"),ds(14,"uds-translate"),Js(15,"Group"),fs(),fs(),ds(16,"mat-select",4),ws("ngModelChange",function(t){return e.groupId=t}),ss(17,iL,1,0,"uds-mat-select-search",5),ss(18,aL,3,3,"mat-option",3),fs(),fs(),fs(),fs(),ds(19,"mat-dialog-actions"),ds(20,"button",6),ds(21,"uds-translate"),Js(22,"Cancel"),fs(),fs(),ds(23,"button",7),ws("click",function(){return e.save()}),ds(24,"uds-translate"),Js(25,"Ok"),fs(),fs(),fs()),2&t&&(Ia(3),el(" ",e.pool.name,"\n"),Ia(7),cs("ngModel",e.authId),Ia(1),cs("ngForOf",e.auths),Ia(5),cs("ngModel",e.groupId),Ia(1),cs("ngIf",e.groups.length>10),Ia(1),cs("ngForOf",e.filteredGroups()))},directives:[kS,FS,wS,yI,uI,BI,yx,aE,Th,Ph,CS,RS,bS,tS,GT],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 sL(t,e){if(1&t){var n=ys();ds(0,"uds-mat-select-search",7),ws("changed",function(t){return nn(n),Ds().transportsFilter=t}),fs()}}function lL(t,e){if(1&t&&(ms(0),Js(1),vs()),2&t){var n=Ds().$implicit;Ia(1),el(" (",n.comments,")")}}function uL(t,e){if(1&t&&(ds(0,"mat-option",8),Js(1),ss(2,lL,2,1,"ng-container",9),fs()),2&t){var n=e.$implicit;cs("value",n.id),Ia(1),el(" ",n.name,""),Ia(1),cs("ngIf",n.comments)}}var cL=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Vu(!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)(us(pD),us(ND),us(hS),us(fS))},t.\u0275cmp=ce({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&&(ds(0,"h4",0),ds(1,"uds-translate"),Js(2,"New transport for"),fs(),Js(3),fs(),ds(4,"mat-dialog-content"),ds(5,"div",1),ds(6,"mat-form-field"),ds(7,"mat-label"),ds(8,"uds-translate"),Js(9,"Transport"),fs(),fs(),ds(10,"mat-select",2),ws("ngModelChange",function(t){return e.transportId=t}),ss(11,sL,1,0,"uds-mat-select-search",3),ss(12,uL,3,3,"mat-option",4),fs(),fs(),fs(),fs(),ds(13,"mat-dialog-actions"),ds(14,"button",5),ds(15,"uds-translate"),Js(16,"Cancel"),fs(),fs(),ds(17,"button",6),ws("click",function(){return e.save()}),ds(18,"uds-translate"),Js(19,"Ok"),fs(),fs(),fs()),2&t&&(Ia(3),el(" ",e.servicePool.name,"\n"),Ia(7),cs("ngModel",e.transportId),Ia(1),cs("ngIf",e.transports.length>10),Ia(1),cs("ngForOf",e.filteredTransports()))},directives:[kS,FS,wS,yI,uI,BI,yx,aE,Ph,Th,CS,RS,bS,GT,tS],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}(),hL=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Vu(!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)(us(pD),us(ND),us(hS),us(fS))},t.\u0275cmp=ce({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&&(ds(0,"h4",0),ds(1,"uds-translate"),Js(2,"New publication for"),fs(),Js(3),fs(),ds(4,"mat-dialog-content"),ds(5,"div",1),ds(6,"mat-form-field"),ds(7,"mat-label"),ds(8,"uds-translate"),Js(9,"Comments"),fs(),fs(),ds(10,"input",2),ws("ngModelChange",function(t){return e.reason=t}),fs(),fs(),fs(),fs(),ds(11,"mat-dialog-actions"),ds(12,"button",3),ds(13,"uds-translate"),Js(14,"Cancel"),fs(),fs(),ds(15,"button",4),ws("click",function(){return e.save()}),ds(16,"uds-translate"),Js(17,"Ok"),fs(),fs(),fs()),2&t&&(Ia(3),el(" ",e.servicePool.name,"\n"),Ia(7),cs("ngModel",e.reason))},directives:[kS,FS,wS,yI,uI,zT,$S,yx,aE,CS,RS,bS],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}(),dL=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Vu(!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)(us(pD),us(ND),us(hS),us(fS))},t.\u0275cmp=ce({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&&(ds(0,"h4",0),ds(1,"uds-translate"),Js(2,"Changelog of"),fs(),Js(3),fs(),ds(4,"mat-dialog-content"),ps(5,"uds-table",1,2),fs(),ds(7,"mat-dialog-actions"),ds(8,"button",3),ds(9,"uds-translate"),Js(10,"Ok"),fs(),fs(),fs()),2&t&&(Ia(3),el(" ",e.servicePool.name,"\n"),Ia(2),cs("rest",e.changeLogPubs)("allowExport",!0)("tableId","servicePools-d-changelog"+e.servicePool.id))},directives:[kS,FS,wS,FP,CS,RS,bS],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}();function fL(t,e){1&t&&(ms(0),ds(1,"uds-translate"),Js(2,"Edit action for"),fs(),vs())}function pL(t,e){1&t&&(ds(0,"uds-translate"),Js(1,"New action for"),fs())}function mL(t,e){if(1&t){var n=ys();ds(0,"uds-mat-select-search",14),ws("changed",function(t){return nn(n),Ds().calendarsFilter=t}),fs()}}function vL(t,e){if(1&t&&(ds(0,"mat-option",15),Js(1),fs()),2&t){var n=e.$implicit;cs("value",n.id),Ia(1),el(" ",n.name," ")}}function gL(t,e){if(1&t&&(ds(0,"mat-option",15),Js(1),fs()),2&t){var n=e.$implicit;cs("value",n.id),Ia(1),el(" ",n.description," ")}}function yL(t,e){if(1&t){var n=ys();ds(0,"uds-mat-select-search",14),ws("changed",function(t){return nn(n),Ds(2).transportsFilter=t}),fs()}}function _L(t,e){if(1&t&&(ds(0,"mat-option",15),Js(1),fs()),2&t){var n=e.$implicit;cs("value",n.id),Ia(1),el(" ",n.name," ")}}function bL(t,e){if(1&t){var n=ys();ms(0),ds(1,"mat-form-field"),ds(2,"mat-label"),ds(3,"uds-translate"),Js(4,"Transport"),fs(),fs(),ds(5,"mat-select",4),ws("ngModelChange",function(t){return nn(n),Ds().paramValue=t}),ss(6,yL,1,0,"uds-mat-select-search",5),ss(7,_L,2,2,"mat-option",6),fs(),fs(),vs()}if(2&t){var i=Ds();Ia(5),cs("ngModel",i.paramValue),Ia(1),cs("ngIf",i.transports.length>10),Ia(1),cs("ngForOf",i.filtered(i.transports,i.transportsFilter))}}function kL(t,e){if(1&t&&(ds(0,"mat-option",15),Js(1),fs()),2&t){var n=e.$implicit;cs("value",n.id),Ia(1),el(" ",n.name," ")}}function wL(t,e){if(1&t){var n=ys();ds(0,"uds-mat-select-search",14),ws("changed",function(t){return nn(n),Ds(2).groupsFilter=t}),fs()}}function CL(t,e){if(1&t&&(ds(0,"mat-option",15),Js(1),fs()),2&t){var n=e.$implicit;cs("value",Ds(2).authenticator+"@"+n.id),Ia(1),el(" ",n.name," ")}}function SL(t,e){if(1&t){var n=ys();ms(0),ds(1,"mat-form-field"),ds(2,"mat-label"),ds(3,"uds-translate"),Js(4,"Authenticator"),fs(),fs(),ds(5,"mat-select",10),ws("ngModelChange",function(t){return nn(n),Ds().authenticator=t})("valueChange",function(t){return nn(n),Ds().changedAuthenticator(t)}),ss(6,kL,2,2,"mat-option",6),fs(),fs(),ds(7,"mat-form-field"),ds(8,"mat-label"),ds(9,"uds-translate"),Js(10,"Group"),fs(),fs(),ds(11,"mat-select",4),ws("ngModelChange",function(t){return nn(n),Ds().paramValue=t}),ss(12,wL,1,0,"uds-mat-select-search",5),ss(13,CL,2,2,"mat-option",6),fs(),fs(),vs()}if(2&t){var i=Ds();Ia(5),cs("ngModel",i.authenticator),Ia(1),cs("ngForOf",i.authenticators),Ia(5),cs("ngModel",i.paramValue),Ia(1),cs("ngIf",i.groups.length>10),Ia(1),cs("ngForOf",i.filtered(i.groups,i.groupsFilter))}}function xL(t,e){if(1&t){var n=ys();ms(0),ds(1,"div",8),ds(2,"span",16),Js(3),fs(),Js(4,"\xa0 "),ds(5,"mat-slide-toggle",4),ws("ngModelChange",function(t){return nn(n),Ds().paramValue=t}),fs(),fs(),vs()}if(2&t){var i=Ds();Ia(3),tl(i.parameter.description),Ia(2),cs("ngModel",i.paramValue)}}function EL(t,e){if(1&t){var n=ys();ms(0),ds(1,"mat-form-field"),ds(2,"mat-label"),Js(3),fs(),ds(4,"input",17),ws("ngModelChange",function(t){return nn(n),Ds().paramValue=t}),fs(),fs(),vs()}if(2&t){var i=Ds();Ia(3),el(" ",i.parameter.description," "),Ia(1),cs("type",i.parameter.type)("ngModel",i.paramValue)}}var AL=function(){return["transport","group","bool"]},DL=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Vu(!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)(us(pD),us(ND),us(hS),us(fS))},t.\u0275cmp=ce({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&&(ds(0,"h4",0),ss(1,fL,3,0,"ng-container",1),ss(2,pL,2,0,"ng-template",null,2,ic),Js(4),fs(),ds(5,"mat-dialog-content"),ds(6,"div",3),ds(7,"mat-form-field"),ds(8,"mat-label"),ds(9,"uds-translate"),Js(10,"Calendar"),fs(),fs(),ds(11,"mat-select",4),ws("ngModelChange",function(t){return e.scheduledAction.calendarId=t}),ss(12,mL,1,0,"uds-mat-select-search",5),ss(13,vL,2,2,"mat-option",6),fs(),fs(),ds(14,"mat-form-field"),ds(15,"mat-label"),ds(16,"uds-translate"),Js(17,"Events offset (minutes)"),fs(),fs(),ds(18,"input",7),ws("ngModelChange",function(t){return e.scheduledAction.eventsOffset=t}),fs(),fs(),ds(19,"div",8),ds(20,"span",9),ds(21,"uds-translate"),Js(22,"At the beginning of the interval?"),fs(),fs(),ds(23,"mat-slide-toggle",4),ws("ngModelChange",function(t){return e.scheduledAction.atStart=t}),Js(24),fs(),fs(),ds(25,"mat-form-field"),ds(26,"mat-label"),ds(27,"uds-translate"),Js(28,"Action"),fs(),fs(),ds(29,"mat-select",10),ws("ngModelChange",function(t){return e.scheduledAction.action=t})("valueChange",function(t){return e.changedAction(t)}),ss(30,gL,2,2,"mat-option",6),fs(),fs(),ss(31,bL,8,3,"ng-container",11),ss(32,SL,14,5,"ng-container",11),ss(33,xL,6,2,"ng-container",11),ss(34,EL,5,3,"ng-container",11),fs(),fs(),ds(35,"mat-dialog-actions"),ds(36,"button",12),ds(37,"uds-translate"),Js(38,"Cancel"),fs(),fs(),ds(39,"button",13),ws("click",function(){return e.save()}),ds(40,"uds-translate"),Js(41,"Ok"),fs(),fs(),fs()),2&t){var n=ls(3);Ia(1),cs("ngIf",void 0!==e.scheduledAction.id)("ngIfElse",n),Ia(3),el(" ",e.servicePool.name,"\n"),Ia(7),cs("ngModel",e.scheduledAction.calendarId),Ia(1),cs("ngIf",e.calendars.length>10),Ia(1),cs("ngForOf",e.filtered(e.calendars,e.calendarsFilter)),Ia(5),cs("ngModel",e.scheduledAction.eventsOffset),Ia(5),cs("ngModel",e.scheduledAction.atStart),Ia(1),el(" ",e.api.yesno(e.scheduledAction.atStart)," "),Ia(5),cs("ngModel",e.scheduledAction.action),Ia(1),cs("ngForOf",e.actionList),Ia(1),cs("ngIf","transport"===(null==e.parameter?null:e.parameter.type)),Ia(1),cs("ngIf","group"===(null==e.parameter?null:e.parameter.type)),Ia(1),cs("ngIf","bool"===(null==e.parameter?null:e.parameter.type)),Ia(1),cs("ngIf",(null==e.parameter?null:e.parameter.type)&&!Au(15,AL).includes(e.parameter.type))}},directives:[kS,Ph,wS,yI,uI,FS,BI,yx,aE,Th,zT,kx,$S,WM,CS,RS,bS,GT,tS],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}(),IL=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Vu(!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)(us(pD),us(ND),us(hS),us(fS))},t.\u0275cmp=ce({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&&(ds(0,"h4",0),ds(1,"uds-translate"),Js(2,"Logs of"),fs(),Js(3),fs(),ds(4,"mat-dialog-content"),ps(5,"uds-logs-table",1),fs(),ds(6,"mat-dialog-actions"),ds(7,"button",2),ds(8,"uds-translate"),Js(9,"Ok"),fs(),fs(),fs()),2&t&&(Ia(3),el(" ",e.userService.name,"\n"),Ia(2),cs("rest",e.model)("itemId",e.userService.id)("tableId","servicePools-d-uslog"+e.userService.id))},directives:[kS,FS,wS,KP,CS,RS,bS],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}();function OL(t,e){if(1&t){var n=ys();ds(0,"uds-mat-select-search",8),ws("changed",function(t){return nn(n),Ds().assignablesServicesFilter=t}),fs()}}function TL(t,e){if(1&t&&(ds(0,"mat-option",9),Js(1),fs()),2&t){var n=e.$implicit;cs("value",n.id),Ia(1),el(" ",n.text," ")}}function RL(t,e){if(1&t&&(ds(0,"mat-option",9),Js(1),fs()),2&t){var n=e.$implicit;cs("value",n.id),Ia(1),el(" ",n.name," ")}}function PL(t,e){if(1&t){var n=ys();ds(0,"uds-mat-select-search",8),ws("changed",function(t){return nn(n),Ds().userFilter=t}),fs()}}function ML(t,e){if(1&t&&(ds(0,"mat-option",9),Js(1),fs()),2&t){var n=e.$implicit;cs("value",n.id),Ia(1),el(" ",n.name," ")}}var FL=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Vu(!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.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.prototype.authChanged=function(){var t=this;this.authId&&this.rest.authenticators.detail(this.authId,"users").summary().subscribe(function(e){t.users=e})},t.\u0275fac=function(e){return new(e||t)(us(pD),us(ND),us(hS),us(fS))},t.\u0275cmp=ce({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&&(ds(0,"h4",0),ds(1,"uds-translate"),Js(2,"Assign service to user manually"),fs(),fs(),ds(3,"mat-dialog-content"),ds(4,"div",1),ds(5,"mat-form-field"),ds(6,"mat-label"),ds(7,"uds-translate"),Js(8,"Service"),fs(),fs(),ds(9,"mat-select",2),ws("ngModelChange",function(t){return e.serviceId=t}),ss(10,OL,1,0,"uds-mat-select-search",3),ss(11,TL,2,2,"mat-option",4),fs(),fs(),ds(12,"mat-form-field"),ds(13,"mat-label"),ds(14,"uds-translate"),Js(15,"Authenticator"),fs(),fs(),ds(16,"mat-select",5),ws("ngModelChange",function(t){return e.authId=t})("selectionChange",function(t){return e.changeAuth(t)}),ss(17,RL,2,2,"mat-option",4),fs(),fs(),ds(18,"mat-form-field"),ds(19,"mat-label"),ds(20,"uds-translate"),Js(21,"User"),fs(),fs(),ds(22,"mat-select",2),ws("ngModelChange",function(t){return e.userId=t}),ss(23,PL,1,0,"uds-mat-select-search",3),ss(24,ML,2,2,"mat-option",4),fs(),fs(),fs(),fs(),ds(25,"mat-dialog-actions"),ds(26,"button",6),ds(27,"uds-translate"),Js(28,"Cancel"),fs(),fs(),ds(29,"button",7),ws("click",function(){return e.save()}),ds(30,"uds-translate"),Js(31,"Ok"),fs(),fs(),fs()),2&t&&(Ia(9),cs("ngModel",e.serviceId),Ia(1),cs("ngIf",e.assignablesServices.length>10),Ia(1),cs("ngForOf",e.filteredAssignables()),Ia(5),cs("ngModel",e.authId),Ia(1),cs("ngForOf",e.auths),Ia(5),cs("ngModel",e.userId),Ia(1),cs("ngIf",e.users.length>10),Ia(1),cs("ngForOf",e.filteredUsers()))},directives:[kS,FS,wS,yI,uI,BI,yx,aE,Ph,Th,CS,RS,bS,GT,tS],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 LL(t,e){1&t&&(ds(0,"uds-translate"),Js(1,"Summary"),fs())}function NL(t,e){if(1&t&&ps(0,"uds-information",20),2&t){var n=Ds(2);cs("value",n.servicePool)("gui",n.gui)}}function VL(t,e){1&t&&(ds(0,"uds-translate"),Js(1,"Assigned services"),fs())}function jL(t,e){if(1&t){var n=ys();ds(0,"uds-table",21),ws("customButtonAction",function(t){return nn(n),Ds(2).onCustomAssigned(t)})("deleteAction",function(t){return nn(n),Ds(2).onDeleteAssigned(t)}),fs()}if(2&t){var i=Ds(2);cs("rest",i.assignedServices)("multiSelect",!0)("allowExport",!0)("onItem",i.processsAssignedElement)("tableId","servicePools-d-services"+i.servicePool.id)("customButtons",i.customButtonsAssignedServices)("pageSize",i.api.config.admin.page_size)}}function BL(t,e){if(1&t){var n=ys();ds(0,"uds-table",22),ws("customButtonAction",function(t){return nn(n),Ds(2).onCustomAssigned(t)})("newAction",function(t){return nn(n),Ds(2).onNewAssigned(t)})("deleteAction",function(t){return nn(n),Ds(2).onDeleteAssigned(t)}),fs()}if(2&t){var i=Ds(2);cs("rest",i.assignedServices)("multiSelect",!0)("allowExport",!0)("onItem",i.processsAssignedElement)("tableId","servicePools-d-services"+i.servicePool.id)("customButtons",i.customButtonsAssignedServices)("pageSize",i.api.config.admin.page_size)}}function zL(t,e){1&t&&(ds(0,"uds-translate"),Js(1,"Cache"),fs())}function HL(t,e){if(1&t){var n=ys();ds(0,"mat-tab"),ss(1,zL,2,0,"ng-template",9),ds(2,"div",10),ds(3,"uds-table",23),ws("customButtonAction",function(t){return nn(n),Ds(2).onCustomCached(t)})("deleteAction",function(t){return nn(n),Ds(2).onDeleteCache(t)}),fs(),fs(),fs()}if(2&t){var i=Ds(2);Ia(3),cs("rest",i.cache)("multiSelect",!0)("allowExport",!0)("onItem",i.processsCacheElement)("tableId","servicePools-d-cache"+i.servicePool.id)("customButtons",i.customButtonsCachedServices)("pageSize",i.api.config.admin.page_size)}}function UL(t,e){1&t&&(ds(0,"uds-translate"),Js(1,"Groups"),fs())}function qL(t,e){1&t&&(ds(0,"uds-translate"),Js(1,"Transports"),fs())}function WL(t,e){1&t&&(ds(0,"uds-translate"),Js(1,"Publications"),fs())}function YL(t,e){if(1&t){var n=ys();ds(0,"mat-tab"),ss(1,WL,2,0,"ng-template",9),ds(2,"div",10),ds(3,"uds-table",24),ws("customButtonAction",function(t){return nn(n),Ds(2).onCustomPublication(t)})("newAction",function(t){return nn(n),Ds(2).onNewPublication(t)})("rowSelected",function(t){return nn(n),Ds(2).onPublicationRowSelect(t)}),fs(),fs(),fs()}if(2&t){var i=Ds(2);Ia(3),cs("rest",i.publications)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-publications"+i.servicePool.id)("customButtons",i.customButtonsPublication)("pageSize",i.api.config.admin.page_size)}}function GL(t,e){1&t&&(ds(0,"uds-translate"),Js(1,"Scheduled actions"),fs())}function KL(t,e){1&t&&(ds(0,"uds-translate"),Js(1,"Access calendars"),fs())}function ZL(t,e){1&t&&(ds(0,"uds-translate"),Js(1,"Logs"),fs())}function $L(t,e){if(1&t){var n=ys();ds(0,"div",6),ds(1,"div",7),ds(2,"mat-tab-group",8),ws("selectedIndexChange",function(t){return nn(n),Ds().selectedTab=t}),ds(3,"mat-tab"),ss(4,LL,2,0,"ng-template",9),ds(5,"div",10),ss(6,NL,1,2,"uds-information",11),fs(),fs(),ds(7,"mat-tab"),ss(8,VL,2,0,"ng-template",9),ds(9,"div",10),ss(10,jL,1,7,"uds-table",12),ss(11,BL,1,7,"ng-template",null,13,ic),fs(),fs(),ss(13,HL,4,7,"mat-tab",14),ds(14,"mat-tab"),ss(15,UL,2,0,"ng-template",9),ds(16,"div",10),ds(17,"uds-table",15),ws("newAction",function(t){return nn(n),Ds().onNewGroup(t)})("deleteAction",function(t){return nn(n),Ds().onDeleteGroup(t)}),fs(),fs(),fs(),ds(18,"mat-tab"),ss(19,qL,2,0,"ng-template",9),ds(20,"div",10),ds(21,"uds-table",16),ws("newAction",function(t){return nn(n),Ds().onNewTransport(t)})("deleteAction",function(t){return nn(n),Ds().onDeleteTransport(t)}),fs(),fs(),fs(),ss(22,YL,4,6,"mat-tab",14),ds(23,"mat-tab"),ss(24,GL,2,0,"ng-template",9),ds(25,"div",10),ds(26,"uds-table",17),ws("customButtonAction",function(t){return nn(n),Ds().onCustomScheduleAction(t)})("newAction",function(t){return nn(n),Ds().onNewScheduledAction(t)})("editAction",function(t){return nn(n),Ds().onEditScheduledAction(t)})("deleteAction",function(t){return nn(n),Ds().onDeleteScheduledAction(t)}),fs(),fs(),fs(),ds(27,"mat-tab"),ss(28,KL,2,0,"ng-template",9),ds(29,"div",10),ds(30,"uds-table",18),ws("newAction",function(t){return nn(n),Ds().onNewAccessCalendar(t)})("editAction",function(t){return nn(n),Ds().onEditAccessCalendar(t)})("deleteAction",function(t){return nn(n),Ds().onDeleteAccessCalendar(t)})("loaded",function(t){return nn(n),Ds().onAccessCalendarLoad(t)}),fs(),fs(),fs(),ds(31,"mat-tab"),ss(32,ZL,2,0,"ng-template",9),ds(33,"div",10),ps(34,"uds-logs-table",19),fs(),fs(),fs(),fs(),fs()}if(2&t){var i=ls(12),r=Ds();Ia(2),cs("selectedIndex",r.selectedTab)("@.disabled",!0),Ia(4),cs("ngIf",r.servicePool&&r.gui),Ia(4),cs("ngIf",!1===r.servicePool.info.must_assign_manually)("ngIfElse",i),Ia(3),cs("ngIf",r.cache),Ia(4),cs("rest",r.groups)("multiSelect",!0)("allowExport",!0)("customButtons",r.customButtonsGroups)("tableId","servicePools-d-groups"+r.servicePool.id)("pageSize",r.api.config.admin.page_size),Ia(4),cs("rest",r.transports)("multiSelect",!0)("allowExport",!0)("customButtons",r.customButtonsTransports)("tableId","servicePools-d-transports"+r.servicePool.id)("pageSize",r.api.config.admin.page_size),Ia(1),cs("ngIf",r.publications),Ia(4),cs("rest",r.scheduledActions)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-actions"+r.servicePool.id)("customButtons",r.customButtonsScheduledAction)("onItem",r.processsCalendarOrScheduledElement)("pageSize",r.api.config.admin.page_size),Ia(4),cs("rest",r.accessCalendars)("multiSelect",!0)("allowExport",!0)("customButtons",r.customButtonAccessCalendars)("tableId","servicePools-d-access"+r.servicePool.id)("onItem",r.processsCalendarOrScheduledElement)("pageSize",r.api.config.admin.page_size),Ia(4),cs("rest",r.rest.servicesPools)("itemId",r.servicePool.id)("tableId","servicePools-d-log"+r.servicePool.id)("pageSize",r.api.config.admin.page_size)}}var XL=function(t){return["/pools","service-pools",t]},QL='event'+django.gettext("Logs")+"",JL='computer'+django.gettext("VNC")+"",tN='schedule'+django.gettext("Launch now")+"",eN='perm_identity'+django.gettext("Change owner")+"",nN='perm_identity'+django.gettext("Assign service")+"",iN='cancel'+django.gettext("Cancel")+"",rN='event'+django.gettext("Changelog")+"",aN=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.customButtonsScheduledAction=[{id:"launch-action",html:tN,type:NA.SINGLE_SELECT},KA.getGotoButton(WA,"calendarId")],this.customButtonAccessCalendars=[KA.getGotoButton(WA,"calendarId")],this.customButtonsAssignedServices=[{id:"change-owner",html:eN,type:NA.SINGLE_SELECT},{id:"log",html:QL,type:NA.SINGLE_SELECT},{id:"vnc",html:JL,type:NA.ONLY_MENU},KA.getGotoButton(zA,"owner_info.auth_id","owner_info.user_id")],this.customButtonsCachedServices=[{id:"log",html:QL,type:NA.SINGLE_SELECT}],this.customButtonsPublication=[{id:"cancel-publication",html:iN,type:NA.SINGLE_SELECT},{id:"changelog",html:rN,type:NA.ALWAYS}],this.customButtonsGroups=[KA.getGotoButton(HA,"auth_id","id")],this.customButtonsTransports=[KA.getGotoButton(UA,"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:nN,type:NA.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.vnc=function(t){var e=new Blob(["[connection]\nhost="+t.ip+"\nport=5900\n"],{type:"application/extension-vnc"});setTimeout(function(){Object(_R.saveAs)(e,t.ip+".vnc")},100)},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;KF.launch(this.api,e,this.assignedServices).subscribe(function(e){return t.table.overview()})}else"log"===t.param.id?IL.launch(this.api,e,this.assignedServices):"assign-service"===t.param.id?FL.launch(this.api,this.servicePool).subscribe(function(e){return t.table.overview()}):"vnc"===t.param.id&&this.vnc(e)},t.prototype.onCustomCached=function(t){"log"===t.param.id&&IL.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){oL.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){cL.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){hL.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&&dL.launch(this.api,this.servicePool)},t.prototype.onNewScheduledAction=function(t){DL.launch(this.api,this.servicePool).subscribe(function(e){return t.table.overview()})},t.prototype.onEditScheduledAction=function(t){DL.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){eL.launch(this.api,this.servicePool,this.accessCalendars).subscribe(function(e){return t.table.overview()})},t.prototype.onEditAccessCalendar=function(t){eL.launch(this.api,this.servicePool,this.accessCalendars,t.table.selection.selected[0]).subscribe(function(e){return t.table.overview()})},t.prototype.onDeleteAccessCalendar=function(t){-1!==t.table.selection.selected[0].id?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)(us(dm),us(ND),us(pD))},t.\u0275cmp=ce({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","pageSize","customButtonAction","deleteAction",4,"ngIf","ngIfElse"],["manually_assigned",""],[4,"ngIf"],["icon","groups",3,"rest","multiSelect","allowExport","customButtons","tableId","pageSize","newAction","deleteAction"],["icon","transports",3,"rest","multiSelect","allowExport","customButtons","tableId","pageSize","newAction","deleteAction"],["icon","calendars",3,"rest","multiSelect","allowExport","tableId","customButtons","onItem","pageSize","customButtonAction","newAction","editAction","deleteAction"],["icon","calendars",3,"rest","multiSelect","allowExport","customButtons","tableId","onItem","pageSize","newAction","editAction","deleteAction","loaded"],[3,"rest","itemId","tableId","pageSize"],[3,"value","gui"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","customButtonAction","deleteAction"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","customButtonAction","newAction","deleteAction"],["icon","cached",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","customButtonAction","deleteAction"],["icon","publications",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","customButtonAction","newAction","rowSelected"]],template:function(t,e){1&t&&(ds(0,"div",0),ds(1,"div",1),ds(2,"a",2),ds(3,"i",3),Js(4,"arrow_back"),fs(),fs(),Js(5," \xa0"),ps(6,"img",4),Js(7),fs(),ss(8,$L,35,37,"div",5),fs()),2&t&&(Ia(2),cs("routerLink",Du(4,XL,e.servicePool?e.servicePool.id:"")),Ia(4),cs("src",e.api.staticURL("admin/img/icons/pools.png"),Or),Ia(1),el(" \xa0",null==e.servicePool?null:e.servicePool.name," "),Ia(1),cs("ngIf",null!==e.servicePool))},directives:[Bv,Ph,nA,YE,HE,FP,KP,FS,tM],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}(),oN=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)(us(pD),us(dm),us(ND))},t.\u0275cmp=ce({type:t,selectors:[["uds-meta-pools"]],decls:2,vars:6,consts:[["icon","metas",3,"rest","multiSelect","allowExport","onItem","hasPermissions","pageSize","detailAction","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(ds(0,"div"),ds(1,"uds-table",0),ws("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)}),fs(),fs()),2&t&&(Ia(1),cs("rest",e.rest.metaPools)("multiSelect",!0)("allowExport",!0)("onItem",e.processElement)("hasPermissions",!0)("pageSize",e.api.config.admin.page_size))},directives:[FP],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 sN(t,e){1&t&&(ds(0,"uds-translate"),Js(1,"New member pool"),fs())}function lN(t,e){1&t&&(ds(0,"uds-translate"),Js(1,"Edit member pool"),fs())}function uN(t,e){if(1&t){var n=ys();ds(0,"uds-mat-select-search",11),ws("changed",function(t){return nn(n),Ds().servicePoolsFilter=t}),fs()}}function cN(t,e){if(1&t&&(ds(0,"mat-option",12),Js(1),fs()),2&t){var n=e.$implicit;cs("value",n.id),Ia(1),el(" ",n.name," ")}}var hN=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Vu(!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)(us(pD),us(ND),us(hS),us(fS))},t.\u0275cmp=ce({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&&(ds(0,"h4",0),ss(1,sN,2,0,"uds-translate",1),ss(2,lN,2,0,"uds-translate",1),fs(),ds(3,"mat-dialog-content"),ds(4,"div",2),ds(5,"mat-form-field"),ds(6,"mat-label"),ds(7,"uds-translate"),Js(8,"Priority"),fs(),fs(),ds(9,"input",3),ws("ngModelChange",function(t){return e.memberPool.priority=t}),fs(),fs(),ds(10,"mat-form-field"),ds(11,"mat-label"),ds(12,"uds-translate"),Js(13,"Service pool"),fs(),fs(),ds(14,"mat-select",4),ws("ngModelChange",function(t){return e.memberPool.pool_id=t}),ss(15,uN,1,0,"uds-mat-select-search",5),ss(16,cN,2,2,"mat-option",6),fs(),fs(),ds(17,"div",7),ds(18,"span",8),ds(19,"uds-translate"),Js(20,"Enabled?"),fs(),fs(),ds(21,"mat-slide-toggle",4),ws("ngModelChange",function(t){return e.memberPool.enabled=t}),Js(22),fs(),fs(),fs(),fs(),ds(23,"mat-dialog-actions"),ds(24,"button",9),ds(25,"uds-translate"),Js(26,"Cancel"),fs(),fs(),ds(27,"button",10),ws("click",function(){return e.save()}),ds(28,"uds-translate"),Js(29,"Ok"),fs(),fs(),fs()),2&t&&(Ia(1),cs("ngIf",!(null!=e.memberPool&&e.memberPool.id)),Ia(1),cs("ngIf",null==e.memberPool?null:e.memberPool.id),Ia(7),cs("ngModel",e.memberPool.priority),Ia(5),cs("ngModel",e.memberPool.pool_id),Ia(1),cs("ngIf",e.servicePools.length>10),Ia(1),cs("ngForOf",e.filtered(e.servicePools,e.servicePoolsFilter)),Ia(5),cs("ngModel",e.memberPool.enabled),Ia(1),el(" ",e.api.yesno(e.memberPool.enabled)," "))},directives:[kS,Ph,wS,yI,uI,FS,zT,kx,$S,yx,aE,BI,Th,WM,CS,RS,bS,GT,tS],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 dN(t,e){1&t&&(ds(0,"uds-translate"),Js(1,"Summary"),fs())}function fN(t,e){if(1&t&&ps(0,"uds-information",17),2&t){var n=Ds(2);cs("value",n.metaPool)("gui",n.gui)}}function pN(t,e){1&t&&(ds(0,"uds-translate"),Js(1,"Service pools"),fs())}function mN(t,e){1&t&&(ds(0,"uds-translate"),Js(1,"Assigned services"),fs())}function vN(t,e){1&t&&(ds(0,"uds-translate"),Js(1,"Groups"),fs())}function gN(t,e){1&t&&(ds(0,"uds-translate"),Js(1,"Access calendars"),fs())}function yN(t,e){1&t&&(ds(0,"uds-translate"),Js(1,"Logs"),fs())}function _N(t,e){if(1&t){var n=ys();ds(0,"div",6),ds(1,"div",7),ds(2,"mat-tab-group",8),ws("selectedIndexChange",function(t){return nn(n),Ds().selectedTab=t}),ds(3,"mat-tab"),ss(4,dN,2,0,"ng-template",9),ds(5,"div",10),ss(6,fN,1,2,"uds-information",11),fs(),fs(),ds(7,"mat-tab"),ss(8,pN,2,0,"ng-template",9),ds(9,"div",10),ds(10,"uds-table",12),ws("newAction",function(t){return nn(n),Ds().onNewMemberPool(t)})("editAction",function(t){return nn(n),Ds().onEditMemberPool(t)})("deleteAction",function(t){return nn(n),Ds().onDeleteMemberPool(t)}),fs(),fs(),fs(),ds(11,"mat-tab"),ss(12,mN,2,0,"ng-template",9),ds(13,"div",10),ds(14,"uds-table",13),ws("customButtonAction",function(t){return nn(n),Ds().onCustomAssigned(t)})("deleteAction",function(t){return nn(n),Ds().onDeleteAssigned(t)}),fs(),fs(),fs(),ds(15,"mat-tab"),ss(16,vN,2,0,"ng-template",9),ds(17,"div",10),ds(18,"uds-table",14),ws("newAction",function(t){return nn(n),Ds().onNewGroup(t)})("deleteAction",function(t){return nn(n),Ds().onDeleteGroup(t)}),fs(),fs(),fs(),ds(19,"mat-tab"),ss(20,gN,2,0,"ng-template",9),ds(21,"div",10),ds(22,"uds-table",15),ws("newAction",function(t){return nn(n),Ds().onNewAccessCalendar(t)})("editAction",function(t){return nn(n),Ds().onEditAccessCalendar(t)})("deleteAction",function(t){return nn(n),Ds().onDeleteAccessCalendar(t)})("loaded",function(t){return nn(n),Ds().onAccessCalendarLoad(t)}),fs(),fs(),fs(),ds(23,"mat-tab"),ss(24,yN,2,0,"ng-template",9),ds(25,"div",10),ps(26,"uds-logs-table",16),fs(),fs(),fs(),fs(),fs()}if(2&t){var i=Ds();Ia(2),cs("selectedIndex",i.selectedTab)("@.disabled",!0),Ia(4),cs("ngIf",i.metaPool&&i.gui),Ia(4),cs("rest",i.memberPools)("multiSelect",!0)("allowExport",!0)("onItem",i.processElement)("customButtons",i.customButtons)("tableId","metaPools-d-members"+i.metaPool.id)("pageSize",i.api.config.admin.page_size),Ia(4),cs("rest",i.memberUserServices)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-services"+i.metaPool.id)("customButtons",i.customButtonsAssignedServices)("pageSize",i.api.config.admin.page_size),Ia(4),cs("rest",i.groups)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-groups"+i.metaPool.id)("pageSize",i.api.config.admin.page_size),Ia(4),cs("rest",i.accessCalendars)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-access"+i.metaPool.id)("pageSize",i.api.config.admin.page_size),Ia(4),cs("rest",i.rest.metaPools)("itemId",i.metaPool.id)("tableId","metaPools-d-log"+i.metaPool.id)("pageSize",i.api.config.admin.page_size)}}var bN=function(t){return["/pools","meta-pools",t]},kN=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.customButtons=[KA.getGotoButton(BA,"pool_id")],this.customButtonsAssignedServices=[{id:"change-owner",html:eN,type:NA.SINGLE_SELECT},{id:"log",html:QL,type:NA.SINGLE_SELECT},KA.getGotoButton(zA,"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){hN.launch(this.api,this.memberPools).subscribe(function(){return t.table.overview()})},t.prototype.onEditMemberPool=function(t){hN.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;KF.launch(this.api,e,this.memberUserServices).subscribe(function(e){return t.table.overview()})}else"log"===t.param.id&&IL.launch(this.api,e,this.memberUserServices)},t.prototype.onDeleteAssigned=function(t){aN.cleanInvalidSelections(t)||this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned service"))},t.prototype.onNewGroup=function(t){oL.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){eL.launch(this.api,this.metaPool,this.accessCalendars).subscribe(function(e){return t.table.overview()})},t.prototype.onEditAccessCalendar=function(t){eL.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)(us(dm),us(ND),us(pD))},t.\u0275cmp=ce({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","pageSize","newAction","editAction","deleteAction"],["icon","pools",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","customButtonAction","deleteAction"],["icon","groups",3,"rest","multiSelect","allowExport","tableId","pageSize","newAction","deleteAction"],["icon","calendars",3,"rest","multiSelect","allowExport","tableId","pageSize","newAction","editAction","deleteAction","loaded"],[3,"rest","itemId","tableId","pageSize"],[3,"value","gui"]],template:function(t,e){1&t&&(ds(0,"div",0),ds(1,"div",1),ds(2,"a",2),ds(3,"i",3),Js(4,"arrow_back"),fs(),fs(),Js(5," \xa0"),ps(6,"img",4),Js(7),fs(),ss(8,_N,27,30,"div",5),fs()),2&t&&(Ia(2),cs("routerLink",Du(4,bN,e.metaPool?e.metaPool.id:"")),Ia(4),cs("src",e.api.staticURL("admin/img/icons/metas.png"),Or),Ia(1),el(" ",null==e.metaPool?null:e.metaPool.name," "),Ia(1),cs("ngIf",e.metaPool))},directives:[Bv,Ph,nA,YE,HE,FP,KP,FS,tM],styles:[".mat-column-enabled, .mat-column-priority{max-width:8rem;justify-content:center}"]}),t}(),wN=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 pool group"),!1).subscribe(function(e){return t.table.overview()})},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit pool group"),!1).subscribe(function(e){return t.table.overview()})},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete pool group"))},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)(us(dm),us(ND),us(pD))},t.\u0275cmp=ce({type:t,selectors:[["uds-pool-groups"]],decls:1,vars:5,consts:[["icon","spool-group",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(ds(0,"uds-table",0),ws("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)}),fs()),2&t&&cs("rest",e.rest.servicesPoolGroups)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",e.api.config.admin.page_size)},directives:[FP],styles:[".mat-column-priority, .mat-column-thumb{max-width:7rem;justify-content:center}"]}),t}(),CN=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)(us(dm),us(ND),us(pD))},t.\u0275cmp=ce({type:t,selectors:[["uds-calendars"]],decls:1,vars:5,consts:[["icon","calendars",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,e){1&t&&(ds(0,"uds-table",0),ws("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)}),fs()),2&t&&cs("rest",e.rest.calendars)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",e.api.config.admin.page_size)},directives:[FP],styles:[""]}),t}(),SN=["mat-calendar-body",""];function xN(t,e){if(1&t&&(ds(0,"tr",2),ds(1,"td",3),Js(2),fs(),fs()),2&t){var n=Ds();Ia(1),zs("padding-top",n._cellPadding)("padding-bottom",n._cellPadding),as("colspan",n.numCols),Ia(1),el(" ",n.label," ")}}function EN(t,e){if(1&t&&(ds(0,"td",7),Js(1),fs()),2&t){var n=Ds(2);zs("padding-top",n._cellPadding)("padding-bottom",n._cellPadding),as("colspan",n._firstRowOffset),Ia(1),el(" ",n._firstRowOffset>=n.labelMinRequiredCells?n.label:""," ")}}function AN(t,e){if(1&t){var n=ys();ds(0,"td",8),ws("click",function(t){nn(n);var i=e.$implicit;return Ds(2)._cellClicked(i,t)}),ds(1,"div",9),Js(2),fs(),ps(3,"div",10),fs()}if(2&t){var i=e.$implicit,r=e.index,a=Ds().index,o=Ds();zs("width",o._cellWidth)("padding-top",o._cellPadding)("padding-bottom",o._cellPadding),Hs("mat-calendar-body-disabled",!i.enabled)("mat-calendar-body-active",o._isActiveCell(a,r))("mat-calendar-body-range-start",o._isRangeStart(i.compareValue))("mat-calendar-body-range-end",o._isRangeEnd(i.compareValue))("mat-calendar-body-in-range",o._isInRange(i.compareValue))("mat-calendar-body-comparison-bridge-start",o._isComparisonBridgeStart(i.compareValue,a,r))("mat-calendar-body-comparison-bridge-end",o._isComparisonBridgeEnd(i.compareValue,a,r))("mat-calendar-body-comparison-start",o._isComparisonStart(i.compareValue))("mat-calendar-body-comparison-end",o._isComparisonEnd(i.compareValue))("mat-calendar-body-in-comparison-range",o._isInComparisonRange(i.compareValue))("mat-calendar-body-preview-start",o._isPreviewStart(i.compareValue))("mat-calendar-body-preview-end",o._isPreviewEnd(i.compareValue))("mat-calendar-body-in-preview",o._isInPreview(i.compareValue)),cs("ngClass",i.cssClasses)("tabindex",o._isActiveCell(a,r)?0:-1),as("data-mat-row",a)("data-mat-col",r)("aria-label",i.ariaLabel)("aria-disabled",!i.enabled||null)("aria-selected",o._isSelected(i.compareValue)),Ia(1),Hs("mat-calendar-body-selected",o._isSelected(i.compareValue))("mat-calendar-body-comparison-identical",o._isComparisonIdentical(i.compareValue))("mat-calendar-body-today",o.todayValue===i.compareValue),Ia(1),el(" ",i.displayValue," ")}}function DN(t,e){if(1&t&&(ds(0,"tr",4),ss(1,EN,2,6,"td",5),ss(2,AN,4,46,"td",6),fs()),2&t){var n=e.$implicit,i=e.index,r=Ds();Ia(1),cs("ngIf",0===i&&r._firstRowOffset),Ia(1),cs("ngForOf",n)}}function IN(t,e){if(1&t&&(ds(0,"th",5),Js(1),fs()),2&t){var n=e.$implicit;as("aria-label",n.long),Ia(1),tl(n.narrow)}}var ON=["*"];function TN(t,e){}function RN(t,e){if(1&t){var n=ys();ds(0,"mat-month-view",5),ws("activeDateChange",function(t){return nn(n),Ds().activeDate=t})("_userSelection",function(t){return nn(n),Ds()._dateSelected(t)}),fs()}if(2&t){var i=Ds();cs("activeDate",i.activeDate)("selected",i.selected)("dateFilter",i.dateFilter)("maxDate",i.maxDate)("minDate",i.minDate)("dateClass",i.dateClass)("comparisonStart",i.comparisonStart)("comparisonEnd",i.comparisonEnd)}}function PN(t,e){if(1&t){var n=ys();ds(0,"mat-year-view",6),ws("activeDateChange",function(t){return nn(n),Ds().activeDate=t})("monthSelected",function(t){return nn(n),Ds()._monthSelectedInYearView(t)})("selectedChange",function(t){return nn(n),Ds()._goToDateInView(t,"month")}),fs()}if(2&t){var i=Ds();cs("activeDate",i.activeDate)("selected",i.selected)("dateFilter",i.dateFilter)("maxDate",i.maxDate)("minDate",i.minDate)("dateClass",i.dateClass)}}function MN(t,e){if(1&t){var n=ys();ds(0,"mat-multi-year-view",7),ws("activeDateChange",function(t){return nn(n),Ds().activeDate=t})("yearSelected",function(t){return nn(n),Ds()._yearSelectedInMultiYearView(t)})("selectedChange",function(t){return nn(n),Ds()._goToDateInView(t,"year")}),fs()}if(2&t){var i=Ds();cs("activeDate",i.activeDate)("selected",i.selected)("dateFilter",i.dateFilter)("maxDate",i.maxDate)("minDate",i.minDate)("dateClass",i.dateClass)}}function FN(t,e){}var LN=["button"];function NN(t,e){1&t&&(Tn(),ds(0,"svg",3),ps(1,"path",4),fs())}var VN=[[["","matDatepickerToggleIcon",""]]],jN=["[matDatepickerToggleIcon]"],BN=function(){var t=function(){function t(){a(this,t),this.changes=new q,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close 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 s(t,[{key:"formatYearRange",value:function(t,e){return"".concat(t," \u2013 ").concat(e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Rt({factory:function(){return new t},token:t,providedIn:"root"}),t}(),zN=function t(e,n,i,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e,l=arguments.length>6?arguments[6]:void 0;a(this,t),this.value=e,this.displayValue=n,this.ariaLabel=i,this.enabled=r,this.cssClasses=o,this.compareValue=s,this.rawValue=l},HN=function(){var t=function(){function t(e,n){var i=this;a(this,t),this._elementRef=e,this._ngZone=n,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new Vu,this.previewChange=new Vu,this._enterHandler=function(t){if(i._skipNextFocus&&"focus"===t.type)i._skipNextFocus=!1;else if(t.target&&i.isRange){var e=i._getCellFromElement(t.target);e&&i._ngZone.run(function(){return i.previewChange.emit({value:e.enabled?e:null,event:t})})}},this._leaveHandler=function(t){null!==i.previewEnd&&i.isRange&&t.target&&UN(t.target)&&i._ngZone.run(function(){return i.previewChange.emit({value:null,event:t})})},n.runOutsideAngular(function(){var t=e.nativeElement;t.addEventListener("mouseenter",i._enterHandler,!0),t.addEventListener("focus",i._enterHandler,!0),t.addEventListener("mouseleave",i._leaveHandler,!0),t.addEventListener("blur",i._leaveHandler,!0)})}return s(t,[{key:"_cellClicked",value:function(t,e){t.enabled&&this.selectedValueChange.emit({value:t.value,event:e})}},{key:"_isSelected",value:function(t){return this.startValue===t||this.endValue===t}},{key:"ngOnChanges",value: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="".concat(50*this.cellAspectRatio/i,"%")),!e&&this._cellWidth||(this._cellWidth="".concat(100/i,"%"))}},{key:"ngOnDestroy",value:function(){var t=this._elementRef.nativeElement;t.removeEventListener("mouseenter",this._enterHandler,!0),t.removeEventListener("focus",this._enterHandler,!0),t.removeEventListener("mouseleave",this._leaveHandler,!0),t.removeEventListener("blur",this._leaveHandler,!0)}},{key:"_isActiveCell",value:function(t,e){var n=t*this.numCols+e;return t&&(n-=this._firstRowOffset),n==this.activeCell}},{key:"_focusActiveCell",value:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this._ngZone.runOutsideAngular(function(){t._ngZone.onStable.pipe(Mf(1)).subscribe(function(){var n=t._elementRef.nativeElement.querySelector(".mat-calendar-body-active");n&&(e||(t._skipNextFocus=!0),n.focus())})})}},{key:"_isRangeStart",value:function(t){return qN(t,this.startValue,this.endValue)}},{key:"_isRangeEnd",value:function(t){return WN(t,this.startValue,this.endValue)}},{key:"_isInRange",value:function(t){return YN(t,this.startValue,this.endValue,this.isRange)}},{key:"_isComparisonStart",value:function(t){return qN(t,this.comparisonStart,this.comparisonEnd)}},{key:"_isComparisonBridgeStart",value:function(t,e,n){if(!this._isComparisonStart(t)||this._isRangeStart(t)||!this._isInRange(t))return!1;var i=this.rows[e][n-1];if(!i){var r=this.rows[e-1];i=r&&r[r.length-1]}return i&&!this._isRangeEnd(i.compareValue)}},{key:"_isComparisonBridgeEnd",value:function(t,e,n){if(!this._isComparisonEnd(t)||this._isRangeEnd(t)||!this._isInRange(t))return!1;var i=this.rows[e][n+1];if(!i){var r=this.rows[e+1];i=r&&r[0]}return i&&!this._isRangeStart(i.compareValue)}},{key:"_isComparisonEnd",value:function(t){return WN(t,this.comparisonStart,this.comparisonEnd)}},{key:"_isInComparisonRange",value:function(t){return YN(t,this.comparisonStart,this.comparisonEnd,this.isRange)}},{key:"_isComparisonIdentical",value:function(t){return this.comparisonStart===this.comparisonEnd&&t===this.comparisonStart}},{key:"_isPreviewStart",value:function(t){return qN(t,this.previewStart,this.previewEnd)}},{key:"_isPreviewEnd",value:function(t){return WN(t,this.previewStart,this.previewEnd)}},{key:"_isInPreview",value:function(t){return YN(t,this.previewStart,this.previewEnd,this.isRange)}},{key:"_getCellFromElement",value:function(t){var e;if(UN(t)?e=t:UN(t.parentNode)&&(e=t.parentNode),e){var n=e.getAttribute("data-mat-row"),i=e.getAttribute("data-mat-col");if(n&&i)return this.rows[parseInt(n)][parseInt(i)]}return null}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(Dl),us(xc))},t.\u0275cmp=ce({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:["role","grid","aria-readonly","true",1,"mat-calendar-body"],inputs:{numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",previewStart:"previewStart",previewEnd:"previewEnd",label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[Oe],attrs:SN,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",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["aria-hidden","true",1,"mat-calendar-body-label"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(t,e){1&t&&(ss(0,xN,3,6,"tr",0),ss(1,DN,3,2,"tr",1)),2&t&&(cs("ngIf",e._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .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}@media(hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n'],encapsulation:2,changeDetection:0}),t}();function UN(t){return"TD"===t.nodeName}function qN(t,e,n){return null!==n&&e!==n&&t=e&&t===n}function YN(t,e,n,i){return i&&null!==e&&null!==n&&e!==n&&t>=e&&t<=n}var GN=function t(e,n){a(this,t),this.start=e,this.end=n},KN=function(){var t=function(){function t(e,n){a(this,t),this.selection=e,this._adapter=n,this._selectionChanged=new q,this.selectionChanged=this._selectionChanged,this.selection=e}return s(t,[{key:"updateSelection",value:function(t,e){this.selection=t,this._selectionChanged.next({selection:t,source:e})}},{key:"ngOnDestroy",value:function(){this._selectionChanged.complete()}},{key:"_isValidDateInstance",value:function(t){return this._adapter.isDateInstance(t)&&this._adapter.isValid(t)}},{key:"clone",value:function(){return null}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Vi(void 0),Vi(kC))},t.\u0275prov=Rt({token:t,factory:t.\u0275fac}),t}(),ZN=function(){var t=function(t){u(n,t);var e=p(n);function n(t){return a(this,n),e.call(this,null,t)}return s(n,[{key:"add",value:function(t){r(i(n.prototype),"updateSelection",this).call(this,t,this)}},{key:"isValid",value:function(){return null!=this.selection&&this._isValidDateInstance(this.selection)}},{key:"isComplete",value:function(){return null!=this.selection}},{key:"clone",value:function(){var t=new n(this._adapter);return t.updateSelection(this.selection,this),t}}]),n}(KN);return t.\u0275fac=function(e){return new(e||t)(Vi(kC))},t.\u0275prov=Rt({token:t,factory:t.\u0275fac}),t}(),$N={provide:KN,deps:[[new Yi,new Gi,KN],kC],useFactory:function(t,e){return t||new ZN(e)}},XN=new bi("MAT_DATE_RANGE_SELECTION_STRATEGY"),QN=function(){var t=function(){function t(e,n,i,r,o){a(this,t),this._changeDetectorRef=e,this._dateFormats=n,this._dateAdapter=i,this._dir=r,this._rangeStrategy=o,this._rerenderSubscription=A.EMPTY,this.selectedChange=new Vu,this._userSelection=new Vu,this.activeDateChange=new Vu,this._activeDate=this._dateAdapter.today()}return s(t,[{key:"ngAfterContentInit",value:function(){var t=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Nf(null)).subscribe(function(){return t._init()})}},{key:"ngOnChanges",value:function(t){var e=t.comparisonStart||t.comparisonEnd;e&&!e.firstChange&&this._setRanges(this.selected)}},{key:"ngOnDestroy",value:function(){this._rerenderSubscription.unsubscribe()}},{key:"_dateSelected",value:function(t){var e,n,i=t.value,r=this._dateAdapter.getYear(this.activeDate),a=this._dateAdapter.getMonth(this.activeDate),o=this._dateAdapter.createDate(r,a,i);this._selected instanceof GN?(e=this._getDateInCurrentMonth(this._selected.start),n=this._getDateInCurrentMonth(this._selected.end)):e=n=this._getDateInCurrentMonth(this._selected),e===i&&n===i||this.selectedChange.emit(o),this._userSelection.emit({value:o,event:t.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}},{key:"_handleCalendarBodyKeydown",value:function(t){var e=this._activeDate,n=this._isRtl();switch(t.keyCode){case Py:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?1:-1);break;case Fy:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?-1:1);break;case My:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case Ly:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case Ry:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case Ty: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 Dy:case Oy:return void(this.dateFilter&&!this.dateFilter(this._activeDate)||(this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:t}),t.preventDefault()));case Iy:return void(null==this._previewEnd||Ny(t)||(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:t}),t.preventDefault(),t.stopPropagation()));default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}},{key:"_init",value:function(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.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()}},{key:"_focusActiveCell",value:function(t){this._matCalendarBody._focusActiveCell(t)}},{key:"_previewChanged",value:function(t){var e=t.value;if(this._rangeStrategy){var n=this._rangeStrategy.createPreview(e?e.rawValue:null,this.selected,t.event);this._previewStart=this._getCellCompareValue(n.start),this._previewEnd=this._getCellCompareValue(n.end),this._changeDetectorRef.detectChanges()}}},{key:"_initWeekdays",value: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))}},{key:"_createWeekCells",value: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)&&(!this.dateFilter||this.dateFilter(t))}},{key:"_getDateInCurrentMonth",value:function(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null}},{key:"_hasSameMonthAndYear",value:function(t,e){return!(!t||!e||this._dateAdapter.getMonth(t)!=this._dateAdapter.getMonth(e)||this._dateAdapter.getYear(t)!=this._dateAdapter.getYear(e))}},{key:"_getCellCompareValue",value:function(t){if(t){var e=this._dateAdapter.getYear(t),n=this._dateAdapter.getMonth(t),i=this._dateAdapter.getDate(t);return new Date(e,n,i).getTime()}return null}},{key:"_isRtl",value:function(){return this._dir&&"rtl"===this._dir.value}},{key:"_setRanges",value:function(t){t instanceof GN?(this._rangeStart=this._getCellCompareValue(t.start),this._rangeEnd=this._getCellCompareValue(t.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(t),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}},{key:"activeDate",get:function(){return this._activeDate},set:function(t){var e=this._activeDate,n=this._dateAdapter.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()}},{key:"selected",get:function(){return this._selected},set:function(t){this._selected=t instanceof GN?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setRanges(this._selected)}},{key:"minDate",get:function(){return this._minDate},set:function(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}},{key:"maxDate",get:function(){return this._maxDate},set:function(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(tu),us(wC,8),us(kC,8),us(oy,8),us(XN,8))},t.\u0275cmp=ce({type:t,selectors:[["mat-month-view"]],viewQuery:function(t,e){var n;1&t&&Xu(HN,1),2&t&&$u(n=Ju())&&(e._matCalendarBody=n.first)},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[Oe],decls:7,vars:13,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","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keydown"],["scope","col"]],template:function(t,e){1&t&&(ds(0,"table",0),ds(1,"thead",1),ds(2,"tr"),ss(3,IN,2,2,"th",2),fs(),ds(4,"tr"),ps(5,"th",3),fs(),fs(),ds(6,"tbody",4),ws("selectedValueChange",function(t){return e._dateSelected(t)})("previewChange",function(t){return e._previewChanged(t)})("keydown",function(t){return e._handleCalendarBodyKeydown(t)}),fs(),fs()),2&t&&(Ia(3),cs("ngForOf",e._weekdays),Ia(3),cs("label",e._monthLabel)("rows",e._weeks)("todayValue",e._todayDate)("startValue",e._rangeStart)("endValue",e._rangeEnd)("comparisonStart",e._comparisonRangeStart)("comparisonEnd",e._comparisonRangeEnd)("previewStart",e._previewStart)("previewEnd",e._previewEnd)("isRange",e._isRange)("labelMinRequiredCells",3)("activeCell",e._dateAdapter.getDate(e.activeDate)-1))},directives:[Th,HN],encapsulation:2,changeDetection:0}),t}(),JN=24,tV=function(){var t=function(){function t(e,n,i){a(this,t),this._changeDetectorRef=e,this._dateAdapter=n,this._dir=i,this._rerenderSubscription=A.EMPTY,this.selectedChange=new Vu,this.yearSelected=new Vu,this.activeDateChange=new Vu,this._activeDate=this._dateAdapter.today()}return s(t,[{key:"ngAfterContentInit",value:function(){var t=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Nf(null)).subscribe(function(){return t._init()})}},{key:"ngOnDestroy",value:function(){this._rerenderSubscription.unsubscribe()}},{key:"_init",value:function(){var t=this;this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());var e=this._dateAdapter.getYear(this._activeDate)-nV(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(var n=0,i=[];nthis._dateAdapter.getYear(this.maxDate)||this.minDate&&tn||t===n&&e>i}return!1}},{key:"_isYearAndMonthBeforeMinDate",value:function(t,e){if(this.minDate){var n=this._dateAdapter.getYear(this.minDate),i=this._dateAdapter.getMonth(this.minDate);return t enter",fb("120ms cubic-bezier(0, 0, 0.2, 1)",mb({opacity:1,transform:"scale(1, 1)"}))),yb("* => void",fb("100ms linear",mb({opacity:0})))]),fadeInCalendar:db("fadeInCalendar",[vb("void",mb({opacity:0})),vb("enter",mb({opacity:1})),yb("void => *",fb("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},uV=0,cV=new bi("mat-datepicker-scroll-strategy"),hV={provide:cV,deps:[d_],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},dV=pC(function t(e){a(this,t),this._elementRef=e}),fV=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,s,l){var u;return a(this,n),(u=e.call(this,t))._changeDetectorRef=i,u._globalModel=r,u._dateAdapter=o,u._rangeSelectionStrategy=s,u._subscriptions=new A,u._animationState="enter",u._animationDone=new q,u._actionsPortal=null,u._closeButtonText=(null==l?void 0:l.closeCalendarLabel)||"Close calendar",u}return s(n,[{key:"ngOnInit",value:function(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel}},{key:"ngAfterViewInit",value:function(){var t=this;this._subscriptions.add(this.datepicker.stateChanges.subscribe(function(){t._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}},{key:"ngOnDestroy",value:function(){this._subscriptions.unsubscribe(),this._animationDone.complete()}},{key:"_handleUserSelection",value:function(t){var e=this._model.selection,n=t.value,i=e instanceof GN;if(i&&this._rangeSelectionStrategy){var r=this._rangeSelectionStrategy.selectionFinished(n,e,t.event);this._model.updateSelection(r,this)}else!n||!i&&this._dateAdapter.sameDate(n,e)||this._model.add(n);this._model&&!this._model.isComplete()||this._actionsPortal||this.datepicker.close()}},{key:"_startExitAnimation",value:function(){this._animationState="void",this._changeDetectorRef.markForCheck()}},{key:"_getSelected",value:function(){return this._model.selection}},{key:"_applyPendingSelection",value:function(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}}]),n}(dV);return t.\u0275fac=function(e){return new(e||t)(us(Dl),us(tu),us(KN),us(kC),us(XN,8),us(BN))},t.\u0275cmp=ce({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(t,e){var n;1&t&&Xu(sV,1),2&t&&$u(n=Ju())&&(e._calendar=n.first)},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(t,e){1&t&&Cs("@transformPanel.done",function(){return e._animationDone.next()}),2&t&&(rl("@transformPanel",e._animationState),Hs("mat-datepicker-content-touch",e.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[Yo],decls:5,vars:20,consts:[["cdkTrapFocus","",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(t,e){1&t&&(ds(0,"div",0),ds(1,"mat-calendar",1),ws("yearSelected",function(t){return e.datepicker._selectYear(t)})("monthSelected",function(t){return e.datepicker._selectMonth(t)})("viewChanged",function(t){return e.datepicker._viewChanged(t)})("_userSelection",function(t){return e._handleUserSelection(t)}),fs(),ss(2,FN,0,0,"ng-template",2),ds(3,"button",3),ws("focus",function(){return e._closeButtonFocused=!0})("blur",function(){return e._closeButtonFocused=!1})("click",function(){return e.datepicker.close()}),Js(4),fs(),fs()),2&t&&(Hs("mat-datepicker-content-container-with-actions",e._actionsPortal),Ia(1),cs("id",e.datepicker.id)("ngClass",e.datepicker.panelClass)("startAt",e.datepicker.startAt)("startView",e.datepicker.startView)("minDate",e.datepicker._getMinDate())("maxDate",e.datepicker._getMaxDate())("dateFilter",e.datepicker._getDateFilter())("headerComponent",e.datepicker.calendarHeaderComponent)("selected",e._getSelected())("dateClass",e.datepicker.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("@fadeInCalendar","enter"),Ia(1),cs("cdkPortalOutlet",e._actionsPortal),Ia(1),Hs("cdk-visually-hidden",!e._closeButtonFocused),cs("color",e.color||"primary"),Ia(1),tl(e._closeButtonText))},directives:[W_,sV,Ih,Sy,RS],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;overflow:auto;margin:-24px}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\n"],encapsulation:2,data:{animation:[lV.transformPanel,lV.fadeInCalendar]},changeDetection:0}),t}(),pV=function(){var t=function(){function t(e,n,i,r,o,s,l,u,c){a(this,t),this._dialog=e,this._overlay=n,this._ngZone=i,this._viewContainerRef=r,this._dateAdapter=s,this._dir=l,this._document=u,this._model=c,this._inputStateChanges=A.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new Vu,this.monthSelected=new Vu,this.viewChanged=new Vu(!0),this.openedStream=new Vu,this.closedStream=new Vu,this._opened=!1,this.id="mat-datepicker-".concat(uV++),this._focusedElementBeforeOpen=null,this._backdropHarnessClass="".concat(this.id,"-backdrop"),this.stateChanges=new q,this._scrollStrategy=o}return s(t,[{key:"_getMinDate",value:function(){return this.datepickerInput&&this.datepickerInput.min}},{key:"_getMaxDate",value:function(){return this.datepickerInput&&this.datepickerInput.max}},{key:"_getDateFilter",value:function(){return this.datepickerInput&&this.datepickerInput.dateFilter}},{key:"ngOnChanges",value:function(t){var e=t.xPosition||t.yPosition;e&&!e.firstChange&&this._popupRef&&(this._setConnectedPositions(this._popupRef.getConfig().positionStrategy),this.opened&&this._popupRef.updatePosition()),this.stateChanges.next(void 0)}},{key:"ngOnDestroy",value:function(){this._destroyPopup(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}},{key:"select",value:function(t){this._model.add(t)}},{key:"_selectYear",value:function(t){this.yearSelected.emit(t)}},{key:"_selectMonth",value:function(t){this.monthSelected.emit(t)}},{key:"_viewChanged",value:function(t){this.viewChanged.emit(t)}},{key:"registerInput",value:function(t){var e=this;return this._inputStateChanges.unsubscribe(),this.datepickerInput=t,this._inputStateChanges=t.stateChanges.subscribe(function(){return e.stateChanges.next(void 0)}),this._model}},{key:"registerActions",value:function(t){this._actionsPortal=t}},{key:"removeActions",value:function(t){t===this._actionsPortal&&(this._actionsPortal=null)}},{key:"open",value:function(){this._opened||this.disabled||(this._document&&(this._focusedElementBeforeOpen=this._document.activeElement),this.touchUi?this._openAsDialog():this._openAsPopup(),this._opened=!0,this.openedStream.emit())}},{key:"close",value:function(){var t=this;if(this._opened){if(this._popupComponentRef&&this._popupRef){var e=this._popupComponentRef.instance;e._startExitAnimation(),e._animationDone.pipe(Mf(1)).subscribe(function(){return t._destroyPopup()})}this._dialogRef&&(this._dialogRef.close(),this._dialogRef=null);var n=function(){t._opened&&(t._opened=!1,t.closedStream.emit(),t._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(n)):n()}}},{key:"_applyPendingSelection",value:function(){var t,e,n=(null===(t=this._popupComponentRef)||void 0===t?void 0:t.instance)||(null===(e=this._dialogRef)||void 0===e?void 0:e.componentInstance);null==n||n._applyPendingSelection()}},{key:"_openAsDialog",value:function(){var t=this;this._dialogRef&&this._dialogRef.close(),this._dialogRef=this._dialog.open(fV,{direction:this._dir?this._dir.value:"ltr",viewContainerRef:this._viewContainerRef,panelClass:"mat-datepicker-dialog",hasBackdrop:!0,disableClose:!1,backdropClass:["cdk-overlay-dark-backdrop",this._backdropHarnessClass],width:"",height:"",minWidth:"",minHeight:"",maxWidth:"80vw",maxHeight:"",position:{},autoFocus:!1,restoreFocus:!1}),this._dialogRef.afterClosed().subscribe(function(){return t.close()}),this._forwardContentValues(this._dialogRef.componentInstance)}},{key:"_openAsPopup",value:function(){var t=this,e=new yy(fV,this._viewContainerRef);this._destroyPopup(),this._createPopup(),this._popupComponentRef=this._popupRef.attach(e),this._forwardContentValues(this._popupComponentRef.instance),this._ngZone.onStable.pipe(Mf(1)).subscribe(function(){t._popupRef.updatePosition()})}},{key:"_forwardContentValues",value:function(t){t.datepicker=this,t.color=this.color,t._actionsPortal=this._actionsPortal}},{key:"_createPopup",value:function(){var t=this,e=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition(),n=new Yy({positionStrategy:this._setConnectedPositions(e),hasBackdrop:!0,backdropClass:["mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:this._scrollStrategy(),panelClass:"mat-datepicker-popup"});this._popupRef=this._overlay.create(n),this._popupRef.overlayElement.setAttribute("role","dialog"),dt(this._popupRef.backdropClick(),this._popupRef.detachments(),this._popupRef.keydownEvents().pipe(Pd(function(e){return e.keyCode===Iy&&!Ny(e)||t.datepickerInput&&Ny(e,"altKey")&&e.keyCode===My}))).subscribe(function(e){e&&e.preventDefault(),t.close()})}},{key:"_destroyPopup",value:function(){this._popupRef&&(this._popupRef.dispose(),this._popupRef=this._popupComponentRef=null)}},{key:"_setConnectedPositions",value:function(t){var e="end"===this.xPosition?"end":"start",n="start"===e?"end":"start",i="above"===this.yPosition?"bottom":"top",r="top"===i?"bottom":"top";return t.withPositions([{originX:e,originY:r,overlayX:e,overlayY:i},{originX:e,originY:i,overlayX:e,overlayY:r},{originX:n,originY:r,overlayX:n,overlayY:i},{originX:n,originY:i,overlayX:n,overlayY:r}])}},{key:"startAt",get:function(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)},set:function(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}},{key:"color",get:function(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)},set:function(t){this._color=t}},{key:"touchUi",get:function(){return this._touchUi},set:function(t){this._touchUi=cg(t)}},{key:"disabled",get:function(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled},set:function(t){var e=cg(t);e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}},{key:"restoreFocus",get:function(){return this._restoreFocus},set:function(t){this._restoreFocus=cg(t)}},{key:"panelClass",get:function(){return this._panelClass},set:function(t){this._panelClass=vg(t)}},{key:"opened",get:function(){return this._opened},set:function(t){cg(t)?this.open():this.close()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(yS),us(d_),us(xc),us(fu),us(cV),us(kC,8),us(oy,8),us(sh,8),us(KN))},t.\u0275dir=ve({type:t,inputs:{startView:"startView",xPosition:"xPosition",yPosition:"yPosition",startAt:"startAt",color:"color",touchUi:"touchUi",disabled:"disabled",restoreFocus:"restoreFocus",panelClass:"panelClass",opened:"opened",calendarHeaderComponent:"calendarHeaderComponent",dateClass:"dateClass"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[Oe]}),t}(),mV=function(){var t=function(t){u(n,t);var e=p(n);function n(){return a(this,n),e.apply(this,arguments)}return n}(pV);return t.\u0275fac=function(e){return vV(e||t)},t.\u0275cmp=ce({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[bl([$N,{provide:pV,useExisting:t}]),Yo],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),t}(),vV=mi(mV),gV=function t(e,n){a(this,t),this.target=e,this.targetElement=n,this.value=this.target.value},yV=function(){var t=function(){function t(e,n,i){var r=this;a(this,t),this._elementRef=e,this._dateAdapter=n,this._dateFormats=i,this.dateChange=new Vu,this.dateInput=new Vu,this.stateChanges=new q,this._onTouched=function(){},this._validatorOnChange=function(){},this._cvaOnChange=function(){},this._valueChangesSubscription=A.EMPTY,this._localeSubscription=A.EMPTY,this._parseValidator=function(){return r._lastValueValid?null:{matDatepickerParse:{text:r._elementRef.nativeElement.value}}},this._filterValidator=function(t){var e=r._dateAdapter.getValidDateOrNull(r._dateAdapter.deserialize(t.value));return!e||r._matchesFilter(e)?null:{matDatepickerFilter:!0}},this._minValidator=function(t){var e=r._dateAdapter.getValidDateOrNull(r._dateAdapter.deserialize(t.value)),n=r._getMinDate();return!n||!e||r._dateAdapter.compareDate(n,e)<=0?null:{matDatepickerMin:{min:n,actual:e}}},this._maxValidator=function(t){var e=r._dateAdapter.getValidDateOrNull(r._dateAdapter.deserialize(t.value)),n=r._getMaxDate();return!n||!e||r._dateAdapter.compareDate(n,e)>=0?null:{matDatepickerMax:{max:n,actual:e}}},this._lastValueValid=!1,this._localeSubscription=n.localeChanges.subscribe(function(){r._assignValueProgrammatically(r.value)})}return s(t,[{key:"_getValidators",value:function(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}},{key:"_registerModel",value:function(t){var e=this;this._model=t,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(function(t){if(e._shouldHandleChangeEvent(t)){var n=e._getValueFromModel(t.selection);e._lastValueValid=e._isValidValue(n),e._cvaOnChange(n),e._onTouched(),e._formatValue(n),e.dateInput.emit(new gV(e,e._elementRef.nativeElement)),e.dateChange.emit(new gV(e,e._elementRef.nativeElement))}})}},{key:"ngAfterViewInit",value:function(){this._isInitialized=!0}},{key:"ngOnChanges",value:function(t){(function(t,e){for(var n=0,i=Object.keys(t);n2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this.multiple||!this.selected||t.checked||(this.selected.checked=!1),this._selectionModel?e?this._selectionModel.select(t):this._selectionModel.deselect(t):r=!0,r?Promise.resolve().then(function(){return n._updateModelValue(i)}):this._updateModelValue(i)}},{key:"_isSelected",value:function(t){return this._selectionModel&&this._selectionModel.isSelected(t)}},{key:"_isPrechecked",value: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)}},{key:"_setSelectionByValue",value:function(t){var e=this;this._rawValue=t,this._buttonToggles&&(this.multiple&&t?(Array.isArray(t),this._clearSelection(),t.forEach(function(t){return e._selectValue(t)})):(this._clearSelection(),this._selectValue(t)))}},{key:"_clearSelection",value:function(){this._selectionModel.clear(),this._buttonToggles.forEach(function(t){return t.checked=!1})}},{key:"_selectValue",value:function(t){var e=this._buttonToggles.find(function(e){return null!=e.value&&e.value===t});e&&(e.checked=!0,this._selectionModel.select(e))}},{key:"_updateModelValue",value:function(t){t&&this._emitChangeEvent(),this.valueChange.emit(this.value)}},{key:"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()})}},{key:"vertical",get:function(){return this._vertical},set:function(t){this._vertical=cg(t)}},{key:"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)}},{key:"selected",get:function(){var t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t:t[0]||null}},{key:"multiple",get:function(){return this._multiple},set:function(t){this._multiple=cg(t)}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=cg(t),this._buttonToggles&&this._buttonToggles.forEach(function(t){return t._markForCheck()})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(tu),us(AV,8))},t.\u0275dir=ve({type:t,selectors:[["mat-button-toggle-group"]],contentQueries:function(t,e,n){var i;1&t&&Qu(n,MV,1),2&t&&$u(i=Ju())&&(e._buttonToggles=i)},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(t,e){2&t&&(as("aria-disabled",e.disabled),Hs("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:[bl([IV,{provide:DV,useExisting:t}])]}),t}(),PV=mC(function t(){a(this,t)}),MV=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,s,l){var u;a(this,n),(u=e.call(this))._changeDetectorRef=i,u._elementRef=r,u._focusMonitor=o,u._isSingleSelector=!1,u._checked=!1,u.ariaLabelledby=null,u._disabled=!1,u.change=new Vu;var c=Number(s);return u.tabIndex=c||0===c?c:null,u.buttonToggleGroup=t,u.appearance=l&&l.appearance?l.appearance:"standard",u}return s(n,[{key:"ngOnInit",value:function(){var t=this.buttonToggleGroup;this._isSingleSelector=t&&!t.multiple,this.id=this.id||"mat-button-toggle-".concat(OV++),this._isSingleSelector&&(this.name=t.name),t&&(t._isPrechecked(this)?this.checked=!0:t._isSelected(this)!==this._checked&&t._syncButtonToggle(this,this._checked))}},{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){var t=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),t&&t._isSelected(this)&&t._syncButtonToggle(this,!1,!1,!0)}},{key:"focus",value:function(t){this._buttonElement.nativeElement.focus(t)}},{key:"_onButtonClick",value: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 TV(this,this.value))}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}},{key:"buttonId",get:function(){return"".concat(this.id,"-button")}},{key:"appearance",get:function(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance},set:function(t){this._appearance=t}},{key:"checked",get:function(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked},set:function(t){var e=cg(t);e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled},set:function(t){this._disabled=cg(t)}}]),n}(PV);return t.\u0275fac=function(e){return new(e||t)(us(DV,8),us(tu),us(Dl),us(tb),gi("tabindex"),us(AV,8))},t.\u0275cmp=ce({type:t,selectors:[["mat-button-toggle"]],viewQuery:function(t,e){var n;1&t&&Xu(xV,1),2&t&&$u(n=Ju())&&(e._buttonElement=n.first)},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(t,e){1&t&&ws("focus",function(){return e.focus()}),2&t&&(as("aria-label",null)("aria-labelledby",null)("id",e.id)("name",null),Hs("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",ariaLabelledby:["aria-labelledby","ariaLabelledby"],tabIndex:"tabIndex",appearance:"appearance",checked:"checked",disabled:"disabled",id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],value:"value"},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[Yo],ngContentSelectors:EV,decls:6,vars:9,consts:[["type","button",1,"mat-button-toggle-button","mat-focus-indicator",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&&(Os(),ds(0,"button",0,1),ws("click",function(){return e._onButtonClick()}),ds(2,"span",2),Ts(3),fs(),fs(),ps(4,"span",3),ps(5,"span",4)),2&t){var n=ls(1);cs("id",e.buttonId)("disabled",e.disabled||null),as("tabindex",e.disabled?-1:e.tabIndex)("aria-pressed",e.checked)("name",e.name||null)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),Ia(5),cs("matRippleTrigger",n)("matRippleDisabled",e.disableRipple||e.disabled)}},directives:[HC],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;border-radius:2px;-webkit-tap-highlight-color:transparent}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:4px}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-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}.cdk-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}.cdk-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{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}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}.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:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}\n"],encapsulation:2,changeDetection:0}),t}(),FV=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({imports:[[dC,UC],dC]}),t}();function LV(t,e){1&t&&(ds(0,"uds-translate"),Js(1,"Edit rule"),fs())}function NV(t,e){1&t&&(ds(0,"uds-translate"),Js(1,"New rule"),fs())}function VV(t,e){if(1&t&&(ds(0,"mat-option",22),Js(1),fs()),2&t){var n=e.$implicit;cs("value",n.id),Ia(1),el(" ",n.value," ")}}function jV(t,e){if(1&t&&(ds(0,"mat-option",22),Js(1),fs()),2&t){var n=e.$implicit;cs("value",n.id),Ia(1),el(" ",n.value," ")}}function BV(t,e){if(1&t&&(ds(0,"mat-button-toggle",22),Js(1),fs()),2&t){var n=e.$implicit;cs("value",n.id),Ia(1),el(" ",n.value," ")}}function zV(t,e){if(1&t){var n=ys();ds(0,"div",23),ds(1,"span",24),ds(2,"uds-translate"),Js(3,"Weekdays"),fs(),fs(),ds(4,"mat-button-toggle-group",25),ws("ngModelChange",function(t){return nn(n),Ds().wDays=t}),ss(5,BV,2,2,"mat-button-toggle",8),fs(),fs()}if(2&t){var i=Ds();Ia(4),cs("ngModel",i.wDays),Ia(1),cs("ngForOf",i.weekDays)}}function HV(t,e){if(1&t){var n=ys();ds(0,"mat-form-field",9),ds(1,"mat-label"),ds(2,"uds-translate"),Js(3,"Repeat every"),fs(),fs(),ds(4,"input",6),ws("ngModelChange",function(t){return nn(n),Ds().rule.interval=t}),fs(),ds(5,"div",26),Js(6),fs(),fs()}if(2&t){var i=Ds();Ia(4),cs("ngModel",i.rule.interval),Ia(2),el("\xa0",i.frequency(),"")}}var UV={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")]},qV={MINUTES:django.gettext("Minutes"),HOURS:django.gettext("Hours"),DAYS:django.gettext("Days"),WEEKS:django.gettext("Weeks")},WV=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],YV=function(t,e){void 0===e&&(e=!1);for(var n=new Array,i=0;i<7;i++)1&t&&n.push(WV[i].substr(0,e?100:3)),t>>=1;return n.length?n.join(", "):django.gettext("(no days)")},GV=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.dunits=Object.keys(qV).map(function(t){return{id:t,value:qV[t]}}),this.freqs=Object.keys(UV).map(function(t){return{id:t,value:UV[t][2]}}),this.weekDays=WV.map(function(t,e){return{id:1<0?" "+django.gettext("and every event will be active for")+" "+this.rule.duration+" "+qV[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)(us(pD),us(ND),us(hS),us(fS))},t.\u0275cmp=ce({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&&(ds(0,"h4",0),ss(1,LV,2,0,"uds-translate",1),ss(2,NV,2,0,"uds-translate",1),fs(),ds(3,"mat-dialog-content"),ds(4,"div",2),ds(5,"mat-form-field"),ds(6,"mat-label"),ds(7,"uds-translate"),Js(8,"Name"),fs(),fs(),ds(9,"input",3),ws("ngModelChange",function(t){return e.rule.name=t}),fs(),fs(),ds(10,"mat-form-field"),ds(11,"mat-label"),ds(12,"uds-translate"),Js(13,"Comments"),fs(),fs(),ds(14,"input",3),ws("ngModelChange",function(t){return e.rule.comments=t}),fs(),fs(),ds(15,"h3"),ds(16,"uds-translate"),Js(17,"Event"),fs(),fs(),ds(18,"mat-form-field",4),ds(19,"mat-label"),ds(20,"uds-translate"),Js(21,"Start time"),fs(),fs(),ds(22,"input",5),ws("ngModelChange",function(t){return e.startTime=t}),fs(),fs(),ds(23,"mat-form-field",4),ds(24,"mat-label"),ds(25,"uds-translate"),Js(26,"Duration"),fs(),fs(),ds(27,"input",6),ws("ngModelChange",function(t){return e.rule.duration=t}),fs(),fs(),ds(28,"mat-form-field",4),ds(29,"mat-label"),ds(30,"uds-translate"),Js(31,"Duration units"),fs(),fs(),ds(32,"mat-select",7),ws("ngModelChange",function(t){return e.rule.duration_unit=t}),ss(33,VV,2,2,"mat-option",8),fs(),fs(),ds(34,"h3"),Js(35," Repetition "),fs(),ds(36,"mat-form-field",9),ds(37,"mat-label"),ds(38,"uds-translate"),Js(39," Start date "),fs(),fs(),ds(40,"input",10),ws("ngModelChange",function(t){return e.startDate=t}),fs(),ps(41,"mat-datepicker-toggle",11),ps(42,"mat-datepicker",null,12),fs(),ds(44,"mat-form-field",9),ds(45,"mat-label"),ds(46,"uds-translate"),Js(47," Repeat until date "),fs(),fs(),ds(48,"input",13),ws("ngModelChange",function(t){return e.endDate=t}),fs(),ps(49,"mat-datepicker-toggle",11),ps(50,"mat-datepicker",null,14),fs(),ds(52,"div",15),ds(53,"mat-form-field",9),ds(54,"mat-label"),ds(55,"uds-translate"),Js(56,"Frequency"),fs(),fs(),ds(57,"mat-select",16),ws("ngModelChange",function(t){return e.rule.frequency=t})("valueChange",function(){return e.rule.interval=1}),ss(58,jV,2,2,"mat-option",8),fs(),fs(),ss(59,zV,6,2,"div",17),ss(60,HV,7,2,"mat-form-field",18),fs(),ds(61,"h3"),ds(62,"uds-translate"),Js(63,"Summary"),fs(),fs(),ds(64,"div",19),Js(65),fs(),fs(),fs(),ds(66,"mat-dialog-actions"),ds(67,"button",20),ds(68,"uds-translate"),Js(69,"Cancel"),fs(),fs(),ds(70,"button",21),ws("click",function(){return e.save()}),ds(71,"uds-translate"),Js(72,"Ok"),fs(),fs(),fs()),2&t){var n=ls(43),i=ls(51);Ia(1),cs("ngIf",e.rule.id),Ia(1),cs("ngIf",!e.rule.id),Ia(7),cs("ngModel",e.rule.name),Ia(5),cs("ngModel",e.rule.comments),Ia(8),cs("ngModel",e.startTime),Ia(5),cs("ngModel",e.rule.duration),Ia(5),cs("ngModel",e.rule.duration_unit),Ia(1),cs("ngForOf",e.dunits),Ia(7),cs("matDatepicker",n)("ngModel",e.startDate),Ia(1),cs("for",n),Ia(7),cs("matDatepicker",i)("ngModel",e.endDate)("placeholder",e.FOREVER_STRING),Ia(1),cs("for",i),Ia(8),cs("ngModel",e.rule.frequency),Ia(1),cs("ngForOf",e.freqs),Ia(1),cs("ngIf","WEEKDAYS"===e.rule.frequency),Ia(1),cs("ngIf","WEEKDAYS"!==e.rule.frequency),Ia(5),el(" ",e.summary()," "),Ia(5),cs("disabled",null!==e.updateRuleData()||""===e.rule.name)}},directives:[kS,Ph,wS,yI,uI,FS,zT,$S,yx,aE,kx,BI,Th,kV,CV,fI,mV,CS,RS,bS,tS,RV,MV],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 KV(t,e){1&t&&(ds(0,"uds-translate"),Js(1,"Rules"),fs())}function ZV(t,e){if(1&t){var n=ys();ds(0,"div",6),ds(1,"div",7),ds(2,"mat-tab-group",8),ds(3,"mat-tab"),ss(4,KV,2,0,"ng-template",9),ds(5,"div",10),ds(6,"uds-table",11),ws("newAction",function(t){return nn(n),Ds().onNewRule(t)})("editAction",function(t){return nn(n),Ds().onEditRule(t)})("deleteAction",function(t){return nn(n),Ds().onDeleteRule(t)}),fs(),fs(),fs(),fs(),fs(),fs()}if(2&t){var i=Ds();Ia(2),cs("@.disabled",!0),Ia(4),cs("rest",i.calendarRules)("multiSelect",!0)("allowExport",!0)("onItem",i.processElement)("tableId","calendars-d-rules"+i.calendar.id)("pageSize",i.api.config.admin.page_size)}}var $V=function(t){return["/pools","calendars",t]},XV=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){GV.launch(this.api,this.calendarRules).subscribe(function(){return t.table.overview()})},t.prototype.onEditRule=function(t){GV.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?YV(t.interval):t.interval+" "+UV[t.frequency][django.pluralidx(t.interval)],t.duration=t.duration+" "+qV[t.duration_unit]}(t)},t.\u0275fac=function(e){return new(e||t)(us(dm),us(ND),us(pD))},t.\u0275cmp=ce({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","pageSize","newAction","editAction","deleteAction"]],template:function(t,e){1&t&&(ds(0,"div",0),ds(1,"div",1),ds(2,"a",2),ds(3,"i",3),Js(4,"arrow_back"),fs(),fs(),Js(5," \xa0"),ps(6,"img",4),Js(7),fs(),ss(8,ZV,7,7,"div",5),fs()),2&t&&(Ia(2),cs("routerLink",Du(4,$V,e.calendar?e.calendar.id:"")),Ia(4),cs("src",e.api.staticURL("admin/img/icons/calendars.png"),Or),Ia(1),el(" ",null==e.calendar?null:e.calendar.name," "),Ia(1),cs("ngIf",e.calendar))},directives:[Bv,Ph,nA,YE,HE,FP,FS],styles:[".mat-column-end, .mat-column-frequency, .mat-column-start{max-width:9rem} .mat-column-duration, .mat-column-interval{max-width:11rem}"]}),t}(),QV='event'+django.gettext("Set time mark")+"",JV=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.cButtons=[{id:"timemark",html:QV,type:NA.SINGLE_SELECT}]}return t.prototype.ngOnInit=function(){},Object.defineProperty(t.prototype,"customButtons",{get:function(){return this.api.user.isAdmin?this.cButtons:[]},enumerable:!1,configurable:!0}),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 stablished"),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"):vR("SHORT_DATE_FORMAT",t.time_mark)},t.\u0275fac=function(e){return new(e||t)(us(dm),us(ND),us(pD))},t.\u0275cmp=ce({type:t,selectors:[["uds-accounts"]],decls:1,vars:7,consts:[["icon","accounts",3,"rest","multiSelect","allowExport","hasPermissions","customButtons","pageSize","onItem","customButtonAction","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,e){1&t&&(ds(0,"uds-table",0),ws("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)}),fs()),2&t&&cs("rest",e.rest.accounts)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",e.customButtons)("pageSize",e.api.config.admin.page_size)("onItem",e.processElement)},directives:[FP],styles:[""]}),t}();function tj(t,e){1&t&&(ds(0,"uds-translate"),Js(1,"Account usage"),fs())}function ej(t,e){if(1&t){var n=ys();ds(0,"div",6),ds(1,"div",7),ds(2,"mat-tab-group",8),ds(3,"mat-tab"),ss(4,tj,2,0,"ng-template",9),ds(5,"div",10),ds(6,"uds-table",11),ws("deleteAction",function(t){return nn(n),Ds().onDeleteUsage(t)}),fs(),fs(),fs(),fs(),fs(),fs()}if(2&t){var i=Ds();Ia(2),cs("@.disabled",!0),Ia(4),cs("rest",i.accountUsage)("multiSelect",!0)("allowExport",!0)("onItem",i.processElement)("tableId","account-d-usage"+i.account.id)}}var nj=function(t){return["/pools","accounts",t]},ij=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)(us(dm),us(ND),us(pD))},t.\u0275cmp=ce({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&&(ds(0,"div",0),ds(1,"div",1),ds(2,"a",2),ds(3,"i",3),Js(4,"arrow_back"),fs(),fs(),Js(5," \xa0"),ps(6,"img",4),Js(7),fs(),ss(8,ej,7,6,"div",5),fs()),2&t&&(Ia(2),cs("routerLink",Du(4,nj,e.account?e.account.id:"")),Ia(4),cs("src",e.api.staticURL("admin/img/icons/accounts.png"),Or),Ia(1),el(" ",null==e.account?null:e.account.name," "),Ia(1),cs("ngIf",e.account))},directives:[Bv,Ph,nA,YE,HE,FP,FS],styles:[""]}),t}();function rj(t,e){1&t&&(ds(0,"uds-translate"),Js(1,"New image for"),fs())}function aj(t,e){1&t&&(ds(0,"uds-translate"),Js(1,"Edit for"),fs())}var oj=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Vu(!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)(us(pD),us(ND),us(hS),us(fS))},t.\u0275cmp=ce({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=ys();ds(0,"h4",0),ss(1,rj,2,0,"uds-translate",1),ss(2,aj,2,0,"uds-translate",1),fs(),ds(3,"mat-dialog-content"),ds(4,"div",2),ds(5,"mat-form-field"),ds(6,"mat-label"),ds(7,"uds-translate"),Js(8,"Image name"),fs(),fs(),ds(9,"input",3),ws("ngModelChange",function(t){return e.image.name=t}),fs(),fs(),ds(10,"input",4,5),ws("change",function(t){return e.onFileChanged(t)}),fs(),ds(12,"mat-form-field"),ds(13,"mat-label"),ds(14,"uds-translate"),Js(15,"Image (click to change)"),fs(),fs(),ds(16,"input",6),ws("click",function(){return nn(n),ls(11).click()}),fs(),ds(17,"div",7),ws("click",function(){return nn(n),ls(11).click()}),ps(18,"div",8),fs(),fs(),ds(19,"div",9),ds(20,"uds-translate"),Js(21,' For optimal results, use "squared" images. '),fs(),ds(22,"uds-translate"),Js(23," The image will be resized on upload to "),fs(),Js(24),fs(),fs(),fs(),ds(25,"mat-dialog-actions"),ds(26,"button",10),ds(27,"uds-translate"),Js(28,"Cancel"),fs(),fs(),ds(29,"button",11),ws("click",function(){return e.save()}),ds(30,"uds-translate"),Js(31,"Ok"),fs(),fs(),fs()}2&t&&(Ia(1),cs("ngIf",!e.image.id),Ia(1),cs("ngIf",e.image.id),Ia(7),cs("ngModel",e.image.name),Ia(7),cs("hidden",!0),Ia(2),cs("ngStyle",e.background()),Ia(6),nl(" ",e.api.config.image_size[0],"x",e.api.config.image_size[1]," "))},directives:[kS,Ph,wS,yI,uI,FS,zT,$S,yx,aE,Bh,CS,RS,bS],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}(),sj=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){oj.launch(this.api).subscribe(function(){return t.table.overview()})},t.prototype.onEdit=function(t){oj.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)(us(dm),us(ND),us(pD))},t.\u0275cmp=ce({type:t,selectors:[["uds-gallery"]],decls:1,vars:5,consts:[["icon","gallery",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(ds(0,"uds-table",0),ws("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)}),fs()),2&t&&cs("rest",e.rest.gallery)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",e.api.config.admin.page_size)},directives:[FP],styles:[".mat-column-thumb{max-width:7rem;justify-content:center} .mat-column-name{max-width:32rem}"]}),t}(),lj='assessment'+django.gettext("Generate report")+"",uj=function(){function t(t,e){this.rest=t,this.api=e,this.customButtons=[{id:"genreport",html:lj,type:NA.SINGLE_SELECT}]}return t.prototype.ngOnInit=function(){},t.prototype.generateReport=function(t){var e=this,n=new Vu;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),a=0;a 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}()},{path:"tools/actor_tokens",component: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)(us(pD),us(dm),us(ND))},t.\u0275cmp=ce({type:t,selectors:[["uds-actor-tokens"]],decls:2,vars:4,consts:[["icon","maleta",3,"rest","multiSelect","allowExport","pageSize"]],template:function(t,e){1&t&&(ds(0,"div"),ps(1,"uds-table",0),fs()),2&t&&(Ia(1),cs("rest",e.rest.actorToken)("multiSelect",!0)("allowExport",!0)("pageSize",e.api.config.admin.page_size))},directives:[FP],styles:[""]}),t}()}]},{path:"**",redirectTo:"summary"}],Aj=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({imports:[[Jv.forRoot(Ej,{relativeLinkResolution:"legacy"})],Jv]}),t}(),Dj=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({}),t}(),Ij=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({imports:[[UC,dC,E_,Dj],dC,Dj]}),t}(),Oj=["*"],Tj=new bi("MatChipRemove"),Rj=new bi("MatChipAvatar"),Pj=new bi("MatChipTrailingIcon"),Mj=vC(pC(mC(function t(e){a(this,t),this._elementRef=e}),"primary"),-1),Fj=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,s,l,u,c){var h;return a(this,n),(h=e.call(this,t))._elementRef=t,h._ngZone=i,h._changeDetectorRef=s,h._hasFocus=!1,h.chipListSelectable=!0,h._chipListMultiple=!1,h._chipListDisabled=!1,h._selected=!1,h._selectable=!0,h._disabled=!1,h._removable=!0,h._onFocus=new q,h._onBlur=new q,h.selectionChange=new Vu,h.destroyed=new Vu,h.removed=new Vu,h._addHostClassName(),h._chipRippleTarget=l.createElement("div"),h._chipRippleTarget.classList.add("mat-chip-ripple"),h._elementRef.nativeElement.appendChild(h._chipRippleTarget),h._chipRipple=new VC(d(h),i,h._chipRippleTarget,r),h._chipRipple.setupTriggerEvents(t),h.rippleConfig=o||{},h._animationsDisabled="NoopAnimations"===u,h.tabIndex=null!=c&&parseInt(c)||-1,h}return s(n,[{key:"_addHostClassName",value:function(){var t="mat-basic-chip",e=this._elementRef.nativeElement;e.hasAttribute(t)||e.tagName.toLowerCase()===t?e.classList.add(t):e.classList.add("mat-standard-chip")}},{key:"ngOnDestroy",value:function(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"selectViaInteraction",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}},{key:"toggleSelected",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._selected=!this.selected,this._dispatchSelectionChange(t),this._changeDetectorRef.markForCheck(),this.selected}},{key:"focus",value:function(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}},{key:"remove",value:function(){this.removable&&this.removed.emit({chip:this})}},{key:"_handleClick",value:function(t){this.disabled?t.preventDefault():t.stopPropagation()}},{key:"_handleKeydown",value:function(t){if(!this.disabled)switch(t.keyCode){case 46:case 8:this.remove(),t.preventDefault();break;case Oy:this.selectable&&this.toggleSelected(!0),t.preventDefault()}}},{key:"_blur",value:function(){var t=this;this._ngZone.onStable.pipe(Mf(1)).subscribe(function(){t._ngZone.run(function(){t._hasFocus=!1,t._onBlur.next({chip:t})})})}},{key:"_dispatchSelectionChange",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.selectionChange.emit({source:this,isUserInput:t,selected:this._selected})}},{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}},{key:"selected",get:function(){return this._selected},set:function(t){var e=cg(t);e!==this._selected&&(this._selected=e,this._dispatchSelectionChange())}},{key:"value",get:function(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent},set:function(t){this._value=t}},{key:"selectable",get:function(){return this._selectable&&this.chipListSelectable},set:function(t){this._selectable=cg(t)}},{key:"disabled",get:function(){return this._chipListDisabled||this._disabled},set:function(t){this._disabled=cg(t)}},{key:"removable",get:function(){return this._removable},set:function(t){this._removable=cg(t)}},{key:"ariaSelected",get:function(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}}]),n}(Mj);return t.\u0275fac=function(e){return new(e||t)(us(Dl),us(xc),us(Qg),us(zC,8),us(tu),us(sh),us(eC,8),gi("tabindex"))},t.\u0275dir=ve({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,e,n){var i;1&t&&(Qu(n,Rj,1),Qu(n,Pj,1),Qu(n,Tj,1)),2&t&&($u(i=Ju())&&(e.avatar=i.first),$u(i=Ju())&&(e.trailingIcon=i.first),$u(i=Ju())&&(e.removeIcon=i.first))},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(t,e){1&t&&ws("click",function(t){return e._handleClick(t)})("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e.focus()})("blur",function(){return e._blur()}),2&t&&(as("tabindex",e.disabled?null:e.tabIndex)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString())("aria-selected",e.ariaSelected),Hs("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",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[Yo]}),t}(),Lj=function(){var t=function(){function t(e,n){a(this,t),this._parentChip=e,"BUTTON"===n.nativeElement.nodeName&&n.nativeElement.setAttribute("type","button")}return s(t,[{key:"_handleClick",value:function(t){var e=this._parentChip;e.removable&&!e.disabled&&e.remove(),t.stopPropagation()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(Fj),us(Dl))},t.\u0275dir=ve({type:t,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(t,e){1&t&&ws("click",function(t){return e._handleClick(t)})},features:[bl([{provide:Tj,useExisting:t}])]}),t}(),Nj=new bi("mat-chips-default-options"),Vj=gC(function t(e,n,i,r){a(this,t),this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r}),jj=0,Bj=function t(e,n){a(this,t),this.source=e,this.value=n},zj=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,s,l,u){var c;return a(this,n),(c=e.call(this,l,o,s,u))._elementRef=t,c._changeDetectorRef=i,c._dir=r,c.ngControl=u,c.controlType="mat-chip-list",c._lastDestroyedChipIndex=null,c._destroyed=new q,c._uid="mat-chip-list-".concat(jj++),c._tabIndex=0,c._userTabIndex=null,c._onTouched=function(){},c._onChange=function(){},c._multiple=!1,c._compareWith=function(t,e){return t===e},c._required=!1,c._disabled=!1,c.ariaOrientation="horizontal",c._selectable=!0,c.change=new Vu,c.valueChange=new Vu,c.ngControl&&(c.ngControl.valueAccessor=d(c)),c}return s(n,[{key:"ngAfterContentInit",value:function(){var t=this;this._keyManager=new j_(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(zg(this._destroyed)).subscribe(function(e){return t._keyManager.withHorizontalOrientation(e)}),this._keyManager.tabOut.pipe(zg(this._destroyed)).subscribe(function(){t._allowFocusEscape()}),this.chips.changes.pipe(Nf(null),zg(this._destroyed)).subscribe(function(){t.disabled&&Promise.resolve().then(function(){t._syncChipsState()}),t._resetChips(),t._initializeSelection(),t._updateTabIndex(),t._updateFocusForDestroyedChips(),t.stateChanges.next()})}},{key:"ngOnInit",value:function(){this._selectionModel=new hy(this.multiple,void 0,!1),this.stateChanges.next()}},{key:"ngDoCheck",value:function(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}},{key:"registerInput",value:function(t){this._chipInput=t,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",t.id)}},{key:"setDescribedByIds",value:function(t){this._ariaDescribedby=t.join(" ")}},{key:"writeValue",value:function(t){this.chips&&this._setSelectionByValue(t,!1)}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t,this.stateChanges.next()}},{key:"onContainerClick",value:function(t){this._originatesFromChip(t)||this.focus()}},{key:"focus",value: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()))}},{key:"_focusInput",value:function(t){this._chipInput&&this._chipInput.focus(t)}},{key:"_keydown",value:function(t){var e=t.target;8===t.keyCode&&this._isInputEmpty(e)?(this._keyManager.setLastItemActive(),t.preventDefault()):e&&e.classList.contains("mat-chip")&&(this._keyManager.onKeydown(t),this.stateChanges.next())}},{key:"_updateTabIndex",value:function(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}},{key:"_updateFocusForDestroyedChips",value: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}},{key:"_isValidIndex",value:function(t){return t>=0&&t1&&void 0!==arguments[1])||arguments[1];if(this._clearSelection(),this.chips.forEach(function(t){return t.deselect()}),Array.isArray(t))t.forEach(function(t){return e._selectValue(t,n)}),this._sortValues();else{var i=this._selectValue(t,n);i&&n&&this._keyManager.setActiveItem(i)}}},{key:"_selectValue",value:function(t){var e=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.chips.find(function(n){return null!=n.value&&e._compareWith(n.value,t)});return i&&(n?i.selectViaInteraction():i.select(),this._selectionModel.select(i)),i}},{key:"_initializeSelection",value:function(){var t=this;Promise.resolve().then(function(){(t.ngControl||t._value)&&(t._setSelectionByValue(t.ngControl?t.ngControl.value:t._value,!1),t.stateChanges.next())})}},{key:"_clearSelection",value:function(t){this._selectionModel.clear(),this.chips.forEach(function(e){e!==t&&e.deselect()}),this.stateChanges.next()}},{key:"_sortValues",value:function(){var t=this;this._multiple&&(this._selectionModel.clear(),this.chips.forEach(function(e){e.selected&&t._selectionModel.select(e)}),this.stateChanges.next())}},{key:"_propagateChanges",value:function(t){var e;e=Array.isArray(this.selected)?this.selected.map(function(t){return t.value}):this.selected?this.selected.value:t,this._value=e,this.change.emit(new Bj(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()}},{key:"_blur",value:function(){var t=this;this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(function(){t.focused||t._markAsTouched()}):this._markAsTouched())}},{key:"_markAsTouched",value:function(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_allowFocusEscape",value:function(){var t=this;-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(function(){t._tabIndex=t._userTabIndex||0,t._changeDetectorRef.markForCheck()}))}},{key:"_resetChips",value:function(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}},{key:"_dropSubscriptions",value:function(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}},{key:"_listenToChipsSelection",value:function(){var t=this;this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(function(e){e.source.selected?t._selectionModel.select(e.source):t._selectionModel.deselect(e.source),t.multiple||t.chips.forEach(function(e){!t._selectionModel.isSelected(e)&&e.selected&&e.deselect()}),e.isUserInput&&t._propagateChanges()})}},{key:"_listenToChipsFocus",value:function(){var t=this;this._chipFocusSubscription=this.chipFocusChanges.subscribe(function(e){var n=t.chips.toArray().indexOf(e.chip);t._isValidIndex(n)&&t._keyManager.updateActiveItem(n),t.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(function(){t._blur(),t.stateChanges.next()})}},{key:"_listenToChipsRemoved",value:function(){var t=this;this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(function(e){var n=e.chip,i=t.chips.toArray().indexOf(e.chip);t._isValidIndex(i)&&n._hasFocus&&(t._lastDestroyedChipIndex=i)})}},{key:"_originatesFromChip",value:function(t){for(var e=t.target;e&&e!==this._elementRef.nativeElement;){if(e.classList.contains("mat-chip"))return!0;e=e.parentElement}return!1}},{key:"_hasFocusedChip",value:function(){return this.chips&&this.chips.some(function(t){return t._hasFocus})}},{key:"_syncChipsState",value:function(){var t=this;this.chips&&this.chips.forEach(function(e){e._chipListDisabled=t._disabled,e._chipListMultiple=t.multiple})}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"role",get:function(){return this.empty?null:"listbox"}},{key:"multiple",get:function(){return this._multiple},set:function(t){this._multiple=cg(t),this._syncChipsState()}},{key:"compareWith",get:function(){return this._compareWith},set:function(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(t){this.writeValue(t),this._value=t}},{key:"id",get:function(){return this._chipInput?this._chipInput.id:this._uid}},{key:"required",get:function(){return this._required},set:function(t){this._required=cg(t),this.stateChanges.next()}},{key:"placeholder",get:function(){return this._chipInput?this._chipInput.placeholder:this._placeholder},set:function(t){this._placeholder=t,this.stateChanges.next()}},{key:"focused",get:function(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}},{key:"empty",get:function(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}},{key:"shouldLabelFloat",get:function(){return!this.empty||this.focused}},{key:"disabled",get:function(){return this.ngControl?!!this.ngControl.disabled:this._disabled},set:function(t){this._disabled=cg(t),this._syncChipsState()}},{key:"selectable",get:function(){return this._selectable},set:function(t){var e=this;this._selectable=cg(t),this.chips&&this.chips.forEach(function(t){return t.chipListSelectable=e._selectable})}},{key:"tabIndex",set:function(t){this._userTabIndex=t,this._tabIndex=t}},{key:"chipSelectionChanges",get:function(){return dt.apply(void 0,b(this.chips.map(function(t){return t.selectionChange})))}},{key:"chipFocusChanges",get:function(){return dt.apply(void 0,b(this.chips.map(function(t){return t._onFocus})))}},{key:"chipBlurChanges",get:function(){return dt.apply(void 0,b(this.chips.map(function(t){return t._onBlur})))}},{key:"chipRemoveChanges",get:function(){return dt.apply(void 0,b(this.chips.map(function(t){return t.destroyed})))}}]),n}(Vj);return t.\u0275fac=function(e){return new(e||t)(us(Dl),us(tu),us(oy,8),us(nE,8),us(uE,8),us(RC),us(vx,10))},t.\u0275cmp=ce({type:t,selectors:[["mat-chip-list"]],contentQueries:function(t,e,n){var i;1&t&&Qu(n,Fj,1),2&t&&$u(i=Ju())&&(e.chips=i)},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(t,e){1&t&&ws("focus",function(){return e.focus()})("blur",function(){return e._blur()})("keydown",function(t){return e._keydown(t)}),2&t&&(il("id",e._uid),as("tabindex",e.disabled?null:e._tabIndex)("aria-describedby",e._ariaDescribedby||null)("aria-required",e.role?e.required:null)("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-multiselectable",e.multiple)("role",e.role)("aria-orientation",e.ariaOrientation),Hs("mat-chip-list-disabled",e.disabled)("mat-chip-list-invalid",e.errorState)("mat-chip-list-required",e.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[bl([{provide:sI,useExisting:t}]),Yo],ngContentSelectors:Oj,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(t,e){1&t&&(Os(),ds(0,"div",0),Ts(1),fs())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),t}(),Hj=0,Uj=function(){var t=function(){function t(e,n){a(this,t),this._elementRef=e,this._defaultOptions=n,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new Vu,this.placeholder="",this.id="mat-chip-list-input-".concat(Hj++),this._disabled=!1,this._inputElement=this._elementRef.nativeElement}return s(t,[{key:"ngOnChanges",value:function(){this._chipList.stateChanges.next()}},{key:"_keydown",value:function(t){t&&9===t.keyCode&&!Ny(t,"shiftKey")&&this._chipList._allowFocusEscape(),this._emitChipEnd(t)}},{key:"_blur",value:function(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}},{key:"_focus",value:function(){this.focused=!0,this._chipList.stateChanges.next()}},{key:"_emitChipEnd",value:function(t){!this._inputElement.value&&t&&this._chipList._keydown(t),t&&!this._isSeparatorKey(t)||(this.chipEnd.emit({input:this._inputElement,value:this._inputElement.value}),t&&t.preventDefault())}},{key:"_onInput",value:function(){this._chipList.stateChanges.next()}},{key:"focus",value:function(t){this._inputElement.focus(t)}},{key:"_isSeparatorKey",value:function(t){return!Ny(t)&&new Set(this.separatorKeyCodes).has(t.keyCode)}},{key:"chipList",set:function(t){t&&(this._chipList=t,this._chipList.registerInput(this))}},{key:"addOnBlur",get:function(){return this._addOnBlur},set:function(t){this._addOnBlur=cg(t)}},{key:"disabled",get:function(){return this._disabled||this._chipList&&this._chipList.disabled},set:function(t){this._disabled=cg(t)}},{key:"empty",get:function(){return!this._inputElement.value}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(Dl),us(Nj))},t.\u0275dir=ve({type:t,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(t,e){1&t&&ws("keydown",function(t){return e._keydown(t)})("blur",function(){return e._blur()})("focus",function(){return e._focus()})("input",function(){return e._onInput()}),2&t&&(il("id",e.id),as("disabled",e.disabled||null)("placeholder",e.placeholder||null)("aria-invalid",e._chipList&&e._chipList.ngControl?e._chipList.ngControl.invalid:null)("aria-required",e._chipList&&e._chipList.required||null))},inputs:{separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[Oe]}),t}(),qj={separatorKeyCodes:[Dy]},Wj=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({providers:[RC,{provide:Nj,useValue:qj}],imports:[[dC]]}),t}(),Yj=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({}),t}(),Gj=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({imports:[[Kh,dC,Yj,xy]]}),t}(),Kj=["*",[["mat-toolbar-row"]]],Zj=["*","mat-toolbar-row"],$j=pC(function t(e){a(this,t),this._elementRef=e}),Xj=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ve({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t}(),Qj=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return a(this,n),(o=e.call(this,t))._platform=i,o._document=r,o}return s(n,[{key:"ngAfterViewInit",value:function(){var t=this;this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return t._checkToolbarMixedModes()}))}},{key:"_checkToolbarMixedModes",value:function(){}}]),n}($j);return t.\u0275fac=function(e){return new(e||t)(us(Dl),us(Qg),us(sh))},t.\u0275cmp=ce({type:t,selectors:[["mat-toolbar"]],contentQueries:function(t,e,n){var i;1&t&&Qu(n,Xj,1),2&t&&$u(i=Ju())&&(e._toolbarRows=i)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&Hs("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[Yo],ngContentSelectors:Zj,decls:2,vars:0,template:function(t,e){1&t&&(Os(Kj),Ts(0),Ts(1,1))},styles:[".cdk-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%}\n"],encapsulation:2,changeDetection:0}),t}(),Jj=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({imports:[[dC],dC]}),t}(),tB=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({providers:[{provide:vI,useValue:{floatLabel:"always"}},{provide:bC,useValue:udsData.language}],imports:[Kh,bE,kE,Jj,MS,YR,$I,Gj,xS,_I,HT,HI,SV,TC,ET,uO,wO,AR,Ij,uA,Wj,FV,$M,EM,hD,KR]}),t}();function eB(t,e){if(1&t){var n=ys();ds(0,"button",6),ws("click",function(){nn(n);var t=e.$implicit;return Ds().changeLang(t)}),Js(1),fs()}if(2&t){var i=e.$implicit;Ia(1),tl(i.name)}}function nB(t,e){if(1&t&&(ds(0,"button",12),ds(1,"i",7),Js(2,"face"),fs(),Js(3),fs()),2&t){var n=Ds();cs("matMenuTriggerFor",ls(7)),Ia(3),tl(n.api.user.user)}}function iB(t,e){if(1&t&&(ds(0,"button",18),Js(1),ds(2,"i",7),Js(3,"arrow_drop_down"),fs(),fs()),2&t){var n=Ds();cs("matMenuTriggerFor",ls(7)),Ia(1),el("",n.api.user.user," ")}}var rB=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 uB(t,e){1&t&&ps(0,"div",1),2&t&&cs("innerHTML",Ds().messages,Ir)}var cB=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)(us(pD))},t.\u0275cmp=ce({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&&ss(0,uB,1,1,"div",0),2&t&&cs("ngIf",e.visible)},directives:[Ph],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}(),hB=function(){function t(){}return t.prototype.ngOnInit=function(){},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["uds-footer"]],decls:4,vars:0,consts:[["href","https://www.udsenterprise.com"]],template:function(t,e){1&t&&(ds(0,"div"),Js(1,"\xa9 2012-2020 "),ds(2,"a",0),Js(3,"Virtual Cable S.L.U."),fs(),fs())},styles:[""]}),t}(),dB=function(){function t(){this.title="uds admin"}return t.prototype.ngOnInit=function(){},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["uds-root"]],decls:8,vars:0,consts:[[1,"page"],[1,"content"],[1,"footer"]],template:function(t,e){1&t&&(ps(0,"uds-navbar"),ps(1,"uds-sidebar"),ds(2,"div",0),ds(3,"div",1),ps(4,"uds-notices"),ps(5,"router-outlet"),fs(),ds(6,"div",2),ps(7,"uds-footer"),fs(),fs())},directives:[rB,lB,cB,Hv,hB],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% - 56px - 8px);margin:4rem auto auto 56px;padding-left:8px;overflow-x:hidden}"]}),t}(),fB=function(t){function e(){var e=t.call(this)||this;return e.itemsPerPageLabel=django.gettext("Items per page"),e}return gD(e,t),e.\u0275prov=Rt({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(iO),pB=function(){function t(){this.changed=new Vu}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=ce({type:t,selectors:[["uds-field-text"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:6,consts:[["appearance","standard"],["matInput","","type","text",3,"ngModel","placeholder","required","disabled","maxlength","ngModelChange","change"]],template:function(t,e){1&t&&(ds(0,"mat-form-field",0),ds(1,"mat-label"),Js(2),fs(),ds(3,"input",1),ws("ngModelChange",function(t){return e.field.value=t})("change",function(){return e.changed.emit(e)}),fs(),fs()),2&t&&(Ia(2),el(" ",e.field.gui.label," "),Ia(1),cs("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:[yI,uI,zT,$S,yx,aE,dE,vE],styles:[""]}),t}(),mB=function(){function t(){this.changed=new Vu}return t.prototype.ngOnInit=function(){this.field.value||0===this.field.value||(this.field.value=this.field.gui.defvalue)},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({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&&(ds(0,"mat-form-field",0),ds(1,"mat-label"),Js(2),fs(),ds(3,"input",1),ws("ngModelChange",function(t){return e.field.value=t})("change",function(){return e.changed.emit(e)}),fs(),fs()),2&t&&(Ia(2),el(" ",e.field.gui.label," "),Ia(1),cs("ngModel",e.field.value)("placeholder",e.field.gui.tooltip)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly))},directives:[yI,uI,zT,kx,$S,yx,aE,dE],styles:[""]}),t}(),vB=function(){function t(){this.changed=new Vu,this.passwordType="password"}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=ce({type:t,selectors:[["uds-field-password"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:6,consts:[["appearance","standard","floatLabel","always"],["matInput","","autocomplete","off",3,"ngModel","placeholder","required","disabled","type","ngModelChange","change"],["mat-button","","matSuffix","","mat-icon-button","",3,"click"],["matSuffix","",1,"material-icons"]],template:function(t,e){1&t&&(ds(0,"mat-form-field",0),ds(1,"mat-label"),Js(2),fs(),ds(3,"input",1),ws("ngModelChange",function(t){return e.field.value=t})("change",function(){return e.changed.emit(e)}),fs(),ds(4,"a",2),ws("click",function(){return e.passwordType="text"===e.passwordType?"password":"text"}),ds(5,"i",3),Js(6,"remove_red_eye"),fs(),fs(),fs()),2&t&&(Ia(2),el(" ",e.field.gui.label," "),Ia(1),cs("ngModel",e.field.value)("placeholder",e.field.gui.tooltip)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly)("type",e.passwordType))},directives:[yI,uI,zT,$S,yx,aE,dE,PS,fI],styles:[""]}),t}(),gB=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=ce({type:t,selectors:[["uds-field-hidden"]],inputs:{field:"field"},decls:0,vars:0,template:function(t,e){},styles:[""]}),t}(),yB=function(){function t(){}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=ce({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&&(ds(0,"mat-form-field",0),ds(1,"mat-label"),Js(2),fs(),ds(3,"textarea",1),ws("ngModelChange",function(t){return e.field.value=t}),fs(),fs()),2&t&&(Ia(2),el(" ",e.field.gui.label," "),Ia(1),cs("ngModel",e.field.value)("placeholder",e.field.gui.tooltip)("required",e.field.gui.required)("readonly",e.field.gui.rdonly))},directives:[yI,uI,zT,$S,yx,aE,dE],styles:[""]}),t}();function _B(t,e){if(1&t){var n=ys();ds(0,"uds-mat-select-search",3),ws("changed",function(t){return nn(n),Ds().filter=t}),fs()}}function bB(t,e){if(1&t&&(ds(0,"mat-option",4),Js(1),fs()),2&t){var n=e.$implicit;cs("value",n.id),Ia(1),el(" ",n.text," ")}}var kB=function(){function t(){this.changed=new Vu,this.filter=""}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=ce({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&&(ds(0,"mat-form-field"),ds(1,"mat-label"),Js(2),fs(),ds(3,"mat-select",0),ws("ngModelChange",function(t){return e.field.value=t})("valueChange",function(){return e.changed.emit(e)}),ss(4,_B,1,0,"uds-mat-select-search",1),ss(5,bB,2,2,"mat-option",2),fs(),fs()),2&t&&(Ia(2),el(" ",e.field.gui.label," "),Ia(1),cs("ngModel",e.field.value)("placeholder",e.field.gui.tooltip)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly),Ia(1),cs("ngIf",e.field.gui.values.length>10),Ia(1),cs("ngForOf",e.filteredValues()))},directives:[yI,uI,BI,yx,aE,dE,Ph,Th,GT,tS],styles:[""]}),t}();function wB(t,e){if(1&t){var n=ys();ds(0,"uds-mat-select-search",3),ws("changed",function(t){return nn(n),Ds().filter=t}),fs()}}function CB(t,e){if(1&t&&(ds(0,"mat-option",4),Js(1),fs()),2&t){var n=e.$implicit;cs("value",n.id),Ia(1),el(" ",n.text," ")}}var SB=function(){function t(){this.changed=new Vu,this.filter=""}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=ce({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&&(ds(0,"mat-form-field"),ds(1,"mat-label"),Js(2),fs(),ds(3,"mat-select",0),ws("ngModelChange",function(t){return e.field.values=t})("valueChange",function(){return e.changed.emit(e)}),ss(4,wB,1,0,"uds-mat-select-search",1),ss(5,CB,2,2,"mat-option",2),fs(),fs()),2&t&&(Ia(2),el(" ",e.field.gui.label," "),Ia(1),cs("ngModel",e.field.values)("placeholder",e.field.gui.tooltip)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly),Ia(1),cs("ngIf",e.field.gui.values.length>10),Ia(1),cs("ngForOf",e.filteredValues()))},directives:[yI,uI,BI,yx,aE,dE,Ph,Th,GT,tS],styles:[""]}),t}();function xB(t,e){if(1&t){var n=ys();ds(0,"div",12),ds(1,"div",13),Js(2),fs(),ds(3,"div",14),Js(4," \xa0"),ds(5,"a",15),ws("click",function(){nn(n);var t=e.index;return Ds().removeElement(t)}),ds(6,"i",16),Js(7,"close"),fs(),fs(),fs(),fs()}if(2&t){var i=e.$implicit;Ia(2),el(" ",i," ")}}var EB=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 Vu(!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)(us(pD),us(ND),us(hS),us(fS))},t.\u0275cmp=ce({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&&(ds(0,"h4",0),Js(1),fs(),ds(2,"mat-dialog-content"),ds(3,"div",1),ds(4,"div",2),ss(5,xB,8,1,"div",3),fs(),ds(6,"div",4),ds(7,"button",5),ws("click",function(){return e.removeAll()}),ds(8,"uds-translate"),Js(9,"Remove all"),fs(),fs(),fs(),ds(10,"div",6),ds(11,"mat-form-field",7),ds(12,"input",8),ws("keyup",function(t){return e.checkKey(t)})("ngModelChange",function(t){return e.input=t}),fs(),ds(13,"button",9),ws("click",function(){return e.addElements()}),ds(14,"uds-translate"),Js(15,"Add"),fs(),fs(),fs(),fs(),fs(),fs(),ds(16,"mat-dialog-actions"),ds(17,"button",10),ds(18,"uds-translate"),Js(19,"Cancel"),fs(),fs(),ds(20,"button",11),ws("click",function(){return e.save()}),ds(21,"uds-translate"),Js(22,"Ok"),fs(),fs(),fs()),2&t&&(Ia(1),el(" ",e.data.title,"\n"),Ia(4),cs("ngForOf",e.values),Ia(7),cs("ngModel",e.input))},directives:[kS,wS,Th,RS,FS,yI,zT,$S,yx,aE,fI,CS,bS],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}(),AB=function(){function t(t){this.api=t,this.changed=new Vu}return t.prototype.ngOnInit=function(){},t.prototype.launch=function(){var t=this;void 0===this.field.values&&(this.field.values=[]),EB.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)(us(pD))},t.\u0275cmp=ce({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&&(ds(0,"mat-form-field",0),ds(1,"mat-label"),Js(2),fs(),ds(3,"input",1),ws("click",function(){return e.launch()}),fs(),fs()),2&t&&(Ia(2),el(" ",e.field.gui.label," "),Ia(1),cs("readonly",!0)("value",e.getValue())("placeholder",e.field.gui.tooltip)("disabled",!0===e.field.gui.rdonly))},directives:[yI,uI,zT],styles:[".editlist[_ngcontent-%COMP%]{cursor:pointer}"]}),t}(),DB=function(){function t(){this.changed=new Vu}return t.prototype.ngOnInit=function(){var t;this.field.value=gR(""===(t=this.field.value)||null==t?this.field.gui.defvalue:this.field.value)},t.prototype.getValue=function(){return gR(this.field.value)?django.gettext("Yes"):django.gettext("No")},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({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&&(ds(0,"div",0),ds(1,"span",1),Js(2),fs(),ds(3,"mat-slide-toggle",2),ws("ngModelChange",function(t){return e.field.value=t})("change",function(){return e.changed.emit(e)}),Js(4),fs(),fs()),2&t&&(Ia(2),tl(e.field.gui.label),Ia(1),cs("ngModel",e.field.value)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly),Ia(1),el(" ",e.getValue()," "))},directives:[WM,GM,yx,aE,dE],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 IB(t,e){if(1&t&&ps(0,"div",5),2&t){var n=Ds().$implicit;cs("innerHTML",Ds().asIcon(n),Ir)}}function OB(t,e){if(1&t&&(ds(0,"div"),ss(1,IB,1,1,"div",4),fs()),2&t){var n=e.$implicit,i=Ds();Ia(1),cs("ngIf",n.id==i.field.value)}}function TB(t,e){if(1&t){var n=ys();ds(0,"uds-mat-select-search",6),ws("changed",function(t){return nn(n),Ds().filter=t}),fs()}}function RB(t,e){if(1&t&&(ds(0,"mat-option",7),ps(1,"div",5),fs()),2&t){var n=e.$implicit,i=Ds();cs("value",n.id),Ia(1),cs("innerHTML",i.asIcon(n),Ir)}}var PB=function(){function t(t){this.api=t,this.changed=new Vu,this.filter=""}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)(us(pD))},t.\u0275cmp=ce({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&&(ds(0,"mat-form-field"),ds(1,"mat-label"),Js(2),fs(),ds(3,"mat-select",0),ws("valueChange",function(){return e.changed.emit(e)})("ngModelChange",function(t){return e.field.value=t}),ds(4,"mat-select-trigger"),ss(5,OB,2,1,"div",1),fs(),ss(6,TB,1,0,"uds-mat-select-search",2),ss(7,RB,2,2,"mat-option",3),fs(),fs()),2&t&&(Ia(2),el(" ",e.field.gui.label," "),Ia(1),cs("placeholder",e.field.gui.tooltip)("ngModel",e.field.value)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly),Ia(2),cs("ngForOf",e.field.gui.values),Ia(1),cs("ngIf",e.field.gui.values.length>10),Ia(1),cs("ngForOf",e.filteredValues()))},directives:[yI,uI,BI,yx,aE,dE,VI,Th,Ph,GT,tS],styles:[""]}),t}(),MB=function(){function t(){this.changed=new Vu,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=lR("%Y-%m-%d",this.value))},enumerable:!1,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=lR("%Y-01-01"):"2000-01-01"===this.field.value&&(this.field.value=lR("%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=ce({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&&(ds(0,"mat-form-field",0),ds(1,"mat-label"),Js(2),fs(),ds(3,"input",1),ws("ngModelChange",function(t){return e.date=t}),fs(),ps(4,"mat-datepicker-toggle",2),ps(5,"mat-datepicker",null,3),fs()),2&t){var n=ls(6);Ia(2),el(" ",e.field.gui.label," "),Ia(1),cs("matDatepicker",n)("ngModel",e.date)("placeholder",e.field.gui.tooltip)("disabled",!0===e.field.gui.rdonly),Ia(1),cs("for",n)}},directives:[yI,uI,zT,kV,$S,yx,aE,CV,fI,mV],styles:[""]}),t}();function FB(t,e){if(1&t){var n=ys();ds(0,"mat-chip",5),ws("removed",function(){nn(n);var t=e.$implicit;return Ds().remove(t)}),Js(1),ds(2,"i",6),Js(3,"cancel"),fs(),fs()}if(2&t){var i=e.$implicit,r=Ds();cs("selectable",!1)("removable",!0!==r.field.gui.rdonly),Ia(1),el(" ",i," ")}}var LB,NB,VB,jB=function(){function t(){this.changed=new Vu,this.separatorKeysCodes=[Dy,188]}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=ce({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&&(ds(0,"mat-form-field",0),ds(1,"mat-label"),Js(2),fs(),ds(3,"mat-chip-list",1,2),ws("change",function(){return e.changed.emit(e)}),ss(5,FB,4,3,"mat-chip",3),ds(6,"input",4),ws("matChipInputTokenEnd",function(t){return e.add(t)}),fs(),fs(),fs()),2&t){var n=ls(4);Ia(2),el(" ",e.field.gui.label," "),Ia(1),cs("selectable",!1)("disabled",!0===e.field.gui.rdonly),Ia(2),cs("ngForOf",e.field.values),Ia(1),cs("placeholder",e.field.gui.tooltip)("matChipInputFor",n)("matChipInputSeparatorKeyCodes",e.separatorKeysCodes)("matChipInputAddOnBlur",!0)}},directives:[yI,uI,zj,Th,Uj,Fj,Lj],styles:[".mat-chip-trailing-icon[_ngcontent-%COMP%]{position:relative;top:-4px;left:-4px}mat-form-field[_ngcontent-%COMP%]{width:99.5%}"]}),t}(),BB=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t,bootstrap:[dB]}),t.\u0275inj=Pt({providers:[pD,ND,{provide:iO,useClass:fB}],imports:[[Od,mf,Aj,rC,tB]]}),t}();LB=[Nh,KI,Vh,pB,yB,mB,vB,gB,kB,SB,AB,DB,PB,MB,jB],NB=[],(VB=wA.\u0275cmp).directiveDefs=function(){return LB.map(he)},VB.pipeDefs=function(){return NB.map(de)},function(){if(Nc)throw new Error("Cannot enable prod mode after platform setup.");Lc=!1}(),Dd().bootstrapModule(BB).catch(function(t){return console.log(t)})},zn8P:function(t,e){function n(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="zn8P"}},[[0,0]]]); \ No newline at end of file diff --git a/server/src/uds/static/admin/polyfills-es5.js b/server/src/uds/static/admin/polyfills-es5.js index db159d81..55825067 100644 --- a/server/src/uds/static/admin/polyfills-es5.js +++ b/server/src/uds/static/admin/polyfills-es5.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{"+2oP":function(t,e,n){"use strict";var r=n("I+eb"),o=n("hh1v"),i=n("6LWA"),a=n("I8vh"),u=n("UMSQ"),c=n("/GqU"),s=n("hBjN"),f=n("tiKp"),l=n("Hd5f"),p=n("rkAj"),h=l("slice"),d=p("slice",{ACCESSORS:!0,0:0,1:2}),v=f("species"),g=[].slice,m=Math.max;r({target:"Array",proto:!0,forced:!h||!d},{slice:function(t,e){var n,r,f,l=c(this),p=u(l.length),h=a(t,p),d=a(void 0===e?p:e,p);if(i(l)&&("function"!=typeof(n=l.constructor)||n!==Array&&!i(n.prototype)?o(n)&&null===(n=n[v])&&(n=void 0):n=void 0,n===Array||void 0===n))return g.call(l,h,d);for(r=new(void 0===n?Array:n)(m(d-h,0)),f=0;h",this._properties=e&&e.properties||{},this._zoneDelegate=new f(this,this._parent&&this._parent._zoneDelegate,e)}return e.assertZonePatched=function(){if(t.Promise!==R.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")},Object.defineProperty(e,"root",{get:function(){for(var t=e.current;t.parent;)t=t.parent;return t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"current",{get:function(){return D.zone},enumerable:!0,configurable:!0}),Object.defineProperty(e,"currentTask",{get:function(){return M},enumerable:!0,configurable:!0}),e.__load_patch=function(o,i){if(R.hasOwnProperty(o)){if(a)throw Error("Already loaded patch: "+o)}else if(!t["__Zone_disable_"+o]){var u="Zone:"+o;n(u),R[o]=i(t,e,P),r(u,u)}},Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),e.prototype.get=function(t){var e=this.getZoneWith(t);if(e)return e._properties[t]},e.prototype.getZoneWith=function(t){for(var e=this;e;){if(e._properties.hasOwnProperty(t))return e;e=e._parent}return null},e.prototype.fork=function(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)},e.prototype.wrap=function(t,e){if("function"!=typeof t)throw new Error("Expecting function got: "+t);var n=this._zoneDelegate.intercept(this,t,e),r=this;return function(){return r.runGuarded(n,this,arguments,e)}},e.prototype.run=function(t,e,n,r){D={parent:D,zone:this};try{return this._zoneDelegate.invoke(this,t,e,n,r)}finally{D=D.parent}},e.prototype.runGuarded=function(t,e,n,r){void 0===e&&(e=null),D={parent:D,zone:this};try{try{return this._zoneDelegate.invoke(this,t,e,n,r)}catch(o){if(this._zoneDelegate.handleError(this,o))throw o}}finally{D=D.parent}},e.prototype.runTask=function(t,e,n){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||b).name+"; Execution: "+this.name+")");if(t.state!==_||t.type!==I&&t.type!==O){var r=t.state!=w;r&&t._transitionTo(w,k),t.runCount++;var o=M;M=t,D={parent:D,zone:this};try{t.type==O&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,e,n)}catch(i){if(this._zoneDelegate.handleError(this,i))throw i}}finally{t.state!==_&&t.state!==E&&(t.type==I||t.data&&t.data.isPeriodic?r&&t._transitionTo(k,w):(t.runCount=0,this._updateTaskCount(t,-1),r&&t._transitionTo(_,w,_))),D=D.parent,M=o}}},e.prototype.scheduleTask=function(t){if(t.zone&&t.zone!==this)for(var e=this;e;){if(e===t.zone)throw Error("can not reschedule task to "+this.name+" which is descendants of the original zone "+t.zone.name);e=e.parent}t._transitionTo(x,_);var n=[];t._zoneDelegates=n,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(r){throw t._transitionTo(E,x,_),this._zoneDelegate.handleError(this,r),r}return t._zoneDelegates===n&&this._updateTaskCount(t,1),t.state==x&&t._transitionTo(k,x),t},e.prototype.scheduleMicroTask=function(t,e,n,r){return this.scheduleTask(new l(S,t,e,n,r,void 0))},e.prototype.scheduleMacroTask=function(t,e,n,r,o){return this.scheduleTask(new l(O,t,e,n,r,o))},e.prototype.scheduleEventTask=function(t,e,n,r,o){return this.scheduleTask(new l(I,t,e,n,r,o))},e.prototype.cancelTask=function(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||b).name+"; Execution: "+this.name+")");t._transitionTo(T,k,w);try{this._zoneDelegate.cancelTask(this,t)}catch(e){throw t._transitionTo(E,T),this._zoneDelegate.handleError(this,e),e}return this._updateTaskCount(t,-1),t._transitionTo(_,T),t.runCount=0,t},e.prototype._updateTaskCount=function(t,e){var n=t._zoneDelegates;-1==e&&(t._zoneDelegates=null);for(var r=0;r0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:t})},t}(),l=function(){function e(n,r,o,i,a,u){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=n,this.source=r,this.data=i,this.scheduleFn=a,this.cancelFn=u,!o)throw new Error("callback is not defined");this.callback=o;var c=this;this.invoke=n===I&&i&&i.useG?e.invokeTask:function(){return e.invokeTask.call(t,c,this,arguments)}}return e.invokeTask=function(t,e,n){t||(t=this),A++;try{return t.runCount++,t.zone.runTask(t,e,n)}finally{1==A&&y(),A--}},Object.defineProperty(e.prototype,"zone",{get:function(){return this._zone},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!0,configurable:!0}),e.prototype.cancelScheduleRequest=function(){this._transitionTo(_,x)},e.prototype._transitionTo=function(t,e,n){if(this._state!==e&&this._state!==n)throw new Error(this.type+" '"+this.source+"': can not transition to '"+t+"', expecting state '"+e+"'"+(n?" or '"+n+"'":"")+", was '"+this._state+"'.");this._state=t,t==_&&(this._zoneDelegates=null)},e.prototype.toString=function(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)},e.prototype.toJSON=function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}},e}(),p=i("setTimeout"),h=i("Promise"),d=i("then"),v=[],g=!1;function m(e){if(0===A&&0===v.length)if(c||t[h]&&(c=t[h].resolve(0)),c){var n=c[d];n||(n=c.then),n.call(c,y)}else t[p](y,0);e&&v.push(e)}function y(){if(!g){for(g=!0;v.length;){var t=v;v=[];for(var e=0;e=0;n--)"function"==typeof t[n]&&(t[n]=p(t[n],e+"_"+n));return t}function _(t){return!t||!1!==t.writable&&!("function"==typeof t.get&&void 0===t.set)}var x="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,k=!("nw"in m)&&void 0!==m.process&&"[object process]"==={}.toString.call(m.process),w=!k&&!x&&!(!v||!g.HTMLElement),T=void 0!==m.process&&"[object process]"==={}.toString.call(m.process)&&!x&&!(!v||!g.HTMLElement),E={},S=function(t){if(t=t||m.event){var e=E[t.type];e||(e=E[t.type]=d("ON_PROPERTY"+t.type));var n,r=this||t.target||m,o=r[e];return w&&r===g&&"error"===t.type?!0===(n=o&&o.call(this,t.message,t.filename,t.lineno,t.colno,t.error))&&t.preventDefault():null==(n=o&&o.apply(this,arguments))||n||t.preventDefault(),n}};function O(n,r,o){var i=t(n,r);if(!i&&o&&t(o,r)&&(i={enumerable:!0,configurable:!0}),i&&i.configurable){var a=d("on"+r+"patched");if(!n.hasOwnProperty(a)||!n[a]){delete i.writable,delete i.value;var u=i.get,c=i.set,s=r.substr(2),f=E[s];f||(f=E[s]=d("ON_PROPERTY"+s)),i.set=function(t){var e=this;e||n!==m||(e=m),e&&(e[f]&&e.removeEventListener(s,S),c&&c.apply(e,y),"function"==typeof t?(e[f]=t,e.addEventListener(s,S,!1)):e[f]=null)},i.get=function(){var t=this;if(t||n!==m||(t=m),!t)return null;var e=t[f];if(e)return e;if(u){var o=u&&u.call(this);if(o)return i.set.call(this,o),"function"==typeof t.removeAttribute&&t.removeAttribute(r),o}return null},e(n,r,i),n[a]=!0}}}function I(t,e,n){if(e)for(var r=0;r=0&&"function"==typeof r[i.cbIdx]?h(i.name,r[i.cbIdx],i,o):t.apply(e,r)}})}function A(t,e){t[d("OriginalDelegate")]=e}var N=!1,j=!1;function L(){try{var t=g.navigator.userAgent;if(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/"))return!0}catch(e){}return!1}function C(){if(N)return j;N=!0;try{var t=g.navigator.userAgent;-1===t.indexOf("MSIE ")&&-1===t.indexOf("Trident/")&&-1===t.indexOf("Edge/")||(j=!0)}catch(e){}return j}Zone.__load_patch("toString",function(t){var e=Function.prototype.toString,n=d("OriginalDelegate"),r=d("Promise"),o=d("Error"),i=function(){if("function"==typeof this){var i=this[n];if(i)return"function"==typeof i?e.call(i):Object.prototype.toString.call(i);if(this===Promise){var a=t[r];if(a)return e.call(a)}if(this===Error){var u=t[o];if(u)return e.call(u)}}return e.call(this)};i[n]=e,Function.prototype.toString=i;var a=Object.prototype.toString;Object.prototype.toString=function(){return this instanceof Promise?"[object Promise]":a.call(this)}});var F=!1;if("undefined"!=typeof window)try{var W=Object.defineProperty({},"passive",{get:function(){F=!0}});window.addEventListener("test",W,W),window.removeEventListener("test",W,W)}catch(Tt){F=!1}var z={useG:!0},Z={},B={},H=new RegExp("^"+l+"(\\w+)(true|false)$"),U=d("propagationStopped");function G(t,e){var n=(e?e(t):t)+f,r=(e?e(t):t)+s,o=l+n,i=l+r;Z[t]={},Z[t].false=o,Z[t].true=i}function K(t,e,r){var o=r&&r.add||i,u=r&&r.rm||a,c=r&&r.listeners||"eventListeners",p=r&&r.rmAll||"removeAllListeners",h=d(o),v="."+o+":",g=function(t,e,n){if(!t.isRemoved){var r=t.callback;"object"==typeof r&&r.handleEvent&&(t.callback=function(t){return r.handleEvent(t)},t.originalDelegate=r),t.invoke(t,e,[n]);var o=t.options;o&&"object"==typeof o&&o.once&&e[u].call(e,n.type,t.originalDelegate?t.originalDelegate:t.callback,o)}},m=function(e){if(e=e||t.event){var n=this||e.target||t,r=n[Z[e.type].false];if(r)if(1===r.length)g(r[0],n,e);else for(var o=r.slice(),i=0;i1?new i(e,n):new i(e),s=t.ObjectGetOwnPropertyDescriptor(c,"onmessage");return s&&!1===s.configurable?(a=t.ObjectCreate(c),u=c,[r,o,"send","close"].forEach(function(e){a[e]=function(){var n=t.ArraySlice.call(arguments);if(e===r||e===o){var i=n.length>0?n[0]:void 0;if(i){var u=Zone.__symbol__("ON_PROPERTY"+i);c[u]=a[u]}}return c[e].apply(c,n)}})):a=c,t.patchOnProperties(a,["close","error","message","open"],u),a};var a=e.WebSocket;for(var u in i)a[u]=i[u]}(t,e),Zone[t.symbol("patchEvents")]=!0}}Zone.__load_patch("util",function(n,u,c){c.patchOnProperties=I,c.patchMethod=D,c.bindArguments=b,c.patchMacroTask=M;var h=u.__symbol__("BLACK_LISTED_EVENTS"),d=u.__symbol__("UNPATCHED_EVENTS");n[d]&&(n[h]=n[d]),n[h]&&(u[h]=u[d]=n[h]),c.patchEventPrototype=q,c.patchEventTarget=K,c.isIEOrEdge=C,c.ObjectDefineProperty=e,c.ObjectGetOwnPropertyDescriptor=t,c.ObjectCreate=r,c.ArraySlice=o,c.patchClass=P,c.wrapWithCurrentZone=p,c.filterProperties=lt,c.attachOriginToPatched=A,c._redefineProperty=Object.defineProperty,c.patchCallbacks=X,c.getGlobalObjects=function(){return{globalSources:B,zoneSymbolEventNames:Z,eventNames:ft,isBrowser:w,isMix:T,isNode:k,TRUE_STR:s,FALSE_STR:f,ZONE_SYMBOL_PREFIX:l,ADD_EVENT_LISTENER_STR:i,REMOVE_EVENT_LISTENER_STR:a}}}),function(t){t[("legacyPatch",(t.__Zone_symbol_prefix||"__zone_symbol__")+"legacyPatch")]=function(){var e=t.Zone;e.__load_patch("defineProperty",function(t,e,n){n._redefineProperty=vt,dt()}),e.__load_patch("registerElement",function(t,e,n){!function(t,e){var n=e.getGlobalObjects();(n.isBrowser||n.isMix)&&"registerElement"in t.document&&e.patchCallbacks(e,document,"Document","registerElement",["createdCallback","attachedCallback","detachedCallback","attributeChangedCallback"])}(t,n)}),e.__load_patch("EventTargetLegacy",function(t,e,n){bt(t,n),_t(n,t)})}}("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{});var xt=d("zoneTask");function kt(t,e,n,r){var o=null,i=null;n+=r;var a={};function u(e){var n=e.data;return n.args[0]=function(){try{e.invoke.apply(this,arguments)}finally{e.data&&e.data.isPeriodic||("number"==typeof n.handleId?delete a[n.handleId]:n.handleId&&(n.handleId[xt]=null))}},n.handleId=o.apply(t,n.args),e}function c(t){return i(t.data.handleId)}o=D(t,e+=r,function(n){return function(o,i){if("function"==typeof i[0]){var s=h(e,i[0],{isPeriodic:"Interval"===r,delay:"Timeout"===r||"Interval"===r?i[1]||0:void 0,args:i},u,c);if(!s)return s;var f=s.data.handleId;return"number"==typeof f?a[f]=s:f&&(f[xt]=s),f&&f.ref&&f.unref&&"function"==typeof f.ref&&"function"==typeof f.unref&&(s.ref=f.ref.bind(f),s.unref=f.unref.bind(f)),"number"==typeof f||f?f:s}return n.apply(t,i)}}),i=D(t,n,function(e){return function(n,r){var o,i=r[0];"number"==typeof i?o=a[i]:(o=i&&i[xt])||(o=i),o&&"string"==typeof o.type?"notScheduled"!==o.state&&(o.cancelFn&&o.data.isPeriodic||0===o.runCount)&&("number"==typeof i?delete a[i]:i&&(i[xt]=null),o.zone.cancelTask(o)):e.apply(t,r)}})}function wt(t,e){if(!Zone[e.symbol("patchEventTarget")]){for(var n=e.getGlobalObjects(),r=n.eventNames,o=n.zoneSymbolEventNames,i=n.TRUE_STR,a=n.FALSE_STR,u=n.ZONE_SYMBOL_PREFIX,c=0;c0){var o=t.invoke;t.invoke=function(){for(var n=a[e.__symbol__("loadfalse")],i=0;i")}),f="$0"==="a".replace(/./,"$0"),l=i("replace"),p=!!/./[l]&&""===/./[l]("a","$0"),h=!o(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]});t.exports=function(t,e,n,l){var d=i(t),v=!o(function(){var e={};return e[d]=function(){return 7},7!=""[t](e)}),g=v&&!o(function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[d]=/./[d]),n.exec=function(){return e=!0,null},n[d](""),!e});if(!v||!g||"replace"===t&&(!s||!f||p)||"split"===t&&!h){var m=/./[d],y=n(d,""[t],function(t,e,n,r,o){return e.exec===a?v&&!o?{done:!0,value:m.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}},{REPLACE_KEEPS_$0:f,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:p}),b=y[1];r(String.prototype,t,y[0]),r(RegExp.prototype,d,2==e?function(t,e){return b.call(t,this,e)}:function(t){return b.call(t,this)})}l&&u(RegExp.prototype[d],"sham",!0)}},"1E5z":function(t,e,n){var r=n("m/L8").f,o=n("UTVS"),i=n("tiKp")("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},"1Y/n":function(t,e,n){var r=n("HAuM"),o=n("ewvW"),i=n("RK3t"),a=n("UMSQ"),u=function(t){return function(e,n,u,c){r(n);var s=o(e),f=i(s),l=a(s.length),p=t?l-1:0,h=t?-1:1;if(u<2)for(;;){if(p in f){c=f[p],p+=h;break}if(p+=h,t?p<0:l<=p)throw TypeError("Reduce of empty array with no initial value")}for(;t?p>=0:l>p;p+=h)p in f&&(c=n(c,f[p],p,s));return c}};t.exports={left:u(!1),right:u(!0)}},"1t3B":function(t,e,n){var r=n("I+eb"),o=n("0GbY"),i=n("glrk");r({target:"Reflect",stat:!0,sham:!n("uy83")},{preventExtensions:function(t){i(t);try{var e=o("Object","preventExtensions");return e&&e(t),!0}catch(n){return!1}}})},"25bX":function(t,e,n){var r=n("I+eb"),o=n("glrk"),i=Object.isExtensible;r({target:"Reflect",stat:!0},{isExtensible:function(t){return o(t),!i||i(t)}})},"27RR":function(t,e,n){var r=n("I+eb"),o=n("g6v/"),i=n("Vu81"),a=n("/GqU"),u=n("Bs8V"),c=n("hBjN");r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(t){for(var e,n,r=a(t),o=u.f,s=i(r),f={},l=0;s.length>l;)void 0!==(n=o(r,e=s[l++]))&&c(f,e,n);return f}})},"2A+d":function(t,e,n){var r=n("I+eb"),o=n("/GqU"),i=n("UMSQ");r({target:"String",stat:!0},{raw:function(t){for(var e=o(t.raw),n=i(e.length),r=arguments.length,a=[],u=0;n>u;)a.push(String(e[u++])),u1?arguments[1]:void 0)}})},"2oRo":function(t,e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof global&&global)||Function("return this")()},"33Wh":function(t,e,n){var r=n("yoRg"),o=n("eDl+");t.exports=Object.keys||function(t){return r(t,o)}},"3I1R":function(t,e,n){n("dG/n")("hasInstance")},"3KgV":function(t,e,n){var r=n("I+eb"),o=n("uy83"),i=n("0Dky"),a=n("hh1v"),u=n("8YOa").onFreeze,c=Object.freeze;r({target:"Object",stat:!0,forced:i(function(){c(1)}),sham:!o},{freeze:function(t){return c&&a(t)?c(u(t)):t}})},"3bBZ":function(t,e,n){var r=n("2oRo"),o=n("/byt"),i=n("4mDm"),a=n("kRJp"),u=n("tiKp"),c=u("iterator"),s=u("toStringTag"),f=i.values;for(var l in o){var p=r[l],h=p&&p.prototype;if(h){if(h[c]!==f)try{a(h,c,f)}catch(v){h[c]=f}if(h[s]||a(h,s,l),o[l])for(var d in i)if(h[d]!==i[d])try{a(h,d,i[d])}catch(v){h[d]=i[d]}}}},"4Brf":function(t,e,n){"use strict";var r=n("I+eb"),o=n("g6v/"),i=n("2oRo"),a=n("UTVS"),u=n("hh1v"),c=n("m/L8").f,s=n("6JNq"),f=i.Symbol;if(o&&"function"==typeof f&&(!("description"in f.prototype)||void 0!==f().description)){var l={},p=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof p?new f(t):void 0===t?f():f(t);return""===t&&(l[e]=!0),e};s(p,f);var h=p.prototype=f.prototype;h.constructor=p;var d=h.toString,v="Symbol(test)"==String(f("test")),g=/^Symbol\((.*)\)[^)]+$/;c(h,"description",{configurable:!0,get:function(){var t=u(this)?this.valueOf():this,e=d.call(t);if(a(l,t))return"";var n=v?e.slice(7,-1):e.replace(g,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:p})}},"4WOD":function(t,e,n){var r=n("UTVS"),o=n("ewvW"),i=n("93I0"),a=n("4Xet"),u=i("IE_PROTO"),c=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=o(t),r(t,u)?t[u]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?c:null}},"4Xet":function(t,e,n){var r=n("0Dky");t.exports=!r(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},"4h0Y":function(t,e,n){var r=n("I+eb"),o=n("0Dky"),i=n("hh1v"),a=Object.isFrozen;r({target:"Object",stat:!0,forced:o(function(){a(1)})},{isFrozen:function(t){return!i(t)||!!a&&a(t)}})},"4l63":function(t,e,n){var r=n("I+eb"),o=n("wg0c");r({global:!0,forced:parseInt!=o},{parseInt:o})},"4mDm":function(t,e,n){"use strict";var r=n("/GqU"),o=n("RNIs"),i=n("P4y1"),a=n("afO8"),u=n("fdAy"),c="Array Iterator",s=a.set,f=a.getterFor(c);t.exports=u(Array,"Array",function(t,e){s(this,{type:c,target:r(t),index:0,kind:e})},function(){var t=f(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},"4oU/":function(t,e,n){var r=n("2oRo").isFinite;t.exports=Number.isFinite||function(t){return"number"==typeof t&&r(t)}},"4syw":function(t,e,n){var r=n("busE");t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},"5D5o":function(t,e,n){var r=n("I+eb"),o=n("0Dky"),i=n("hh1v"),a=Object.isSealed;r({target:"Object",stat:!0,forced:o(function(){a(1)})},{isSealed:function(t){return!i(t)||!!a&&a(t)}})},"5DmW":function(t,e,n){var r=n("I+eb"),o=n("0Dky"),i=n("/GqU"),a=n("Bs8V").f,u=n("g6v/"),c=o(function(){a(1)});r({target:"Object",stat:!0,forced:!u||c,sham:!u},{getOwnPropertyDescriptor:function(t,e){return a(i(t),e)}})},"5P7u":function(t,e,n){n("pNMO"),n("zKZe"),n("uL8W"),n("eoL8"),n("HRxU"),n("T63A"),n("3KgV"),n("wfmh"),n("5DmW"),n("27RR"),n("cDke"),n("NBAS"),n("Kxld"),n("yQYn"),n("4h0Y"),n("5D5o"),n("tkto"),n("zuhW"),n("r5Og"),n("ExoC"),n("B6y2"),n("07d7"),n("Eqjn"),n("5xtp"),n("v5b1"),n("W/eh"),n("I9xj"),n("DEfu");var r=n("Qo9l");t.exports=r.Object},"5Tg+":function(t,e,n){var r=n("tiKp");e.f=r},"5Yz+":function(t,e,n){"use strict";var r=n("/GqU"),o=n("ppGB"),i=n("UMSQ"),a=n("pkCn"),u=n("rkAj"),c=Math.min,s=[].lastIndexOf,f=!!s&&1/[1].lastIndexOf(1,-0)<0,l=a("lastIndexOf"),p=u("indexOf",{ACCESSORS:!0,1:0});t.exports=!f&&l&&p?s:function(t){if(f)return s.apply(this,arguments)||0;var e=r(this),n=i(e.length),a=n-1;for(arguments.length>1&&(a=c(a,o(arguments[1]))),a<0&&(a=n+a);a>=0;a--)if(a in e&&e[a]===t)return a||0;return-1}},"5mdu":function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}}},"5s+n":function(t,e,n){"use strict";var r,o,i,a,u=n("I+eb"),c=n("xDBR"),s=n("2oRo"),f=n("0GbY"),l=n("/qmn"),p=n("busE"),h=n("4syw"),d=n("1E5z"),v=n("JiZb"),g=n("hh1v"),m=n("HAuM"),y=n("GarU"),b=n("xrYK"),_=n("iSVu"),x=n("ImZN"),k=n("HH4o"),w=n("SEBh"),T=n("LPSS").set,E=n("tXUg"),S=n("zfnd"),O=n("RN6c"),I=n("8GlL"),R=n("5mdu"),P=n("afO8"),D=n("lMq5"),M=n("tiKp"),A=n("LQDL"),N=M("species"),j="Promise",L=P.get,C=P.set,F=P.getterFor(j),W=l,z=s.TypeError,Z=s.document,B=s.process,H=f("fetch"),U=I.f,G=U,K="process"==b(B),V=!!(Z&&Z.createEvent&&s.dispatchEvent),q="unhandledrejection",X=D(j,function(){if(_(W)===String(W)){if(66===A)return!0;if(!K&&"function"!=typeof PromiseRejectionEvent)return!0}if(c&&!W.prototype.finally)return!0;if(A>=51&&/native code/.test(W))return!1;var t=W.resolve(1),e=function(t){t(function(){},function(){})};return(t.constructor={})[N]=e,!(t.then(function(){})instanceof e)}),Y=X||!k(function(t){W.all(t).catch(function(){})}),Q=function(t){var e;return!(!g(t)||"function"!=typeof(e=t.then))&&e},J=function(t,e,n){if(!e.notified){e.notified=!0;var r=e.reactions;E(function(){for(var o=e.value,i=1==e.state,a=0;r.length>a;){var u,c,s,f=r[a++],l=i?f.ok:f.fail,p=f.resolve,h=f.reject,d=f.domain;try{l?(i||(2===e.rejection&&nt(t,e),e.rejection=1),!0===l?u=o:(d&&d.enter(),u=l(o),d&&(d.exit(),s=!0)),u===f.promise?h(z("Promise-chain cycle")):(c=Q(u))?c.call(u,p,h):p(u)):h(o)}catch(v){d&&!s&&d.exit(),h(v)}}e.reactions=[],e.notified=!1,n&&!e.rejection&&tt(t,e)})}},$=function(t,e,n){var r,o;V?((r=Z.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),s.dispatchEvent(r)):r={promise:e,reason:n},(o=s["on"+t])?o(r):t===q&&O("Unhandled promise rejection",n)},tt=function(t,e){T.call(s,function(){var n,r=e.value;if(et(e)&&(n=R(function(){K?B.emit("unhandledRejection",r,t):$(q,t,r)}),e.rejection=K||et(e)?2:1,n.error))throw n.value})},et=function(t){return 1!==t.rejection&&!t.parent},nt=function(t,e){T.call(s,function(){K?B.emit("rejectionHandled",t):$("rejectionhandled",t,e.value)})},rt=function(t,e,n,r){return function(o){t(e,n,o,r)}},ot=function(t,e,n,r){e.done||(e.done=!0,r&&(e=r),e.value=n,e.state=2,J(t,e,!0))},it=function(t,e,n,r){if(!e.done){e.done=!0,r&&(e=r);try{if(t===n)throw z("Promise can't be resolved itself");var o=Q(n);o?E(function(){var r={done:!1};try{o.call(n,rt(it,t,r,e),rt(ot,t,r,e))}catch(i){ot(t,r,i,e)}}):(e.value=n,e.state=1,J(t,e,!1))}catch(i){ot(t,{done:!1},i,e)}}};X&&(W=function(t){y(this,W,j),m(t),r.call(this);var e=L(this);try{t(rt(it,this,e),rt(ot,this,e))}catch(n){ot(this,e,n)}},(r=function(t){C(this,{type:j,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=h(W.prototype,{then:function(t,e){var n=F(this),r=U(w(this,W));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=K?B.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&J(this,n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r,e=L(t);this.promise=t,this.resolve=rt(it,t,e),this.reject=rt(ot,t,e)},I.f=U=function(t){return t===W||t===i?new o(t):G(t)},c||"function"!=typeof l||(a=l.prototype.then,p(l.prototype,"then",function(t,e){var n=this;return new W(function(t,e){a.call(n,t,e)}).then(t,e)},{unsafe:!0}),"function"==typeof H&&u({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return S(W,H.apply(s,arguments))}}))),u({global:!0,wrap:!0,forced:X},{Promise:W}),d(W,j,!1,!0),v(j),i=f(j),u({target:j,stat:!0,forced:X},{reject:function(t){var e=U(this);return e.reject.call(void 0,t),e.promise}}),u({target:j,stat:!0,forced:c||X},{resolve:function(t){return S(c&&this===i?W:this,t)}}),u({target:j,stat:!0,forced:Y},{all:function(t){var e=this,n=U(e),r=n.resolve,o=n.reject,i=R(function(){var n=m(e.resolve),i=[],a=0,u=1;x(t,function(t){var c=a++,s=!1;i.push(void 0),u++,n.call(e,t).then(function(t){s||(s=!0,i[c]=t,--u||r(i))},o)}),--u||r(i)});return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=U(e),r=n.reject,o=R(function(){var o=m(e.resolve);x(t,function(t){o.call(e,t).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}})},"5uH8":function(t,e,n){n("I+eb")({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},"5xtp":function(t,e,n){"use strict";var r=n("I+eb"),o=n("g6v/"),i=n("6x0u"),a=n("ewvW"),u=n("HAuM"),c=n("m/L8");o&&r({target:"Object",proto:!0,forced:i},{__defineSetter__:function(t,e){c.f(a(this),t,{set:u(e),enumerable:!0,configurable:!0})}})},"6JNq":function(t,e,n){var r=n("UTVS"),o=n("Vu81"),i=n("Bs8V"),a=n("m/L8");t.exports=function(t,e){for(var n=o(e),u=a.f,c=i.f,s=0;s1||n<0||n>1?p:function(o){function i(t,e,n){return 3*t*(1-n)*(1-n)*n+3*e*(1-n)*n*n+n*n*n}if(o<=0){var a=0;return t>0?a=e/t:!e&&n>0&&(a=r/n),a*o}if(o>=1){var u=0;return n<1?u=(r-1)/(n-1):1==n&&t<1&&(u=(e-1)/(t-1)),1+u*(o-1)}for(var c=0,s=1;c=1)return 1;var r=1/t;return(n+=e*r)-n%r}}function u(t){m||(m=document.createElement("div").style),m.animationTimingFunction="",m.animationTimingFunction=t;var e=m.animationTimingFunction;if(""==e&&r())throw new TypeError(t+" is not a valid value for easing");return e}function c(t){if("linear"==t)return p;var e=b.exec(t);if(e)return i.apply(this,e.slice(1).map(Number));var n=_.exec(t);if(n)return a(Number(n[1]),v);var r=x.exec(t);return r?a(Number(r[1]),{start:h,middle:d,end:v}[r[2]]):g[t]||p}function s(t,e,n){if(null==e)return k;var r=n.delay+t+n.endDelay;return e=Math.min(n.delay+t,r)?T:E}var f="backwards|forwards|both|none".split("|"),l="reverse|alternate|alternate-reverse".split("|"),p=function(t){return t};n.prototype={_setMember:function(e,n){this["_"+e]=n,this._effect&&(this._effect._timingInput[e]=n,this._effect._timing=t.normalizeTimingInput(this._effect._timingInput),this._effect.activeDuration=t.calculateActiveDuration(this._effect._timing),this._effect._animation&&this._effect._animation._rebuildUnderlyingAnimation())},get playbackRate(){return this._playbackRate},set delay(t){this._setMember("delay",t)},get delay(){return this._delay},set endDelay(t){this._setMember("endDelay",t)},get endDelay(){return this._endDelay},set fill(t){this._setMember("fill",t)},get fill(){return this._fill},set iterationStart(t){if((isNaN(t)||t<0)&&r())throw new TypeError("iterationStart must be a non-negative number, received: "+t);this._setMember("iterationStart",t)},get iterationStart(){return this._iterationStart},set duration(t){if("auto"!=t&&(isNaN(t)||t<0)&&r())throw new TypeError("duration must be non-negative or auto, received: "+t);this._setMember("duration",t)},get duration(){return this._duration},set direction(t){this._setMember("direction",t)},get direction(){return this._direction},set easing(t){this._easingFunction=c(u(t)),this._setMember("easing",t)},get easing(){return this._easing},set iterations(t){if((isNaN(t)||t<0)&&r())throw new TypeError("iterations must be non-negative, received: "+t);this._setMember("iterations",t)},get iterations(){return this._iterations}};var h=1,d=.5,v=0,g={ease:i(.25,.1,.25,1),"ease-in":i(.42,0,1,1),"ease-out":i(0,0,.58,1),"ease-in-out":i(.42,0,.58,1),"step-start":a(1,h),"step-middle":a(1,d),"step-end":a(1,v)},m=null,y="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",b=new RegExp("cubic-bezier\\("+y+","+y+","+y+","+y+"\\)"),_=/steps\(\s*(\d+)\s*\)/,x=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/,k=0,w=1,T=2,E=3;t.cloneTimingInput=function(t){if("number"==typeof t)return t;var e={};for(var n in t)e[n]=t[n];return e},t.makeTiming=o,t.numericTimingToObject=function(t){return"number"==typeof t&&(t=isNaN(t)?{duration:0}:{duration:t}),t},t.normalizeTimingInput=function(e,n){return o(e=t.numericTimingToObject(e),n)},t.calculateActiveDuration=function(t){return Math.abs(function(t){return 0===t.duration||0===t.iterations?0:t.duration*t.iterations}(t)/t.playbackRate)},t.calculateIterationProgress=function(t,e,n){var r=s(t,e,n),o=function(t,e,n,r,o){switch(r){case w:return"backwards"==e||"both"==e?0:null;case E:return n-o;case T:return"forwards"==e||"both"==e?t:null;case k:return null}}(t,n.fill,e,r,n.delay);if(null===o)return null;var i=function(t,e,n,r,o){var i=o;return 0===t?e!==w&&(i+=n):i+=r/t,i}(n.duration,r,n.iterations,o,n.iterationStart),a=function(t,e,n,r,o,i){var a=t===1/0?e%1:t%1;return 0!==a||n!==T||0===r||0===o&&0!==i||(a=1),a}(i,n.iterationStart,r,n.iterations,o,n.duration),u=function(t,e,n,r){return t===T&&e===1/0?1/0:1===n?Math.floor(r)-1:Math.floor(r)}(r,n.iterations,a,i),c=function(t,e,n){var r=t;if("normal"!==t&&"reverse"!==t){var o=e;"alternate-reverse"===t&&(o+=1),r="normal",o!==1/0&&o%2!=0&&(r="reverse")}return"normal"===r?n:1-n}(n.direction,u,a);return n._easingFunction(c)},t.calculatePhase=s,t.normalizeEasing=u,t.parseEasingFunction=c}(n={}),function(t,e){function n(t,e){return t in c&&c[t][e]||e}function r(t,e,r){if(!function(t){return"display"===t||0===t.lastIndexOf("animation",0)||0===t.lastIndexOf("transition",0)}(t)){var o=i[t];if(o)for(var u in a.style[t]=e,o){var c=o[u];r[c]=n(c,a.style[c])}else r[t]=n(t,e)}}function o(t){var e=[];for(var n in t)if(!(n in["easing","offset","composite"])){var r=t[n];Array.isArray(r)||(r=[r]);for(var o,i=r.length,a=0;a1)throw new TypeError("Keyframe offsets must be between 0 and 1.")}}else if("composite"==o){if("add"==i||"accumulate"==i)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"add compositing is not supported"};if("replace"!=i)throw new TypeError("Invalid composite mode "+i+".")}else i="easing"==o?t.normalizeEasing(i):""+i;r(o,i,n)}return null==n.offset&&(n.offset=null),null==n.easing&&(n.easing="linear"),n}),i=!0,a=-1/0,u=0;u=0&&t.offset<=1}),i||function(){var t=n.length;null==n[t-1].offset&&(n[t-1].offset=1),t>1&&null==n[0].offset&&(n[0].offset=0);for(var e=0,r=n[0].offset,o=1;o=t.applyFrom&&nthis._surrogateStyle.length;)this._length--,Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,value:void 0})},_set:function(e,n){this._style[e]=n,this._isAnimatedProperty[e]=!0,this._updateSvgTransformAttr&&"transform"==t.unprefixedPropertyName(e)&&(null==this._savedTransformAttr&&(this._savedTransformAttr=this._element.getAttribute("transform")),this._element.setAttribute("transform",t.transformToSvgMatrix(n)))},_clear:function(e){this._style[e]=this._surrogateStyle[e],this._updateSvgTransformAttr&&"transform"==t.unprefixedPropertyName(e)&&(this._savedTransformAttr?this._element.setAttribute("transform",this._savedTransformAttr):this._element.removeAttribute("transform"),this._savedTransformAttr=null),delete this._isAnimatedProperty[e]}},u)r.prototype[s]=function(t,e){return function(){var n=this._surrogateStyle[t].apply(this._surrogateStyle,arguments);return e&&(this._isAnimatedProperty[arguments[0]]||this._style[t].apply(this._style,arguments),this._updateIndices()),n}}(s,s in c);for(var f in document.documentElement.style)f in a||f in u||function(t){n(r.prototype,t,{get:function(){return this._surrogateStyle[t]},set:function(e){this._surrogateStyle[t]=e,this._updateIndices(),this._isAnimatedProperty[t]||(this._style[t]=e)}})}(f);t.apply=function(e,n,r){o(e),e.style._set(t.propertyName(n),r)},t.clear=function(e,n){e._webAnimationsPatchedStyle&&e.style._clear(t.propertyName(n))}}(r),function(t){window.Element.prototype.animate=function(e,n){var r="";return n&&n.id&&(r=n.id),t.timeline._play(t.KeyframeEffect(this,e,n,r))}}(r),function(t,e){function n(t,e,r){if("number"==typeof t&&"number"==typeof e)return t*(1-r)+e*r;if("boolean"==typeof t&&"boolean"==typeof e)return r<.5?t:e;if(t.length==e.length){for(var o=[],i=0;i0?this._totalDuration:0),this._ensureAlive())},get currentTime(){return this._idle||this._currentTimePending?null:this._currentTime},set currentTime(t){t=+t,isNaN(t)||(e.restart(),this._paused||null==this._startTime||(this._startTime=this._timeline.currentTime-t/this._playbackRate),this._currentTimePending=!1,this._currentTime!=t&&(this._idle&&(this._idle=!1,this._paused=!0),this._tickCurrentTime(t,!0),e.applyDirtiedAnimation(this)))},get startTime(){return this._startTime},set startTime(t){t=+t,isNaN(t)||this._paused||this._idle||(this._startTime=t,this._tickCurrentTime((this._timeline.currentTime-this._startTime)*this.playbackRate),e.applyDirtiedAnimation(this))},get playbackRate(){return this._playbackRate},set playbackRate(t){if(t!=this._playbackRate){var n=this.currentTime;this._playbackRate=t,this._startTime=null,"paused"!=this.playState&&"idle"!=this.playState&&(this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),e.applyDirtiedAnimation(this)),null!=n&&(this.currentTime=n)}},get _isFinished(){return!this._idle&&(this._playbackRate>0&&this._currentTime>=this._totalDuration||this._playbackRate<0&&this._currentTime<=0)},get _totalDuration(){return this._effect._totalDuration},get playState(){return this._idle?"idle":null==this._startTime&&!this._paused&&0!=this.playbackRate||this._currentTimePending?"pending":this._paused?"paused":this._isFinished?"finished":"running"},_rewind:function(){if(this._playbackRate>=0)this._currentTime=0;else{if(!(this._totalDuration<1/0))throw new DOMException("Unable to rewind negative playback rate animation with infinite duration","InvalidStateError");this._currentTime=this._totalDuration}},play:function(){this._paused=!1,(this._isFinished||this._idle)&&(this._rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),e.applyDirtiedAnimation(this)},pause:function(){this._isFinished||this._paused||this._idle?this._idle&&(this._rewind(),this._idle=!1):this._currentTimePending=!0,this._startTime=null,this._paused=!0},finish:function(){this._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this._currentTimePending=!1,e.applyDirtiedAnimation(this))},cancel:function(){this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this._effect._update(null),e.applyDirtiedAnimation(this))},reverse:function(){this.playbackRate*=-1,this.play()},addEventListener:function(t,e){"function"==typeof e&&"finish"==t&&this._finishHandlers.push(e)},removeEventListener:function(t,e){if("finish"==t){var n=this._finishHandlers.indexOf(e);n>=0&&this._finishHandlers.splice(n,1)}},_fireEvents:function(t){if(this._isFinished){if(!this._finishedFlag){var e=new r(this,this._currentTime,t),n=this._finishHandlers.concat(this.onfinish?[this.onfinish]:[]);setTimeout(function(){n.forEach(function(t){t.call(e.target,e)})},0),this._finishedFlag=!0}}else this._finishedFlag=!1},_tick:function(t,e){this._idle||this._paused||(null==this._startTime?e&&(this.startTime=t-this._currentTime/this.playbackRate):this._isFinished||this._tickCurrentTime((t-this._startTime)*this.playbackRate)),e&&(this._currentTimePending=!1,this._fireEvents(t))},get _needsTick(){return this.playState in{pending:1,running:1}||!this._finishedFlag},_targetAnimations:function(){var t=this._effect._target;return t._activeAnimations||(t._activeAnimations=[]),t._activeAnimations},_markTarget:function(){var t=this._targetAnimations();-1===t.indexOf(this)&&t.push(this)},_unmarkTarget:function(){var t=this._targetAnimations(),e=t.indexOf(this);-1!==e&&t.splice(e,1)}}}(n,r),function(t,e,n){function r(t){var e=s;s=[],t1e-4?(g=.5/Math.sqrt(y),m=[(p[2][1]-p[1][2])*g,(p[0][2]-p[2][0])*g,(p[1][0]-p[0][1])*g,.25/g]):p[0][0]>p[1][1]&&p[0][0]>p[2][2]?m=[.25*(g=2*Math.sqrt(1+p[0][0]-p[1][1]-p[2][2])),(p[0][1]+p[1][0])/g,(p[0][2]+p[2][0])/g,(p[2][1]-p[1][2])/g]:p[1][1]>p[2][2]?(g=2*Math.sqrt(1+p[1][1]-p[0][0]-p[2][2]),m=[(p[0][1]+p[1][0])/g,.25*g,(p[1][2]+p[2][1])/g,(p[0][2]-p[2][0])/g]):(g=2*Math.sqrt(1+p[2][2]-p[0][0]-p[1][1]),m=[(p[0][2]+p[2][0])/g,(p[1][2]+p[2][1])/g,.25*g,(p[1][0]-p[0][1])/g]),[l,h,d,m,s]}}();t.dot=n,t.makeMatrixDecomposition=function(t){return[u(a(t))]},t.transformListToMatrix=a}(r),function(t){function e(t,e){var n=t.exec(e);if(n)return[n=t.ignoreCase?n[0].toLowerCase():n[0],e.substr(n.length)]}function n(t,e){var n=t(e=e.replace(/^\s*/,""));if(n)return[n[0],n[1].replace(/^\s*/,"")]}function r(t,e,n,r,o){for(var i=[],a=[],u=[],c=function(t,e){for(var n=t,r=e;n&&r;)n>r?n%=r:r%=n;return t*e/(n+r)}(r.length,o.length),s=0;s=1?e:"visible"}]},["visibility"])}(r),function(t,e){function n(t){t=t.trim(),i.fillStyle="#000",i.fillStyle=t;var e=i.fillStyle;if(i.fillStyle="#fff",i.fillStyle=t,e==i.fillStyle){i.fillRect(0,0,1,1);var n=i.getImageData(0,0,1,1).data;i.clearRect(0,0,1,1);var r=n[3]/255;return[n[0]*r,n[1]*r,n[2]*r,r]}}function r(e,n){return[e,n,function(e){function n(t){return Math.max(0,Math.min(255,t))}if(e[3])for(var r=0;r<3;r++)e[r]=Math.round(n(e[r]/e[3]));return e[3]=t.numberToString(t.clamp(0,1,e[3])),"rgba("+e.join(",")+")"}]}var o=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");o.width=o.height=1;var i=o.getContext("2d");t.addPropertiesHandler(n,r,["background-color","border-bottom-color","border-left-color","border-right-color","border-top-color","color","fill","flood-color","lighting-color","outline-color","stop-color","stroke","text-decoration-color"]),t.consumeColor=t.consumeParenthesised.bind(null,n),t.mergeColors=r}(r),function(t,e){function n(t){function e(){var e=a.exec(t);i=e?e[0]:void 0}function n(){if("("!==i)return function(){var t=Number(i);return e(),t}();e();var t=o();return")"!==i?NaN:(e(),t)}function r(){for(var t=n();"*"===i||"/"===i;){var r=i;e();var o=n();"*"===r?t*=o:t/=o}return t}function o(){for(var t=r();"+"===i||"-"===i;){var n=i;e();var o=r();"+"===n?t+=o:t-=o}return t}var i,a=/([\+\-\w\.]+|[\(\)\*\/])/g;return e(),o()}function r(t,e){if("0"==(e=e.trim().toLowerCase())&&"px".search(t)>=0)return{px:0};if(/^[^(]*$|^calc/.test(e)){e=e.replace(/calc\(/g,"(");var r={};e=e.replace(t,function(t){return r[t]=null,"U"+t});for(var o="U("+t.source+")",i=e.replace(/[-+]?(\d*\.)?\d+([Ee][-+]?\d+)?/g,"N").replace(new RegExp("N"+o,"g"),"D").replace(/\s[+-]\s/g,"O").replace(/\s/g,""),a=[/N\*(D)/g,/(N|D)[*\/]N/g,/(N|D)O\1/g,/\((N|D)\)/g],u=0;u1?"calc("+n+")":n}]}var a="px|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc",u=r.bind(null,new RegExp(a,"g")),c=r.bind(null,new RegExp(a+"|%","g")),s=r.bind(null,/deg|rad|grad|turn/g);t.parseLength=u,t.parseLengthOrPercent=c,t.consumeLengthOrPercent=t.consumeParenthesised.bind(null,c),t.parseAngle=s,t.mergeDimensions=i;var f=t.consumeParenthesised.bind(null,u),l=t.consumeRepeated.bind(void 0,f,/^/),p=t.consumeRepeated.bind(void 0,l,/^,/);t.consumeSizePairList=p;var h=t.mergeNestedRepeated.bind(void 0,o," "),d=t.mergeNestedRepeated.bind(void 0,h,",");t.mergeNonNegativeSizePair=h,t.addPropertiesHandler(function(t){var e=p(t);if(e&&""==e[1])return e[0]},d,["background-size"]),t.addPropertiesHandler(c,o,["border-bottom-width","border-image-width","border-left-width","border-right-width","border-top-width","flex-basis","font-size","height","line-height","max-height","max-width","outline-width","width"]),t.addPropertiesHandler(c,i,["border-bottom-left-radius","border-bottom-right-radius","border-top-left-radius","border-top-right-radius","bottom","left","letter-spacing","margin-bottom","margin-left","margin-right","margin-top","min-height","min-width","outline-offset","padding-bottom","padding-left","padding-right","padding-top","perspective","right","shape-margin","stroke-dashoffset","text-indent","top","vertical-align","word-spacing"])}(r),function(t,e){function n(e){return t.consumeLengthOrPercent(e)||t.consumeToken(/^auto/,e)}function r(e){var r=t.consumeList([t.ignore(t.consumeToken.bind(null,/^rect/)),t.ignore(t.consumeToken.bind(null,/^\(/)),t.consumeRepeated.bind(null,n,/^,/),t.ignore(t.consumeToken.bind(null,/^\)/))],e);if(r&&4==r[0].length)return r[0]}var o=t.mergeWrappedNestedRepeated.bind(null,function(t){return"rect("+t+")"},function(e,n){return"auto"==e||"auto"==n?[!0,!1,function(r){var o=r?e:n;if("auto"==o)return"auto";var i=t.mergeDimensions(o,o);return i[2](i[0])}]:t.mergeDimensions(e,n)},", ");t.parseBox=r,t.mergeBoxes=o,t.addPropertiesHandler(r,o,["clip"])}(r),function(t,e){function n(t){return function(e){var n=0;return t.map(function(t){return t===s?e[n++]:t})}}function r(t){return t}function o(e){if("none"==(e=e.toLowerCase().trim()))return[];for(var n,r=/\s*(\w+)\(([^)]*)\)/g,o=[],i=0;n=r.exec(e);){if(n.index!=i)return;i=n.index+n[0].length;var a=n[1],u=p[a];if(!u)return;var c=n[2].split(","),s=u[0];if(s.length900||e%100!=0))return e},function(t,n){return[t,n,e]},["font-weight"])}(r),function(t){function e(t){var e={};for(var n in t)e[n]=-t[n];return e}function n(e){return t.consumeToken(/^(left|center|right|top|bottom)\b/i,e)||t.consumeLengthOrPercent(e)}function r(e,r){var o=t.consumeRepeated(n,/^/,r);if(o&&""==o[1]){var a=o[0];if(a[0]=a[0]||"center",a[1]=a[1]||"center",3==e&&(a[2]=a[2]||{px:0}),a.length==e){if(/top|bottom/.test(a[0])||/left|right/.test(a[1])){var u=a[0];a[0]=a[1],a[1]=u}if(/left|right|center|Object/.test(a[0])&&/top|bottom|center|Object/.test(a[1]))return a.map(function(t){return"object"==typeof t?t:i[t]})}}}function o(r){var o=t.consumeRepeated(n,/^/,r);if(o){for(var a=o[0],u=[{"%":50},{"%":50}],c=0,s=!1,f=0;f=0&&this._cancelHandlers.splice(n,1)}else c.call(this,t,e)},i}}}(),function(t){var e=document.documentElement,n=null,r=!1;try{var o="0"==getComputedStyle(e).getPropertyValue("opacity")?"1":"0";(n=e.animate({opacity:[o,o]},{duration:1})).currentTime=0,r=getComputedStyle(e).getPropertyValue("opacity")==o}catch(t){}finally{n&&n.cancel()}if(!r){var i=window.Element.prototype.animate;window.Element.prototype.animate=function(e,n){return window.Symbol&&Symbol.iterator&&Array.prototype.from&&e[Symbol.iterator]&&(e=Array.from(e)),Array.isArray(e)||null===e||(e=t.convertToArrayForm(e)),i.call(this,e,n)}}}(n)},"6hpn":function(t,e,n){n("Uydy"),n("eajv"),n("n/mU"),n("PqOI"),n("QNnp"),n("/5zm"),n("CsgD"),n("9mRW"),n("QFcT"),n("vAFs"),n("a5NK"),n("yiG3"),n("kNcU"),n("KvGi"),n("AmFO"),n("eJiR"),n("I9xj"),n("tl/u");var r=n("Qo9l");t.exports=r.Math},"6x0u":function(t,e,n){"use strict";var r=n("xDBR"),o=n("2oRo"),i=n("0Dky");t.exports=r||!i(function(){var t=Math.random();__defineSetter__.call(null,t,function(){}),delete o[t]})},"7+kd":function(t,e,n){n("dG/n")("isConcatSpreadable")},"7+zs":function(t,e,n){var r=n("kRJp"),o=n("UesL"),i=n("tiKp")("toPrimitive"),a=Date.prototype;i in a||r(a,i,o)},"7sbD":function(t,e,n){n("qePV"),n("NbN+"),n("8AyJ"),n("i6QF"),n("kSko"),n("WDsR"),n("r/Vq"),n("5uH8"),n("w1rZ"),n("JevA"),n("toAj"),n("VC3L");var r=n("Qo9l");t.exports=r.Number},"7ueG":function(t,e,n){"use strict";var r=n("I+eb"),o=n("WKiH").start,i=n("yNLB")("trimStart"),a=i?function(){return o(this)}:"".trimStart;r({target:"String",proto:!0,forced:i},{trimStart:a,trimLeft:a})},"8AyJ":function(t,e,n){n("I+eb")({target:"Number",stat:!0},{isFinite:n("4oU/")})},"8GlL":function(t,e,n){"use strict";var r=n("HAuM"),o=function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new o(t)}},"8YOa":function(t,e,n){var r=n("0BK2"),o=n("hh1v"),i=n("UTVS"),a=n("m/L8").f,u=n("kOOl"),c=n("uy83"),s=u("meta"),f=0,l=Object.isExtensible||function(){return!0},p=function(t){a(t,s,{value:{objectID:"O"+ ++f,weakData:{}}})},h=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,s)){if(!l(t))return"F";if(!e)return"E";p(t)}return t[s].objectID},getWeakData:function(t,e){if(!i(t,s)){if(!l(t))return!0;if(!e)return!1;p(t)}return t[s].weakData},onFreeze:function(t){return c&&h.REQUIRED&&l(t)&&!i(t,s)&&p(t),t}};r[s]=!0},"90hW":function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},"93I0":function(t,e,n){var r=n("VpIT"),o=n("kOOl"),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},"94Xl":function(t,e,n){n("JiZb")("Array")},"9LPj":function(t,e,n){"use strict";var r=n("I+eb"),o=n("0Dky"),i=n("ewvW"),a=n("wE6v");r({target:"Date",proto:!0,forced:o(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})},{toJSON:function(t){var e=i(this),n=a(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},"9N29":function(t,e,n){"use strict";var r=n("I+eb"),o=n("1Y/n").right,i=n("pkCn"),a=n("rkAj"),u=i("reduceRight"),c=a("reduce",{1:0});r({target:"Array",proto:!0,forced:!u||!c},{reduceRight:function(t){return o(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"9bJ7":function(t,e,n){"use strict";var r=n("I+eb"),o=n("ZUd8").codeAt;r({target:"String",proto:!0},{codePointAt:function(t){return o(this,t)}})},"9d/t":function(t,e,n){var r=n("AO7/"),o=n("xrYK"),i=n("tiKp")("toStringTag"),a="Arguments"==o(function(){return arguments}());t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(n){}}(e=Object(t),i))?n:a?o(e):"Object"==(r=o(e))&&"function"==typeof e.callee?"Arguments":r}},"9mRW":function(t,e,n){n("I+eb")({target:"Math",stat:!0},{fround:n("vo4V")})},"9tb/":function(t,e,n){var r=n("I+eb"),o=n("I8vh"),i=String.fromCharCode,a=String.fromCodePoint;r({target:"String",stat:!0,forced:!!a&&1!=a.length},{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,a=0;r>a;){if(e=+arguments[a++],o(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?i(e):i(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},A2ZE:function(t,e,n){var r=n("HAuM");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},ALS0:function(t,e,n){"use strict";n("rB9j");var r,o,i=n("I+eb"),a=n("hh1v"),u=(r=!1,(o=/[ac]/).exec=function(){return r=!0,/./.exec.apply(this,arguments)},!0===o.test("abc")&&r),c=/./.test;i({target:"RegExp",proto:!0,forced:!u},{test:function(t){if("function"!=typeof this.exec)return c.call(this,t);var e=this.exec(t);if(null!==e&&!a(e))throw new Error("RegExp exec method returned something other than an Object or null");return!!e}})},"AO7/":function(t,e,n){var r={};r[n("tiKp")("toStringTag")]="z",t.exports="[object z]"===String(r)},AmFO:function(t,e,n){var r=n("I+eb"),o=n("0Dky"),i=n("jrUv"),a=Math.abs,u=Math.exp,c=Math.E;r({target:"Math",stat:!0,forced:o(function(){return-2e-17!=Math.sinh(-2e-17)})},{sinh:function(t){return a(t=+t)<1?(i(t)-i(-t))/2:(u(t-1)-u(-t-1))*(c/2)}})},B6y2:function(t,e,n){var r=n("I+eb"),o=n("b1O7").values;r({target:"Object",stat:!0},{values:function(t){return o(t)}})},BIHw:function(t,e,n){"use strict";var r=n("I+eb"),o=n("or9q"),i=n("ewvW"),a=n("UMSQ"),u=n("ppGB"),c=n("ZfDv");r({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=i(this),n=a(e.length),r=c(e,0);return r.length=o(r,e,e,n,0,void 0===t?1:u(t)),r}})},BNMt:function(t,e,n){"use strict";var r=n("I+eb"),o=n("hXpO");r({target:"String",proto:!0,forced:n("rwPt")("blink")},{blink:function(){return o(this,"blink","","")}})},BTho:function(t,e,n){"use strict";var r=n("HAuM"),o=n("hh1v"),i=[].slice,a={},u=function(t,e,n){if(!(e in a)){for(var r=[],o=0;oc&&(s=s.slice(0,c)),t?f+s:s+f)}};t.exports={start:u(!1),end:u(!0)}},DPsx:function(t,e,n){var r=n("g6v/"),o=n("0Dky"),i=n("zBJ4");t.exports=!r&&!o(function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},DQNa:function(t,e,n){var r=n("busE"),o=Date.prototype,i="Invalid Date",a=o.toString,u=o.getTime;new Date(NaN)+""!=i&&r(o,"toString",function(){var t=u.call(this);return t==t?a.call(this):i})},E5NM:function(t,e,n){"use strict";var r=n("I+eb"),o=n("hXpO");r({target:"String",proto:!0,forced:n("rwPt")("big")},{big:function(){return o(this,"big","","")}})},E9XD:function(t,e,n){"use strict";var r=n("I+eb"),o=n("1Y/n").left,i=n("pkCn"),a=n("rkAj"),u=i("reduce"),c=a("reduce",{1:0});r({target:"Array",proto:!0,forced:!u||!c},{reduce:function(t){return o(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},ENF9:function(t,e,n){"use strict";var r,o=n("2oRo"),i=n("4syw"),a=n("8YOa"),u=n("bWFh"),c=n("rKzb"),s=n("hh1v"),f=n("afO8").enforce,l=n("f5p1"),p=!o.ActiveXObject&&"ActiveXObject"in o,h=Object.isExtensible,d=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},v=t.exports=u("WeakMap",d,c);if(l&&p){r=c.getConstructor(d,"WeakMap",!0),a.REQUIRED=!0;var g=v.prototype,m=g.delete,y=g.has,b=g.get,_=g.set;i(g,{delete:function(t){if(s(t)&&!h(t)){var e=f(this);return e.frozen||(e.frozen=new r),m.call(this,t)||e.frozen.delete(t)}return m.call(this,t)},has:function(t){if(s(t)&&!h(t)){var e=f(this);return e.frozen||(e.frozen=new r),y.call(this,t)||e.frozen.has(t)}return y.call(this,t)},get:function(t){if(s(t)&&!h(t)){var e=f(this);return e.frozen||(e.frozen=new r),y.call(this,t)?b.call(this,t):e.frozen.get(t)}return b.call(this,t)},set:function(t,e){if(s(t)&&!h(t)){var n=f(this);n.frozen||(n.frozen=new r),y.call(this,t)?_.call(this,t,e):n.frozen.set(t,e)}else _.call(this,t,e);return this}})}},EUja:function(t,e,n){"use strict";var r=n("ppGB"),o=n("HYAF");t.exports="".repeat||function(t){var e=String(o(this)),n="",i=r(t);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(e+=e))1&i&&(n+=e);return n}},EnZy:function(t,e,n){"use strict";var r=n("14Sl"),o=n("ROdP"),i=n("glrk"),a=n("HYAF"),u=n("SEBh"),c=n("iqWW"),s=n("UMSQ"),f=n("FMNM"),l=n("kmMV"),p=n("0Dky"),h=[].push,d=Math.min,v=4294967295,g=!p(function(){return!RegExp(v,"y")});r("split",2,function(t,e,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r=String(a(this)),i=void 0===n?v:n>>>0;if(0===i)return[];if(void 0===t)return[r];if(!o(t))return e.call(r,t,i);for(var u,c,s,f=[],p=0,d=new RegExp(t.source,(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":"")+"g");(u=l.call(d,r))&&!((c=d.lastIndex)>p&&(f.push(r.slice(p,u.index)),u.length>1&&u.index=i));)d.lastIndex===u.index&&d.lastIndex++;return p===r.length?!s&&d.test("")||f.push(""):f.push(r.slice(p)),f.length>i?f.slice(0,i):f}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,n){var o=a(this),i=null==e?void 0:e[t];return void 0!==i?i.call(e,o,n):r.call(String(o),e,n)},function(t,o){var a=n(r,t,this,o,r!==e);if(a.done)return a.value;var l=i(t),p=String(this),h=u(l,RegExp),m=l.unicode,y=new h(g?l:"^(?:"+l.source+")",(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(g?"y":"g")),b=void 0===o?v:o>>>0;if(0===b)return[];if(0===p.length)return null===f(y,p)?[p]:[];for(var _=0,x=0,k=[];x1?arguments[1]:void 0)}},FF6l:function(t,e,n){"use strict";var r=n("ewvW"),o=n("I8vh"),i=n("UMSQ"),a=Math.min;t.exports=[].copyWithin||function(t,e){var n=r(this),u=i(n.length),c=o(t,u),s=o(e,u),f=arguments.length>2?arguments[2]:void 0,l=a((void 0===f?u:o(f,u))-s,u-c),p=1;for(s0;)s in n?n[c]=n[s]:delete n[c],c+=p,s+=p;return n}},FMNM:function(t,e,n){var r=n("xrYK"),o=n("kmMV");t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var i=n.call(t,e);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(t))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},FZtP:function(t,e,n){var r=n("2oRo"),o=n("/byt"),i=n("F8JR"),a=n("kRJp");for(var u in o){var c=r[u],s=c&&c.prototype;if(s&&s.forEach!==i)try{a(s,"forEach",i)}catch(f){s.forEach=i}}},"G+Rx":function(t,e,n){var r=n("0GbY");t.exports=r("document","documentElement")},"G/JM":function(t,e,n){n("I+eb")({target:"Reflect",stat:!0},{ownKeys:n("Vu81")})},GKVU:function(t,e,n){"use strict";var r=n("I+eb"),o=n("hXpO");r({target:"String",proto:!0,forced:n("rwPt")("anchor")},{anchor:function(t){return o(this,"a","name",t)}})},GRPF:function(t,e,n){"use strict";var r=n("I+eb"),o=n("hXpO");r({target:"String",proto:!0,forced:n("rwPt")("fontsize")},{fontsize:function(t){return o(this,"font","size",t)}})},GXvd:function(t,e,n){n("dG/n")("species")},GarU:function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},H0pb:function(t,e,n){n("ma9I"),n("07d7"),n("pNMO"),n("tjZM"),n("4Brf"),n("3I1R"),n("7+kd"),n("0oug"),n("KhsS"),n("jt2F"),n("gOCb"),n("a57n"),n("GXvd"),n("I1Gw"),n("gXIK"),n("lEou"),n("gbiT"),n("I9xj"),n("DEfu");var r=n("Qo9l");t.exports=r.Symbol},HAuM:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},HH4o:function(t,e,n){var r=n("tiKp")("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,function(){throw 2})}catch(u){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(u){}return n}},HNyW:function(t,e,n){var r=n("NC/Y");t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},HRxU:function(t,e,n){var r=n("I+eb"),o=n("g6v/");r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperties:n("N+g0")})},HYAF:function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},Hd5f:function(t,e,n){var r=n("0Dky"),o=n("tiKp"),i=n("LQDL"),a=o("species");t.exports=function(t){return i>=51||!r(function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo})}},HiXI:function(t,e,n){"use strict";var r=n("I+eb"),o=n("WKiH").end,i=n("yNLB")("trimEnd"),a=i?function(){return o(this)}:"".trimEnd;r({target:"String",proto:!0,forced:i},{trimEnd:a,trimRight:a})},HsHA:function(t,e){var n=Math.log;t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:n(1+t)}},"I+eb":function(t,e,n){var r=n("2oRo"),o=n("Bs8V").f,i=n("kRJp"),a=n("busE"),u=n("zk60"),c=n("6JNq"),s=n("lMq5");t.exports=function(t,e){var n,f,l,p,h,d=t.target,v=t.global,g=t.stat;if(n=v?r:g?r[d]||u(d,{}):(r[d]||{}).prototype)for(f in e){if(p=e[f],l=t.noTargetGet?(h=o(n,f))&&h.value:n[f],!s(v?f:d+(g?".":"#")+f,t.forced)&&void 0!==l){if(typeof p==typeof l)continue;c(p,l)}(t.sham||l&&l.sham)&&i(p,"sham",!0),a(n,f,p,t)}}},I1Gw:function(t,e,n){n("dG/n")("split")},I8vh:function(t,e,n){var r=n("ppGB"),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},I9xj:function(t,e,n){n("1E5z")(Math,"Math",!0)},ImZN:function(t,e,n){var r=n("glrk"),o=n("6VoE"),i=n("UMSQ"),a=n("A2ZE"),u=n("NaFW"),c=n("m92n"),s=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,e,n,f,l){var p,h,d,v,g,m,y,b=a(e,n,f?2:1);if(l)p=t;else{if("function"!=typeof(h=u(t)))throw TypeError("Target is not iterable");if(o(h)){for(d=0,v=i(t.length);v>d;d++)if((g=f?b(r(y=t[d])[0],y[1]):b(t[d]))&&g instanceof s)return g;return new s(!1)}p=h.call(t)}for(m=p.next;!(y=m.call(p)).done;)if("object"==typeof(g=c(p,b,y.value,f))&&g&&g instanceof s)return g;return new s(!1)}).stop=function(t){return new s(!0,t)}},IxXR:function(t,e,n){"use strict";var r=n("I+eb"),o=n("hXpO");r({target:"String",proto:!0,forced:n("rwPt")("strike")},{strike:function(){return o(this,"strike","","")}})},J30X:function(t,e,n){n("I+eb")({target:"Array",stat:!0},{isArray:n("6LWA")})},JBy8:function(t,e,n){var r=n("yoRg"),o=n("eDl+").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},JTJg:function(t,e,n){"use strict";var r=n("I+eb"),o=n("WjRb"),i=n("HYAF");r({target:"String",proto:!0,forced:!n("qxPZ")("includes")},{includes:function(t){return!!~String(i(this)).indexOf(o(t),arguments.length>1?arguments[1]:void 0)}})},JevA:function(t,e,n){var r=n("I+eb"),o=n("wg0c");r({target:"Number",stat:!0,forced:Number.parseInt!=o},{parseInt:o})},JfAA:function(t,e,n){"use strict";var r=n("busE"),o=n("glrk"),i=n("0Dky"),a=n("rW0t"),u="toString",c=RegExp.prototype,s=c.toString;(i(function(){return"/a/b"!=s.call({source:"a",flags:"b"})})||s.name!=u)&&r(RegExp.prototype,u,function(){var t=o(this),e=String(t.source),n=t.flags;return"/"+e+"/"+String(void 0===n&&t instanceof RegExp&&!("flags"in c)?a.call(t):n)},{unsafe:!0})},JiZb:function(t,e,n){"use strict";var r=n("0GbY"),o=n("m/L8"),i=n("tiKp"),a=n("g6v/"),u=i("species");t.exports=function(t){var e=r(t);a&&e&&!e[u]&&(0,o.f)(e,u,{configurable:!0,get:function(){return this}})}},Junv:function(t,e,n){"use strict";var r=n("I+eb"),o=n("6LWA"),i=[].reverse,a=[1,2];r({target:"Array",proto:!0,forced:String(a)===String(a.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),i.call(this)}})},KhsS:function(t,e,n){n("dG/n")("match")},Kv9l:function(t,e,n){n("TWNs"),n("JfAA"),n("rB9j"),n("U3f4"),n("LD7m"),n("ALS0"),n("Rm1S"),n("UxlC"),n("hByQ"),n("EnZy")},KvGi:function(t,e,n){n("I+eb")({target:"Math",stat:!0},{sign:n("90hW")})},Kxld:function(t,e,n){n("I+eb")({target:"Object",stat:!0},{is:n("Ep9I")})},LD7m:function(t,e,n){var r=n("g6v/"),o=n("n3/R").UNSUPPORTED_Y,i=n("m/L8").f,a=n("afO8").get,u=RegExp.prototype;r&&o&&i(RegExp.prototype,"sticky",{configurable:!0,get:function(){if(this!==u){if(this instanceof RegExp)return!!a(this).sticky;throw TypeError("Incompatible receiver, RegExp required")}}})},LKBx:function(t,e,n){"use strict";var r,o=n("I+eb"),i=n("Bs8V").f,a=n("UMSQ"),u=n("WjRb"),c=n("HYAF"),s=n("qxPZ"),f=n("xDBR"),l="".startsWith,p=Math.min,h=s("startsWith");o({target:"String",proto:!0,forced:!(!f&&!h&&(r=i(String.prototype,"startsWith"),r&&!r.writable)||h)},{startsWith:function(t){var e=String(c(this));u(t);var n=a(p(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return l?l.call(e,r,n):e.slice(n,n+r.length)===r}})},LPSS:function(t,e,n){var r,o,i,a=n("2oRo"),u=n("0Dky"),c=n("xrYK"),s=n("A2ZE"),f=n("G+Rx"),l=n("zBJ4"),p=n("HNyW"),h=a.location,d=a.setImmediate,v=a.clearImmediate,g=a.process,m=a.MessageChannel,y=a.Dispatch,b=0,_={},x=function(t){if(_.hasOwnProperty(t)){var e=_[t];delete _[t],e()}},k=function(t){return function(){x(t)}},w=function(t){x(t.data)},T=function(t){a.postMessage(t+"",h.protocol+"//"+h.host)};d&&v||(d=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return _[++b]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},r(b),b},v=function(t){delete _[t]},"process"==c(g)?r=function(t){g.nextTick(k(t))}:y&&y.now?r=function(t){y.now(k(t))}:m&&!p?(i=(o=new m).port2,o.port1.onmessage=w,r=s(i.postMessage,i,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||u(T)||"file:"===h.protocol?r="onreadystatechange"in l("script")?function(t){f.appendChild(l("script")).onreadystatechange=function(){f.removeChild(this),x(t)}}:function(t){setTimeout(k(t),0)}:(r=T,a.addEventListener("message",w,!1))),t.exports={set:d,clear:v}},LQDL:function(t,e,n){var r,o,i=n("2oRo"),a=n("NC/Y"),u=i.process,c=u&&u.versions,s=c&&c.v8;s?o=(r=s.split("."))[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=r[1]),t.exports=o&&+o},"N+g0":function(t,e,n){var r=n("g6v/"),o=n("m/L8"),i=n("glrk"),a=n("33Wh");t.exports=r?Object.defineProperties:function(t,e){i(t);for(var n,r=a(e),u=r.length,c=0;u>c;)o.f(t,n=r[c++],e[n]);return t}},NBAS:function(t,e,n){var r=n("I+eb"),o=n("0Dky"),i=n("ewvW"),a=n("4WOD"),u=n("4Xet");r({target:"Object",stat:!0,forced:o(function(){a(1)}),sham:!u},{getPrototypeOf:function(t){return a(i(t))}})},"NC/Y":function(t,e,n){var r=n("0GbY");t.exports=r("navigator","userAgent")||""},NaFW:function(t,e,n){var r=n("9d/t"),o=n("P4y1"),i=n("tiKp")("iterator");t.exports=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[r(t)]}},"NbN+":function(t,e,n){n("I+eb")({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},O741:function(t,e,n){var r=n("hh1v");t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},OM9Z:function(t,e,n){n("I+eb")({target:"String",proto:!0},{repeat:n("EUja")})},P4y1:function(t,e){t.exports={}},PKPk:function(t,e,n){"use strict";var r=n("ZUd8").charAt,o=n("afO8"),i=n("fdAy"),a="String Iterator",u=o.set,c=o.getterFor(a);i(String,"String",function(t){u(this,{type:a,string:String(t),index:0})},function(){var t,e=c(this),n=e.string,o=e.index;return o>=n.length?{value:void 0,done:!0}:(t=r(n,o),e.index+=t.length,{value:t,done:!1})})},PqOI:function(t,e,n){var r=n("I+eb"),o=n("90hW"),i=Math.abs,a=Math.pow;r({target:"Math",stat:!0},{cbrt:function(t){return o(t=+t)*a(i(t),1/3)}})},PzqY:function(t,e,n){var r=n("I+eb"),o=n("g6v/"),i=n("glrk"),a=n("wE6v"),u=n("m/L8");r({target:"Reflect",stat:!0,forced:n("0Dky")(function(){Reflect.defineProperty(u.f({},1,{value:1}),1,{value:2})}),sham:!o},{defineProperty:function(t,e,n){i(t);var r=a(e,!0);i(n);try{return u.f(t,r,n),!0}catch(o){return!1}}})},QFcT:function(t,e,n){var r=n("I+eb"),o=Math.hypot,i=Math.abs,a=Math.sqrt;r({target:"Math",stat:!0,forced:!!o&&o(1/0,NaN)!==1/0},{hypot:function(t,e){for(var n,r,o=0,u=0,c=arguments.length,s=0;u0?(r=n/s)*r:n;return s===1/0?1/0:s*a(o)}})},QGkA:function(t,e,n){n("RNIs")("flat")},QIpd:function(t,e,n){var r=n("xrYK");t.exports=function(t){if("number"!=typeof t&&"Number"!=r(t))throw TypeError("Incorrect invocation");return+t}},QNnp:function(t,e,n){var r=n("I+eb"),o=Math.floor,i=Math.log,a=Math.LOG2E;r({target:"Math",stat:!0},{clz32:function(t){return(t>>>=0)?31-o(i(t+.5)*a):32}})},QWBl:function(t,e,n){"use strict";var r=n("I+eb"),o=n("F8JR");r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},Qo9l:function(t,e,n){var r=n("2oRo");t.exports=r},RK3t:function(t,e,n){var r=n("0Dky"),o=n("xrYK"),i="".split;t.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},RN6c:function(t,e,n){var r=n("2oRo");t.exports=function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}},RNIs:function(t,e,n){var r=n("tiKp"),o=n("fHMY"),i=n("m/L8"),a=r("unscopables"),u=Array.prototype;null==u[a]&&i.f(u,a,{configurable:!0,value:o(null)}),t.exports=function(t){u[a][t]=!0}},ROdP:function(t,e,n){var r=n("hh1v"),o=n("xrYK"),i=n("tiKp")("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},Rfxz:function(t,e,n){"use strict";var r=n("I+eb"),o=n("tycR").some,i=n("pkCn"),a=n("rkAj"),u=i("some"),c=a("some");r({target:"Array",proto:!0,forced:!u||!c},{some:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},Rm1S:function(t,e,n){"use strict";var r=n("14Sl"),o=n("glrk"),i=n("UMSQ"),a=n("HYAF"),u=n("iqWW"),c=n("FMNM");r("match",1,function(t,e,n){return[function(e){var n=a(this),r=null==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var r=n(e,t,this);if(r.done)return r.value;var a=o(t),s=String(this);if(!a.global)return c(a,s);var f=a.unicode;a.lastIndex=0;for(var l,p=[],h=0;null!==(l=c(a,s));){var d=String(l[0]);p[h]=d,""===d&&(a.lastIndex=u(s,i(a.lastIndex),f)),h++}return 0===h?null:p}]})},SEBh:function(t,e,n){var r=n("glrk"),o=n("HAuM"),i=n("tiKp")("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||null==(n=r(a)[i])?e:o(n)}},STAE:function(t,e,n){var r=n("0Dky");t.exports=!!Object.getOwnPropertySymbols&&!r(function(){return!String(Symbol())})},SYor:function(t,e,n){"use strict";var r=n("I+eb"),o=n("WKiH").trim;r({target:"String",proto:!0,forced:n("yNLB")("trim")},{trim:function(){return o(this)}})},SkA5:function(t,e,n){n("pv2x"),n("SuFq"),n("PzqY"),n("rBZX"),n("XUE8"),n("nkod"),n("f3jH"),n("x2An"),n("25bX"),n("G/JM"),n("1t3B"),n("ftMj"),n("i5pp");var r=n("Qo9l");t.exports=r.Reflect},SuFq:function(t,e,n){var r=n("I+eb"),o=n("0GbY"),i=n("HAuM"),a=n("glrk"),u=n("hh1v"),c=n("fHMY"),s=n("BTho"),f=n("0Dky"),l=o("Reflect","construct"),p=f(function(){function t(){}return!(l(function(){},[],t)instanceof t)}),h=!f(function(){l(function(){})}),d=p||h;r({target:"Reflect",stat:!0,forced:d,sham:d},{construct:function(t,e){i(t),a(e);var n=arguments.length<3?t:i(arguments[2]);if(h&&!p)return l(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(s.apply(t,r))}var o=n.prototype,f=c(u(o)?o:Object.prototype),d=Function.apply.call(t,f,e);return u(d)?d:f}})},T63A:function(t,e,n){var r=n("I+eb"),o=n("b1O7").entries;r({target:"Object",stat:!0},{entries:function(t){return o(t)}})},TFPT:function(t,e,n){"use strict";var r=n("I+eb"),o=n("hXpO");r({target:"String",proto:!0,forced:n("rwPt")("sub")},{sub:function(){return o(this,"sub","","")}})},TWNs:function(t,e,n){var r=n("g6v/"),o=n("2oRo"),i=n("lMq5"),a=n("cVYH"),u=n("m/L8").f,c=n("JBy8").f,s=n("ROdP"),f=n("rW0t"),l=n("n3/R"),p=n("busE"),h=n("0Dky"),d=n("afO8").set,v=n("JiZb"),g=n("tiKp")("match"),m=o.RegExp,y=m.prototype,b=/a/g,_=/a/g,x=new m(b)!==b,k=l.UNSUPPORTED_Y;if(r&&i("RegExp",!x||k||h(function(){return _[g]=!1,m(b)!=b||m(_)==_||"/a/i"!=m(b,"i")}))){for(var w=function(t,e){var n,r=this instanceof w,o=s(t),i=void 0===e;if(!r&&o&&t.constructor===w&&i)return t;x?o&&!i&&(t=t.source):t instanceof w&&(i&&(e=f.call(t)),t=t.source),k&&(n=!!e&&e.indexOf("y")>-1)&&(e=e.replace(/y/g,""));var u=a(x?new m(t,e):m(t,e),r?this:y,w);return k&&n&&d(u,{sticky:n}),u},T=function(t){t in w||u(w,t,{configurable:!0,get:function(){return m[t]},set:function(e){m[t]=e}})},E=c(m),S=0;E.length>S;)T(E[S++]);y.constructor=w,w.prototype=y,p(o,"RegExp",w)}v("RegExp")},TWQb:function(t,e,n){var r=n("/GqU"),o=n("UMSQ"),i=n("I8vh"),a=function(t){return function(e,n,a){var u,c=r(e),s=o(c.length),f=i(a,s);if(t&&n!=n){for(;s>f;)if((u=c[f++])!=u)return!0}else for(;s>f;f++)if((t||f in c)&&c[f]===n)return t||f||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},TZCg:function(t,e,n){"use strict";var r=n("I+eb"),o=n("DMt2").start;r({target:"String",proto:!0,forced:n("mgyK")},{padStart:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},TeQF:function(t,e,n){"use strict";var r=n("I+eb"),o=n("tycR").filter,i=n("Hd5f"),a=n("rkAj"),u=i("filter"),c=a("filter");r({target:"Array",proto:!0,forced:!u||!c},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},TfTi:function(t,e,n){"use strict";var r=n("A2ZE"),o=n("ewvW"),i=n("m92n"),a=n("6VoE"),u=n("UMSQ"),c=n("hBjN"),s=n("NaFW");t.exports=function(t){var e,n,f,l,p,h,d=o(t),v="function"==typeof this?this:Array,g=arguments.length,m=g>1?arguments[1]:void 0,y=void 0!==m,b=s(d),_=0;if(y&&(m=r(m,g>2?arguments[2]:void 0,2)),null==b||v==Array&&a(b))for(n=new v(e=u(d.length));e>_;_++)h=y?m(d[_],_):d[_],c(n,_,h);else for(p=(l=b.call(d)).next,n=new v;!(f=p.call(l)).done;_++)h=y?i(l,m,[f.value,_],!0):f.value,c(n,_,h);return n.length=_,n}},ToJy:function(t,e,n){"use strict";var r=n("I+eb"),o=n("HAuM"),i=n("ewvW"),a=n("0Dky"),u=n("pkCn"),c=[],s=c.sort,f=a(function(){c.sort(void 0)}),l=a(function(){c.sort(null)}),p=u("sort");r({target:"Array",proto:!0,forced:f||!l||!p},{sort:function(t){return void 0===t?s.call(i(this)):s.call(i(this),o(t))}})},Tskq:function(t,e,n){"use strict";var r=n("bWFh"),o=n("ZWaQ");t.exports=r("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},o)},U3f4:function(t,e,n){var r=n("g6v/"),o=n("m/L8"),i=n("rW0t"),a=n("n3/R").UNSUPPORTED_Y;r&&("g"!=/./g.flags||a)&&o.f(RegExp.prototype,"flags",{configurable:!0,get:i})},UMSQ:function(t,e,n){var r=n("ppGB"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},UTVS:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},UesL:function(t,e,n){"use strict";var r=n("glrk"),o=n("wE6v");t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return o(r(this),"number"!==t)}},UxlC:function(t,e,n){"use strict";var r=n("14Sl"),o=n("glrk"),i=n("ewvW"),a=n("UMSQ"),u=n("ppGB"),c=n("HYAF"),s=n("iqWW"),f=n("FMNM"),l=Math.max,p=Math.min,h=Math.floor,d=/\$([$&'`]|\d\d?|<[^>]*>)/g,v=/\$([$&'`]|\d\d?)/g;r("replace",2,function(t,e,n,r){var g=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,m=r.REPLACE_KEEPS_$0,y=g?"$":"$0";return[function(n,r){var o=c(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,o,r):e.call(String(o),n,r)},function(t,r){if(!g&&m||"string"==typeof r&&-1===r.indexOf(y)){var i=n(e,t,this,r);if(i.done)return i.value}var c=o(t),h=String(this),d="function"==typeof r;d||(r=String(r));var v=c.global;if(v){var _=c.unicode;c.lastIndex=0}for(var x=[];;){var k=f(c,h);if(null===k)break;if(x.push(k),!v)break;""===String(k[0])&&(c.lastIndex=s(h,a(c.lastIndex),_))}for(var w,T="",E=0,S=0;S=E&&(T+=h.slice(E,I)+A,E=I+O.length)}return T+h.slice(E)}];function b(t,n,r,o,a,u){var c=r+t.length,s=o.length,f=v;return void 0!==a&&(a=i(a),f=d),e.call(u,f,function(e,i){var u;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,r);case"'":return n.slice(c);case"<":u=a[i.slice(1,-1)];break;default:var f=+i;if(0===f)return e;if(f>s){var l=h(f/10);return 0===l?e:l<=s?void 0===o[l-1]?i.charAt(1):o[l-1]+i.charAt(1):e}u=o[f-1]}return void 0===u?"":u})}})},Uydy:function(t,e,n){var r=n("I+eb"),o=n("HsHA"),i=Math.acosh,a=Math.log,u=Math.sqrt,c=Math.LN2;r({target:"Math",stat:!0,forced:!i||710!=Math.floor(i(Number.MAX_VALUE))||i(1/0)!=1/0},{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?a(t)+c:o(t-1+u(t-1)*u(t+1))}})},VC3L:function(t,e,n){"use strict";var r=n("I+eb"),o=n("0Dky"),i=n("QIpd"),a=1..toPrecision;r({target:"Number",proto:!0,forced:o(function(){return"1"!==a.call(1,void 0)})||!o(function(){a.call({})})},{toPrecision:function(t){return void 0===t?a.call(i(this)):a.call(i(this),t)}})},VpIT:function(t,e,n){var r=n("xDBR"),o=n("xs3f");(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"})},Vu81:function(t,e,n){var r=n("0GbY"),o=n("JBy8"),i=n("dBg+"),a=n("glrk");t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(a(t)),n=i.f;return n?e.concat(n(t)):e}},"W/eh":function(t,e,n){"use strict";var r=n("I+eb"),o=n("g6v/"),i=n("6x0u"),a=n("ewvW"),u=n("wE6v"),c=n("4WOD"),s=n("Bs8V").f;o&&r({target:"Object",proto:!0,forced:i},{__lookupSetter__:function(t){var e,n=a(this),r=u(t,!0);do{if(e=s(n,r))return e.set}while(n=c(n))}})},WDsR:function(t,e,n){var r=n("I+eb"),o=n("Xol8"),i=Math.abs;r({target:"Number",stat:!0},{isSafeInteger:function(t){return o(t)&&i(t)<=9007199254740991}})},WJkJ:function(t,e){t.exports="\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},WKiH:function(t,e,n){var r=n("HYAF"),o="["+n("WJkJ")+"]",i=RegExp("^"+o+o+"*"),a=RegExp(o+o+"*$"),u=function(t){return function(e){var n=String(r(e));return 1&t&&(n=n.replace(i,"")),2&t&&(n=n.replace(a,"")),n}};t.exports={start:u(1),end:u(2),trim:u(3)}},WjRb:function(t,e,n){var r=n("ROdP");t.exports=function(t){if(r(t))throw TypeError("The method doesn't accept regular expressions");return t}},XGwC:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},XUE8:function(t,e,n){var r=n("I+eb"),o=n("hh1v"),i=n("glrk"),a=n("UTVS"),u=n("Bs8V"),c=n("4WOD");r({target:"Reflect",stat:!0},{get:function t(e,n){var r,s,f=arguments.length<3?e:arguments[2];return i(e)===f?e[n]:(r=u.f(e,n))?a(r,"value")?r.value:void 0===r.get?void 0:r.get.call(f):o(s=c(e))?t(s,n,f):void 0}})},XbcX:function(t,e,n){"use strict";var r=n("I+eb"),o=n("or9q"),i=n("ewvW"),a=n("UMSQ"),u=n("HAuM"),c=n("ZfDv");r({target:"Array",proto:!0},{flatMap:function(t){var e,n=i(this),r=a(n.length);return u(t),(e=c(n,0)).length=o(e,n,n,r,0,1,t,arguments.length>1?arguments[1]:void 0),e}})},Xe3L:function(t,e,n){"use strict";var r=n("I+eb"),o=n("0Dky"),i=n("hBjN");r({target:"Array",stat:!0,forced:o(function(){function t(){}return!(Array.of.call(t)instanceof t)})},{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)i(n,t,arguments[t++]);return n.length=e,n}})},Xol8:function(t,e,n){var r=n("hh1v"),o=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&o(t)===t}},Xv9K:function(t,e,n){n("Tskq"),n("07d7"),n("PKPk"),n("3bBZ");var r=n("Qo9l");t.exports=r.Map},YGK4:function(t,e,n){"use strict";var r=n("bWFh"),o=n("ZWaQ");t.exports=r("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},o)},YNrV:function(t,e,n){"use strict";var r=n("g6v/"),o=n("0Dky"),i=n("33Wh"),a=n("dBg+"),u=n("0eef"),c=n("ewvW"),s=n("RK3t"),f=Object.assign,l=Object.defineProperty;t.exports=!f||o(function(){if(r&&1!==f({b:1},f(l({},"a",{enumerable:!0,get:function(){l(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),o="abcdefghijklmnopqrst";return t[n]=7,o.split("").forEach(function(t){e[t]=t}),7!=f({},t)[n]||i(f({},e)).join("")!=o})?function(t,e){for(var n=c(t),o=arguments.length,f=1,l=a.f,p=u.f;o>f;)for(var h,d=s(arguments[f++]),v=l?i(d).concat(l(d)):i(d),g=v.length,m=0;g>m;)h=v[m++],r&&!p.call(d,h)||(n[h]=d[h]);return n}:f},ZOXb:function(t,e,n){"use strict";var r=n("0Dky"),o=n("DMt2").start,i=Math.abs,a=Date.prototype,u=a.getTime,c=a.toISOString;t.exports=r(function(){return"0385-07-25T07:06:39.999Z"!=c.call(new Date(-50000000000001))})||!r(function(){c.call(new Date(NaN))})?function(){if(!isFinite(u.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),r=e<0?"-":e>9999?"+":"";return r+o(i(e),r?6:4,0)+"-"+o(t.getUTCMonth()+1,2,0)+"-"+o(t.getUTCDate(),2,0)+"T"+o(t.getUTCHours(),2,0)+":"+o(t.getUTCMinutes(),2,0)+":"+o(t.getUTCSeconds(),2,0)+"."+o(n,3,0)+"Z"}:c},ZUd8:function(t,e,n){var r=n("ppGB"),o=n("HYAF"),i=function(t){return function(e,n){var i,a,u=String(o(e)),c=r(n),s=u.length;return c<0||c>=s?t?"":void 0:(i=u.charCodeAt(c))<55296||i>56319||c+1===s||(a=u.charCodeAt(c+1))<56320||a>57343?t?u.charAt(c):i:t?u.slice(c,c+2):a-56320+(i-55296<<10)+65536}};t.exports={codeAt:i(!1),charAt:i(!0)}},ZWaQ:function(t,e,n){"use strict";var r=n("m/L8").f,o=n("fHMY"),i=n("4syw"),a=n("A2ZE"),u=n("GarU"),c=n("ImZN"),s=n("fdAy"),f=n("JiZb"),l=n("g6v/"),p=n("8YOa").fastKey,h=n("afO8"),d=h.set,v=h.getterFor;t.exports={getConstructor:function(t,e,n,s){var f=t(function(t,r){u(t,f,e),d(t,{type:e,index:o(null),first:void 0,last:void 0,size:0}),l||(t.size=0),null!=r&&c(r,t[s],t,n)}),h=v(e),g=function(t,e,n){var r,o,i=h(t),a=m(t,e);return a?a.value=n:(i.last=a={index:o=p(e,!0),key:e,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),l?i.size++:t.size++,"F"!==o&&(i.index[o]=a)),t},m=function(t,e){var n,r=h(t),o=p(e);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==e)return n};return i(f.prototype,{clear:function(){for(var t=h(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,l?t.size=0:this.size=0},delete:function(t){var e=this,n=h(e),r=m(e,t);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),l?n.size--:e.size--}return!!r},forEach:function(t){for(var e,n=h(this),r=a(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!m(this,t)}}),i(f.prototype,n?{get:function(t){var e=m(this,t);return e&&e.value},set:function(t,e){return g(this,0===t?0:t,e)}}:{add:function(t){return g(this,t=0===t?0:t,t)}}),l&&r(f.prototype,"size",{get:function(){return h(this).size}}),f},setStrong:function(t,e,n){var r=e+" Iterator",o=v(e),i=v(r);s(t,e,function(t,e){d(this,{type:r,target:t,state:o(t),kind:e,last:void 0})},function(){for(var t=i(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})},n?"entries":"values",!n,!0),f(e)}}},ZfDv:function(t,e,n){var r=n("hh1v"),o=n("6LWA"),i=n("tiKp")("species");t.exports=function(t,e){var n;return o(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},Zk8X:function(t,e,n){"use strict";var r=n("I+eb"),o=n("hXpO");r({target:"String",proto:!0,forced:n("rwPt")("sup")},{sup:function(){return o(this,"sup","","")}})},a57n:function(t,e,n){n("dG/n")("search")},a5NK:function(t,e,n){var r=n("I+eb"),o=Math.log,i=Math.LOG10E;r({target:"Math",stat:!0},{log10:function(t){return o(t)*i}})},afO8:function(t,e,n){var r,o,i,a=n("f5p1"),u=n("2oRo"),c=n("hh1v"),s=n("kRJp"),f=n("UTVS"),l=n("93I0"),p=n("0BK2");if(a){var h=new(0,u.WeakMap),d=h.get,v=h.has,g=h.set;r=function(t,e){return g.call(h,t,e),e},o=function(t){return d.call(h,t)||{}},i=function(t){return v.call(h,t)}}else{var m=l("state");p[m]=!0,r=function(t,e){return s(t,m,e),e},o=function(t){return f(t,m)?t[m]:{}},i=function(t){return f(t,m)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!c(e)||(n=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},b1O7:function(t,e,n){var r=n("g6v/"),o=n("33Wh"),i=n("/GqU"),a=n("0eef").f,u=function(t){return function(e){for(var n,u=i(e),c=o(u),s=c.length,f=0,l=[];s>f;)n=c[f++],r&&!a.call(u,n)||l.push(t?[n,u[n]]:u[n]);return l}};t.exports={entries:u(!0),values:u(!1)}},bWFh:function(t,e,n){"use strict";var r=n("I+eb"),o=n("2oRo"),i=n("lMq5"),a=n("busE"),u=n("8YOa"),c=n("ImZN"),s=n("GarU"),f=n("hh1v"),l=n("0Dky"),p=n("HH4o"),h=n("1E5z"),d=n("cVYH");t.exports=function(t,e,n){var v=-1!==t.indexOf("Map"),g=-1!==t.indexOf("Weak"),m=v?"set":"add",y=o[t],b=y&&y.prototype,_=y,x={},k=function(t){var e=b[t];a(b,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(g&&!f(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return g&&!f(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(g&&!f(t))&&e.call(this,0===t?0:t)}:function(t,n){return e.call(this,0===t?0:t,n),this})};if(i(t,"function"!=typeof y||!(g||b.forEach&&!l(function(){(new y).entries().next()}))))_=n.getConstructor(e,t,v,m),u.REQUIRED=!0;else if(i(t,!0)){var w=new _,T=w[m](g?{}:-0,1)!=w,E=l(function(){w.has(1)}),S=p(function(t){new y(t)}),O=!g&&l(function(){for(var t=new y,e=5;e--;)t[m](e,e);return!t.has(-0)});S||((_=e(function(e,n){s(e,_,t);var r=d(new y,e,_);return null!=n&&c(n,r[m],r,v),r})).prototype=b,b.constructor=_),(E||O)&&(k("delete"),k("has"),v&&k("get")),(O||T)&&k(m),g&&b.clear&&delete b.clear}return x[t]=_,r({global:!0,forced:_!=y},x),h(_,t),g||n.setStrong(_,t,v),_}},brp2:function(t,e,n){n("I+eb")({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}})},busE:function(t,e,n){var r=n("2oRo"),o=n("kRJp"),i=n("UTVS"),a=n("zk60"),u=n("iSVu"),c=n("afO8"),s=c.get,f=c.enforce,l=String(String).split("String");(t.exports=function(t,e,n,u){var c=!!u&&!!u.unsafe,s=!!u&&!!u.enumerable,p=!!u&&!!u.noTargetGet;"function"==typeof n&&("string"!=typeof e||i(n,"name")||o(n,"name",e),f(n).source=l.join("string"==typeof e?e:"")),t!==r?(c?!p&&t[e]&&(s=!0):delete t[e],s?t[e]=n:o(t,e,n)):s?t[e]=n:a(e,n)})(Function.prototype,"toString",function(){return"function"==typeof this&&s(this).source||u(this)})},c9m3:function(t,e,n){n("RNIs")("flatMap")},cDke:function(t,e,n){var r=n("I+eb"),o=n("0Dky"),i=n("BX/b").f;r({target:"Object",stat:!0,forced:o(function(){return!Object.getOwnPropertyNames(1)})},{getOwnPropertyNames:i})},cGxN:function(t,e,n){n("wLYn"),n("sMBO"),n("tW5y");var r=n("Qo9l");t.exports=r.Function},cVYH:function(t,e,n){var r=n("hh1v"),o=n("0rvr");t.exports=function(t,e,n){var i,a;return o&&"function"==typeof(i=e.constructor)&&i!==n&&r(a=i.prototype)&&a!==n.prototype&&o(t,a),t}},"dBg+":function(t,e){e.f=Object.getOwnPropertySymbols},"dG/n":function(t,e,n){var r=n("Qo9l"),o=n("UTVS"),i=n("5Tg+"),a=n("m/L8").f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});o(e,t)||a(e,t,{value:i.f(t)})}},"eDl+":function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},eJiR:function(t,e,n){var r=n("I+eb"),o=n("jrUv"),i=Math.exp;r({target:"Math",stat:!0},{tanh:function(t){var e=o(t=+t),n=o(-t);return e==1/0?1:n==1/0?-1:(e-n)/(i(t)+i(-t))}})},eajv:function(t,e,n){var r=n("I+eb"),o=Math.asinh,i=Math.log,a=Math.sqrt;r({target:"Math",stat:!0,forced:!(o&&1/o(0)>0)},{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):i(e+a(e*e+1)):e}})},eoL8:function(t,e,n){var r=n("I+eb"),o=n("g6v/");r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:n("m/L8").f})},ewvW:function(t,e,n){var r=n("HYAF");t.exports=function(t){return Object(r(t))}},f3jH:function(t,e,n){var r=n("I+eb"),o=n("glrk"),i=n("4WOD");r({target:"Reflect",stat:!0,sham:!n("4Xet")},{getPrototypeOf:function(t){return i(o(t))}})},f5p1:function(t,e,n){var r=n("2oRo"),o=n("iSVu"),i=r.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},fHMY:function(t,e,n){var r,o=n("glrk"),i=n("N+g0"),a=n("eDl+"),u=n("0BK2"),c=n("G+Rx"),s=n("zBJ4"),f=n("93I0")("IE_PROTO"),l=function(){},p=function(t){return" +