diff --git a/server/src/uds/REST/methods/client.py b/server/src/uds/REST/methods/client.py index 672581c77..16daac372 100644 --- a/server/src/uds/REST/methods/client.py +++ b/server/src/uds/REST/methods/client.py @@ -41,13 +41,15 @@ from uds.core.exceptions.services import ServiceNotReadyError from uds.core.types.log import LogLevel, LogSource from uds.core.util.config import GlobalConfig +from uds.core.util.model import sql_stamp_seconds from uds.core.util.rest.tools import match from uds.models import TicketStore, User from uds.REST import Handler logger = logging.getLogger(__name__) -CLIENT_VERSION = consts.system.VERSION +CLIENT_VERSION: typing.Final[str] = consts.system.VERSION +LOG_ENABLED_DURATION: typing.Final[int] = 2 * 60 * 60 * 24 # 2 days # Enclosed methods under /client path @@ -162,8 +164,13 @@ def process(self, ticket: str, scrambler: str) -> dict[str, typing.Any]: logger.debug('Script: %s', transport_script) - # is_logging_enabled = self._request.user.properties.get('log_enabled', False) - is_logging_enabled = True + # Log is enabled if user has log_enabled property set to + try: + log_enabled_since_limit = sql_stamp_seconds() - LOG_ENABLED_DURATION + log_enabled_since = self._request.user.properties.get('client_logging', log_enabled_since_limit) + is_logging_enabled = False if log_enabled_since <= log_enabled_since_limit else True + except Exception: + is_logging_enabled = False log: dict[str, 'str|None'] = { 'level': 'DEBUG', 'ticket': None, diff --git a/server/src/uds/REST/methods/users_groups.py b/server/src/uds/REST/methods/users_groups.py index 6d5db8334..8bc15657d 100644 --- a/server/src/uds/REST/methods/users_groups.py +++ b/server/src/uds/REST/methods/users_groups.py @@ -42,7 +42,7 @@ from uds.core.auths.user import User as AUser from uds.core.util import log, ensure -from uds.core.util.model import process_uuid +from uds.core.util.model import process_uuid, sql_stamp_seconds from uds.models import Authenticator, User, Group, ServicePool from uds.core.managers.crypto import CryptoManager from uds.core import consts, exceptions, types @@ -78,7 +78,13 @@ def get_service_pools_for_groups( class Users(DetailHandler): - custom_methods = ['servicesPools', 'userServices', 'clean_related', 'addToGroup'] + custom_methods = [ + 'services_pools', + 'user_services', + 'clean_related', + 'add_to_group', + 'enable_client_logging', + ] def get_items(self, parent: 'Model', item: typing.Optional[str]) -> typing.Any: parent = ensure.is_instance(parent, Authenticator) @@ -286,7 +292,7 @@ def delete_item(self, parent: 'Model', item: str) -> None: logger.error('Error on user removal of %s.%s: %s', parent.name, item, e) raise self.invalid_item_response() from e - def servicesPools(self, parent: 'Model', item: str) -> list[dict[str, typing.Any]]: + def services_pools(self, parent: 'Model', item: str) -> list[dict[str, typing.Any]]: parent = ensure.is_instance(parent, Authenticator) uuid = process_uuid(item) user = parent.users.get(uuid=process_uuid(uuid)) @@ -307,7 +313,7 @@ def servicesPools(self, parent: 'Model', item: str) -> list[dict[str, typing.Any return res - def userServices(self, parent: 'Authenticator', item: str) -> list[dict[str, typing.Any]]: + def user_services(self, parent: 'Authenticator', item: str) -> list[dict[str, typing.Any]]: parent = ensure.is_instance(parent, Authenticator) uuid = process_uuid(item) user = parent.users.get(uuid=process_uuid(uuid)) @@ -326,17 +332,35 @@ def clean_related(self, parent: 'Authenticator', item: str) -> dict[str, str]: user = parent.users.get(uuid=process_uuid(uuid)) user.clean_related_data() return {'status': 'ok'} - - def addToGroup(self, parent: 'Authenticator', item: str) -> dict[str, str]: + + def add_to_group(self, parent: 'Authenticator', item: str) -> dict[str, str]: uuid = process_uuid(item) user = parent.users.get(uuid=process_uuid(uuid)) group = parent.groups.get(uuid=process_uuid(self._params['group'])) + user.log( + f'Added to group {group.name} by {self._user.pretty_name}', + types.log.LogLevel.INFO, + types.log.LogSource.REST, + ) user.groups.add(group) return {'status': 'ok'} + def enable_client_logging(self, parent: 'Model', item: str) -> dict[str, str]: + parent = ensure.is_instance(parent, Authenticator) + user = parent.users.get(uuid=process_uuid(item)) + user.log( + f'Client logging enabled by {self._user.pretty_name}', + types.log.LogLevel.INFO, + types.log.LogSource.REST, + ) + with user.properties as props: + props['client_logging'] = sql_stamp_seconds() + + return {'status': 'ok'} + class Groups(DetailHandler): - custom_methods = ['servicesPools', 'users'] + custom_methods = ['services_pools', 'users'] def get_items(self, parent: 'Model', item: typing.Optional[str]) -> types.rest.ManyItemsDictType: parent = ensure.is_instance(parent, Authenticator) diff --git a/server/src/uds/static/admin/main.js b/server/src/uds/static/admin/main.js index 5bcbb332d..76d231b3b 100644 --- a/server/src/uds/static/admin/main.js +++ b/server/src/uds/static/admin/main.js @@ -4,26 +4,26 @@ ${r.map((t,n)=>`${n+1}) ${t.toString()}`).join(` `);return r===-1?e:e.substring(0,r)}function __(i,e){return i==null||i===""?e===null?"":e:e==null||e===""?i:i+" "+e}var fF=Zt({__forward_ref__:Zt});function Xt(i){return i.__forward_ref__=Xt,i.toString=function(){return hn(this())},i}function Gi(i){return uD(i)?i():i}function uD(i){return typeof i=="function"&&i.hasOwnProperty(fF)&&i.__forward_ref__===Xt}function V(i){return{token:i.token,providedIn:i.providedIn||null,factory:i.factory,value:void 0}}function ee(i){return{providers:i.providers||[],imports:i.imports||[]}}function Nh(i){return vx(i,mD)||vx(i,pD)}function hD(i){return Nh(i)!==null}function vx(i,e){return i.hasOwnProperty(e)?i[e]:null}function gF(i){let e=i&&(i[mD]||i[pD]);return e||null}function bx(i){return i&&(i.hasOwnProperty(yx)||i.hasOwnProperty(_F))?i[yx]:null}var mD=Zt({\u0275prov:Zt}),yx=Zt({\u0275inj:Zt}),pD=Zt({ngInjectableDef:Zt}),_F=Zt({ngInjectorDef:Zt}),R=class{constructor(e,r){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof r=="number"?this.__NG_ELEMENT_ID__=r:r!==void 0&&(this.\u0275prov=V({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function fD(i){return i&&!!i.\u0275providers}var vF=Zt({\u0275cmp:Zt}),bF=Zt({\u0275dir:Zt}),yF=Zt({\u0275pipe:Zt}),wF=Zt({\u0275mod:Zt}),oh=Zt({\u0275fac:Zt}),fc=Zt({__NG_ELEMENT_ID__:Zt}),wx=Zt({__NG_ENV_ID__:Zt});function $a(i){return typeof i=="string"?i:i==null?"":String(i)}function CF(i){return typeof i=="function"?i.name||i.toString():typeof i=="object"&&i!=null&&typeof i.type=="function"?i.type.name||i.type.toString():$a(i)}function xF(i,e){let r=e?`. Dependency path: ${e.join(" > ")} > ${i}`:"";throw new J(-200,i)}function Tv(i,e){throw new J(-201,!1)}var gt=function(i){return i[i.Default=0]="Default",i[i.Host=1]="Host",i[i.Self=2]="Self",i[i.SkipSelf=4]="SkipSelf",i[i.Optional=8]="Optional",i}(gt||{}),v_;function gD(){return v_}function bn(i){let e=v_;return v_=i,e}function _D(i,e,r){let t=Nh(i);if(t&&t.providedIn=="root")return t.value===void 0?t.value=t.factory():t.value;if(r>.Optional)return null;if(e!==void 0)return e;Tv(i,"Injector")}var DF={},_c=DF,b_="__NG_DI_FLAG__",rh="ngTempTokenPath",SF="ngTokenPath",EF=/\n/gm,IF="\u0275",Cx="__source",Ws;function MF(){return Ws}function Kr(i){let e=Ws;return Ws=i,e}function TF(i,e=gt.Default){if(Ws===void 0)throw new J(-203,!1);return Ws===null?_D(i,void 0,e):Ws.get(i,e>.Optional?null:void 0,e)}function M(i,e=gt.Default){return(gD()||TF)(Gi(i),e)}function k(i,e=gt.Default){return M(i,Lh(e))}function Lh(i){return typeof i>"u"||typeof i=="number"?i:0|(i.optional&&8)|(i.host&&1)|(i.self&&2)|(i.skipSelf&&4)}function y_(i){let e=[];for(let r=0;r ");else if(typeof e=="object"){let o=[];for(let a in e)if(e.hasOwnProperty(a)){let s=e[a];o.push(a+":"+(typeof s=="string"?JSON.stringify(s):hn(s)))}n=`{${o.join(", ")}}`}return`${r}${t?"("+t+")":""}[${n}]: ${i.replace(EF,` - `)}`}var to=vD(dD("Optional"),8);var Do=vD(dD("SkipSelf"),4);function Wa(i,e){let r=i.hasOwnProperty(oh);return r?i[oh]:null}function RF(i,e,r){if(i.length!==e.length)return!1;for(let t=0;tArray.isArray(r)?kv(r,e):e(r))}function bD(i,e,r){e>=i.length?i.push(r):i.splice(e,0,r)}function ah(i,e){return e>=i.length-1?i.pop():i.splice(e,1)[0]}function FF(i,e){let r=[];for(let t=0;te;){let o=n-2;i[n]=i[o],n--}i[e]=r,i[e+1]=t}}function Vh(i,e,r){let t=Sc(i,e);return t>=0?i[t|1]=r:(t=~t,NF(i,t,e,r)),t}function o_(i,e){let r=Sc(i,e);if(r>=0)return i[r|1]}function Sc(i,e){return LF(i,e,1)}function LF(i,e,r){let t=0,n=i.length>>r;for(;n!==t;){let o=t+(n-t>>1),a=i[o<e?n=o:t=o+1}return~(n<e){a=o-1;break}}}for(;o-1){let o;for(;++no?v="":v=n[f+1].toLowerCase(),t&2&&u!==v){if(wo(t))return!1;a=!0}}}}return wo(t)||a}function wo(i){return(i&1)===0}function HF(i,e,r,t){if(e===null)return-1;let n=0;if(t||!r){let o=!1;for(;n-1)for(r++;r0?'="'+s+'"':"")+"]"}else t&8?n+="."+a:t&4&&(n+=" "+a);else n!==""&&!wo(a)&&(e+=Dx(o,n),n=""),t=a,o=o||!wo(t);r++}return n!==""&&(e+=Dx(o,n)),e}function QF(i){return i.map(YF).join(",")}function KF(i){let e=[],r=[],t=1,n=2;for(;t{let e=TD(i),r=rt(j({},e),{decls:i.decls,vars:i.vars,template:i.template,consts:i.consts||null,ngContentSelectors:i.ngContentSelectors,onPush:i.changeDetection===CD.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&i.dependencies||null,getStandaloneInjector:null,signals:i.signals??!1,data:i.data||{},encapsulation:i.encapsulation||Wo.Emulated,styles:i.styles||un,_:null,schemas:i.schemas||null,tView:null,id:""});kD(r);let t=i.dependencies;return r.directiveDefs=lh(t,!1),r.pipeDefs=lh(t,!0),r.id=JF(r),r})}function ZF(i){return ea(i)||Ov(i)}function XF(i){return i!==null}function te(i){return Dc(()=>({type:i.type,bootstrap:i.bootstrap||un,declarations:i.declarations||un,imports:i.imports||un,exports:i.exports||un,transitiveCompileScopes:null,schemas:i.schemas||null,id:i.id||null}))}function Sx(i,e){if(i==null)return pr;let r={};for(let t in i)if(i.hasOwnProperty(t)){let n=i[t],o,a,s=Jr.None;Array.isArray(n)?(s=n[0],o=n[1],a=n[2]??o):(o=n,a=n),e?(r[o]=s!==Jr.None?[t,s]:t,e[o]=a):r[o]=t}return r}function L(i){return Dc(()=>{let e=TD(i);return kD(e),e})}function Qo(i){return{type:i.type,name:i.name,factory:null,pure:i.pure!==!1,standalone:i.standalone===!0,onDestroy:i.type.prototype.ngOnDestroy||null}}function ea(i){return i[vF]||null}function Ov(i){return i[bF]||null}function ED(i){return i[yF]||null}function ID(i){let e=ea(i)||Ov(i)||ED(i);return e!==null?e.standalone:!1}function MD(i,e){let r=i[wF]||null;if(!r&&e===!0)throw new Error(`Type ${hn(i)} does not have '\u0275mod' property.`);return r}function TD(i){let e={};return{type:i.type,providersResolver:null,factory:null,hostBindings:i.hostBindings||null,hostVars:i.hostVars||0,hostAttrs:i.hostAttrs||null,contentQueries:i.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:i.inputs||pr,exportAs:i.exportAs||null,standalone:i.standalone===!0,signals:i.signals===!0,selectors:i.selectors||un,viewQuery:i.viewQuery||null,features:i.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Sx(i.inputs,e),outputs:Sx(i.outputs),debugInfo:null}}function kD(i){i.features?.forEach(e=>e(i))}function lh(i,e){if(!i)return null;let r=e?ED:ZF;return()=>(typeof i=="function"?i():i).map(t=>r(t)).filter(XF)}function JF(i){let e=0,r=[i.selectors,i.ngContentSelectors,i.hostVars,i.hostAttrs,i.consts,i.vars,i.decls,i.encapsulation,i.standalone,i.signals,i.exportAs,JSON.stringify(i.inputs),JSON.stringify(i.outputs),Object.getOwnPropertyNames(i.type.prototype),!!i.contentQueries,!!i.viewQuery].join("|");for(let n of r)e=Math.imul(31,e)+n.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function jh(i){return{\u0275providers:i}}function eN(...i){return{\u0275providers:AD(!0,i),\u0275fromNgModule:!0}}function AD(i,...e){let r=[],t=new Set,n,o=a=>{r.push(a)};return kv(e,a=>{let s=a;C_(s,o,[],t)&&(n||=[],n.push(s))}),n!==void 0&&OD(n,o),r}function OD(i,e){for(let r=0;r{e(o,t)})}}function C_(i,e,r,t){if(i=Gi(i),!i)return!1;let n=null,o=bx(i),a=!o&&ea(i);if(!o&&!a){let l=i.ngModule;if(o=bx(l),o)n=l;else return!1}else{if(a&&!a.standalone)return!1;n=i}let s=t.has(n);if(a){if(s)return!1;if(t.add(n),a.dependencies){let l=typeof a.dependencies=="function"?a.dependencies():a.dependencies;for(let u of l)C_(u,e,r,t)}}else if(o){if(o.imports!=null&&!s){t.add(n);let u;try{kv(o.imports,f=>{C_(f,e,r,t)&&(u||=[],u.push(f))})}finally{}u!==void 0&&OD(u,e)}if(!s){let u=Wa(n)||(()=>new n);e({provide:n,useFactory:u,deps:un},n),e({provide:wD,useValue:n,multi:!0},n),e({provide:qs,useValue:()=>M(n),multi:!0},n)}let l=o.providers;if(l!=null&&!s){let u=i;Rv(l,f=>{e(f,u)})}}else return!1;return n!==i&&i.providers!==void 0}function Rv(i,e){for(let r of i)fD(r)&&(r=r.\u0275providers),Array.isArray(r)?Rv(r,e):e(r)}var tN=Zt({provide:String,useValue:Zt});function RD(i){return i!==null&&typeof i=="object"&&tN in i}function iN(i){return!!(i&&i.useExisting)}function nN(i){return!!(i&&i.useFactory)}function Ys(i){return typeof i=="function"}function oN(i){return!!i.useClass}var Bh=new R(""),Xu={},rN={},r_;function Pv(){return r_===void 0&&(r_=new sh),r_}var qi=class{},bc=class extends qi{get destroyed(){return this._destroyed}constructor(e,r,t,n){super(),this.parent=r,this.source=t,this.scopes=n,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,D_(e,a=>this.processProvider(a)),this.records.set(yD,zs(void 0,this)),n.has("environment")&&this.records.set(qi,zs(void 0,this));let o=this.records.get(Bh);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(wD,un,gt.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=yt(null);try{for(let t of this._ngOnDestroyHooks)t.ngOnDestroy();let r=this._onDestroyHooks;this._onDestroyHooks=[];for(let t of r)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),yt(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let r=Kr(this),t=bn(void 0),n;try{return e()}finally{Kr(r),bn(t)}}get(e,r=_c,t=gt.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(wx))return e[wx](this);t=Lh(t);let n,o=Kr(this),a=bn(void 0);try{if(!(t>.SkipSelf)){let l=this.records.get(e);if(l===void 0){let u=dN(e)&&Nh(e);u&&this.injectableDefInScope(u)?l=zs(x_(e),Xu):l=null,this.records.set(e,l)}if(l!=null)return this.hydrate(e,l)}let s=t>.Self?Pv():this.parent;return r=t>.Optional&&r===_c?null:r,s.get(e,r)}catch(s){if(s.name==="NullInjectorError"){if((s[rh]=s[rh]||[]).unshift(hn(e)),o)throw s;return AF(s,e,"R3InjectorError",this.source)}else throw s}finally{bn(a),Kr(o)}}resolveInjectorInitializers(){let e=yt(null),r=Kr(this),t=bn(void 0),n;try{let o=this.get(qs,un,gt.Self);for(let a of o)a()}finally{Kr(r),bn(t),yt(e)}}toString(){let e=[],r=this.records;for(let t of r.keys())e.push(hn(t));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new J(205,!1)}processProvider(e){e=Gi(e);let r=Ys(e)?e:Gi(e&&e.provide),t=sN(e);if(!Ys(e)&&e.multi===!0){let n=this.records.get(r);n||(n=zs(void 0,Xu,!0),n.factory=()=>y_(n.multi),this.records.set(r,n)),r=e,n.multi.push(e)}this.records.set(r,t)}hydrate(e,r){let t=yt(null);try{return r.value===Xu&&(r.value=rN,r.value=r.factory()),typeof r.value=="object"&&r.value&&cN(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{yt(t)}}injectableDefInScope(e){if(!e.providedIn)return!1;let r=Gi(e.providedIn);return typeof r=="string"?r==="any"||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(e){let r=this._onDestroyHooks.indexOf(e);r!==-1&&this._onDestroyHooks.splice(r,1)}};function x_(i){let e=Nh(i),r=e!==null?e.factory:Wa(i);if(r!==null)return r;if(i instanceof R)throw new J(204,!1);if(i instanceof Function)return aN(i);throw new J(204,!1)}function aN(i){if(i.length>0)throw new J(204,!1);let r=gF(i);return r!==null?()=>r.factory(i):()=>new i}function sN(i){if(RD(i))return zs(void 0,i.useValue);{let e=PD(i);return zs(e,Xu)}}function PD(i,e,r){let t;if(Ys(i)){let n=Gi(i);return Wa(n)||x_(n)}else if(RD(i))t=()=>Gi(i.useValue);else if(nN(i))t=()=>i.useFactory(...y_(i.deps||[]));else if(iN(i))t=()=>M(Gi(i.useExisting));else{let n=Gi(i&&(i.useClass||i.provide));if(lN(i))t=()=>new n(...y_(i.deps));else return Wa(n)||x_(n)}return t}function zs(i,e,r=!1){return{factory:i,value:e,multi:r?[]:void 0}}function lN(i){return!!i.deps}function cN(i){return i!==null&&typeof i=="object"&&typeof i.ngOnDestroy=="function"}function dN(i){return typeof i=="function"||typeof i=="object"&&i instanceof R}function D_(i,e){for(let r of i)Array.isArray(r)?D_(r,e):r&&fD(r)?D_(r.\u0275providers,e):e(r)}function io(i,e){i instanceof bc&&i.assertNotDestroyed();let r,t=Kr(i),n=bn(void 0);try{return e()}finally{Kr(t),bn(n)}}function FD(){return gD()!==void 0||MF()!=null}function Fv(i){if(!FD())throw new J(-203,!1)}function uN(i){let e=Pn.ng;if(e&&e.\u0275compilerFacade)return e.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function hN(i){return typeof i=="function"}var Ko=0,at=1,Ze=2,on=3,xo=4,Cn=5,Qs=6,ch=7,tn=8,Ks=9,Go=10,ri=11,yc=12,Ex=13,nl=14,Fn=15,Ga=16,Us=17,fr=18,zh=19,ND=20,Zr=21,Ju=22,Jn=23,Li=25,Nv=1;var qa=7,dh=8,Zs=9,nn=10,uh=function(i){return i[i.None=0]="None",i[i.HasTransplantedViews=2]="HasTransplantedViews",i}(uh||{});function Xr(i){return Array.isArray(i)&&typeof i[Nv]=="object"}function vr(i){return Array.isArray(i)&&i[Nv]===!0}function Lv(i){return(i.flags&4)!==0}function Uh(i){return i.componentOffset>-1}function Hh(i){return(i.flags&1)===1}function gr(i){return!!i.template}function S_(i){return(i[Ze]&512)!==0}var E_=class{constructor(e,r,t){this.previousValue=e,this.currentValue=r,this.firstChange=t}isFirstChange(){return this.firstChange}};function LD(i,e,r,t){e!==null?e.applyValueToInputSignal(e,t):i[r]=t}function Qe(){return VD}function VD(i){return i.type.prototype.ngOnChanges&&(i.setInput=pN),mN}Qe.ngInherit=!0;function mN(){let i=BD(this),e=i?.current;if(e){let r=i.previous;if(r===pr)i.previous=e;else for(let t in e)r[t]=e[t];i.current=null,this.ngOnChanges(e)}}function pN(i,e,r,t,n){let o=this.declaredInputs[t],a=BD(i)||fN(i,{previous:pr,current:null}),s=a.current||(a.current={}),l=a.previous,u=l[o];s[o]=new E_(u&&u.currentValue,r,l===pr),LD(i,e,n,r)}var jD="__ngSimpleChanges__";function BD(i){return i[jD]||null}function fN(i,e){return i[jD]=e}var Ix=null;var Ho=function(i,e,r){Ix?.(i,e,r)},zD="svg",gN="math";function qo(i){for(;Array.isArray(i);)i=i[Ko];return i}function _N(i){for(;Array.isArray(i);){if(typeof i[Nv]=="object")return i;i=i[Ko]}return null}function UD(i,e){return qo(e[i])}function no(i,e){return qo(e[i.index])}function Vv(i,e){return i.data[e]}function jv(i,e){return i[e]}function ra(i,e){let r=e[i];return Xr(r)?r:r[Ko]}function vN(i){return(i[Ze]&4)===4}function Bv(i){return(i[Ze]&128)===128}function bN(i){return vr(i[on])}function ta(i,e){return e==null?null:i[e]}function HD(i){i[Us]=0}function $D(i){i[Ze]&1024||(i[Ze]|=1024,Bv(i)&&Wh(i))}function yN(i,e){for(;i>0;)e=e[nl],i--;return e}function $h(i){return!!(i[Ze]&9216||i[Jn]?.dirty)}function I_(i){i[Go].changeDetectionScheduler?.notify(8),i[Ze]&64&&(i[Ze]|=1024),$h(i)&&Wh(i)}function Wh(i){i[Go].changeDetectionScheduler?.notify(0);let e=Ya(i);for(;e!==null&&!(e[Ze]&8192||(e[Ze]|=8192,!Bv(e)));)e=Ya(e)}function WD(i,e){if((i[Ze]&256)===256)throw new J(911,!1);i[Zr]===null&&(i[Zr]=[]),i[Zr].push(e)}function wN(i,e){if(i[Zr]===null)return;let r=i[Zr].indexOf(e);r!==-1&&i[Zr].splice(r,1)}function Ya(i){let e=i[on];return vr(e)?e[on]:e}var st={lFrame:JD(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var GD=!1;function CN(){return st.lFrame.elementDepthCount}function xN(){st.lFrame.elementDepthCount++}function DN(){st.lFrame.elementDepthCount--}function qD(){return st.bindingsEnabled}function YD(){return st.skipHydrationRootTNode!==null}function SN(i){return st.skipHydrationRootTNode===i}function EN(){st.skipHydrationRootTNode=null}function Ue(){return st.lFrame.lView}function ii(){return st.lFrame.tView}function y(i){return st.lFrame.contextLView=i,i[tn]}function w(i){return st.lFrame.contextLView=null,i}function Vi(){let i=QD();for(;i!==null&&i.type===64;)i=i.parent;return i}function QD(){return st.lFrame.currentTNode}function IN(){let i=st.lFrame,e=i.currentTNode;return i.isParent?e:e.parent}function es(i,e){let r=st.lFrame;r.currentTNode=i,r.isParent=e}function zv(){return st.lFrame.isParent}function Uv(){st.lFrame.isParent=!1}function MN(){return st.lFrame.contextLView}function KD(){return GD}function Mx(i){GD=i}function Ec(){let i=st.lFrame,e=i.bindingRootIndex;return e===-1&&(e=i.bindingRootIndex=i.tView.bindingStartIndex),e}function TN(){return st.lFrame.bindingIndex}function kN(i){return st.lFrame.bindingIndex=i}function aa(){return st.lFrame.bindingIndex++}function Hv(i){let e=st.lFrame,r=e.bindingIndex;return e.bindingIndex=e.bindingIndex+i,r}function AN(){return st.lFrame.inI18n}function ON(i,e){let r=st.lFrame;r.bindingIndex=r.bindingRootIndex=i,M_(e)}function RN(){return st.lFrame.currentDirectiveIndex}function M_(i){st.lFrame.currentDirectiveIndex=i}function $v(i){let e=st.lFrame.currentDirectiveIndex;return e===-1?null:i[e]}function Wv(){return st.lFrame.currentQueryIndex}function Gh(i){st.lFrame.currentQueryIndex=i}function PN(i){let e=i[at];return e.type===2?e.declTNode:e.type===1?i[Cn]:null}function ZD(i,e,r){if(r>.SkipSelf){let n=e,o=i;for(;n=n.parent,n===null&&!(r>.Host);)if(n=PN(o),n===null||(o=o[nl],n.type&10))break;if(n===null)return!1;e=n,i=o}let t=st.lFrame=XD();return t.currentTNode=e,t.lView=i,!0}function Gv(i){let e=XD(),r=i[at];st.lFrame=e,e.currentTNode=r.firstChild,e.lView=i,e.tView=r,e.contextLView=i,e.bindingIndex=r.bindingStartIndex,e.inI18n=!1}function XD(){let i=st.lFrame,e=i===null?null:i.child;return e===null?JD(i):e}function JD(i){let 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:i,child:null,inI18n:!1};return i!==null&&(i.child=e),e}function eS(){let i=st.lFrame;return st.lFrame=i.parent,i.currentTNode=null,i.lView=null,i}var tS=eS;function qv(){let i=eS();i.isParent=!0,i.tView=null,i.selectedIndex=-1,i.contextLView=null,i.elementDepthCount=0,i.currentDirectiveIndex=-1,i.currentNamespace=null,i.bindingRootIndex=-1,i.bindingIndex=-1,i.currentQueryIndex=0}function FN(i){return(st.lFrame.contextLView=yN(i,st.lFrame.contextLView))[tn]}function br(){return st.lFrame.selectedIndex}function Qa(i){st.lFrame.selectedIndex=i}function ol(){let i=st.lFrame;return Vv(i.tView,i.selectedIndex)}function pi(){st.lFrame.currentNamespace=zD}function yr(){NN()}function NN(){st.lFrame.currentNamespace=null}function LN(){return st.lFrame.currentNamespace}var iS=!0;function qh(){return iS}function Yh(i){iS=i}function VN(i,e,r){let{ngOnChanges:t,ngOnInit:n,ngDoCheck:o}=e.type.prototype;if(t){let a=VD(e);(r.preOrderHooks??=[]).push(i,a),(r.preOrderCheckHooks??=[]).push(i,a)}n&&(r.preOrderHooks??=[]).push(0-i,n),o&&((r.preOrderHooks??=[]).push(i,o),(r.preOrderCheckHooks??=[]).push(i,o))}function Qh(i,e){for(let r=e.directiveStart,t=e.directiveEnd;r=t)break}else e[l]<0&&(i[Us]+=65536),(s>14>16&&(i[Ze]&3)===e&&(i[Ze]+=16384,Tx(s,o)):Tx(s,o)}var Gs=-1,Ka=class{constructor(e,r,t){this.factory=e,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=t}};function BN(i){return i instanceof Ka}function zN(i){return(i.flags&8)!==0}function UN(i){return(i.flags&16)!==0}var s_={},T_=class{constructor(e,r){this.injector=e,this.parentInjector=r}get(e,r,t){t=Lh(t);let n=this.injector.get(e,s_,t);return n!==s_||r===s_?n:this.parentInjector.get(e,r,t)}};function oS(i){return i!==Gs}function hh(i){return i&32767}function HN(i){return i>>16}function mh(i,e){let r=HN(i),t=e;for(;r>0;)t=t[nl],r--;return t}var k_=!0;function ph(i){let e=k_;return k_=i,e}var $N=256,rS=$N-1,aS=5,WN=0,$o={};function GN(i,e,r){let t;typeof r=="string"?t=r.charCodeAt(0)||0:r.hasOwnProperty(fc)&&(t=r[fc]),t==null&&(t=r[fc]=WN++);let n=t&rS,o=1<>aS)]|=o}function fh(i,e){let r=sS(i,e);if(r!==-1)return r;let t=e[at];t.firstCreatePass&&(i.injectorIndex=e.length,l_(t.data,i),l_(e,null),l_(t.blueprint,null));let n=Yv(i,e),o=i.injectorIndex;if(oS(n)){let a=hh(n),s=mh(n,e),l=s[at].data;for(let u=0;u<8;u++)e[o+u]=s[a+u]|l[a+u]}return e[o+8]=n,o}function l_(i,e){i.push(0,0,0,0,0,0,0,0,e)}function sS(i,e){return i.injectorIndex===-1||i.parent&&i.parent.injectorIndex===i.injectorIndex||e[i.injectorIndex+8]===null?-1:i.injectorIndex}function Yv(i,e){if(i.parent&&i.parent.injectorIndex!==-1)return i.parent.injectorIndex;let r=0,t=null,n=e;for(;n!==null;){if(t=hS(n),t===null)return Gs;if(r++,n=n[nl],t.injectorIndex!==-1)return t.injectorIndex|r<<16}return Gs}function A_(i,e,r){GN(i,e,r)}function qN(i,e){if(e==="class")return i.classes;if(e==="style")return i.styles;let r=i.attrs;if(r){let t=r.length,n=0;for(;n>20,v=t?s:s+f,C=n?s+f:u;for(let D=v;D=l&&S.type===r)return D}if(n){let D=a[l];if(D&&gr(D)&&D.type===r)return l}return null}function Za(i,e,r,t){let n=i[r],o=e.data;if(BN(n)){let a=n;a.resolving&&xF(CF(o[r]));let s=ph(a.canSeeViewProviders);a.resolving=!0;let l,u=a.injectImpl?bn(a.injectImpl):null,f=ZD(i,t,gt.Default);try{n=i[r]=a.factory(void 0,o,i,t),e.firstCreatePass&&r>=t.directiveStart&&VN(r,o[r],e)}finally{u!==null&&bn(u),ph(s),a.resolving=!1,tS()}}return n}function QN(i){if(typeof i=="string")return i.charCodeAt(0)||0;let e=i.hasOwnProperty(fc)?i[fc]:void 0;return typeof e=="number"?e>=0?e&rS:KN:e}function kx(i,e,r){let t=1<>aS)]&t)}function Ax(i,e){return!(i>.Self)&&!(i>.Host&&e)}var Ha=class{constructor(e,r){this._tNode=e,this._lView=r}get(e,r,t){return dS(this._tNode,this._lView,e,Lh(t),r)}};function KN(){return new Ha(Vi(),Ue())}function jt(i){return Dc(()=>{let e=i.prototype.constructor,r=e[oh]||O_(e),t=Object.prototype,n=Object.getPrototypeOf(i.prototype).constructor;for(;n&&n!==t;){let o=n[oh]||O_(n);if(o&&o!==r)return o;n=Object.getPrototypeOf(n)}return o=>new o})}function O_(i){return uD(i)?()=>{let e=O_(Gi(i));return e&&e()}:Wa(i)}function ZN(i,e,r,t,n){let o=i,a=e;for(;o!==null&&a!==null&&a[Ze]&2048&&!(a[Ze]&512);){let s=uS(o,a,r,t|gt.Self,$o);if(s!==$o)return s;let l=o.parent;if(!l){let u=a[ND];if(u){let f=u.get(r,$o,t);if(f!==$o)return f}l=hS(a),a=a[nl]}o=l}return n}function hS(i){let e=i[at],r=e.type;return r===2?e.declTNode:r===1?i[Cn]:null}function vi(i){return qN(Vi(),i)}function Ox(i,e=null,r=null,t){let n=mS(i,e,r,t);return n.resolveInjectorInitializers(),n}function mS(i,e=null,r=null,t,n=new Set){let o=[r||un,eN(i)];return t=t||(typeof i=="object"?void 0:hn(i)),new bc(o,e||Pv(),t||null,n)}var za=class za{static create(e,r){if(Array.isArray(e))return Ox({name:""},r,e,"");{let t=e.name??"";return Ox({name:t},e.parent,e.providers,t)}}};za.THROW_IF_NOT_FOUND=_c,za.NULL=new sh,za.\u0275prov=V({token:za,providedIn:"any",factory:()=>M(yD)}),za.__NG_ELEMENT_ID__=-1;var Pe=za;var XN=new R("");XN.__NG_ELEMENT_ID__=i=>{let e=Vi();if(e===null)throw new J(204,!1);if(e.type&2)return e.value;if(i>.Optional)return null;throw new J(204,!1)};var JN="ngOriginalError";function c_(i){return i[JN]}var pS=!0,Kh=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=e2,e.__NG_ENV_ID__=t=>t;let i=e;return i})(),R_=class extends Kh{constructor(e){super(),this._lView=e}onDestroy(e){return WD(this._lView,e),()=>wN(this._lView,e)}};function e2(){return new R_(Ue())}var Zo=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Gt(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let t=this.taskId++;return this.pendingTasks.add(t),t}remove(t){this.pendingTasks.delete(t),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};e.\u0275prov=V({token:e,providedIn:"root",factory:()=>new e});let i=e;return i})();var P_=class extends G{constructor(e=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=e,FD()&&(this.destroyRef=k(Kh,{optional:!0})??void 0,this.pendingTasks=k(Zo,{optional:!0})??void 0)}emit(e){let r=yt(null);try{super.next(e)}finally{yt(r)}}subscribe(e,r,t){let n=e,o=r||(()=>null),a=t;if(e&&typeof e=="object"){let l=e;n=l.next?.bind(l),o=l.error?.bind(l),a=l.complete?.bind(l)}this.__isAsync&&(o=this.wrapInTimeout(o),n&&(n=this.wrapInTimeout(n)),a&&(a=this.wrapInTimeout(a)));let s=super.subscribe({next:n,error:o,complete:a});return e instanceof ve&&e.add(s),s}wrapInTimeout(e){return r=>{let t=this.pendingTasks?.add();setTimeout(()=>{e(r),t!==void 0&&this.pendingTasks?.remove(t)})}}},T=P_;function gh(...i){}function fS(i){let e,r;function t(){i=gh;try{r!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(r),e!==void 0&&clearTimeout(e)}catch{}}return e=setTimeout(()=>{i(),t()}),typeof requestAnimationFrame=="function"&&(r=requestAnimationFrame(()=>{i(),t()})),()=>t()}function Rx(i){return queueMicrotask(()=>i()),()=>{i=gh}}var Qv="isAngularZone",_h=Qv+"_ID",t2=0,Z=class i{constructor(e){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new T(!1),this.onMicrotaskEmpty=new T(!1),this.onStable=new T(!1),this.onError=new T(!1);let{enableLongStackTrace:r=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:n=!1,scheduleInRootZone:o=pS}=e;if(typeof Zone>"u")throw new J(908,!1);Zone.assertZonePatched();let a=this;a._nesting=0,a._outer=a._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(a._inner=a._inner.fork(new Zone.TaskTrackingZoneSpec)),r&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!n&&t,a.shouldCoalesceRunChangeDetection=n,a.callbackScheduled=!1,a.scheduleInRootZone=o,o2(a)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Qv)===!0}static assertInAngularZone(){if(!i.isInAngularZone())throw new J(909,!1)}static assertNotInAngularZone(){if(i.isInAngularZone())throw new J(909,!1)}run(e,r,t){return this._inner.run(e,r,t)}runTask(e,r,t,n){let o=this._inner,a=o.scheduleEventTask("NgZoneEvent: "+n,e,i2,gh,gh);try{return o.runTask(a,r,t)}finally{o.cancelTask(a)}}runGuarded(e,r,t){return this._inner.runGuarded(e,r,t)}runOutsideAngular(e){return this._outer.run(e)}},i2={};function Kv(i){if(i._nesting==0&&!i.hasPendingMicrotasks&&!i.isStable)try{i._nesting++,i.onMicrotaskEmpty.emit(null)}finally{if(i._nesting--,!i.hasPendingMicrotasks)try{i.runOutsideAngular(()=>i.onStable.emit(null))}finally{i.isStable=!0}}}function n2(i){if(i.isCheckStableRunning||i.callbackScheduled)return;i.callbackScheduled=!0;function e(){fS(()=>{i.callbackScheduled=!1,F_(i),i.isCheckStableRunning=!0,Kv(i),i.isCheckStableRunning=!1})}i.scheduleInRootZone?Zone.root.run(()=>{e()}):i._outer.run(()=>{e()}),F_(i)}function o2(i){let e=()=>{n2(i)},r=t2++;i._inner=i._inner.fork({name:"angular",properties:{[Qv]:!0,[_h]:r,[_h+r]:!0},onInvokeTask:(t,n,o,a,s,l)=>{if(r2(l))return t.invokeTask(o,a,s,l);try{return Px(i),t.invokeTask(o,a,s,l)}finally{(i.shouldCoalesceEventChangeDetection&&a.type==="eventTask"||i.shouldCoalesceRunChangeDetection)&&e(),Fx(i)}},onInvoke:(t,n,o,a,s,l,u)=>{try{return Px(i),t.invoke(o,a,s,l,u)}finally{i.shouldCoalesceRunChangeDetection&&!i.callbackScheduled&&!a2(l)&&e(),Fx(i)}},onHasTask:(t,n,o,a)=>{t.hasTask(o,a),n===o&&(a.change=="microTask"?(i._hasPendingMicrotasks=a.microTask,F_(i),Kv(i)):a.change=="macroTask"&&(i.hasPendingMacrotasks=a.macroTask))},onHandleError:(t,n,o,a)=>(t.handleError(o,a),i.runOutsideAngular(()=>i.onError.emit(a)),!1)})}function F_(i){i._hasPendingMicrotasks||(i.shouldCoalesceEventChangeDetection||i.shouldCoalesceRunChangeDetection)&&i.callbackScheduled===!0?i.hasPendingMicrotasks=!0:i.hasPendingMicrotasks=!1}function Px(i){i._nesting++,i.isStable&&(i.isStable=!1,i.onUnstable.emit(null))}function Fx(i){i._nesting--,Kv(i)}var vh=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new T,this.onMicrotaskEmpty=new T,this.onStable=new T,this.onError=new T}run(e,r,t){return e.apply(r,t)}runGuarded(e,r,t){return e.apply(r,t)}runOutsideAngular(e){return e()}runTask(e,r,t,n){return e.apply(r,t)}};function r2(i){return gS(i,"__ignore_ng_zone__")}function a2(i){return gS(i,"__scheduler_tick__")}function gS(i,e){return!Array.isArray(i)||i.length!==1?!1:i[0]?.data?.[e]===!0}function s2(i="zone.js",e){return i==="noop"?new vh:i==="zone.js"?new Z(e):i}var yn=class{constructor(){this._console=console}handleError(e){let r=this._findOriginalError(e);this._console.error("ERROR",e),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(e){let r=e&&c_(e);for(;r&&c_(r);)r=c_(r);return r||null}},l2=new R("",{providedIn:"root",factory:()=>{let i=k(Z),e=k(yn);return r=>i.runOutsideAngular(()=>e.handleError(r))}});function c2(){return rl(Vi(),Ue())}function rl(i,e){return new q(no(i,e))}var q=(()=>{let e=class e{constructor(t){this.nativeElement=t}};e.__NG_ELEMENT_ID__=c2;let i=e;return i})();function _S(i){return i instanceof q?i.nativeElement:i}function d2(){return this._results[Symbol.iterator]()}var eo=class i{get changes(){return this._changes??=new T}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let r=i.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=d2)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,r){return this._results.reduce(e,r)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,r){this.dirty=!1;let t=PF(e);(this._changesDetected=!RF(this._results,t,r))&&(this._results=t,this.length=t.length,this.last=t[this.length-1],this.first=t[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function vS(i){return(i.flags&128)===128}var bS=new Map,u2=0;function h2(){return u2++}function m2(i){bS.set(i[zh],i)}function N_(i){bS.delete(i[zh])}var Nx="__ngContext__";function ia(i,e){Xr(e)?(i[Nx]=e[zh],m2(e)):i[Nx]=e}function yS(i){return CS(i[yc])}function wS(i){return CS(i[xo])}function CS(i){for(;i!==null&&!vr(i);)i=i[xo];return i}var L_;function xS(i){L_=i}function DS(){if(L_!==void 0)return L_;if(typeof document<"u")return document;throw new J(210,!1)}var al=new R("",{providedIn:"root",factory:()=>p2}),p2="ng",Zv=new R(""),oo=new R("",{providedIn:"platform",factory:()=>"unknown"});var kt=new R(""),Ic=new R("",{providedIn:"root",factory:()=>DS().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var f2="h",g2="b";var _2=()=>null;function Xv(i,e,r=!1){return _2(i,e,r)}var SS=!1,v2=new R("",{providedIn:"root",factory:()=>SS});var Wu;function b2(){if(Wu===void 0&&(Wu=null,Pn.trustedTypes))try{Wu=Pn.trustedTypes.createPolicy("angular",{createHTML:i=>i,createScript:i=>i,createScriptURL:i=>i})}catch{}return Wu}function Zh(i){return b2()?.createHTML(i)||i}var Gu;function ES(){if(Gu===void 0&&(Gu=null,Pn.trustedTypes))try{Gu=Pn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:i=>i,createScript:i=>i,createScriptURL:i=>i})}catch{}return Gu}function Lx(i){return ES()?.createHTML(i)||i}function Vx(i){return ES()?.createScriptURL(i)||i}var _r=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${cD})`}},V_=class extends _r{getTypeName(){return"HTML"}},j_=class extends _r{getTypeName(){return"Style"}},B_=class extends _r{getTypeName(){return"Script"}},z_=class extends _r{getTypeName(){return"URL"}},U_=class extends _r{getTypeName(){return"ResourceURL"}};function ro(i){return i instanceof _r?i.changingThisBreaksApplicationSecurity:i}function wr(i,e){let r=y2(i);if(r!=null&&r!==e){if(r==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${r} (see ${cD})`)}return r===e}function y2(i){return i instanceof _r&&i.getTypeName()||null}function IS(i){return new V_(i)}function MS(i){return new j_(i)}function TS(i){return new B_(i)}function kS(i){return new z_(i)}function AS(i){return new U_(i)}function w2(i){let e=new $_(i);return C2()?new H_(e):e}var H_=class{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+e;try{let r=new window.DOMParser().parseFromString(Zh(e),"text/html").body;return r===null?this.inertDocumentHelper.getInertBodyElement(e):(r.firstChild?.remove(),r)}catch{return null}}},$_=class{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let r=this.inertDocument.createElement("template");return r.innerHTML=Zh(e),r}};function C2(){try{return!!new window.DOMParser().parseFromString(Zh(""),"text/html")}catch{return!1}}var x2=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Xh(i){return i=String(i),i.match(x2)?i:"unsafe:"+i}function Cr(i){let e={};for(let r of i.split(","))e[r]=!0;return e}function Mc(...i){let e={};for(let r of i)for(let t in r)r.hasOwnProperty(t)&&(e[t]=!0);return e}var OS=Cr("area,br,col,hr,img,wbr"),RS=Cr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),PS=Cr("rp,rt"),D2=Mc(PS,RS),S2=Mc(RS,Cr("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),E2=Mc(PS,Cr("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),jx=Mc(OS,S2,E2,D2),FS=Cr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),I2=Cr("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),M2=Cr("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),T2=Mc(FS,I2,M2),k2=Cr("script,style,template"),W_=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let r=e.firstChild,t=!0,n=[];for(;r;){if(r.nodeType===Node.ELEMENT_NODE?t=this.startElement(r):r.nodeType===Node.TEXT_NODE?this.chars(r.nodeValue):this.sanitizedSomething=!0,t&&r.firstChild){n.push(r),r=R2(r);continue}for(;r;){r.nodeType===Node.ELEMENT_NODE&&this.endElement(r);let o=O2(r);if(o){r=o;break}r=n.pop()}}return this.buf.join("")}startElement(e){let r=Bx(e).toLowerCase();if(!jx.hasOwnProperty(r))return this.sanitizedSomething=!0,!k2.hasOwnProperty(r);this.buf.push("<"),this.buf.push(r);let t=e.attributes;for(let n=0;n"),!0}endElement(e){let r=Bx(e).toLowerCase();jx.hasOwnProperty(r)&&!OS.hasOwnProperty(r)&&(this.buf.push(""))}chars(e){this.buf.push(zx(e))}};function A2(i,e){return(i.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function O2(i){let e=i.nextSibling;if(e&&i!==e.previousSibling)throw NS(e);return e}function R2(i){let e=i.firstChild;if(e&&A2(i,e))throw NS(e);return e}function Bx(i){let e=i.nodeName;return typeof e=="string"?e:"FORM"}function NS(i){return new Error(`Failed to sanitize html because the element is clobbered: ${i.outerHTML}`)}var P2=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,F2=/([^\#-~ |!])/g;function zx(i){return i.replace(/&/g,"&").replace(P2,function(e){let r=e.charCodeAt(0),t=e.charCodeAt(1);return"&#"+((r-55296)*1024+(t-56320)+65536)+";"}).replace(F2,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}var qu;function Jv(i,e){let r=null;try{qu=qu||w2(i);let t=e?String(e):"";r=qu.getInertBodyElement(t);let n=5,o=t;do{if(n===0)throw new Error("Failed to sanitize html because the input is unstable");n--,t=o,o=r.innerHTML,r=qu.getInertBodyElement(t)}while(t!==o);let s=new W_().sanitizeChildren(Ux(r)||r);return Zh(s)}finally{if(r){let t=Ux(r)||r;for(;t.firstChild;)t.firstChild.remove()}}}function Ux(i){return"content"in i&&N2(i)?i.content:null}function N2(i){return i.nodeType===Node.ELEMENT_NODE&&i.nodeName==="TEMPLATE"}var Yi=function(i){return i[i.NONE=0]="NONE",i[i.HTML=1]="HTML",i[i.STYLE=2]="STYLE",i[i.SCRIPT=3]="SCRIPT",i[i.URL=4]="URL",i[i.RESOURCE_URL=5]="RESOURCE_URL",i}(Yi||{});function qt(i){let e=eb();return e?Lx(e.sanitize(Yi.HTML,i)||""):wr(i,"HTML")?Lx(ro(i)):Jv(DS(),$a(i))}function Ie(i){let e=eb();return e?e.sanitize(Yi.URL,i)||"":wr(i,"URL")?ro(i):Xh($a(i))}function L2(i){let e=eb();if(e)return Vx(e.sanitize(Yi.RESOURCE_URL,i)||"");if(wr(i,"ResourceURL"))return Vx(ro(i));throw new J(904,!1)}function V2(i,e){return e==="src"&&(i==="embed"||i==="frame"||i==="iframe"||i==="media"||i==="script")||e==="href"&&(i==="base"||i==="link")?L2:Ie}function LS(i,e,r){return V2(e,r)(i)}function eb(){let i=Ue();return i&&i[Go].sanitizer}var j2=/^>|^->||--!>|)/g,z2="\u200B$1\u200B";function U2(i){return i.replace(j2,e=>e.replace(B2,z2))}function Jh(i){return i.ownerDocument.defaultView}function VS(i){return i.ownerDocument}function jS(i){return i instanceof Function?i():i}function BS(i){return(i??k(Pe)).get(oo)==="browser"}var Yo=function(i){return i[i.Important=1]="Important",i[i.DashCase=2]="DashCase",i}(Yo||{}),H2;function tb(i,e){return H2(i,e)}function Hs(i,e,r,t,n){if(t!=null){let o,a=!1;vr(t)?o=t:Xr(t)&&(a=!0,t=t[Ko]);let s=qo(t);i===0&&r!==null?n==null?WS(e,r,s):bh(e,r,s,n||null,!0):i===1&&r!==null?bh(e,r,s,n||null,!0):i===2?nL(e,s,a):i===3&&e.destroyNode(s),o!=null&&rL(e,i,o,r,n)}}function $2(i,e){return i.createText(e)}function W2(i,e,r){i.setValue(e,r)}function G2(i,e){return i.createComment(U2(e))}function zS(i,e,r){return i.createElement(e,r)}function q2(i,e){US(i,e),e[Ko]=null,e[Cn]=null}function Y2(i,e,r,t,n,o){t[Ko]=n,t[Cn]=e,im(i,t,r,1,n,o)}function US(i,e){e[Go].changeDetectionScheduler?.notify(9),im(i,e,e[ri],2,null,null)}function Q2(i){let e=i[yc];if(!e)return d_(i[at],i);for(;e;){let r=null;if(Xr(e))r=e[yc];else{let t=e[nn];t&&(r=t)}if(!r){for(;e&&!e[xo]&&e!==i;)Xr(e)&&d_(e[at],e),e=e[on];e===null&&(e=i),Xr(e)&&d_(e[at],e),r=e&&e[xo]}e=r}}function K2(i,e,r,t){let n=nn+t,o=r.length;t>0&&(r[n-1][xo]=e),t0&&(i[r-1][xo]=t[xo]);let o=ah(i,nn+e);q2(t[at],t);let a=o[fr];a!==null&&a.detachView(o[at]),t[on]=null,t[xo]=null,t[Ze]&=-129}return t}function em(i,e){if(!(e[Ze]&256)){let r=e[ri];r.destroyNode&&im(i,e,r,3,null,null),Q2(e)}}function d_(i,e){if(e[Ze]&256)return;let r=yt(null);try{e[Ze]&=-129,e[Ze]|=256,e[Jn]&&mu(e[Jn]),X2(i,e),Z2(i,e),e[at].type===1&&e[ri].destroy();let t=e[Ga];if(t!==null&&vr(e[on])){t!==e[on]&&ib(t,e);let n=e[fr];n!==null&&n.detachView(i)}N_(e)}finally{yt(r)}}function Z2(i,e){let r=i.cleanup,t=e[ch];if(r!==null)for(let o=0;o=0?t[a]():t[-a].unsubscribe(),o+=2}else{let a=t[r[o+1]];r[o].call(a)}t!==null&&(e[ch]=null);let n=e[Zr];if(n!==null){e[Zr]=null;for(let o=0;o-1){let{encapsulation:o}=i.data[t.directiveStart+n];if(o===Wo.None||o===Wo.Emulated)return null}return no(t,r)}}function bh(i,e,r,t,n){i.insertBefore(e,r,t,n)}function WS(i,e,r){i.appendChild(e,r)}function Hx(i,e,r,t,n){t!==null?bh(i,e,r,t,n):WS(i,e,r)}function GS(i,e){return i.parentNode(e)}function eL(i,e){return i.nextSibling(e)}function qS(i,e,r){return iL(i,e,r)}function tL(i,e,r){return i.type&40?no(i,r):null}var iL=tL,$x;function tm(i,e,r,t){let n=$S(i,t,e),o=e[ri],a=t.parent||e[Cn],s=qS(a,t,e);if(n!=null)if(Array.isArray(r))for(let l=0;lLi&&XS(i,e,Li,!1),Ho(a?2:0,n),r(t,n)}finally{Qa(o),Ho(a?3:1,n)}}function ob(i,e,r){if(Lv(e)){let t=yt(null);try{let n=e.directiveStart,o=e.directiveEnd;for(let a=n;anull;function pL(i,e,r,t){let n=sE(e);n.push(r),i.firstCreatePass&&lE(i).push(t,n.length-1)}function fL(i,e,r,t,n,o){let a=e?e.injectorIndex:-1,s=0;return YD()&&(s|=128),{type:r,index:t,insertBeforeIndex:null,injectorIndex:a,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:s,providerIndexes:0,value:n,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Wx(i,e,r,t,n){for(let o in e){if(!e.hasOwnProperty(o))continue;let a=e[o];if(a===void 0)continue;t??={};let s,l=Jr.None;Array.isArray(a)?(s=a[0],l=a[1]):s=a;let u=o;if(n!==null){if(!n.hasOwnProperty(o))continue;u=n[o]}i===0?Gx(t,r,u,s,l):Gx(t,r,u,s)}return t}function Gx(i,e,r,t,n){let o;i.hasOwnProperty(r)?(o=i[r]).push(e,t):o=i[r]=[e,t],n!==void 0&&o.push(n)}function gL(i,e,r){let t=e.directiveStart,n=e.directiveEnd,o=i.data,a=e.attrs,s=[],l=null,u=null;for(let f=t;f0;){let r=i[--e];if(typeof r=="number"&&r<0)return r}return 0}function wL(i,e,r,t){let n=r.directiveStart,o=r.directiveEnd;Uh(r)&&ML(e,r,i.data[n+r.componentOffset]),i.firstCreatePass||fh(r,e),ia(t,e);let a=r.initialInputs;for(let s=n;s{Wh(i.lView)},consumerOnSignalRead(){this.lView[Jn]=this}});function zL(i){let e=i[Jn]??Object.create(UL);return e.lView=i,e}var UL=rt(j({},Ts),{consumerIsAlwaysLive:!0,consumerMarkedDirty:i=>{let e=Ya(i.lView);for(;e&&!fE(e[at]);)e=Ya(e);e&&$D(e)},consumerOnSignalRead(){this.lView[Jn]=this}});function fE(i){return i.type!==2}var HL=100;function gE(i,e=!0,r=0){let t=i[Go],n=t.rendererFactory,o=!1;o||n.begin?.();try{$L(i,r)}catch(a){throw e&&dE(i,a),a}finally{o||(n.end?.(),t.inlineEffectRunner?.flush())}}function $L(i,e){let r=KD();try{Mx(!0),Q_(i,e);let t=0;for(;$h(i);){if(t===HL)throw new J(103,!1);t++,Q_(i,1)}}finally{Mx(r)}}function WL(i,e,r,t){let n=e[Ze];if((n&256)===256)return;let o=!1,a=!1;!o&&e[Go].inlineEffectRunner?.flush(),Gv(e);let s=!0,l=null,u=null;o||(fE(i)?(u=LL(e),l=ac(u)):MC()===null?(s=!1,u=zL(e),l=ac(u)):e[Jn]&&(mu(e[Jn]),e[Jn]=null));try{HD(e),kN(i.bindingStartIndex),r!==null&&tE(i,e,r,2,t);let f=(n&3)===3;if(!o)if(f){let D=i.preOrderCheckHooks;D!==null&&eh(e,D,null)}else{let D=i.preOrderHooks;D!==null&&th(e,D,0,null),a_(e,0)}if(a||GL(e),_E(e,0),i.contentQueries!==null&&aE(i,e),!o)if(f){let D=i.contentCheckHooks;D!==null&&eh(e,D)}else{let D=i.contentHooks;D!==null&&th(e,D,1),a_(e,1)}lL(i,e);let v=i.components;v!==null&&bE(e,v,0);let C=i.viewQuery;if(C!==null&&Y_(2,C,t),!o)if(f){let D=i.viewCheckHooks;D!==null&&eh(e,D)}else{let D=i.viewHooks;D!==null&&th(e,D,2),a_(e,2)}if(i.firstUpdatePass===!0&&(i.firstUpdatePass=!1),e[Ju]){for(let D of e[Ju])D();e[Ju]=null}o||(e[Ze]&=-73)}catch(f){throw o||Wh(e),f}finally{u!==null&&(uu(u,l),s&&jL(u)),qv()}}function _E(i,e){for(let r=yS(i);r!==null;r=wS(r))for(let t=nn;t-1&&(wc(e,t),ah(r,t))}this._attachedToViewContainer=!1}em(this._lView[at],this._lView)}onDestroy(e){WD(this._lView,e)}markForCheck(){ub(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[Ze]&=-129}reattach(){I_(this._lView),this._lView[Ze]|=128}detectChanges(){this._lView[Ze]|=1024,gE(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new J(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=S_(this._lView),r=this._lView[Ga];r!==null&&!e&&ib(r,this._lView),US(this._lView[at],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new J(902,!1);this._appRef=e;let r=S_(this._lView),t=this._lView[Ga];t!==null&&!r&&HS(t,this._lView),I_(this._lView)}},ct=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=KL;let i=e;return i})(),YL=ct,QL=class extends YL{constructor(e,r,t){super(),this._declarationLView=e,this._declarationTContainer=r,this.elementRef=t}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,r){return this.createEmbeddedViewImpl(e,r)}createEmbeddedViewImpl(e,r,t){let n=kc(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:r,dehydratedView:t});return new Xa(n)}};function KL(){return rm(Vi(),Ue())}function rm(i,e){return i.type&4?new QL(e,i,rl(i,e)):null}var _oe=new RegExp(`^(\\d+)*(${g2}|${f2})*(.*)`);var ZL=()=>null;function Js(i,e){return ZL(i,e)}var el=class{},hb=new R("",{providedIn:"root",factory:()=>!1});var yE=new R(""),wE=new R(""),K_=class{},wh=class{};function XL(i){let e=Error(`No component factory found for ${hn(i)}.`);return e[JL]=i,e}var JL="ngComponent";var Z_=class{resolveComponentFactory(e){throw XL(e)}},Sb=class Sb{};Sb.NULL=new Z_;var wn=Sb,na=class{},xr=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>eV();let i=e;return i})();function eV(){let i=Ue(),e=Vi(),r=ra(e.index,i);return(Xr(r)?r:i)[ri]}var tV=(()=>{let e=class e{};e.\u0275prov=V({token:e,providedIn:"root",factory:()=>null});let i=e;return i})();function Ch(i,e,r){let t=r?i.styles:null,n=r?i.classes:null,o=0;if(e!==null)for(let a=0;a0&&KS(i,r,o.join(" "))}}function lV(i,e,r){let t=i.projection=[];for(let n=0;n{let e=class e{};e.__NG_ELEMENT_ID__=dV;let i=e;return i})();function dV(){let i=Vi();return xE(i,Ue())}var uV=Ct,CE=class extends uV{constructor(e,r,t){super(),this._lContainer=e,this._hostTNode=r,this._hostLView=t}get element(){return rl(this._hostTNode,this._hostLView)}get injector(){return new Ha(this._hostTNode,this._hostLView)}get parentInjector(){let e=Yv(this._hostTNode,this._hostLView);if(oS(e)){let r=mh(e,this._hostLView),t=hh(e),n=r[at].data[t+8];return new Ha(n,r)}else return new Ha(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let r=Yx(this._lContainer);return r!==null&&r[e]||null}get length(){return this._lContainer.length-nn}createEmbeddedView(e,r,t){let n,o;typeof t=="number"?n=t:t!=null&&(n=t.index,o=t.injector);let a=Js(this._lContainer,e.ssrId),s=e.createEmbeddedViewImpl(r||{},o,a);return this.insertImpl(s,n,Xs(this._hostTNode,a)),s}createComponent(e,r,t,n,o){let a=e&&!hN(e),s;if(a)s=r;else{let S=r||{};s=S.index,t=S.injector,n=S.projectableNodes,o=S.environmentInjector||S.ngModuleRef}let l=a?e:new tl(ea(e)),u=t||this.parentInjector;if(!o&&l.ngModule==null){let P=(a?u:this.parentInjector).get(qi,null);P&&(o=P)}let f=ea(l.componentType??{}),v=Js(this._lContainer,f?.id??null),C=v?.firstChild??null,D=l.create(u,n,C,o);return this.insertImpl(D.hostView,s,Xs(this._hostTNode,v)),D}insert(e,r){return this.insertImpl(e,r,!0)}insertImpl(e,r,t){let n=e._lView;if(bN(n)){let s=this.indexOf(e);if(s!==-1)this.detach(s);else{let l=n[on],u=new CE(l,l[Cn],l[on]);u.detach(u.indexOf(e))}}let o=this._adjustIndex(r),a=this._lContainer;return Ac(a,n,o,t),e.attachToViewContainerRef(),bD(u_(a),o,e),e}move(e,r){return this.insert(e,r)}indexOf(e){let r=Yx(this._lContainer);return r!==null?r.indexOf(e):-1}remove(e){let r=this._adjustIndex(e,-1),t=wc(this._lContainer,r);t&&(ah(u_(this._lContainer),r),em(t[at],t))}detach(e){let r=this._adjustIndex(e,-1),t=wc(this._lContainer,r);return t&&ah(u_(this._lContainer),r)!=null?new Xa(t):null}_adjustIndex(e,r=0){return e??this.length+r}};function Yx(i){return i[dh]}function u_(i){return i[dh]||(i[dh]=[])}function xE(i,e){let r,t=e[i.index];return vr(t)?r=t:(r=rE(t,e,null,i),e[i.index]=r,om(e,r)),mV(r,e,i,t),new CE(r,i,e)}function hV(i,e){let r=i[ri],t=r.createComment(""),n=no(e,i),o=GS(r,n);return bh(r,o,t,eL(r,n),!1),t}var mV=gV,pV=()=>!1;function fV(i,e,r){return pV(i,e,r)}function gV(i,e,r,t){if(i[qa])return;let n;r.type&8?n=qo(t):n=hV(e,r),i[qa]=n}var J_=class i{constructor(e){this.queryList=e,this.matches=null}clone(){return new i(this.queryList)}setDirty(){this.queryList.setDirty()}},ev=class i{constructor(e=[]){this.queries=e}createEmbeddedView(e){let r=e.queries;if(r!==null){let t=e.contentQueries!==null?e.contentQueries[0]:r.length,n=[];for(let o=0;o0)t.push(a[s/2]);else{let u=o[s+1],f=e[-l];for(let v=nn;ve.trim())}function IE(i,e,r){i.queries===null&&(i.queries=new tv),i.queries.track(new iv(e,r))}function xV(i,e){let r=i.contentQueries||(i.contentQueries=[]),t=r.length?r[r.length-1]:-1;e!==t&&r.push(i.queries.length-1,e)}function pb(i,e){return i.queries.getByIndex(e)}function ME(i,e){let r=i[at],t=pb(r,e);return t.crossesNgTemplate?nv(r,i,e,[]):DE(r,i,t,e)}var Qx=new Set;function So(i){Qx.has(i)||(Qx.add(i),performance?.mark?.("mark_feature_usage",{detail:{feature:i}}))}function am(i){return typeof i=="function"&&i[Kn]!==void 0}function Dr(i,e){So("NgSignals");let r=jC(i),t=r[Kn];return e?.equal&&(t.equal=e.equal),r.set=n=>Ng(t,n),r.update=n=>BC(t,n),r.asReadonly=DV.bind(r),r}function DV(){let i=this[Kn];if(i.readonlyFn===void 0){let e=()=>this();e[Kn]=i,i.readonlyFn=e}return i.readonlyFn}function TE(i){return am(i)&&typeof i.set=="function"}function kE(i,e){let r,t=Fg(()=>{r._dirtyCounter();let n=MV(r,i);if(e&&n===void 0)throw new J(-951,!1);return n});return r=t[Kn],r._dirtyCounter=Dr(0),r._flatValue=void 0,t}function SV(){return kE(!0,!1)}function EV(){return kE(!0,!0)}function IV(i,e){let r=i[Kn];r._lView=Ue(),r._queryIndex=e,r._queryList=mb(r._lView,e),r._queryList.onDirty(()=>r._dirtyCounter.update(t=>t+1))}function MV(i,e){let r=i._lView,t=i._queryIndex;if(r===void 0||t===void 0||r[Ze]&4)return e?void 0:un;let n=mb(r,t),o=ME(r,t);return n.reset(o,_S),e?n.first:n._changesDetected||i._flatValue===void 0?i._flatValue=n.toArray():i._flatValue}function Kx(i,e){return SV()}function TV(i,e){return EV()}var AE=(Kx.required=TV,Kx);function kV(i){let e=[],r=new Map;function t(n){let o=r.get(n);if(!o){let a=i(n);r.set(n,o=a.then(PV))}return o}return Sh.forEach((n,o)=>{let a=[];n.templateUrl&&a.push(t(n.templateUrl).then(u=>{n.template=u}));let s=typeof n.styles=="string"?[n.styles]:n.styles||[];if(n.styles=s,n.styleUrl&&n.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(n.styleUrls?.length){let u=n.styles.length,f=n.styleUrls;n.styleUrls.forEach((v,C)=>{s.push(""),a.push(t(v).then(D=>{s[u+C]=D,f.splice(f.indexOf(v),1),f.length==0&&(n.styleUrls=void 0)}))})}else n.styleUrl&&a.push(t(n.styleUrl).then(u=>{s.push(u),n.styleUrl=void 0}));let l=Promise.all(a).then(()=>FV(o));e.push(l)}),OV(),Promise.all(e).then(()=>{})}var Sh=new Map,AV=new Set;function OV(){let i=Sh;return Sh=new Map,i}function RV(){return Sh.size===0}function PV(i){return typeof i=="string"?i:i.text()}function FV(i){AV.delete(i)}function NV(i){return Object.getPrototypeOf(i.prototype).constructor}function be(i){let e=NV(i.type),r=!0,t=[i];for(;e;){let n;if(gr(i))n=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new J(903,!1);n=e.\u0275dir}if(n){if(r){t.push(n);let a=i;a.inputs=Yu(i.inputs),a.inputTransforms=Yu(i.inputTransforms),a.declaredInputs=Yu(i.declaredInputs),a.outputs=Yu(i.outputs);let s=n.hostBindings;s&&zV(i,s);let l=n.viewQuery,u=n.contentQueries;if(l&&jV(i,l),u&&BV(i,u),LV(i,n),pF(i.outputs,n.outputs),gr(n)&&n.data.animation){let f=i.data;f.animation=(f.animation||[]).concat(n.data.animation)}}let o=n.features;if(o)for(let a=0;a=0;t--){let n=i[t];n.hostVars=e+=n.hostVars,n.hostAttrs=vc(n.hostAttrs,r=vc(r,n.hostAttrs))}}function Yu(i){return i===pr?{}:i===un?[]:i}function jV(i,e){let r=i.viewQuery;r?i.viewQuery=(t,n)=>{e(t,n),r(t,n)}:i.viewQuery=e}function BV(i,e){let r=i.contentQueries;r?i.contentQueries=(t,n,o)=>{e(t,n,o),r(t,n,o)}:i.contentQueries=e}function zV(i,e){let r=i.hostBindings;r?i.hostBindings=(t,n)=>{e(t,n),r(t,n)}:i.hostBindings=e}function OE(i){let e=r=>{let t=Array.isArray(i);r.hostDirectives===null?(r.findHostDirectiveDefs=RE,r.hostDirectives=t?i.map(ov):[i]):t?r.hostDirectives.unshift(...i.map(ov)):r.hostDirectives.unshift(i)};return e.ngInherit=!0,e}function RE(i,e,r){if(i.hostDirectives!==null)for(let t of i.hostDirectives)if(typeof t=="function"){let n=t();for(let o of n)Zx(ov(o),e,r)}else Zx(t,e,r)}function Zx(i,e,r){let t=Ov(i.directive);UV(t.declaredInputs,i.inputs),RE(t,e,r),r.set(t,i),e.push(t)}function ov(i){return typeof i=="function"?{directive:Gi(i),inputs:pr,outputs:pr}:{directive:Gi(i.directive),inputs:Xx(i.inputs),outputs:Xx(i.outputs)}}function Xx(i){if(i===void 0||i.length===0)return pr;let e={};for(let r=0;rr()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},Ih=class extends Cc{constructor(e){super(),this.moduleType=e}create(e){return new Eh(this.moduleType,e,[])}};function HV(i,e,r){return new Eh(i,e,r,!1)}var rv=class extends oa{constructor(e){super(),this.componentFactoryResolver=new xh(this),this.instance=null;let r=new bc([...e.providers,{provide:oa,useValue:this},{provide:wn,useValue:this.componentFactoryResolver}],e.parent||Pv(),e.debugName,new Set(["environment"]));this.injector=r,e.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function sm(i,e,r=null){return new rv({providers:i,parent:e,debugName:r,runEnvironmentInitializers:!0}).injector}function PE(i){return fb(i)?Array.isArray(i)||!(i instanceof Map)&&Symbol.iterator in i:!1}function $V(i,e){if(Array.isArray(i))for(let r=0;r{let e=class e{constructor(){this.impl=null}execute(){this.impl?.execute()}};e.\u0275prov=V({token:e,providedIn:"root",factory:()=>new e});let i=e;return i})(),Ua=class Ua{constructor(){this.ngZone=k(Z),this.scheduler=k(el),this.errorHandler=k(yn,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}execute(){this.executing=!0;for(let e of Ua.PHASES)for(let r of this.sequences)if(!(r.erroredOrDestroyed||!r.hooks[e]))try{r.pipelinedValue=this.ngZone.runOutsideAngular(()=>r.hooks[e](r.pipelinedValue))}catch(t){r.erroredOrDestroyed=!0,this.errorHandler?.handleError(t)}this.executing=!1;for(let e of this.sequences)e.afterRun(),e.once&&(this.sequences.delete(e),e.destroy());for(let e of this.deferredRegistrations)this.sequences.add(e);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(e){this.executing?this.deferredRegistrations.add(e):(this.sequences.add(e),this.scheduler.notify(6))}unregister(e){this.executing&&this.sequences.has(e)?(e.erroredOrDestroyed=!0,e.pipelinedValue=void 0,e.once=!0):(this.sequences.delete(e),this.deferredRegistrations.delete(e))}};Ua.PHASES=[$s.EarlyRead,$s.Write,$s.MixedReadWrite,$s.Read],Ua.\u0275prov=V({token:Ua,providedIn:"root",factory:()=>new Ua});var av=Ua,sv=class{constructor(e,r,t,n){this.impl=e,this.hooks=r,this.once=t,this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.unregisterOnDestroy=n?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}};function Oc(i,e){!e?.injector&&Fv(Oc);let r=e?.injector??k(Pe);return BS(r)?(So("NgAfterRender"),LE(i,r,e,!1)):VE}function ai(i,e){!e?.injector&&Fv(ai);let r=e?.injector??k(Pe);return BS(r)?(So("NgAfterNextRender"),LE(i,r,e,!0)):VE}function KV(i,e){if(i instanceof Function){let r=[void 0,void 0,void 0,void 0];return r[e]=i,r}else return[i.earlyRead,i.write,i.mixedReadWrite,i.read]}function LE(i,e,r,t){let n=e.get(NE);n.impl??=e.get(av);let o=r?.phase??$s.MixedReadWrite,a=r?.manualCleanup!==!0?e.get(Kh):null,s=new sv(n.impl,KV(i,o),t,a);return n.impl.register(s),s}var VE={destroy(){}};function ie(i,e,r,t){let n=Ue(),o=aa();if(Nn(n,o,e)){let a=ii(),s=ol();TL(s,n,i,e,r,t)}return ie}function _b(i,e,r,t){return Nn(i,aa(),r)?e+$a(r)+t:xn}function ZV(i,e,r,t,n,o){let a=TN(),s=FE(i,a,r,n);return Hv(2),s?e+$a(r)+t+$a(n)+o:xn}function Qu(i,e){return i<<17|e<<2}function Ja(i){return i>>17&32767}function XV(i){return(i&2)==2}function JV(i,e){return i&131071|e<<17}function lv(i){return i|2}function il(i){return(i&131068)>>2}function h_(i,e){return i&-131069|e<<2}function ej(i){return(i&1)===1}function cv(i){return i|1}function tj(i,e,r,t,n,o){let a=o?e.classBindings:e.styleBindings,s=Ja(a),l=il(a);i[t]=r;let u=!1,f;if(Array.isArray(r)){let v=r;f=v[1],(f===null||Sc(v,f)>0)&&(u=!0)}else f=r;if(n)if(l!==0){let C=Ja(i[s+1]);i[t+1]=Qu(C,s),C!==0&&(i[C+1]=h_(i[C+1],t)),i[s+1]=JV(i[s+1],t)}else i[t+1]=Qu(s,0),s!==0&&(i[s+1]=h_(i[s+1],t)),s=t;else i[t+1]=Qu(l,0),s===0?s=t:i[l+1]=h_(i[l+1],t),l=t;u&&(i[t+1]=lv(i[t+1])),Jx(i,f,t,!0),Jx(i,f,t,!1),ij(e,f,i,t,o),a=Qu(s,l),o?e.classBindings=a:e.styleBindings=a}function ij(i,e,r,t,n){let o=n?i.residualClasses:i.residualStyles;o!=null&&typeof e=="string"&&Sc(o,e)>=0&&(r[t+1]=cv(r[t+1]))}function Jx(i,e,r,t){let n=i[r+1],o=e===null,a=t?Ja(n):il(n),s=!1;for(;a!==0&&(s===!1||o);){let l=i[a],u=i[a+1];nj(l,e)&&(s=!0,i[a+1]=t?cv(u):lv(u)),a=t?Ja(u):il(u)}s&&(i[r+1]=t?lv(n):cv(n))}function nj(i,e){return i===null||e==null||(Array.isArray(i)?i[1]:i)===e?!0:Array.isArray(i)&&typeof e=="string"?Sc(i,e)>=0:!1}var Co={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function oj(i){return i.substring(Co.key,Co.keyEnd)}function rj(i){return aj(i),jE(i,BE(i,0,Co.textEnd))}function jE(i,e){let r=Co.textEnd;return r===e?-1:(e=Co.keyEnd=sj(i,Co.key=e,r),BE(i,e,r))}function aj(i){Co.key=0,Co.keyEnd=0,Co.value=0,Co.valueEnd=0,Co.textEnd=i.length}function BE(i,e,r){for(;e32;)e++;return e}function p(i,e,r){let t=Ue(),n=aa();if(Nn(t,n,e)){let o=ii(),a=ol();Tc(o,a,t,i,e,t[ri],r,!1)}return p}function dv(i,e,r,t,n){let o=e.inputs,a=n?"class":"style";cb(i,r,o[a],a,t)}function ji(i,e,r){return UE(i,e,r,!1),ji}function ne(i,e){return UE(i,e,null,!0),ne}function Yt(i){HE(mj,zE,i,!0)}function zE(i,e){for(let r=rj(e);r>=0;r=jE(e,r))Vh(i,oj(e),!0)}function UE(i,e,r,t){let n=Ue(),o=ii(),a=Hv(2);if(o.firstUpdatePass&&WE(o,i,a,t),e!==xn&&Nn(n,a,e)){let s=o.data[br()];GE(o,s,n,n[ri],i,n[a+1]=fj(e,r),t,a)}}function HE(i,e,r,t){let n=ii(),o=Hv(2);n.firstUpdatePass&&WE(n,null,o,t);let a=Ue();if(r!==xn&&Nn(a,o,r)){let s=n.data[br()];if(qE(s,t)&&!$E(n,o)){let l=t?s.classesWithoutHost:s.stylesWithoutHost;l!==null&&(r=__(l,r||"")),dv(n,s,a,r,t)}else pj(n,s,a,a[ri],a[o+1],a[o+1]=hj(i,e,r),t,o)}}function $E(i,e){return e>=i.expandoStartIndex}function WE(i,e,r,t){let n=i.data;if(n[r+1]===null){let o=n[br()],a=$E(i,r);qE(o,t)&&e===null&&!a&&(e=!1),e=lj(n,o,e,t),tj(n,o,e,r,a,t)}}function lj(i,e,r,t){let n=$v(i),o=t?e.residualClasses:e.residualStyles;if(n===null)(t?e.classBindings:e.styleBindings)===0&&(r=m_(null,i,e,r,t),r=xc(r,e.attrs,t),o=null);else{let a=e.directiveStylingLast;if(a===-1||i[a]!==n)if(r=m_(n,i,e,r,t),o===null){let l=cj(i,e,t);l!==void 0&&Array.isArray(l)&&(l=m_(null,i,e,l[1],t),l=xc(l,e.attrs,t),dj(i,e,t,l))}else o=uj(i,e,t)}return o!==void 0&&(t?e.residualClasses=o:e.residualStyles=o),r}function cj(i,e,r){let t=r?e.classBindings:e.styleBindings;if(il(t)!==0)return i[Ja(t)]}function dj(i,e,r,t){let n=r?e.classBindings:e.styleBindings;i[Ja(n)]=t}function uj(i,e,r){let t,n=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0;){let l=i[n],u=Array.isArray(l),f=u?l[1]:l,v=f===null,C=r[n+1];C===xn&&(C=v?un:void 0);let D=v?o_(C,t):f===t?C:void 0;if(u&&!Th(D)&&(D=o_(l,t)),Th(D)&&(s=D,a))return s;let S=i[n+1];n=a?Ja(S):il(S)}if(e!==null){let l=o?e.residualClasses:e.residualStyles;l!=null&&(s=o_(l,t))}return s}function Th(i){return i!==void 0}function fj(i,e){return i==null||i===""||(typeof e=="string"?i=i+e:typeof i=="object"&&(i=hn(ro(i)))),i}function qE(i,e){return(i.flags&(e?8:16))!==0}function YE(i,e,r){let t=Ue(),n=_b(t,i,e,r);HE(Vh,zE,n,!0)}var uv=class{destroy(e){}updateValue(e,r){}swap(e,r){let t=Math.min(e,r),n=Math.max(e,r),o=this.detach(n);if(n-t>1){let a=this.detach(t);this.attach(t,o),this.attach(n,a)}else this.attach(t,o)}move(e,r){this.attach(r,this.detach(e))}};function p_(i,e,r,t,n){return i===r&&Object.is(e,t)?1:Object.is(n(i,e),n(r,t))?-1:0}function gj(i,e,r){let t,n,o=0,a=i.length-1,s=void 0;if(Array.isArray(e)){let l=e.length-1;for(;o<=a&&o<=l;){let u=i.at(o),f=e[o],v=p_(o,u,o,f,r);if(v!==0){v<0&&i.updateValue(o,f),o++;continue}let C=i.at(a),D=e[l],S=p_(a,C,l,D,r);if(S!==0){S<0&&i.updateValue(a,D),a--,l--;continue}let P=r(o,u),z=r(a,C),O=r(o,f);if(Object.is(O,z)){let de=r(l,D);Object.is(de,P)?(i.swap(o,a),i.updateValue(a,D),l--,a--):i.move(a,o),i.updateValue(o,f),o++;continue}if(t??=new kh,n??=iD(i,o,a,r),hv(i,t,o,O))i.updateValue(o,f),o++,a++;else if(n.has(O))t.set(P,i.detach(o)),a--;else{let de=i.create(o,e[o]);i.attach(o,de),o++,a++}}for(;o<=l;)tD(i,t,r,o,e[o]),o++}else if(e!=null){let l=e[Symbol.iterator](),u=l.next();for(;!u.done&&o<=a;){let f=i.at(o),v=u.value,C=p_(o,f,o,v,r);if(C!==0)C<0&&i.updateValue(o,v),o++,u=l.next();else{t??=new kh,n??=iD(i,o,a,r);let D=r(o,v);if(hv(i,t,o,D))i.updateValue(o,v),o++,a++,u=l.next();else if(!n.has(D))i.attach(o,i.create(o,v)),o++,a++,u=l.next();else{let S=r(o,f);t.set(S,i.detach(o)),a--}}}for(;!u.done;)tD(i,t,r,i.length,u.value),u=l.next()}for(;o<=a;)i.destroy(i.detach(a--));t?.forEach(l=>{i.destroy(l)})}function hv(i,e,r,t){return e!==void 0&&e.has(t)?(i.attach(r,e.get(t)),e.delete(t),!0):!1}function tD(i,e,r,t,n){if(hv(i,e,t,r(t,n)))i.updateValue(t,n);else{let o=i.create(t,n);i.attach(t,o)}}function iD(i,e,r,t){let n=new Set;for(let o=e;o<=r;o++)n.add(t(o,i.at(o)));return n}var kh=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let r=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(r)?(this.kvMap.set(e,this._vMap.get(r)),this._vMap.delete(r)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,r){if(this.kvMap.has(e)){let t=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let n=this._vMap;for(;n.has(t);)t=n.get(t);n.set(t,r)}else this.kvMap.set(e,r)}forEach(e){for(let[r,t]of this.kvMap)if(e(t,r),this._vMap!==void 0){let n=this._vMap;for(;n.has(t);)t=n.get(t),e(t,r)}}};function De(i,e){So("NgControlFlow");let r=Ue(),t=aa(),n=r[t]!==xn?r[t]:-1,o=n!==-1?Ah(r,Li+n):void 0,a=0;if(Nn(r,t,i)){let s=yt(null);try{if(o!==void 0&&mE(o,a),i!==-1){let l=Li+i,u=Ah(r,l),f=gv(r[at],l),v=Js(u,f.tView.ssrId),C=kc(r,f,e,{dehydratedView:v});Ac(u,C,a,Xs(f,v))}}finally{yt(s)}}else if(o!==void 0){let s=hE(o,a);s!==void 0&&(s[tn]=e)}}var mv=class{constructor(e,r,t){this.lContainer=e,this.$implicit=r,this.$index=t}get $count(){return this.lContainer.length-nn}};function Rc(i,e){return e}var pv=class{constructor(e,r,t){this.hasEmptyBlock=e,this.trackByFn=r,this.liveCollection=t}};function Sr(i,e,r,t,n,o,a,s,l,u,f,v,C){So("NgControlFlow");let D=Ue(),S=ii(),P=l!==void 0,z=Ue(),O=s?a.bind(z[Fn][tn]):a,de=new pv(P,O);z[Li+i]=de,Mh(D,S,i+1,e,r,t,n,ta(S.consts,o)),P&&Mh(D,S,i+2,l,u,f,v,ta(S.consts,C))}var fv=class extends uv{constructor(e,r,t){super(),this.lContainer=e,this.hostLView=r,this.templateTNode=t,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-nn}at(e){return this.getLView(e)[tn].$implicit}attach(e,r){let t=r[Qs];this.needsIndexUpdate||=e!==this.length,Ac(this.lContainer,r,e,Xs(this.templateTNode,t))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,_j(this.lContainer,e)}create(e,r){let t=Js(this.lContainer,this.templateTNode.tView.ssrId),n=kc(this.hostLView,this.templateTNode,new mv(this.lContainer,r,e),{dehydratedView:t});return this.operationsCounter?.recordCreate(),n}destroy(e){em(e[at],e),this.operationsCounter?.recordDestroy()}updateValue(e,r){this.getLView(e)[tn].$implicit=r}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e(Yh(!0),zS(t,n,LN()));function wj(i,e,r,t,n){let o=e.consts,a=ta(o,t),s=sl(e,i,8,"ng-container",a);a!==null&&Ch(s,a,!0);let l=ta(o,n);return lb(e,r,s,l),e.queries!==null&&e.queries.elementStart(e,s),s}function mt(i,e,r){let t=Ue(),n=ii(),o=i+Li,a=n.firstCreatePass?wj(o,n,t,e,r):n.data[o];es(a,!0);let s=Cj(n,t,a,i);return t[o]=s,qh()&&tm(n,t,s,a),ia(s,t),Hh(a)&&(rb(n,t,a),ob(n,a,t)),r!=null&&ab(t,a),mt}function pt(){let i=Vi(),e=ii();return zv()?Uv():(i=i.parent,es(i,!1)),e.firstCreatePass&&(Qh(e,i),Lv(i)&&e.queries.elementEnd(i)),pt}function Ci(i,e,r){return mt(i,e,r),pt(),Ci}var Cj=(i,e,r,t)=>(Yh(!0),G2(e[ri],""));function A(){return Ue()}function Si(i,e,r){let t=Ue(),n=aa();if(Nn(t,n,e)){let o=ii(),a=ol();Tc(o,a,t,i,e,t[ri],r,!0)}return Si}function Pc(i,e,r){let t=Ue(),n=aa();if(Nn(t,n,e)){let o=ii(),a=ol(),s=$v(o.data),l=cE(s,a,t);Tc(o,a,t,i,e,l,r,!0)}return Pc}var Oh="en-US";var xj=Oh;function Dj(i){typeof i=="string"&&(xj=i.toLowerCase().replace(/_/g,"-"))}var Sj=(i,e,r)=>{};function b(i,e,r,t){let n=Ue(),o=ii(),a=Vi();return vb(o,n,n[ri],a,i,e,t),b}function Fc(i,e){let r=Vi(),t=Ue(),n=ii(),o=$v(n.data),a=cE(o,r,t);return vb(n,t,a,r,i,e),Fc}function Ej(i,e,r,t){let n=i.cleanup;if(n!=null)for(let o=0;ol?s[l]:null}typeof a=="string"&&(o+=2)}return null}function vb(i,e,r,t,n,o,a){let s=Hh(t),u=i.firstCreatePass&&lE(i),f=e[tn],v=sE(e),C=!0;if(t.type&3||a){let P=no(t,e),z=a?a(P):P,O=v.length,de=a?it=>a(qo(it[t.index])):t.index,ht=null;if(!a&&s&&(ht=Ej(i,e,n,t.index)),ht!==null){let it=ht.__ngLastListenerFn__||ht;it.__ngNextListenerFn__=o,ht.__ngLastListenerFn__=o,C=!1}else{o=oD(t,e,f,o),Sj(P,n,o);let it=r.listen(z,n,o);v.push(o,it),u&&u.push(n,de,O,O+1)}}else o=oD(t,e,f,o);let D=t.outputs,S;if(C&&D!==null&&(S=D[n])){let P=S.length;if(P)for(let z=0;z-1?ra(i.index,e):e;ub(a,5);let s=nD(e,r,t,o),l=n.__ngNextListenerFn__;for(;l;)s=nD(e,r,l,o)&&s,l=l.__ngNextListenerFn__;return s}}function _(i=1){return FN(i)}function Ij(i,e){let r=null,t=$F(i);for(let n=0;n=i.data.length&&(i.data[r]=null,i.blueprint[r]=null),e[r]=t}function we(i){let e=MN();return jv(e,Li+i)}function g(i,e=""){let r=Ue(),t=ii(),n=i+Li,o=t.firstCreatePass?sl(t,n,1,e,null):t.data[n],a=kj(t,r,o,e,i);r[n]=a,qh()&&tm(t,r,a,o),es(o,!1)}var kj=(i,e,r,t,n)=>(Yh(!0),$2(e[ri],t));function $e(i){return F("",i,""),$e}function F(i,e,r){let t=Ue(),n=_b(t,i,e,r);return n!==xn&&uE(t,br(),n),F}function Ir(i,e,r,t,n){let o=Ue(),a=ZV(o,i,e,r,t,n);return a!==xn&&uE(o,br(),a),Ir}function U(i,e,r){TE(e)&&(e=e());let t=Ue(),n=aa();if(Nn(t,n,e)){let o=ii(),a=ol();Tc(o,a,t,i,e,t[ri],r,!1)}return U}function $(i,e){let r=TE(i);return r&&i.set(e),r}function H(i,e){let r=Ue(),t=ii(),n=Vi();return vb(t,r,r[ri],n,i,e),H}function Aj(i,e,r){let t=ii();if(t.firstCreatePass){let n=gr(i);_v(r,t.data,t.blueprint,n,!0),_v(e,t.data,t.blueprint,n,!1)}}function _v(i,e,r,t,n){if(i=Gi(i),Array.isArray(i))for(let o=0;o>20;if(Ys(i)||!i.multi){let D=new Ka(u,n,m),S=g_(l,e,n?f:f+C,v);S===-1?(A_(fh(s,a),o,l),f_(o,i,e.length),e.push(l),s.directiveStart++,s.directiveEnd++,n&&(s.providerIndexes+=1048576),r.push(D),a.push(D)):(r[S]=D,a[S]=D)}else{let D=g_(l,e,f+C,v),S=g_(l,e,f,f+C),P=D>=0&&r[D],z=S>=0&&r[S];if(n&&!z||!n&&!P){A_(fh(s,a),o,l);let O=Pj(n?Rj:Oj,r.length,n,t,u);!n&&z&&(r[S].providerFactory=O),f_(o,i,e.length,0),e.push(l),s.directiveStart++,s.directiveEnd++,n&&(s.providerIndexes+=1048576),r.push(O),a.push(O)}else{let O=XE(r[n?S:D],u,!n&&t);f_(o,i,D>-1?D:S,O)}!n&&t&&z&&r[S].componentProviders++}}}function f_(i,e,r,t){let n=Ys(e),o=oN(e);if(n||o){let l=(o?Gi(e.useClass):e).prototype.ngOnDestroy;if(l){let u=i.destroyHooks||(i.destroyHooks=[]);if(!n&&e.multi){let f=u.indexOf(r);f===-1?u.push(r,[t,l]):u[f+1].push(t,l)}else u.push(r,l)}}}function XE(i,e,r){return r&&i.componentProviders++,i.multi.push(e)-1}function g_(i,e,r,t){for(let n=r;n{r.providersResolver=(t,n)=>Aj(t,n?n(i):i,e)}}var Fj=(()=>{let e=class e{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t)){let n=AD(!1,t.type),o=n.length>0?sm([n],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t,o)}return this.cachedInjectors.get(t)}ngOnDestroy(){try{for(let t of this.cachedInjectors.values())t!==null&&t.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=V({token:e,providedIn:"environment",factory:()=>new e(M(qi))});let i=e;return i})();function re(i){So("NgStandalone"),i.getStandaloneInjector=e=>e.get(Fj).getOrCreateStandaloneInjector(i)}function JE(i,e,r){let t=i.\u0275cmp;t.directiveDefs=lh(e,!1),t.pipeDefs=lh(r,!0)}function ll(i,e,r){let t=Ec()+i,n=Ue();return n[t]===xn?gb(n,t,r?e.call(r):e()):WV(n,t)}function Bi(i,e,r,t){return tI(Ue(),Ec(),i,e,r,t)}function cl(i,e,r,t,n){return iI(Ue(),Ec(),i,e,r,t,n)}function eI(i,e){let r=i[e];return r===xn?void 0:r}function tI(i,e,r,t,n,o){let a=e+r;return Nn(i,a,n)?gb(i,a+1,o?t.call(o,n):t(n)):eI(i,a+1)}function iI(i,e,r,t,n,o,a){let s=e+r;return FE(i,s,n,o)?gb(i,s+2,a?t.call(a,n,o):t(n,o)):eI(i,s+2)}function _t(i,e){let r=ii(),t,n=i+Li;r.firstCreatePass?(t=Nj(e,r.pipeRegistry),r.data[n]=t,t.onDestroy&&(r.destroyHooks??=[]).push(n,t.onDestroy)):t=r.data[n];let o=t.factory||(t.factory=Wa(t.type,!0)),a,s=bn(m);try{let l=ph(!1),u=o();return ph(l),Tj(r,Ue(),n,u),u}finally{bn(s)}}function Nj(i,e){if(e)for(let r=e.length-1;r>=0;r--){let t=e[r];if(i===t.name)return t}}function Dt(i,e,r){let t=i+Li,n=Ue(),o=jv(n,t);return nI(n,t)?tI(n,Ec(),e,o.transform,r,o):o.transform(r)}function bb(i,e,r,t){let n=i+Li,o=Ue(),a=jv(o,n);return nI(o,n)?iI(o,Ec(),e,a.transform,r,t,a):a.transform(r,t)}function nI(i,e){return i[at].data[e].pure}function fi(i,e){return rm(i,e)}var Ku=null;function Lj(i){Ku!==null&&(i.defaultEncapsulation!==Ku.defaultEncapsulation||i.preserveWhitespaces!==Ku.preserveWhitespaces)||(Ku=i)}var lm=(()=>{let e=class e{log(t){console.log(t)}warn(t){console.warn(t)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"platform"});let i=e;return i})();var yb=new R(""),Nc=new R(""),cm=(()=>{let e=class e{constructor(t,n,o){this._ngZone=t,this.registry=n,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,wb||(Vj(o),o.addToWindow(n)),this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Z.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb()}});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(n=>n.updateCb&&n.updateCb(t)?(clearTimeout(n.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,n,o){let a=-1;n&&n>0&&(a=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==a),t()},n)),this._callbacks.push({doneCb:t,timeoutId:a,updateCb:o})}whenStable(t,n,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,n,o),this._runCallbacksIfReady()}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,n,o){return[]}};e.\u0275fac=function(n){return new(n||e)(M(Z),M(dm),M(Nc))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),dm=(()=>{let e=class e{constructor(){this._applications=new Map}registerApplication(t,n){this._applications.set(t,n)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,n=!0){return wb?.findTestabilityInTree(this,t,n)??null}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"platform"});let i=e;return i})();function Vj(i){wb=i}var wb;function la(i){return!!i&&typeof i.then=="function"}function Cb(i){return!!i&&typeof i.subscribe=="function"}var um=new R(""),oI=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,n)=>{this.resolve=t,this.reject=n}),this.appInits=k(um,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let t=[];for(let o of this.appInits){let a=o();if(la(a))t.push(a);else if(Cb(a)){let s=new Promise((l,u)=>{a.subscribe({complete:l,error:u})});t.push(s)}}let n=()=>{this.done=!0,this.resolve()};Promise.all(t).then(()=>{n()}).catch(o=>{this.reject(o)}),t.length===0&&n(),this.initialized=!0}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),hm=new R("");function jj(){VC(()=>{throw new J(600,!1)})}function Bj(i){return i.isBoundToModule}var zj=10;function Uj(i,e,r){try{let t=r();return la(t)?t.catch(n=>{throw e.runOutsideAngular(()=>i.handleError(n)),n}):t}catch(t){throw e.runOutsideAngular(()=>i.handleError(t)),t}}function rI(i,e){return Array.isArray(e)?e.reduce(rI,i):j(j({},i),e)}var Ln=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=k(l2),this.afterRenderManager=k(NE),this.zonelessEnabled=k(hb),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new G,this.afterTick=new G,this.componentTypes=[],this.components=[],this.isStable=k(Zo).hasPendingTasks.pipe(ue(t=>!t)),this._injector=k(qi)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let t;return new Promise(n=>{t=this.isStable.subscribe({next:o=>{o&&n()}})}).finally(()=>{t.unsubscribe()})}get injector(){return this._injector}bootstrap(t,n){let o=t instanceof wh;if(!this._injector.get(oI).done){let D=!o&&ID(t),S=!1;throw new J(405,S)}let s;o?s=t:s=this._injector.get(wn).resolveComponentFactory(t),this.componentTypes.push(s.componentType);let l=Bj(s)?void 0:this._injector.get(oa),u=n||s.selector,f=s.create(Pe.NULL,[],u,l),v=f.location.nativeElement,C=f.injector.get(yb,null);return C?.registerApplication(v),f.onDestroy(()=>{this.detachView(f.hostView),nh(this.components,f),C?.unregisterApplication(v)}),this._loadComponent(f),f}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new J(101,!1);let t=yt(null);try{this._runningTick=!0,this.synchronize()}catch(n){this.internalErrorHandler(n)}finally{this._runningTick=!1,yt(t),this.afterTick.next()}}synchronize(){let t=null;this._injector.destroyed||(t=this._injector.get(na,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let n=0;for(;this.dirtyFlags!==0&&n++$h(t))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(t){let n=t;this._views.push(n),n.attachToAppRef(this)}detachView(t){let n=t;nh(this._views,n),n.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t);let n=this._injector.get(hm,[]);[...this._bootstrapListeners,...n].forEach(o=>o(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>nh(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new J(406,!1);let t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function nh(i,e){let r=i.indexOf(e);r>-1&&i.splice(r,1)}function Hj(i,e,r,t){if(!r&&!$h(i))return;gE(i,e,r&&!t?0:1)}var bv=class{constructor(e,r){this.ngModuleFactory=e,this.componentFactories=r}},mm=(()=>{let e=class e{compileModuleSync(t){return new Ih(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){let n=this.compileModuleSync(t),o=MD(t),a=jS(o.declarations).reduce((s,l)=>{let u=ea(l);return u&&s.push(new tl(u)),s},[]);return new bv(n,a)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),$j=new R("");function Wj(i,e,r){let t=new Ih(r);return Promise.resolve(t)}function rD(i){for(let e=i.length-1;e>=0;e--)if(i[e]!==void 0)return i[e]}var Gj=(()=>{let e=class e{constructor(){this.zone=k(Z),this.changeDetectionScheduler=k(el),this.applicationRef=k(Ln)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function qj({ngZoneFactory:i,ignoreChangesOutsideZone:e,scheduleInRootZone:r}){return i??=()=>new Z(rt(j({},aI()),{scheduleInRootZone:r})),[{provide:Z,useFactory:i},{provide:qs,multi:!0,useFactory:()=>{let t=k(Gj,{optional:!0});return()=>t.initialize()}},{provide:qs,multi:!0,useFactory:()=>{let t=k(Yj);return()=>{t.initialize()}}},e===!0?{provide:yE,useValue:!0}:[],{provide:wE,useValue:r??pS}]}function aI(i){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:i?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:i?.runCoalescing??!1}}var Yj=(()=>{let e=class e{constructor(){this.subscription=new ve,this.initialized=!1,this.zone=k(Z),this.pendingTasks=k(Zo)}initialize(){if(this.initialized)return;this.initialized=!0;let t=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(t=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Z.assertNotInAngularZone(),queueMicrotask(()=>{t!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(t),t=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Z.assertInAngularZone(),t??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var Qj=(()=>{let e=class e{constructor(){this.appRef=k(Ln),this.taskService=k(Zo),this.ngZone=k(Z),this.zonelessEnabled=k(hb),this.disableScheduling=k(yE,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new ve,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(_h):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(k(wE,{optional:!0})??!1),this.cancelScheduledCallback=null,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof vh||!this.zoneIsDefined)}notify(t){if(!this.zonelessEnabled&&t===5)return;switch(t){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 7:{this.appRef.deferredDirtyFlags|=8;break}case 9:case 8:case 6:case 10:default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;let n=this.useMicrotaskScheduler?Rx:fS;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>n(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>n(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(_h+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let t=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(n){throw this.taskService.remove(t),n}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Rx(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(t)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let t=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(t)}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function Kj(){return typeof $localize<"u"&&$localize.locale||Oh}var Lc=new R("",{providedIn:"root",factory:()=>k(Lc,gt.Optional|gt.SkipSelf)||Kj()});var Rh=new R("");function Zu(i){return!i.moduleRef}function Zj(i){let e=Zu(i)?i.r3Injector:i.moduleRef.injector,r=e.get(Z);return r.run(()=>{Zu(i)?i.r3Injector.resolveInjectorInitializers():i.moduleRef.resolveInjectorInitializers();let t=e.get(yn,null),n;if(r.runOutsideAngular(()=>{n=r.onError.subscribe({next:o=>{t.handleError(o)}})}),Zu(i)){let o=()=>e.destroy(),a=i.platformInjector.get(Rh);a.add(o),e.onDestroy(()=>{n.unsubscribe(),a.delete(o)})}else{let o=()=>i.moduleRef.destroy(),a=i.platformInjector.get(Rh);a.add(o),i.moduleRef.onDestroy(()=>{nh(i.allPlatformModules,i.moduleRef),n.unsubscribe(),a.delete(o)})}return Uj(t,r,()=>{let o=e.get(oI);return o.runInitializers(),o.donePromise.then(()=>{let a=e.get(Lc,Oh);if(Dj(a||Oh),Zu(i)){let s=e.get(Ln);return i.rootComponent!==void 0&&s.bootstrap(i.rootComponent),s}else return Xj(i.moduleRef,i.allPlatformModules),i.moduleRef})})})}function Xj(i,e){let r=i.injector.get(Ln);if(i._bootstrapComponents.length>0)i._bootstrapComponents.forEach(t=>r.bootstrap(t));else if(i.instance.ngDoBootstrap)i.instance.ngDoBootstrap(r);else throw new J(-403,!1);e.push(i)}var sI=(()=>{let e=class e{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,n){let o=n?.scheduleInRootZone,a=()=>s2(n?.ngZone,rt(j({},aI({eventCoalescing:n?.ngZoneEventCoalescing,runCoalescing:n?.ngZoneRunCoalescing})),{scheduleInRootZone:o})),s=n?.ignoreChangesOutsideZone,l=[qj({ngZoneFactory:a,ignoreChangesOutsideZone:s}),{provide:el,useExisting:Qj}],u=HV(t.moduleType,this.injector,l);return Zj({moduleRef:u,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(t,n=[]){let o=rI({},n);return Wj(this.injector,o,t).then(a=>this.bootstrapModuleFactory(a,o))}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new J(404,!1);this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());let t=this._injector.get(Rh,null);t&&(t.forEach(n=>n()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}};e.\u0275fac=function(n){return new(n||e)(M(Pe))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"platform"});let i=e;return i})(),gc=null,lI=new R("");function Jj(i){if(gc&&!gc.get(lI,!1))throw new J(400,!1);jj(),gc=i;let e=i.get(sI);return i3(i),e}function xb(i,e,r=[]){let t=`Platform: ${e}`,n=new R(t);return(o=[])=>{let a=cI();if(!a||a.injector.get(lI,!1)){let s=[...r,...o,{provide:n,useValue:!0}];i?i(s):Jj(e3(s,t))}return t3(n)}}function e3(i=[],e){return Pe.create({name:e,providers:[{provide:Bh,useValue:"platform"},{provide:Rh,useValue:new Set([()=>gc=null])},...i]})}function t3(i){let e=cI();if(!e)throw new J(401,!1);return e}function cI(){return gc?.get(sI)??null}function i3(i){i.get(Zv,null)?.forEach(r=>r())}var he=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=n3;let i=e;return i})();function n3(i){return o3(Vi(),Ue(),(i&16)===16)}function o3(i,e,r){if(Uh(i)&&!r){let t=ra(i.index,e);return new Xa(t,t)}else if(i.type&175){let t=e[Fn];return new Xa(t,e)}return null}var yv=class{constructor(){}supports(e){return PE(e)}create(e){return new wv(e)}},r3=(i,e)=>e,wv=class{constructor(e){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||r3}forEachItem(e){let r;for(r=this._itHead;r!==null;r=r._next)e(r)}forEachOperation(e){let r=this._itHead,t=this._removalsHead,n=0,o=null;for(;r||t;){let a=!t||r&&r.currentIndex{a=this._trackByFn(n,s),r===null||!Object.is(r.trackById,a)?(r=this._mismatch(r,s,a,n),t=!0):(t&&(r=this._verifyReinsertion(r,s,a,n)),Object.is(r.item,s)||this._addIdentityChange(r,s)),r=r._next,n++}),this.length=n;return this._truncate(r),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,r,t,n){let o;return e===null?o=this._itTail:(o=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(t,null),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._reinsertAfter(e,o,n)):(e=this._linkedRecords===null?null:this._linkedRecords.get(t,n),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._moveAfter(e,o,n)):e=this._addAfter(new Cv(r,t),o,n)),e}_verifyReinsertion(e,r,t,n){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(t,null);return o!==null?e=this._reinsertAfter(o,e._prev,n):e.currentIndex!=n&&(e.currentIndex=n,this._addToMoves(e,n)),e}_truncate(e){for(;e!==null;){let r=e._next;this._addToRemovals(this._unlink(e)),e=r}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,r,t){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let n=e._prevRemoved,o=e._nextRemoved;return n===null?this._removalsHead=o:n._nextRemoved=o,o===null?this._removalsTail=n:o._prevRemoved=n,this._insertAfter(e,r,t),this._addToMoves(e,t),e}_moveAfter(e,r,t){return this._unlink(e),this._insertAfter(e,r,t),this._addToMoves(e,t),e}_addAfter(e,r,t){return this._insertAfter(e,r,t),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,r,t){let n=r===null?this._itHead:r._next;return e._next=n,e._prev=r,n===null?this._itTail=e:n._prev=e,r===null?this._itHead=e:r._next=e,this._linkedRecords===null&&(this._linkedRecords=new Ph),this._linkedRecords.put(e),e.currentIndex=t,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let r=e._prev,t=e._next;return r===null?this._itHead=t:r._next=t,t===null?this._itTail=r:t._prev=r,e}_addToMoves(e,r){return e.previousIndex===r||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Ph),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,r){return e.item=r,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},Cv=class{constructor(e,r){this.item=e,this.trackById=r,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},xv=class{constructor(){this._head=null,this._tail=null}add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,r){let t;for(t=this._head;t!==null;t=t._nextDup)if((r===null||r<=t.currentIndex)&&Object.is(t.trackById,e))return t;return null}remove(e){let r=e._prevDup,t=e._nextDup;return r===null?this._head=t:r._nextDup=t,t===null?this._tail=r:t._prevDup=r,this._head===null}},Ph=class{constructor(){this.map=new Map}put(e){let r=e.trackById,t=this.map.get(r);t||(t=new xv,this.map.set(r,t)),t.add(e)}get(e,r){let t=e,n=this.map.get(t);return n?n.get(e,r):null}remove(e){let r=e.trackById;return this.map.get(r).remove(e)&&this.map.delete(r),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function aD(i,e,r){let t=i.previousIndex;if(t===null)return t;let n=0;return r&&t{if(r&&r.key===n)this._maybeAddToChanges(r,t),this._appendAfter=r,r=r._next;else{let o=this._getOrCreateRecordForKey(n,t);r=this._insertBeforeOrAppend(r,o)}}),r){r._prev&&(r._prev._next=null),this._removalsHead=r;for(let t=r;t!==null;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,r){if(e){let t=e._prev;return r._next=e,r._prev=t,e._prev=r,t&&(t._next=r),e===this._mapHead&&(this._mapHead=r),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=r,r._prev=this._appendAfter):this._mapHead=r,this._appendAfter=r,null}_getOrCreateRecordForKey(e,r){if(this._records.has(e)){let n=this._records.get(e);this._maybeAddToChanges(n,r);let o=n._prev,a=n._next;return o&&(o._next=a),a&&(a._prev=o),n._next=null,n._prev=null,n}let t=new Ev(e);return this._records.set(e,t),t.currentValue=r,this._addToAdditions(t),t}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;e!==null;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;e!=null;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,r){Object.is(r,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=r,this._addToChanges(e))}_addToAdditions(e){this._additionsHead===null?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){this._changesHead===null?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,r){e instanceof Map?e.forEach(r):Object.keys(e).forEach(t=>r(e[t],t))}},Ev=class{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}};function sD(){return new Xo([new yv])}var Xo=(()=>{let e=class e{constructor(t){this.factories=t}static create(t,n){if(n!=null){let o=n.factories.slice();t=t.concat(o)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>e.create(t,n||sD()),deps:[[e,new Do,new to]]}}find(t){let n=this.factories.find(o=>o.supports(t));if(n!=null)return n;throw new J(901,!1)}};e.\u0275prov=V({token:e,providedIn:"root",factory:sD});let i=e;return i})();function lD(){return new pm([new Dv])}var pm=(()=>{let e=class e{constructor(t){this.factories=t}static create(t,n){if(n){let o=n.factories.slice();t=t.concat(o)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>e.create(t,n||lD()),deps:[[e,new Do,new to]]}}find(t){let n=this.factories.find(o=>o.supports(t));if(n)return n;throw new J(901,!1)}};e.\u0275prov=V({token:e,providedIn:"root",factory:lD});let i=e;return i})();var dI=xb(null,"core",[]),uI=(()=>{let e=class e{constructor(t){}};e.\u0275fac=function(n){return new(n||e)(M(Ln))},e.\u0275mod=te({type:e}),e.\u0275inj=ee({});let i=e;return i})();function Y(i){return typeof i=="boolean"?i:i!=null&&i!=="false"}function ni(i,e=NaN){return!isNaN(parseFloat(i))&&!isNaN(Number(i))?Number(i):e}function Mr(i,e){So("NgSignals");let r=Fg(i);return e?.equal&&(r[Kn].equal=e.equal),r}function Dn(i){let e=yt(null);try{return i()}finally{yt(e)}}var a3=new R("",{providedIn:"root",factory:()=>k(s3)}),s3=(()=>{let e=class e{};e.\u0275prov=V({token:e,providedIn:"root",factory:()=>new Iv});let i=e;return i})(),Iv=class{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=k(Zo),this.taskId=null}scheduleEffect(e){if(this.enqueue(e),this.taskId===null){let r=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(r),this.taskId=null})}}enqueue(e){let r=e.creationZone;this.queues.has(r)||this.queues.set(r,new Set);let t=this.queues.get(r);t.has(e)||(this.queuedEffectCount++,t.add(e))}flush(){for(;this.queuedEffectCount>0;)for(let[e,r]of this.queues)e===null?this.flushQueue(r):e.run(()=>this.flushQueue(r))}flushQueue(e){for(let r of e)e.delete(r),this.queuedEffectCount--,r.run()}},Mv=class{constructor(e,r,t,n,o,a){this.scheduler=e,this.effectFn=r,this.creationZone=t,this.injector=o,this.watcher=UC(s=>this.runEffect(s),()=>this.schedule(),a),this.unregisterOnDestroy=n?.onDestroy(()=>this.destroy())}runEffect(e){try{this.effectFn(e)}catch(r){this.injector.get(yn,null,{optional:!0})?.handleError(r)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}};function Db(i,e){So("NgSignals"),!e?.injector&&Fv(Db);let r=e?.injector??k(Pe),t=e?.manualCleanup!==!0?r.get(Kh):null,n=new Mv(r.get(a3),i,typeof Zone>"u"?null:Zone.current,t,r,e?.allowSignalWrites??!1),o=r.get(he,null,{optional:!0});return!o||!(o._lView[Ze]&8)?n.watcher.notify():(o._lView[Ju]??=[]).push(n.watcher.notify),n}function hI(i){let e=ea(i);if(!e)return null;let r=new tl(e);return{get selector(){return r.selector},get type(){return r.componentType},get inputs(){return r.inputs},get outputs(){return r.outputs},get ngContentSelectors(){return r.ngContentSelectors},get isStandalone(){return e.standalone},get isSignal(){return e.signals}}}var bI=null;function Jo(){return bI}function yI(i){bI??=i}var fm=class{};var se=new R(""),Rb=(()=>{let e=class e{historyGo(t){throw new Error("")}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:()=>k(c3),providedIn:"platform"});let i=e;return i})(),wI=new R(""),c3=(()=>{let e=class e extends Rb{constructor(){super(),this._doc=k(se),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Jo().getBaseHref(this._doc)}onPopState(t){let n=Jo().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",t,!1),()=>n.removeEventListener("popstate",t)}onHashChange(t){let n=Jo().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",t,!1),()=>n.removeEventListener("hashchange",t)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(t){this._location.pathname=t}pushState(t,n,o){this._history.pushState(t,n,o)}replaceState(t,n,o){this._history.replaceState(t,n,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:()=>new e,providedIn:"platform"});let i=e;return i})();function Pb(i,e){if(i.length==0)return e;if(e.length==0)return i;let r=0;return i.endsWith("/")&&r++,e.startsWith("/")&&r++,r==2?i+e.substring(1):r==1?i+e:i+"/"+e}function mI(i){let e=i.match(/#|\?|$/),r=e&&e.index||i.length,t=r-(i[r-1]==="/"?1:0);return i.slice(0,t)+i.slice(r)}function Tr(i){return i&&i[0]!=="?"?"?"+i:i}var kr=(()=>{let e=class e{historyGo(t){throw new Error("")}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:()=>k(Fb),providedIn:"root"});let i=e;return i})(),CI=new R(""),Fb=(()=>{let e=class e extends kr{constructor(t,n){super(),this._platformLocation=t,this._removeListenerFns=[],this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??k(se).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return Pb(this._baseHref,t)}path(t=!1){let n=this._platformLocation.pathname+Tr(this._platformLocation.search),o=this._platformLocation.hash;return o&&t?`${n}${o}`:n}pushState(t,n,o,a){let s=this.prepareExternalUrl(o+Tr(a));this._platformLocation.pushState(t,n,s)}replaceState(t,n,o,a){let s=this.prepareExternalUrl(o+Tr(a));this._platformLocation.replaceState(t,n,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}};e.\u0275fac=function(n){return new(n||e)(M(Rb),M(CI,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),xI=(()=>{let e=class e extends kr{constructor(t,n){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],n!=null&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let n=this._platformLocation.hash??"#";return n.length>0?n.substring(1):n}prepareExternalUrl(t){let n=Pb(this._baseHref,t);return n.length>0?"#"+n:n}pushState(t,n,o,a){let s=this.prepareExternalUrl(o+Tr(a));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,n,s)}replaceState(t,n,o,a){let s=this.prepareExternalUrl(o+Tr(a));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,n,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}};e.\u0275fac=function(n){return new(n||e)(M(Rb),M(CI,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),er=(()=>{let e=class e{constructor(t){this._subject=new T,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=t;let n=this._locationStrategy.getBaseHref();this._basePath=h3(mI(pI(n))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,n=""){return this.path()==this.normalize(t+Tr(n))}normalize(t){return e.stripTrailingSlash(u3(this._basePath,pI(t)))}prepareExternalUrl(t){return t&&t[0]!=="/"&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,n="",o=null){this._locationStrategy.pushState(o,"",t,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Tr(n)),o)}replaceState(t,n="",o=null){this._locationStrategy.replaceState(o,"",t,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Tr(n)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription??=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)}),()=>{let n=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(n,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",n){this._urlChangeListeners.forEach(o=>o(t,n))}subscribe(t,n,o){return this._subject.subscribe({next:t,error:n,complete:o})}};e.normalizeQueryParams=Tr,e.joinWithSlash=Pb,e.stripTrailingSlash=mI,e.\u0275fac=function(n){return new(n||e)(M(kr))},e.\u0275prov=V({token:e,factory:()=>d3(),providedIn:"root"});let i=e;return i})();function d3(){return new er(M(kr))}function u3(i,e){if(!i||!e.startsWith(i))return e;let r=e.substring(i.length);return r===""||["/",";","?","#"].includes(r[0])?r:e}function pI(i){return i.replace(/\/index.html$/,"")}function h3(i){if(new RegExp("^(https?:)?//").test(i)){let[,r]=i.split(/\/\/[^\/]+/);return r}return i}function vm(i,e){e=encodeURIComponent(e);for(let r of i.split(";")){let t=r.indexOf("="),[n,o]=t==-1?[r,""]:[r.slice(0,t),r.slice(t+1)];if(n.trim()===e)return decodeURIComponent(o)}return null}var Eb=/\s+/,fI=[],Sn=(()=>{let e=class e{constructor(t,n){this._ngEl=t,this._renderer=n,this.initialClasses=fI,this.stateMap=new Map}set klass(t){this.initialClasses=t!=null?t.trim().split(Eb):fI}set ngClass(t){this.rawClass=typeof t=="string"?t.trim().split(Eb):t}ngDoCheck(){for(let n of this.initialClasses)this._updateState(n,!0);let t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(let n of t)this._updateState(n,!0);else if(t!=null)for(let n of Object.keys(t))this._updateState(n,!!t[n]);this._applyStateDiff()}_updateState(t,n){let o=this.stateMap.get(t);o!==void 0?(o.enabled!==n&&(o.changed=!0,o.enabled=n),o.touched=!0):this.stateMap.set(t,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(let t of this.stateMap){let n=t[0],o=t[1];o.changed?(this._toggleClass(n,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(n,!1),this.stateMap.delete(n)),o.touched=!1}}_toggleClass(t,n){t=t.trim(),t.length>0&&t.split(Eb).forEach(o=>{n?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}};e.\u0275fac=function(n){return new(n||e)(m(q),m(xr))},e.\u0275dir=L({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0});let i=e;return i})();var Ib=class{constructor(e,r,t,n){this.$implicit=e,this.ngForOf=r,this.index=t,this.count=n}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},We=(()=>{let e=class e{set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}constructor(t,n,o){this._viewContainer=t,this._template=n,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let t=this._ngForOf;if(!this._differ&&t)if(0)try{}catch{}else this._differ=this._differs.find(t).create(this.ngForTrackBy)}if(this._differ){let t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){let n=this._viewContainer;t.forEachOperation((o,a,s)=>{if(o.previousIndex==null)n.createEmbeddedView(this._template,new Ib(o.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)n.remove(a===null?void 0:a);else if(a!==null){let l=n.get(a);n.move(l,s),gI(l,o)}});for(let o=0,a=n.length;o{let a=n.get(o.currentIndex);gI(a,o)})}static ngTemplateContextGuard(t,n){return!0}};e.\u0275fac=function(n){return new(n||e)(m(Ct),m(ct),m(Xo))},e.\u0275dir=L({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let i=e;return i})();function gI(i,e){i.context.$implicit=e.item}var me=(()=>{let e=class e{constructor(t,n){this._viewContainer=t,this._context=new Mb,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){_I("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){_I("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,n){return!0}};e.\u0275fac=function(n){return new(n||e)(m(Ct),m(ct))},e.\u0275dir=L({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let i=e;return i})(),Mb=class{constructor(){this.$implicit=null,this.ngIf=null}};function _I(i,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${i} must be a TemplateRef, but received '${hn(e)}'.`)}var gm=class{constructor(e,r){this._viewContainerRef=e,this._templateRef=r,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}},ul=(()=>{let e=class e{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,this._caseCount===0&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews.push(t)}_matchCase(t){let n=t===this._ngSwitch;return this._lastCasesMatched||=n,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),n}_updateDefaultCases(t){if(this._defaultViews.length>0&&t!==this._defaultUsed){this._defaultUsed=t;for(let n of this._defaultViews)n.enforceState(t)}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0});let i=e;return i})(),bm=(()=>{let e=class e{constructor(t,n,o){this.ngSwitch=o,o._addCase(),this._view=new gm(t,n)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}};e.\u0275fac=function(n){return new(n||e)(m(Ct),m(ct),m(ul,9))},e.\u0275dir=L({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0});let i=e;return i})(),DI=(()=>{let e=class e{constructor(t,n,o){o._addDefault(new gm(t,n))}};e.\u0275fac=function(n){return new(n||e)(m(Ct),m(ct),m(ul,9))},e.\u0275dir=L({type:e,selectors:[["","ngSwitchDefault",""]],standalone:!0});let i=e;return i})();var SI=(()=>{let e=class e{constructor(t,n,o){this._ngEl=t,this._differs=n,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){let t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,n){let[o,a]=t.split("."),s=o.indexOf("-")===-1?void 0:Yo.DashCase;n!=null?this._renderer.setStyle(this._ngEl.nativeElement,o,a?`${n}${a}`:n,s):this._renderer.removeStyle(this._ngEl.nativeElement,o,s)}_applyChanges(t){t.forEachRemovedItem(n=>this._setStyle(n.key,null)),t.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),t.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}};e.\u0275fac=function(n){return new(n||e)(m(q),m(pm),m(xr))},e.\u0275dir=L({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0});let i=e;return i})(),ym=(()=>{let e=class e{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(t){if(this._shouldRecreateView(t)){let n=this._viewContainerRef;if(this._viewRef&&n.remove(n.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=n.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(t){return!!t.ngTemplateOutlet||!!t.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(t,n,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,n,o):!1,get:(t,n,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,n,o)}})}};e.\u0275fac=function(n){return new(n||e)(m(Ct))},e.\u0275dir=L({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Qe]});let i=e;return i})();function m3(i,e){return new J(2100,!1)}var Tb=class{createSubscription(e,r){return Dn(()=>e.subscribe({next:r,error:t=>{throw t}}))}dispose(e){Dn(()=>e.unsubscribe())}},kb=class{createSubscription(e,r){return e.then(r,t=>{throw t})}dispose(e){}},p3=new kb,f3=new Tb,EI=(()=>{let e=class e{constructor(t){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=t}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(t){if(!this._obj){if(t)try{this.markForCheckOnValueUpdate=!1,this._subscribe(t)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,n=>this._updateLatestValue(t,n))}_selectStrategy(t){if(la(t))return p3;if(Cb(t))return f3;throw m3(e,t)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,n){t===this._obj&&(this._latestValue=n,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}};e.\u0275fac=function(n){return new(n||e)(m(he,16))},e.\u0275pipe=Qo({name:"async",type:e,pure:!1,standalone:!0});let i=e;return i})();function g3(i,e){return{key:i,value:e}}var II=(()=>{let e=class e{constructor(t){this.differs=t,this.keyValues=[],this.compareFn=vI}transform(t,n=vI){if(!t||!(t instanceof Map)&&typeof t!="object")return null;this.differ??=this.differs.find(t).create();let o=this.differ.diff(t),a=n!==this.compareFn;return o&&(this.keyValues=[],o.forEachItem(s=>{this.keyValues.push(g3(s.key,s.currentValue))})),(o||a)&&(this.keyValues.sort(n),this.compareFn=n),this.keyValues}};e.\u0275fac=function(n){return new(n||e)(m(pm,16))},e.\u0275pipe=Qo({name:"keyvalue",type:e,pure:!1,standalone:!0});let i=e;return i})();function vI(i,e){let r=i.key,t=e.key;if(r===t)return 0;if(r===void 0)return 1;if(t===void 0)return-1;if(r===null)return 1;if(t===null)return-1;if(typeof r=="string"&&typeof t=="string")return r{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({});let i=e;return i})(),Nb="browser",_3="server";function Lb(i){return i===Nb}function wm(i){return i===_3}var MI=(()=>{let e=class e{};e.\u0275prov=V({token:e,providedIn:"root",factory:()=>Lb(k(oo))?new Ab(k(se),window):new Ob});let i=e;return i})(),Ab=class{constructor(e,r){this.document=e,this.window=r,this.offset=()=>[0,0]}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(e){this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){let r=v3(this.document,e);r&&(this.scrollToElement(r),r.focus())}setHistoryScrollRestoration(e){this.window.history.scrollRestoration=e}scrollToElement(e){let r=e.getBoundingClientRect(),t=r.left+this.window.pageXOffset,n=r.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(t-o[0],n-o[1])}};function v3(i,e){let r=i.getElementById(e)||i.getElementsByName(e)[0];if(r)return r;if(typeof i.createTreeWalker=="function"&&i.body&&typeof i.body.attachShadow=="function"){let t=i.createTreeWalker(i.body,NodeFilter.SHOW_ELEMENT),n=t.currentNode;for(;n;){let o=n.shadowRoot;if(o){let a=o.getElementById(e)||o.querySelector(`[name="${e}"]`);if(a)return a}n=t.nextNode()}}return null}var Ob=class{setOffset(e){}getScrollPosition(){return[0,0]}scrollToPosition(e){}scrollToAnchor(e){}setHistoryScrollRestoration(e){}},dl=class{};var jc=class{},xm=class{},Eo=class i{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(` -`).forEach(r=>{let t=r.indexOf(":");if(t>0){let n=r.slice(0,t),o=n.toLowerCase(),a=r.slice(t+1).trim();this.maybeSetNormalizedName(n,o),this.headers.has(o)?this.headers.get(o).push(a):this.headers.set(o,[a])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((r,t)=>{this.setHeaderEntries(t,r)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([r,t])=>{this.setHeaderEntries(r,t)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let r=this.headers.get(e.toLowerCase());return r&&r.length>0?r[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,r){return this.clone({name:e,value:r,op:"a"})}set(e,r){return this.clone({name:e,value:r,op:"s"})}delete(e,r){return this.clone({name:e,value:r,op:"d"})}maybeSetNormalizedName(e,r){this.normalizedNames.has(r)||this.normalizedNames.set(r,e)}init(){this.lazyInit&&(this.lazyInit instanceof i?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(r=>{this.headers.set(r,e.headers.get(r)),this.normalizedNames.set(r,e.normalizedNames.get(r))})}clone(e){let r=new i;return r.lazyInit=this.lazyInit&&this.lazyInit instanceof i?this.lazyInit:this,r.lazyUpdate=(this.lazyUpdate||[]).concat([e]),r}applyUpdate(e){let r=e.name.toLowerCase();switch(e.op){case"a":case"s":let t=e.value;if(typeof t=="string"&&(t=[t]),t.length===0)return;this.maybeSetNormalizedName(e.name,r);let n=(e.op==="a"?this.headers.get(r):void 0)||[];n.push(...t),this.headers.set(r,n);break;case"d":let o=e.value;if(!o)this.headers.delete(r),this.normalizedNames.delete(r);else{let a=this.headers.get(r);if(!a)return;a=a.filter(s=>o.indexOf(s)===-1),a.length===0?(this.headers.delete(r),this.normalizedNames.delete(r)):this.headers.set(r,a)}break}}setHeaderEntries(e,r){let t=(Array.isArray(r)?r:[r]).map(o=>o.toString()),n=e.toLowerCase();this.headers.set(n,t),this.maybeSetNormalizedName(e,n)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(r=>e(this.normalizedNames.get(r),this.headers.get(r)))}};var jb=class{encodeKey(e){return TI(e)}encodeValue(e){return TI(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function b3(i,e){let r=new Map;return i.length>0&&i.replace(/^\?/,"").split("&").forEach(n=>{let o=n.indexOf("="),[a,s]=o==-1?[e.decodeKey(n),""]:[e.decodeKey(n.slice(0,o)),e.decodeValue(n.slice(o+1))],l=r.get(a)||[];l.push(s),r.set(a,l)}),r}var y3=/%(\d[a-f0-9])/gi,w3={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function TI(i){return encodeURIComponent(i).replace(y3,(e,r)=>w3[r]??e)}function Cm(i){return`${i}`}var da=class i{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new jb,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=b3(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(r=>{let t=e.fromObject[r],n=Array.isArray(t)?t.map(Cm):[Cm(t)];this.map.set(r,n)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let r=this.map.get(e);return r?r[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,r){return this.clone({param:e,value:r,op:"a"})}appendAll(e){let r=[];return Object.keys(e).forEach(t=>{let n=e[t];Array.isArray(n)?n.forEach(o=>{r.push({param:t,value:o,op:"a"})}):r.push({param:t,value:n,op:"a"})}),this.clone(r)}set(e,r){return this.clone({param:e,value:r,op:"s"})}delete(e,r){return this.clone({param:e,value:r,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let r=this.encoder.encodeKey(e);return this.map.get(e).map(t=>r+"="+this.encoder.encodeValue(t)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let r=new i({encoder:this.encoder});return r.cloneFrom=this.cloneFrom||this,r.updates=(this.updates||[]).concat(e),r}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let r=(e.op==="a"?this.map.get(e.param):void 0)||[];r.push(Cm(e.value)),this.map.set(e.param,r);break;case"d":if(e.value!==void 0){let t=this.map.get(e.param)||[],n=t.indexOf(Cm(e.value));n!==-1&&t.splice(n,1),t.length>0?this.map.set(e.param,t):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var Bb=class{constructor(){this.map=new Map}set(e,r){return this.map.set(e,r),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function C3(i){switch(i){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function kI(i){return typeof ArrayBuffer<"u"&&i instanceof ArrayBuffer}function AI(i){return typeof Blob<"u"&&i instanceof Blob}function OI(i){return typeof FormData<"u"&&i instanceof FormData}function x3(i){return typeof URLSearchParams<"u"&&i instanceof URLSearchParams}var Vc=class i{constructor(e,r,t,n){this.url=r,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let o;if(C3(this.method)||n?(this.body=t!==void 0?t:null,o=n):o=t,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new Eo,this.context??=new Bb,!this.params)this.params=new da,this.urlWithParams=r;else{let a=this.params.toString();if(a.length===0)this.urlWithParams=r;else{let s=r.indexOf("?"),l=s===-1?"?":sC.set(D,e.setHeaders[D]),u)),e.setParams&&(f=Object.keys(e.setParams).reduce((C,D)=>C.set(D,e.setParams[D]),f)),new i(r,t,a,{params:f,headers:u,context:v,reportProgress:l,responseType:n,withCredentials:s,transferCache:o})}},ua=function(i){return i[i.Sent=0]="Sent",i[i.UploadProgress=1]="UploadProgress",i[i.ResponseHeader=2]="ResponseHeader",i[i.DownloadProgress=3]="DownloadProgress",i[i.Response=4]="Response",i[i.User=5]="User",i}(ua||{}),Bc=class{constructor(e,r=200,t="OK"){this.headers=e.headers||new Eo,this.status=e.status!==void 0?e.status:r,this.statusText=e.statusText||t,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},Dm=class i extends Bc{constructor(e={}){super(e),this.type=ua.ResponseHeader}clone(e={}){return new i({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},zc=class i extends Bc{constructor(e={}){super(e),this.type=ua.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new i({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},ca=class extends Bc{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},LI=200,D3=204;function Vb(i,e){return{body:e,headers:i.headers,context:i.context,observe:i.observe,params:i.params,reportProgress:i.reportProgress,responseType:i.responseType,withCredentials:i.withCredentials,transferCache:i.transferCache}}var Uc=(()=>{let e=class e{constructor(t){this.handler=t}request(t,n,o={}){let a;if(t instanceof Vc)a=t;else{let u;o.headers instanceof Eo?u=o.headers:u=new Eo(o.headers);let f;o.params&&(o.params instanceof da?f=o.params:f=new da({fromObject:o.params})),a=new Vc(t,n,o.body!==void 0?o.body:null,{headers:u,context:o.context,params:f,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let s=oe(a).pipe(hr(u=>this.handler.handle(u)));if(t instanceof Vc||o.observe==="events")return s;let l=s.pipe(Ye(u=>u instanceof zc));switch(o.observe||"body"){case"body":switch(a.responseType){case"arraybuffer":return l.pipe(ue(u=>{if(u.body!==null&&!(u.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return u.body}));case"blob":return l.pipe(ue(u=>{if(u.body!==null&&!(u.body instanceof Blob))throw new Error("Response is not a Blob.");return u.body}));case"text":return l.pipe(ue(u=>{if(u.body!==null&&typeof u.body!="string")throw new Error("Response is not a string.");return u.body}));case"json":default:return l.pipe(ue(u=>u.body))}case"response":return l;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(t,n={}){return this.request("DELETE",t,n)}get(t,n={}){return this.request("GET",t,n)}head(t,n={}){return this.request("HEAD",t,n)}jsonp(t,n){return this.request("JSONP",t,{params:new da().append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,n={}){return this.request("OPTIONS",t,n)}patch(t,n,o={}){return this.request("PATCH",t,Vb(o,n))}post(t,n,o={}){return this.request("POST",t,Vb(o,n))}put(t,n,o={}){return this.request("PUT",t,Vb(o,n))}};e.\u0275fac=function(n){return new(n||e)(M(jc))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),S3=/^\)\]\}',?\n/,E3="X-Request-URL";function RI(i){if(i.url)return i.url;let e=E3.toLocaleLowerCase();return i.headers.get(e)}var I3=(()=>{let e=class e{constructor(){this.fetchImpl=k(zb,{optional:!0})?.fetch??((...t)=>globalThis.fetch(...t)),this.ngZone=k(Z)}handle(t){return new Re(n=>{let o=new AbortController;return this.doRequest(t,o.signal,n).then(Ub,a=>n.error(new ca({error:a}))),()=>o.abort()})}doRequest(t,n,o){return W(this,null,function*(){let a=this.createRequestInit(t),s;try{let S=this.ngZone.runOutsideAngular(()=>this.fetchImpl(t.urlWithParams,j({signal:n},a)));M3(S),o.next({type:ua.Sent}),s=yield S}catch(S){o.error(new ca({error:S,status:S.status??0,statusText:S.statusText,url:t.urlWithParams,headers:S.headers}));return}let l=new Eo(s.headers),u=s.statusText,f=RI(s)??t.urlWithParams,v=s.status,C=null;if(t.reportProgress&&o.next(new Dm({headers:l,status:v,statusText:u,url:f})),s.body){let S=s.headers.get("content-length"),P=[],z=s.body.getReader(),O=0,de,ht,it=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>W(this,null,function*(){for(;;){let{done:Ft,value:Wt}=yield z.read();if(Ft)break;if(P.push(Wt),O+=Wt.length,t.reportProgress){ht=t.responseType==="text"?(ht??"")+(de??=new TextDecoder).decode(Wt,{stream:!0}):void 0;let wi=()=>o.next({type:ua.DownloadProgress,total:S?+S:void 0,loaded:O,partialText:ht});it?it.run(wi):wi()}}}));let Ti=this.concatChunks(P,O);try{let Ft=s.headers.get("Content-Type")??"";C=this.parseBody(t,Ti,Ft)}catch(Ft){o.error(new ca({error:Ft,headers:new Eo(s.headers),status:s.status,statusText:s.statusText,url:RI(s)??t.urlWithParams}));return}}v===0&&(v=C?LI:0),v>=200&&v<300?(o.next(new zc({body:C,headers:l,status:v,statusText:u,url:f})),o.complete()):o.error(new ca({error:C,headers:l,status:v,statusText:u,url:f}))})}parseBody(t,n,o){switch(t.responseType){case"json":let a=new TextDecoder().decode(n).replace(S3,"");return a===""?null:JSON.parse(a);case"text":return new TextDecoder().decode(n);case"blob":return new Blob([n],{type:o});case"arraybuffer":return n.buffer}}createRequestInit(t){let n={},o=t.withCredentials?"include":void 0;if(t.headers.forEach((a,s)=>n[a]=s.join(",")),t.headers.has("Accept")||(n.Accept="application/json, text/plain, */*"),!t.headers.has("Content-Type")){let a=t.detectContentTypeHeader();a!==null&&(n["Content-Type"]=a)}return{body:t.serializeBody(),method:t.method,headers:n,credentials:o}}concatChunks(t,n){let o=new Uint8Array(n),a=0;for(let s of t)o.set(s,a),a+=s.length;return o}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),zb=class{};function Ub(){}function M3(i){i.then(Ub,Ub)}function VI(i,e){return e(i)}function T3(i,e){return(r,t)=>e.intercept(r,{handle:n=>i(n,t)})}function k3(i,e,r){return(t,n)=>io(r,()=>e(t,o=>i(o,n)))}var A3=new R(""),Hb=new R(""),O3=new R(""),jI=new R("",{providedIn:"root",factory:()=>!0});function R3(){let i=null;return(e,r)=>{i===null&&(i=(k(A3,{optional:!0})??[]).reduceRight(T3,VI));let t=k(Zo);if(k(jI)){let o=t.add();return i(e,r).pipe(zo(()=>t.remove(o)))}else return i(e,r)}}var PI=(()=>{let e=class e extends jc{constructor(t,n){super(),this.backend=t,this.injector=n,this.chain=null,this.pendingTasks=k(Zo),this.contributeToStability=k(jI)}handle(t){if(this.chain===null){let n=Array.from(new Set([...this.injector.get(Hb),...this.injector.get(O3,[])]));this.chain=n.reduceRight((o,a)=>k3(o,a,this.injector),VI)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(t,o=>this.backend.handle(o)).pipe(zo(()=>this.pendingTasks.remove(n)))}else return this.chain(t,n=>this.backend.handle(n))}};e.\u0275fac=function(n){return new(n||e)(M(xm),M(qi))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();var P3=/^\)\]\}',?\n/;function F3(i){return"responseURL"in i&&i.responseURL?i.responseURL:/^X-Request-URL:/m.test(i.getAllResponseHeaders())?i.getResponseHeader("X-Request-URL"):null}var FI=(()=>{let e=class e{constructor(t){this.xhrFactory=t}handle(t){if(t.method==="JSONP")throw new J(-2800,!1);let n=this.xhrFactory;return(n.\u0275loadImpl?Kt(n.\u0275loadImpl()):oe(null)).pipe(Tt(()=>new Re(a=>{let s=n.build();if(s.open(t.method,t.urlWithParams),t.withCredentials&&(s.withCredentials=!0),t.headers.forEach((z,O)=>s.setRequestHeader(z,O.join(","))),t.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){let z=t.detectContentTypeHeader();z!==null&&s.setRequestHeader("Content-Type",z)}if(t.responseType){let z=t.responseType.toLowerCase();s.responseType=z!=="json"?z:"text"}let l=t.serializeBody(),u=null,f=()=>{if(u!==null)return u;let z=s.statusText||"OK",O=new Eo(s.getAllResponseHeaders()),de=F3(s)||t.url;return u=new Dm({headers:O,status:s.status,statusText:z,url:de}),u},v=()=>{let{headers:z,status:O,statusText:de,url:ht}=f(),it=null;O!==D3&&(it=typeof s.response>"u"?s.responseText:s.response),O===0&&(O=it?LI:0);let Ti=O>=200&&O<300;if(t.responseType==="json"&&typeof it=="string"){let Ft=it;it=it.replace(P3,"");try{it=it!==""?JSON.parse(it):null}catch(Wt){it=Ft,Ti&&(Ti=!1,it={error:Wt,text:it})}}Ti?(a.next(new zc({body:it,headers:z,status:O,statusText:de,url:ht||void 0})),a.complete()):a.error(new ca({error:it,headers:z,status:O,statusText:de,url:ht||void 0}))},C=z=>{let{url:O}=f(),de=new ca({error:z,status:s.status||0,statusText:s.statusText||"Unknown Error",url:O||void 0});a.error(de)},D=!1,S=z=>{D||(a.next(f()),D=!0);let O={type:ua.DownloadProgress,loaded:z.loaded};z.lengthComputable&&(O.total=z.total),t.responseType==="text"&&s.responseText&&(O.partialText=s.responseText),a.next(O)},P=z=>{let O={type:ua.UploadProgress,loaded:z.loaded};z.lengthComputable&&(O.total=z.total),a.next(O)};return s.addEventListener("load",v),s.addEventListener("error",C),s.addEventListener("timeout",C),s.addEventListener("abort",C),t.reportProgress&&(s.addEventListener("progress",S),l!==null&&s.upload&&s.upload.addEventListener("progress",P)),s.send(l),a.next({type:ua.Sent}),()=>{s.removeEventListener("error",C),s.removeEventListener("abort",C),s.removeEventListener("load",v),s.removeEventListener("timeout",C),t.reportProgress&&(s.removeEventListener("progress",S),l!==null&&s.upload&&s.upload.removeEventListener("progress",P)),s.readyState!==s.DONE&&s.abort()}})))}};e.\u0275fac=function(n){return new(n||e)(M(dl))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),BI=new R(""),N3="XSRF-TOKEN",L3=new R("",{providedIn:"root",factory:()=>N3}),V3="X-XSRF-TOKEN",j3=new R("",{providedIn:"root",factory:()=>V3}),Sm=class{},B3=(()=>{let e=class e{constructor(t,n,o){this.doc=t,this.platform=n,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=vm(t,this.cookieName),this.lastCookieString=t),this.lastToken}};e.\u0275fac=function(n){return new(n||e)(M(se),M(oo),M(L3))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();function z3(i,e){let r=i.url.toLowerCase();if(!k(BI)||i.method==="GET"||i.method==="HEAD"||r.startsWith("http://")||r.startsWith("https://"))return e(i);let t=k(Sm).getToken(),n=k(j3);return t!=null&&!i.headers.has(n)&&(i=i.clone({headers:i.headers.set(n,t)})),e(i)}var zI=function(i){return i[i.Interceptors=0]="Interceptors",i[i.LegacyInterceptors=1]="LegacyInterceptors",i[i.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",i[i.NoXsrfProtection=3]="NoXsrfProtection",i[i.JsonpSupport=4]="JsonpSupport",i[i.RequestsMadeViaParent=5]="RequestsMadeViaParent",i[i.Fetch=6]="Fetch",i}(zI||{});function U3(i,e){return{\u0275kind:i,\u0275providers:e}}function UI(...i){let e=[Uc,FI,PI,{provide:jc,useExisting:PI},{provide:xm,useFactory:()=>k(I3,{optional:!0})??k(FI)},{provide:Hb,useValue:z3,multi:!0},{provide:BI,useValue:!0},{provide:Sm,useClass:B3}];for(let r of i)e.push(...r.\u0275providers);return jh(e)}var NI=new R("");function HI(){return U3(zI.LegacyInterceptors,[{provide:NI,useFactory:R3},{provide:Hb,useExisting:NI,multi:!0}])}var Gb=class extends fm{constructor(){super(...arguments),this.supportsDOMEvents=!0}},qb=class i extends Gb{static makeCurrent(){yI(new i)}onAndCancel(e,r,t){return e.addEventListener(r,t),()=>{e.removeEventListener(r,t)}}dispatchEvent(e,r){e.dispatchEvent(r)}remove(e){e.remove()}createElement(e,r){return r=r||this.getDefaultDocument(),r.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,r){return r==="window"?window:r==="document"?e:r==="body"?e.body:null}getBaseHref(e){let r=H3();return r==null?null:$3(r)}resetBaseElement(){Hc=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return vm(document.cookie,e)}},Hc=null;function H3(){return Hc=Hc||document.querySelector("base"),Hc?Hc.getAttribute("href"):null}function $3(i){return new URL(i,document.baseURI).pathname}var Yb=class{addToWindow(e){Pn.getAngularTestability=(t,n=!0)=>{let o=e.findTestabilityInTree(t,n);if(o==null)throw new J(5103,!1);return o},Pn.getAllAngularTestabilities=()=>e.getAllTestabilities(),Pn.getAllAngularRootElements=()=>e.getAllRootElements();let r=t=>{let n=Pn.getAllAngularTestabilities(),o=n.length,a=function(){o--,o==0&&t()};n.forEach(s=>{s.whenStable(a)})};Pn.frameworkStabilizers||(Pn.frameworkStabilizers=[]),Pn.frameworkStabilizers.push(r)}findTestabilityInTree(e,r,t){if(r==null)return null;let n=e.getTestability(r);return n??(t?Jo().isShadowRoot(r)?this.findTestabilityInTree(e,r.host,!0):this.findTestabilityInTree(e,r.parentElement,!0):null)}},W3=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),Qb=new R(""),qI=(()=>{let e=class e{constructor(t,n){this._zone=n,this._eventNameToPlugin=new Map,t.forEach(o=>{o.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,n,o){return this._findPluginFor(n).addEventListener(t,n,o)}getZone(){return this._zone}_findPluginFor(t){let n=this._eventNameToPlugin.get(t);if(n)return n;if(n=this._plugins.find(a=>a.supports(t)),!n)throw new J(5101,!1);return this._eventNameToPlugin.set(t,n),n}};e.\u0275fac=function(n){return new(n||e)(M(Qb),M(Z))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),Em=class{constructor(e){this._doc=e}},$b="ng-app-id",YI=(()=>{let e=class e{constructor(t,n,o,a={}){this.doc=t,this.appId=n,this.nonce=o,this.platformId=a,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=wm(a),this.resetHostNodes()}addStyles(t){for(let n of t)this.changeUsageCount(n,1)===1&&this.onStyleAdded(n)}removeStyles(t){for(let n of t)this.changeUsageCount(n,-1)<=0&&this.onStyleRemoved(n)}ngOnDestroy(){let t=this.styleNodesInDOM;t&&(t.forEach(n=>n.remove()),t.clear());for(let n of this.getAllStyles())this.onStyleRemoved(n);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(let n of this.getAllStyles())this.addStyleToHost(t,n)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(let n of this.hostNodes)this.addStyleToHost(n,t)}onStyleRemoved(t){let n=this.styleRef;n.get(t)?.elements?.forEach(o=>o.remove()),n.delete(t)}collectServerRenderedStyles(){let t=this.doc.head?.querySelectorAll(`style[${$b}="${this.appId}"]`);if(t?.length){let n=new Map;return t.forEach(o=>{o.textContent!=null&&n.set(o.textContent,o)}),n}return null}changeUsageCount(t,n){let o=this.styleRef;if(o.has(t)){let a=o.get(t);return a.usage+=n,a.usage}return o.set(t,{usage:n,elements:[]}),n}getStyleElement(t,n){let o=this.styleNodesInDOM,a=o?.get(n);if(a?.parentNode===t)return o.delete(n),a.removeAttribute($b),a;{let s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=n,this.platformIsServer&&s.setAttribute($b,this.appId),t.appendChild(s),s}}addStyleToHost(t,n){let o=this.getStyleElement(t,n),a=this.styleRef,s=a.get(n)?.elements;s?s.push(o):a.set(n,{elements:[o],usage:1})}resetHostNodes(){let t=this.hostNodes;t.clear(),t.add(this.doc.head)}};e.\u0275fac=function(n){return new(n||e)(M(se),M(al),M(Ic,8),M(oo))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),Wb={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Zb=/%COMP%/g,QI="%COMP%",G3=`_nghost-${QI}`,q3=`_ngcontent-${QI}`,Y3=!0,Q3=new R("",{providedIn:"root",factory:()=>Y3});function K3(i){return q3.replace(Zb,i)}function Z3(i){return G3.replace(Zb,i)}function KI(i,e){return e.map(r=>r.replace(Zb,i))}var Im=(()=>{let e=class e{constructor(t,n,o,a,s,l,u,f=null){this.eventManager=t,this.sharedStylesHost=n,this.appId=o,this.removeStylesOnCompDestroy=a,this.doc=s,this.platformId=l,this.ngZone=u,this.nonce=f,this.rendererByCompId=new Map,this.platformIsServer=wm(l),this.defaultRenderer=new $c(t,s,u,this.platformIsServer)}createRenderer(t,n){if(!t||!n)return this.defaultRenderer;this.platformIsServer&&n.encapsulation===Wo.ShadowDom&&(n=rt(j({},n),{encapsulation:Wo.Emulated}));let o=this.getOrCreateRenderer(t,n);return o instanceof Mm?o.applyToHost(t):o instanceof Wc&&o.applyStyles(),o}getOrCreateRenderer(t,n){let o=this.rendererByCompId,a=o.get(n.id);if(!a){let s=this.doc,l=this.ngZone,u=this.eventManager,f=this.sharedStylesHost,v=this.removeStylesOnCompDestroy,C=this.platformIsServer;switch(n.encapsulation){case Wo.Emulated:a=new Mm(u,f,n,this.appId,v,s,l,C);break;case Wo.ShadowDom:return new Kb(u,f,t,n,s,l,this.nonce,C);default:a=new Wc(u,f,n,v,s,l,C);break}o.set(n.id,a)}return a}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(n){return new(n||e)(M(qI),M(YI),M(al),M(Q3),M(se),M(oo),M(Z),M(Ic))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),$c=class{constructor(e,r,t,n){this.eventManager=e,this.doc=r,this.ngZone=t,this.platformIsServer=n,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,r){return r?this.doc.createElementNS(Wb[r]||r,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,r){(WI(e)?e.content:e).appendChild(r)}insertBefore(e,r,t){e&&(WI(e)?e.content:e).insertBefore(r,t)}removeChild(e,r){r.remove()}selectRootElement(e,r){let t=typeof e=="string"?this.doc.querySelector(e):e;if(!t)throw new J(-5104,!1);return r||(t.textContent=""),t}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,r,t,n){if(n){r=n+":"+r;let o=Wb[n];o?e.setAttributeNS(o,r,t):e.setAttribute(r,t)}else e.setAttribute(r,t)}removeAttribute(e,r,t){if(t){let n=Wb[t];n?e.removeAttributeNS(n,r):e.removeAttribute(`${t}:${r}`)}else e.removeAttribute(r)}addClass(e,r){e.classList.add(r)}removeClass(e,r){e.classList.remove(r)}setStyle(e,r,t,n){n&(Yo.DashCase|Yo.Important)?e.style.setProperty(r,t,n&Yo.Important?"important":""):e.style[r]=t}removeStyle(e,r,t){t&Yo.DashCase?e.style.removeProperty(r):e.style[r]=""}setProperty(e,r,t){e!=null&&(e[r]=t)}setValue(e,r){e.nodeValue=r}listen(e,r,t){if(typeof e=="string"&&(e=Jo().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${r}`);return this.eventManager.addEventListener(e,r,this.decoratePreventDefault(t))}decoratePreventDefault(e){return r=>{if(r==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(r)):e(r))===!1&&r.preventDefault()}}};function WI(i){return i.tagName==="TEMPLATE"&&i.content!==void 0}var Kb=class extends $c{constructor(e,r,t,n,o,a,s,l){super(e,o,a,l),this.sharedStylesHost=r,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=KI(n.id,n.styles);for(let f of u){let v=document.createElement("style");s&&v.setAttribute("nonce",s),v.textContent=f,this.shadowRoot.appendChild(v)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,r){return super.appendChild(this.nodeOrShadowRoot(e),r)}insertBefore(e,r,t){return super.insertBefore(this.nodeOrShadowRoot(e),r,t)}removeChild(e,r){return super.removeChild(null,r)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Wc=class extends $c{constructor(e,r,t,n,o,a,s,l){super(e,o,a,s),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=n,this.styles=l?KI(l,t.styles):t.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Mm=class extends Wc{constructor(e,r,t,n,o,a,s,l){let u=n+"-"+t.id;super(e,r,t,o,a,s,l,u),this.contentAttr=K3(u),this.hostAttr=Z3(u)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,r){let t=super.createElement(e,r);return super.setAttribute(t,this.contentAttr,""),t}},X3=(()=>{let e=class e extends Em{constructor(t){super(t)}supports(t){return!0}addEventListener(t,n,o){return t.addEventListener(n,o,!1),()=>this.removeEventListener(t,n,o)}removeEventListener(t,n,o){return t.removeEventListener(n,o)}};e.\u0275fac=function(n){return new(n||e)(M(se))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),GI=["alt","control","meta","shift"],J3={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},eB={alt:i=>i.altKey,control:i=>i.ctrlKey,meta:i=>i.metaKey,shift:i=>i.shiftKey},tB=(()=>{let e=class e extends Em{constructor(t){super(t)}supports(t){return e.parseEventName(t)!=null}addEventListener(t,n,o){let a=e.parseEventName(n),s=e.eventCallback(a.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Jo().onAndCancel(t,a.domEventName,s))}static parseEventName(t){let n=t.toLowerCase().split("."),o=n.shift();if(n.length===0||!(o==="keydown"||o==="keyup"))return null;let a=e._normalizeKey(n.pop()),s="",l=n.indexOf("code");if(l>-1&&(n.splice(l,1),s="code."),GI.forEach(f=>{let v=n.indexOf(f);v>-1&&(n.splice(v,1),s+=f+".")}),s+=a,n.length!=0||a.length===0)return null;let u={};return u.domEventName=o,u.fullKey=s,u}static matchEventFullKeyCode(t,n){let o=J3[t.key]||t.key,a="";return n.indexOf("code.")>-1&&(o=t.code,a="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),GI.forEach(s=>{if(s!==o){let l=eB[s];l(t)&&(a+=s+".")}}),a+=o,a===n)}static eventCallback(t,n,o){return a=>{e.matchEventFullKeyCode(a,t)&&o.runGuarded(()=>n(a))}}static _normalizeKey(t){return t==="esc"?"escape":t}};e.\u0275fac=function(n){return new(n||e)(M(se))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();function iB(){qb.makeCurrent()}function nB(){return new yn}function oB(){return xS(document),document}var rB=[{provide:oo,useValue:Nb},{provide:Zv,useValue:iB,multi:!0},{provide:se,useFactory:oB,deps:[]}],ZI=xb(dI,"browser",rB),aB=new R(""),sB=[{provide:Nc,useClass:Yb,deps:[]},{provide:yb,useClass:cm,deps:[Z,dm,Nc]},{provide:cm,useClass:cm,deps:[Z,dm,Nc]}],lB=[{provide:Bh,useValue:"root"},{provide:yn,useFactory:nB,deps:[]},{provide:Qb,useClass:X3,multi:!0,deps:[se,Z,oo]},{provide:Qb,useClass:tB,multi:!0,deps:[se]},Im,YI,qI,{provide:na,useExisting:Im},{provide:dl,useClass:W3,deps:[]},[]],Tm=(()=>{let e=class e{constructor(t){}static withServerTransition(t){return{ngModule:e,providers:[{provide:al,useValue:t.appId}]}}};e.\u0275fac=function(n){return new(n||e)(M(aB,12))},e.\u0275mod=te({type:e}),e.\u0275inj=ee({providers:[...lB,...sB],imports:[Ei,uI]});let i=e;return i})();var XI=(()=>{let e=class e{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}};e.\u0275fac=function(n){return new(n||e)(M(se))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var is=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:function(n){let o=null;return n?o=new(n||e):o=M(cB),o},providedIn:"root"});let i=e;return i})(),cB=(()=>{let e=class e extends is{constructor(t){super(),this._doc=t}sanitize(t,n){if(n==null)return null;switch(t){case Yi.NONE:return n;case Yi.HTML:return wr(n,"HTML")?ro(n):Jv(this._doc,String(n)).toString();case Yi.STYLE:return wr(n,"Style")?ro(n):n;case Yi.SCRIPT:if(wr(n,"Script"))return ro(n);throw new J(5200,!1);case Yi.URL:return wr(n,"URL")?ro(n):Xh(String(n));case Yi.RESOURCE_URL:if(wr(n,"ResourceURL"))return ro(n);throw new J(5201,!1);default:throw new J(5202,!1)}}bypassSecurityTrustHtml(t){return IS(t)}bypassSecurityTrustStyle(t){return MS(t)}bypassSecurityTrustScript(t){return TS(t)}bypassSecurityTrustUrl(t){return kS(t)}bypassSecurityTrustResourceUrl(t){return AS(t)}};e.\u0275fac=function(n){return new(n||e)(M(se))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var dt="primary",ad=Symbol("RouteTitle"),i0=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r[0]:r}return null}getAll(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r:[r]}return[]}get keys(){return Object.keys(this.params)}};function _l(i){return new i0(i)}function dB(i,e,r){let t=r.path.split("/");if(t.length>i.length||r.pathMatch==="full"&&(e.hasChildren()||t.lengtht[o]===n)}else return i===e}function dM(i){return i.length>0?i[i.length-1]:null}function ma(i){return Gr(i)?i:la(i)?Kt(Promise.resolve(i)):oe(i)}var hB={exact:hM,subset:mM},uM={exact:mB,subset:pB,ignored:()=>!0};function JI(i,e,r){return hB[r.paths](i.root,e.root,r.matrixParams)&&uM[r.queryParams](i.queryParams,e.queryParams)&&!(r.fragment==="exact"&&i.fragment!==e.fragment)}function mB(i,e){return tr(i,e)}function hM(i,e,r){if(!os(i.segments,e.segments)||!Om(i.segments,e.segments,r)||i.numberOfChildren!==e.numberOfChildren)return!1;for(let t in e.children)if(!i.children[t]||!hM(i.children[t],e.children[t],r))return!1;return!0}function pB(i,e){return Object.keys(e).length<=Object.keys(i).length&&Object.keys(e).every(r=>cM(i[r],e[r]))}function mM(i,e,r){return pM(i,e,e.segments,r)}function pM(i,e,r,t){if(i.segments.length>r.length){let n=i.segments.slice(0,r.length);return!(!os(n,r)||e.hasChildren()||!Om(n,r,t))}else if(i.segments.length===r.length){if(!os(i.segments,r)||!Om(i.segments,r,t))return!1;for(let n in e.children)if(!i.children[n]||!mM(i.children[n],e.children[n],t))return!1;return!0}else{let n=r.slice(0,i.segments.length),o=r.slice(i.segments.length);return!os(i.segments,n)||!Om(i.segments,n,t)||!i.children[dt]?!1:pM(i.children[dt],e,o,t)}}function Om(i,e,r){return e.every((t,n)=>uM[r](i[n].parameters,t.parameters))}var Or=class{constructor(e=new Bt([],{}),r={},t=null){this.root=e,this.queryParams=r,this.fragment=t}get queryParamMap(){return this._queryParamMap??=_l(this.queryParams),this._queryParamMap}toString(){return _B.serialize(this)}},Bt=class{constructor(e,r){this.segments=e,this.children=r,this.parent=null,Object.values(r).forEach(t=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Rm(this)}},ns=class{constructor(e,r){this.path=e,this.parameters=r}get parameterMap(){return this._parameterMap??=_l(this.parameters),this._parameterMap}toString(){return gM(this)}};function fB(i,e){return os(i,e)&&i.every((r,t)=>tr(r.parameters,e[t].parameters))}function os(i,e){return i.length!==e.length?!1:i.every((r,t)=>r.path===e[t].path)}function gB(i,e){let r=[];return Object.entries(i.children).forEach(([t,n])=>{t===dt&&(r=r.concat(e(n,t)))}),Object.entries(i.children).forEach(([t,n])=>{t!==dt&&(r=r.concat(e(n,t)))}),r}var sd=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:()=>new vl,providedIn:"root"});let i=e;return i})(),vl=class{parse(e){let r=new r0(e);return new Or(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(e){let r=`/${qc(e.root,!0)}`,t=yB(e.queryParams),n=typeof e.fragment=="string"?`#${vB(e.fragment)}`:"";return`${r}${t}${n}`}},_B=new vl;function Rm(i){return i.segments.map(e=>gM(e)).join("/")}function qc(i,e){if(!i.hasChildren())return Rm(i);if(e){let r=i.children[dt]?qc(i.children[dt],!1):"",t=[];return Object.entries(i.children).forEach(([n,o])=>{n!==dt&&t.push(`${n}:${qc(o,!1)}`)}),t.length>0?`${r}(${t.join("//")})`:r}else{let r=gB(i,(t,n)=>n===dt?[qc(i.children[dt],!1)]:[`${n}:${qc(t,!1)}`]);return Object.keys(i.children).length===1&&i.children[dt]!=null?`${Rm(i)}/${r[0]}`:`${Rm(i)}/(${r.join("//")})`}}function fM(i){return encodeURIComponent(i).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function km(i){return fM(i).replace(/%3B/gi,";")}function vB(i){return encodeURI(i)}function o0(i){return fM(i).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Pm(i){return decodeURIComponent(i)}function eM(i){return Pm(i.replace(/\+/g,"%20"))}function gM(i){return`${o0(i.path)}${bB(i.parameters)}`}function bB(i){return Object.entries(i).map(([e,r])=>`;${o0(e)}=${o0(r)}`).join("")}function yB(i){let e=Object.entries(i).map(([r,t])=>Array.isArray(t)?t.map(n=>`${km(r)}=${km(n)}`).join("&"):`${km(r)}=${km(t)}`).filter(r=>r);return e.length?`?${e.join("&")}`:""}var wB=/^[^\/()?;#]+/;function Xb(i){let e=i.match(wB);return e?e[0]:""}var CB=/^[^\/()?;=#]+/;function xB(i){let e=i.match(CB);return e?e[0]:""}var DB=/^[^=?&#]+/;function SB(i){let e=i.match(DB);return e?e[0]:""}var EB=/^[^&#]+/;function IB(i){let e=i.match(EB);return e?e[0]:""}var r0=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Bt([],{}):new Bt([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(e.length>0||Object.keys(r).length>0)&&(t[dt]=new Bt(e,r)),t}parseSegment(){let e=Xb(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new J(4009,!1);return this.capture(e),new ns(Pm(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let r=xB(this.remaining);if(!r)return;this.capture(r);let t="";if(this.consumeOptional("=")){let n=Xb(this.remaining);n&&(t=n,this.capture(t))}e[Pm(r)]=Pm(t)}parseQueryParam(e){let r=SB(this.remaining);if(!r)return;this.capture(r);let t="";if(this.consumeOptional("=")){let a=IB(this.remaining);a&&(t=a,this.capture(t))}let n=eM(r),o=eM(t);if(e.hasOwnProperty(n)){let a=e[n];Array.isArray(a)||(a=[a],e[n]=a),a.push(o)}else e[n]=o}parseParens(e){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let t=Xb(this.remaining),n=this.remaining[t.length];if(n!=="/"&&n!==")"&&n!==";")throw new J(4010,!1);let o;t.indexOf(":")>-1?(o=t.slice(0,t.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=dt);let a=this.parseChildren();r[o]=Object.keys(a).length===1?a[dt]:new Bt([],a),this.consumeOptional("//")}return r}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new J(4011,!1)}};function _M(i){return i.segments.length>0?new Bt([],{[dt]:i}):i}function vM(i){let e={};for(let[t,n]of Object.entries(i.children)){let o=vM(n);if(t===dt&&o.segments.length===0&&o.hasChildren())for(let[a,s]of Object.entries(o.children))e[a]=s;else(o.segments.length>0||o.hasChildren())&&(e[t]=o)}let r=new Bt(i.segments,e);return MB(r)}function MB(i){if(i.numberOfChildren===1&&i.children[dt]){let e=i.children[dt];return new Bt(i.segments.concat(e.segments),e.children)}return i}function rs(i){return i instanceof Or}function TB(i,e,r=null,t=null){let n=bM(i);return yM(n,e,r,t)}function bM(i){let e;function r(o){let a={};for(let l of o.children){let u=r(l);a[l.outlet]=u}let s=new Bt(o.url,a);return o===i&&(e=s),s}let t=r(i.root),n=_M(t);return e??n}function yM(i,e,r,t){let n=i;for(;n.parent;)n=n.parent;if(e.length===0)return Jb(n,n,n,r,t);let o=kB(e);if(o.toRoot())return Jb(n,n,new Bt([],{}),r,t);let a=AB(o,n,i),s=a.processChildren?Kc(a.segmentGroup,a.index,o.commands):CM(a.segmentGroup,a.index,o.commands);return Jb(n,a.segmentGroup,s,r,t)}function Fm(i){return typeof i=="object"&&i!=null&&!i.outlets&&!i.segmentPath}function Jc(i){return typeof i=="object"&&i!=null&&i.outlets}function Jb(i,e,r,t,n){let o={};t&&Object.entries(t).forEach(([l,u])=>{o[l]=Array.isArray(u)?u.map(f=>`${f}`):`${u}`});let a;i===e?a=r:a=wM(i,e,r);let s=_M(vM(a));return new Or(s,o,n)}function wM(i,e,r){let t={};return Object.entries(i.children).forEach(([n,o])=>{o===e?t[n]=r:t[n]=wM(o,e,r)}),new Bt(i.segments,t)}var Nm=class{constructor(e,r,t){if(this.isAbsolute=e,this.numberOfDoubleDots=r,this.commands=t,e&&t.length>0&&Fm(t[0]))throw new J(4003,!1);let n=t.find(Jc);if(n&&n!==dM(t))throw new J(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function kB(i){if(typeof i[0]=="string"&&i.length===1&&i[0]==="/")return new Nm(!0,0,i);let e=0,r=!1,t=i.reduce((n,o,a)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let s={};return Object.entries(o.outlets).forEach(([l,u])=>{s[l]=typeof u=="string"?u.split("/"):u}),[...n,{outlets:s}]}if(o.segmentPath)return[...n,o.segmentPath]}return typeof o!="string"?[...n,o]:a===0?(o.split("/").forEach((s,l)=>{l==0&&s==="."||(l==0&&s===""?r=!0:s===".."?e++:s!=""&&n.push(s))}),n):[...n,o]},[]);return new Nm(r,e,t)}var pl=class{constructor(e,r,t){this.segmentGroup=e,this.processChildren=r,this.index=t}};function AB(i,e,r){if(i.isAbsolute)return new pl(e,!0,0);if(!r)return new pl(e,!1,NaN);if(r.parent===null)return new pl(r,!0,0);let t=Fm(i.commands[0])?0:1,n=r.segments.length-1+t;return OB(r,n,i.numberOfDoubleDots)}function OB(i,e,r){let t=i,n=e,o=r;for(;o>n;){if(o-=n,t=t.parent,!t)throw new J(4005,!1);n=t.segments.length}return new pl(t,!1,n-o)}function RB(i){return Jc(i[0])?i[0].outlets:{[dt]:i}}function CM(i,e,r){if(i??=new Bt([],{}),i.segments.length===0&&i.hasChildren())return Kc(i,e,r);let t=PB(i,e,r),n=r.slice(t.commandIndex);if(t.match&&t.pathIndexo!==dt)&&i.children[dt]&&i.numberOfChildren===1&&i.children[dt].segments.length===0){let o=Kc(i.children[dt],e,r);return new Bt(i.segments,o.children)}return Object.entries(t).forEach(([o,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(n[o]=CM(i.children[o],e,a))}),Object.entries(i.children).forEach(([o,a])=>{t[o]===void 0&&(n[o]=a)}),new Bt(i.segments,n)}}function PB(i,e,r){let t=0,n=e,o={match:!1,pathIndex:0,commandIndex:0};for(;n=r.length)return o;let a=i.segments[n],s=r[t];if(Jc(s))break;let l=`${s}`,u=t0&&l===void 0)break;if(l&&u&&typeof u=="object"&&u.outlets===void 0){if(!iM(l,u,a))return o;t+=2}else{if(!iM(l,{},a))return o;t++}n++}return{match:!0,pathIndex:n,commandIndex:t}}function a0(i,e,r){let t=i.segments.slice(0,e),n=0;for(;n{typeof t=="string"&&(t=[t]),t!==null&&(e[r]=a0(new Bt([],{}),0,t))}),e}function tM(i){let e={};return Object.entries(i).forEach(([r,t])=>e[r]=`${t}`),e}function iM(i,e,r){return i==r.path&&tr(e,r.parameters)}var Zc="imperative",zi=function(i){return i[i.NavigationStart=0]="NavigationStart",i[i.NavigationEnd=1]="NavigationEnd",i[i.NavigationCancel=2]="NavigationCancel",i[i.NavigationError=3]="NavigationError",i[i.RoutesRecognized=4]="RoutesRecognized",i[i.ResolveStart=5]="ResolveStart",i[i.ResolveEnd=6]="ResolveEnd",i[i.GuardsCheckStart=7]="GuardsCheckStart",i[i.GuardsCheckEnd=8]="GuardsCheckEnd",i[i.RouteConfigLoadStart=9]="RouteConfigLoadStart",i[i.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",i[i.ChildActivationStart=11]="ChildActivationStart",i[i.ChildActivationEnd=12]="ChildActivationEnd",i[i.ActivationStart=13]="ActivationStart",i[i.ActivationEnd=14]="ActivationEnd",i[i.Scroll=15]="Scroll",i[i.NavigationSkipped=16]="NavigationSkipped",i}(zi||{}),ao=class{constructor(e,r){this.id=e,this.url=r}},bl=class extends ao{constructor(e,r,t="imperative",n=null){super(e,r),this.type=zi.NavigationStart,this.navigationTrigger=t,this.restoredState=n}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},ir=class extends ao{constructor(e,r,t){super(e,r),this.urlAfterRedirects=t,this.type=zi.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},jn=function(i){return i[i.Redirect=0]="Redirect",i[i.SupersededByNewNavigation=1]="SupersededByNewNavigation",i[i.NoDataFromResolver=2]="NoDataFromResolver",i[i.GuardRejected=3]="GuardRejected",i}(jn||{}),Lm=function(i){return i[i.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",i[i.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",i}(Lm||{}),Ar=class extends ao{constructor(e,r,t,n){super(e,r),this.reason=t,this.code=n,this.type=zi.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},ha=class extends ao{constructor(e,r,t,n){super(e,r),this.reason=t,this.code=n,this.type=zi.NavigationSkipped}},ed=class extends ao{constructor(e,r,t,n){super(e,r),this.error=t,this.target=n,this.type=zi.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Vm=class extends ao{constructor(e,r,t,n){super(e,r),this.urlAfterRedirects=t,this.state=n,this.type=zi.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},s0=class extends ao{constructor(e,r,t,n){super(e,r),this.urlAfterRedirects=t,this.state=n,this.type=zi.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},l0=class extends ao{constructor(e,r,t,n,o){super(e,r),this.urlAfterRedirects=t,this.state=n,this.shouldActivate=o,this.type=zi.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},c0=class extends ao{constructor(e,r,t,n){super(e,r),this.urlAfterRedirects=t,this.state=n,this.type=zi.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},d0=class extends ao{constructor(e,r,t,n){super(e,r),this.urlAfterRedirects=t,this.state=n,this.type=zi.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},u0=class{constructor(e){this.route=e,this.type=zi.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},h0=class{constructor(e){this.route=e,this.type=zi.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},m0=class{constructor(e){this.snapshot=e,this.type=zi.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},p0=class{constructor(e){this.snapshot=e,this.type=zi.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},f0=class{constructor(e){this.snapshot=e,this.type=zi.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},g0=class{constructor(e){this.snapshot=e,this.type=zi.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},jm=class{constructor(e,r,t){this.routerEvent=e,this.position=r,this.anchor=t,this.type=zi.Scroll}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},td=class{},yl=class{constructor(e,r){this.url=e,this.navigationBehaviorOptions=r}};function NB(i,e){return i.providers&&!i._injector&&(i._injector=sm(i.providers,e,`Route: ${i.path}`)),i._injector??e}function Io(i){return i.outlet||dt}function LB(i,e){let r=i.filter(t=>Io(t)===e);return r.push(...i.filter(t=>Io(t)!==e)),r}function ld(i){if(!i)return null;if(i.routeConfig?._injector)return i.routeConfig._injector;for(let e=i.parent;e;e=e.parent){let r=e.routeConfig;if(r?._loadedInjector)return r._loadedInjector;if(r?._injector)return r._injector}return null}var _0=class{get injector(){return ld(this.route?.snapshot)??this.rootInjector}set injector(e){}constructor(e){this.rootInjector=e,this.outlet=null,this.route=null,this.children=new cd(this.rootInjector),this.attachRef=null}},cd=(()=>{let e=class e{constructor(t){this.rootInjector=t,this.contexts=new Map}onChildOutletCreated(t,n){let o=this.getOrCreateContext(t);o.outlet=n,this.contexts.set(t,o)}onChildOutletDestroyed(t){let n=this.getContext(t);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let n=this.getContext(t);return n||(n=new _0(this.rootInjector),this.contexts.set(t,n)),n}getContext(t){return this.contexts.get(t)||null}};e.\u0275fac=function(n){return new(n||e)(M(qi))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),Bm=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let r=this.pathFromRoot(e);return r.length>1?r[r.length-2]:null}children(e){let r=v0(e,this._root);return r?r.children.map(t=>t.value):[]}firstChild(e){let r=v0(e,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(e){let r=b0(e,this._root);return r.length<2?[]:r[r.length-2].children.map(n=>n.value).filter(n=>n!==e)}pathFromRoot(e){return b0(e,this._root).map(r=>r.value)}};function v0(i,e){if(i===e.value)return e;for(let r of e.children){let t=v0(i,r);if(t)return t}return null}function b0(i,e){if(i===e.value)return[e];for(let r of e.children){let t=b0(i,r);if(t.length)return t.unshift(e),t}return[]}var Vn=class{constructor(e,r){this.value=e,this.children=r}toString(){return`TreeNode(${this.value})`}};function ml(i){let e={};return i&&i.children.forEach(r=>e[r.value.outlet]=r),e}var zm=class extends Bm{constructor(e,r){super(e),this.snapshot=r,M0(this,e)}toString(){return this.snapshot.toString()}};function xM(i){let e=VB(i),r=new Gt([new ns("",{})]),t=new Gt({}),n=new Gt({}),o=new Gt({}),a=new Gt(""),s=new Oe(r,t,o,a,n,dt,i,e.root);return s.snapshot=e.root,new zm(new Vn(s,[]),e)}function VB(i){let e={},r={},t={},n="",o=new fl([],e,t,n,r,dt,i,null,{});return new Hm("",new Vn(o,[]))}var Oe=class{constructor(e,r,t,n,o,a,s,l){this.urlSubject=e,this.paramsSubject=r,this.queryParamsSubject=t,this.fragmentSubject=n,this.dataSubject=o,this.outlet=a,this.component=s,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(ue(u=>u[ad]))??oe(void 0),this.url=e,this.params=r,this.queryParams=t,this.fragment=n,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(ue(e=>_l(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(ue(e=>_l(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Um(i,e,r="emptyOnly"){let t,{routeConfig:n}=i;return e!==null&&(r==="always"||n?.path===""||!e.component&&!e.routeConfig?.loadComponent)?t={params:j(j({},e.params),i.params),data:j(j({},e.data),i.data),resolve:j(j(j(j({},i.data),e.data),n?.data),i._resolvedData)}:t={params:j({},i.params),data:j({},i.data),resolve:j(j({},i.data),i._resolvedData??{})},n&&SM(n)&&(t.resolve[ad]=n.title),t}var fl=class{get title(){return this.data?.[ad]}constructor(e,r,t,n,o,a,s,l,u){this.url=e,this.params=r,this.queryParams=t,this.fragment=n,this.data=o,this.outlet=a,this.component=s,this.routeConfig=l,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=_l(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=_l(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(t=>t.toString()).join("/"),r=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${r}')`}},Hm=class extends Bm{constructor(e,r){super(r),this.url=e,M0(this,r)}toString(){return DM(this._root)}};function M0(i,e){e.value._routerState=i,e.children.forEach(r=>M0(i,r))}function DM(i){let e=i.children.length>0?` { ${i.children.map(DM).join(", ")} } `:"";return`${i.value}${e}`}function e0(i){if(i.snapshot){let e=i.snapshot,r=i._futureSnapshot;i.snapshot=r,tr(e.queryParams,r.queryParams)||i.queryParamsSubject.next(r.queryParams),e.fragment!==r.fragment&&i.fragmentSubject.next(r.fragment),tr(e.params,r.params)||i.paramsSubject.next(r.params),uB(e.url,r.url)||i.urlSubject.next(r.url),tr(e.data,r.data)||i.dataSubject.next(r.data)}else i.snapshot=i._futureSnapshot,i.dataSubject.next(i._futureSnapshot.data)}function y0(i,e){let r=tr(i.params,e.params)&&fB(i.url,e.url),t=!i.parent!=!e.parent;return r&&!t&&(!i.parent||y0(i.parent,e.parent))}function SM(i){return typeof i.title=="string"||i.title===null}var T0=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=dt,this.activateEvents=new T,this.deactivateEvents=new T,this.attachEvents=new T,this.detachEvents=new T,this.parentContexts=k(cd),this.location=k(Ct),this.changeDetector=k(he),this.inputBinder=k(Ym,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(t){if(t.name){let{firstChange:n,previousValue:o}=t.name;if(n)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new J(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new J(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new J(4012,!1);this.location.detach();let t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,n){this.activated=t,this._activatedRoute=n,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){let t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,n){if(this.isActivated)throw new J(4013,!1);this._activatedRoute=t;let o=this.location,s=t.snapshot.component,l=this.parentContexts.getOrCreateContext(this.name).children,u=new w0(t,l,o.injector);this.activated=o.createComponent(s,{index:o.length,injector:u,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Qe]});let i=e;return i})(),w0=class i{__ngOutletInjector(e){return new i(this.route,this.childContexts,e)}constructor(e,r,t){this.route=e,this.childContexts=r,this.parent=t}get(e,r){return e===Oe?this.route:e===cd?this.childContexts:this.parent.get(e,r)}},Ym=new R(""),nM=(()=>{let e=class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){let{activatedRoute:n}=t,o=Rn([n.queryParams,n.params,n.data]).pipe(Tt(([a,s,l],u)=>(l=j(j(j({},a),s),l),u===0?oe(l):Promise.resolve(l)))).subscribe(a=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(t);return}let s=hI(n.component);if(!s){this.unsubscribeFromRouteData(t);return}for(let{templateName:l}of s.inputs)t.activatedComponentRef.setInput(l,a[l])});this.outletDataSubscriptions.set(t,o)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();function jB(i,e,r){let t=id(i,e._root,r?r._root:void 0);return new zm(t,e)}function id(i,e,r){if(r&&i.shouldReuseRoute(e.value,r.value.snapshot)){let t=r.value;t._futureSnapshot=e.value;let n=BB(i,e,r);return new Vn(t,n)}else{if(i.shouldAttach(e.value)){let o=i.retrieve(e.value);if(o!==null){let a=o.route;return a.value._futureSnapshot=e.value,a.children=e.children.map(s=>id(i,s)),a}}let t=zB(e.value),n=e.children.map(o=>id(i,o));return new Vn(t,n)}}function BB(i,e,r){return e.children.map(t=>{for(let n of r.children)if(i.shouldReuseRoute(t.value,n.value.snapshot))return id(i,t,n);return id(i,t)})}function zB(i){return new Oe(new Gt(i.url),new Gt(i.params),new Gt(i.queryParams),new Gt(i.fragment),new Gt(i.data),i.outlet,i.component,i)}var nd=class{constructor(e,r){this.redirectTo=e,this.navigationBehaviorOptions=r}},EM="ngNavigationCancelingError";function $m(i,e){let{redirectTo:r,navigationBehaviorOptions:t}=rs(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,n=IM(!1,jn.Redirect);return n.url=r,n.navigationBehaviorOptions=t,n}function IM(i,e){let r=new Error(`NavigationCancelingError: ${i||""}`);return r[EM]=!0,r.cancellationCode=e,r}function UB(i){return MM(i)&&rs(i.url)}function MM(i){return!!i&&i[EM]}var HB=(i,e,r,t)=>ue(n=>(new C0(e,n.targetRouterState,n.currentRouterState,r,t).activate(i),n)),C0=class{constructor(e,r,t,n,o){this.routeReuseStrategy=e,this.futureState=r,this.currState=t,this.forwardEvent=n,this.inputBindingEnabled=o}activate(e){let r=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(r,t,e),e0(this.futureState.root),this.activateChildRoutes(r,t,e)}deactivateChildRoutes(e,r,t){let n=ml(r);e.children.forEach(o=>{let a=o.value.outlet;this.deactivateRoutes(o,n[a],t),delete n[a]}),Object.values(n).forEach(o=>{this.deactivateRouteAndItsChildren(o,t)})}deactivateRoutes(e,r,t){let n=e.value,o=r?r.value:null;if(n===o)if(n.component){let a=t.getContext(n.outlet);a&&this.deactivateChildRoutes(e,r,a.children)}else this.deactivateChildRoutes(e,r,t);else o&&this.deactivateRouteAndItsChildren(r,t)}deactivateRouteAndItsChildren(e,r){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,r):this.deactivateRouteAndOutlet(e,r)}detachAndStoreRouteSubtree(e,r){let t=r.getContext(e.value.outlet),n=t&&e.value.component?t.children:r,o=ml(e);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,n);if(t&&t.outlet){let a=t.outlet.detach(),s=t.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:a,route:e,contexts:s})}}deactivateRouteAndOutlet(e,r){let t=r.getContext(e.value.outlet),n=t&&e.value.component?t.children:r,o=ml(e);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,n);t&&(t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated()),t.attachRef=null,t.route=null)}activateChildRoutes(e,r,t){let n=ml(r);e.children.forEach(o=>{this.activateRoutes(o,n[o.value.outlet],t),this.forwardEvent(new g0(o.value.snapshot))}),e.children.length&&this.forwardEvent(new p0(e.value.snapshot))}activateRoutes(e,r,t){let n=e.value,o=r?r.value:null;if(e0(n),n===o)if(n.component){let a=t.getOrCreateContext(n.outlet);this.activateChildRoutes(e,r,a.children)}else this.activateChildRoutes(e,r,t);else if(n.component){let a=t.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){let s=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),e0(s.route.value),this.activateChildRoutes(e,null,a.children)}else a.attachRef=null,a.route=n,a.outlet&&a.outlet.activateWith(n,a.injector),this.activateChildRoutes(e,null,a.children)}else this.activateChildRoutes(e,null,t)}},Wm=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},gl=class{constructor(e,r){this.component=e,this.route=r}};function $B(i,e,r){let t=i._root,n=e?e._root:null;return Yc(t,n,r,[t.value])}function WB(i){let e=i.routeConfig?i.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:i,guards:e}}function Cl(i,e){let r=Symbol(),t=e.get(i,r);return t===r?typeof i=="function"&&!hD(i)?i:e.get(i):t}function Yc(i,e,r,t,n={canDeactivateChecks:[],canActivateChecks:[]}){let o=ml(e);return i.children.forEach(a=>{GB(a,o[a.value.outlet],r,t.concat([a.value]),n),delete o[a.value.outlet]}),Object.entries(o).forEach(([a,s])=>Xc(s,r.getContext(a),n)),n}function GB(i,e,r,t,n={canDeactivateChecks:[],canActivateChecks:[]}){let o=i.value,a=e?e.value:null,s=r?r.getContext(i.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){let l=qB(a,o,o.routeConfig.runGuardsAndResolvers);l?n.canActivateChecks.push(new Wm(t)):(o.data=a.data,o._resolvedData=a._resolvedData),o.component?Yc(i,e,s?s.children:null,t,n):Yc(i,e,r,t,n),l&&s&&s.outlet&&s.outlet.isActivated&&n.canDeactivateChecks.push(new gl(s.outlet.component,a))}else a&&Xc(e,s,n),n.canActivateChecks.push(new Wm(t)),o.component?Yc(i,null,s?s.children:null,t,n):Yc(i,null,r,t,n);return n}function qB(i,e,r){if(typeof r=="function")return r(i,e);switch(r){case"pathParamsChange":return!os(i.url,e.url);case"pathParamsOrQueryParamsChange":return!os(i.url,e.url)||!tr(i.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!y0(i,e)||!tr(i.queryParams,e.queryParams);case"paramsChange":default:return!y0(i,e)}}function Xc(i,e,r){let t=ml(i),n=i.value;Object.entries(t).forEach(([o,a])=>{n.component?e?Xc(a,e.children.getContext(o),r):Xc(a,null,r):Xc(a,e,r)}),n.component?e&&e.outlet&&e.outlet.isActivated?r.canDeactivateChecks.push(new gl(e.outlet.component,n)):r.canDeactivateChecks.push(new gl(null,n)):r.canDeactivateChecks.push(new gl(null,n))}function dd(i){return typeof i=="function"}function YB(i){return typeof i=="boolean"}function QB(i){return i&&dd(i.canLoad)}function KB(i){return i&&dd(i.canActivate)}function ZB(i){return i&&dd(i.canActivateChild)}function XB(i){return i&&dd(i.canDeactivate)}function JB(i){return i&&dd(i.canMatch)}function TM(i){return i instanceof bo||i?.name==="EmptyError"}var Am=Symbol("INITIAL_VALUE");function wl(){return Tt(i=>Rn(i.map(e=>e.pipe(Ot(1),Rt(Am)))).pipe(ue(e=>{for(let r of e)if(r!==!0){if(r===Am)return Am;if(r===!1||ez(r))return r}return!0}),Ye(e=>e!==Am),Ot(1)))}function ez(i){return rs(i)||i instanceof nd}function tz(i,e){return ci(r=>{let{targetSnapshot:t,currentSnapshot:n,guards:{canActivateChecks:o,canDeactivateChecks:a}}=r;return a.length===0&&o.length===0?oe(rt(j({},r),{guardsResult:!0})):iz(a,t,n,i).pipe(ci(s=>s&&YB(s)?nz(t,o,i,e):oe(s)),ue(s=>rt(j({},r),{guardsResult:s})))})}function iz(i,e,r,t){return Kt(i).pipe(ci(n=>lz(n.component,n.route,r,e,t)),Uo(n=>n!==!0,!0))}function nz(i,e,r,t){return Kt(e).pipe(hr(n=>Bo(rz(n.route.parent,t),oz(n.route,t),sz(i,n.path,r),az(i,n.route,r))),Uo(n=>n!==!0,!0))}function oz(i,e){return i!==null&&e&&e(new f0(i)),oe(!0)}function rz(i,e){return i!==null&&e&&e(new m0(i)),oe(!0)}function az(i,e,r){let t=e.routeConfig?e.routeConfig.canActivate:null;if(!t||t.length===0)return oe(!0);let n=t.map(o=>Xn(()=>{let a=ld(e)??r,s=Cl(o,a),l=KB(s)?s.canActivate(e,i):io(a,()=>s(e,i));return ma(l).pipe(Uo())}));return oe(n).pipe(wl())}function sz(i,e,r){let t=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(a=>WB(a)).filter(a=>a!==null).map(a=>Xn(()=>{let s=a.guards.map(l=>{let u=ld(a.node)??r,f=Cl(l,u),v=ZB(f)?f.canActivateChild(t,i):io(u,()=>f(t,i));return ma(v).pipe(Uo())});return oe(s).pipe(wl())}));return oe(o).pipe(wl())}function lz(i,e,r,t,n){let o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||o.length===0)return oe(!0);let a=o.map(s=>{let l=ld(e)??n,u=Cl(s,l),f=XB(u)?u.canDeactivate(i,e,r,t):io(l,()=>u(i,e,r,t));return ma(f).pipe(Uo())});return oe(a).pipe(wl())}function cz(i,e,r,t){let n=e.canLoad;if(n===void 0||n.length===0)return oe(!0);let o=n.map(a=>{let s=Cl(a,i),l=QB(s)?s.canLoad(e,r):io(i,()=>s(e,r));return ma(l)});return oe(o).pipe(wl(),kM(t))}function kM(i){return Ug(Ht(e=>{if(typeof e!="boolean")throw $m(i,e)}),ue(e=>e===!0))}function dz(i,e,r,t){let n=e.canMatch;if(!n||n.length===0)return oe(!0);let o=n.map(a=>{let s=Cl(a,i),l=JB(s)?s.canMatch(e,r):io(i,()=>s(e,r));return ma(l)});return oe(o).pipe(wl(),kM(t))}var od=class{constructor(e){this.segmentGroup=e||null}},rd=class extends Error{constructor(e){super(),this.urlTree=e}};function hl(i){return jo(new od(i))}function uz(i){return jo(new J(4e3,!1))}function hz(i){return jo(IM(!1,jn.GuardRejected))}var x0=class{constructor(e,r){this.urlSerializer=e,this.urlTree=r}lineralizeSegments(e,r){let t=[],n=r.root;for(;;){if(t=t.concat(n.segments),n.numberOfChildren===0)return oe(t);if(n.numberOfChildren>1||!n.children[dt])return uz(`${e.redirectTo}`);n=n.children[dt]}}applyRedirectCommands(e,r,t,n,o){if(typeof r!="string"){let s=r,{queryParams:l,fragment:u,routeConfig:f,url:v,outlet:C,params:D,data:S,title:P}=n,z=io(o,()=>s({params:D,data:S,queryParams:l,fragment:u,routeConfig:f,url:v,outlet:C,title:P}));if(z instanceof Or)throw new rd(z);r=z}let a=this.applyRedirectCreateUrlTree(r,this.urlSerializer.parse(r),e,t);if(r[0]==="/")throw new rd(a);return a}applyRedirectCreateUrlTree(e,r,t,n){let o=this.createSegmentGroup(e,r.root,t,n);return new Or(o,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)}createQueryParams(e,r){let t={};return Object.entries(e).forEach(([n,o])=>{if(typeof o=="string"&&o[0]===":"){let s=o.substring(1);t[n]=r[s]}else t[n]=o}),t}createSegmentGroup(e,r,t,n){let o=this.createSegments(e,r.segments,t,n),a={};return Object.entries(r.children).forEach(([s,l])=>{a[s]=this.createSegmentGroup(e,l,t,n)}),new Bt(o,a)}createSegments(e,r,t,n){return r.map(o=>o.path[0]===":"?this.findPosParam(e,o,n):this.findOrReturn(o,t))}findPosParam(e,r,t){let n=t[r.path.substring(1)];if(!n)throw new J(4001,!1);return n}findOrReturn(e,r){let t=0;for(let n of r){if(n.path===e.path)return r.splice(t),n;t++}return e}},D0={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function mz(i,e,r,t,n){let o=AM(i,e,r);return o.matched?(t=NB(e,t),dz(t,e,r,n).pipe(ue(a=>a===!0?o:j({},D0)))):oe(o)}function AM(i,e,r){if(e.path==="**")return pz(r);if(e.path==="")return e.pathMatch==="full"&&(i.hasChildren()||r.length>0)?j({},D0):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};let n=(e.matcher||dB)(r,i,e);if(!n)return j({},D0);let o={};Object.entries(n.posParams??{}).forEach(([s,l])=>{o[s]=l.path});let a=n.consumed.length>0?j(j({},o),n.consumed[n.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:n.consumed,remainingSegments:r.slice(n.consumed.length),parameters:a,positionalParamSegments:n.posParams??{}}}function pz(i){return{matched:!0,parameters:i.length>0?dM(i).parameters:{},consumedSegments:i,remainingSegments:[],positionalParamSegments:{}}}function oM(i,e,r,t){return r.length>0&&_z(i,r,t)?{segmentGroup:new Bt(e,gz(t,new Bt(r,i.children))),slicedSegments:[]}:r.length===0&&vz(i,r,t)?{segmentGroup:new Bt(i.segments,fz(i,r,t,i.children)),slicedSegments:r}:{segmentGroup:new Bt(i.segments,i.children),slicedSegments:r}}function fz(i,e,r,t){let n={};for(let o of r)if(Qm(i,e,o)&&!t[Io(o)]){let a=new Bt([],{});n[Io(o)]=a}return j(j({},t),n)}function gz(i,e){let r={};r[dt]=e;for(let t of i)if(t.path===""&&Io(t)!==dt){let n=new Bt([],{});r[Io(t)]=n}return r}function _z(i,e,r){return r.some(t=>Qm(i,e,t)&&Io(t)!==dt)}function vz(i,e,r){return r.some(t=>Qm(i,e,t))}function Qm(i,e,r){return(i.hasChildren()||e.length>0)&&r.pathMatch==="full"?!1:r.path===""}function bz(i,e,r){return e.length===0&&!i.children[r]}var S0=class{};function yz(i,e,r,t,n,o,a="emptyOnly"){return new E0(i,e,r,t,n,a,o).recognize()}var wz=31,E0=class{constructor(e,r,t,n,o,a,s){this.injector=e,this.configLoader=r,this.rootComponentType=t,this.config=n,this.urlTree=o,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.applyRedirects=new x0(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new J(4002,`'${e.segmentGroup}'`)}recognize(){let e=oM(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(ue(({children:r,rootSnapshot:t})=>{let n=new Vn(t,r),o=new Hm("",n),a=TB(t,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(a),{state:o,tree:a}}))}match(e){let r=new fl([],Object.freeze({}),Object.freeze(j({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),dt,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,dt,r).pipe(ue(t=>({children:t,rootSnapshot:r})),Wi(t=>{if(t instanceof rd)return this.urlTree=t.urlTree,this.match(t.urlTree.root);throw t instanceof od?this.noMatchError(t):t}))}processSegmentGroup(e,r,t,n,o){return t.segments.length===0&&t.hasChildren()?this.processChildren(e,r,t,o):this.processSegment(e,r,t,t.segments,n,!0,o).pipe(ue(a=>a instanceof Vn?[a]:[]))}processChildren(e,r,t,n){let o=[];for(let a of Object.keys(t.children))a==="primary"?o.unshift(a):o.push(a);return Kt(o).pipe(hr(a=>{let s=t.children[a],l=LB(r,a);return this.processSegmentGroup(e,l,s,a,n)}),e_((a,s)=>(a.push(...s),a)),Yr(null),Jg(),ci(a=>{if(a===null)return hl(t);let s=OM(a);return Cz(s),oe(s)}))}processSegment(e,r,t,n,o,a,s){return Kt(r).pipe(hr(l=>this.processSegmentAgainstRoute(l._injector??e,r,l,t,n,o,a,s).pipe(Wi(u=>{if(u instanceof od)return oe(null);throw u}))),Uo(l=>!!l),Wi(l=>{if(TM(l))return bz(t,n,o)?oe(new S0):hl(t);throw l}))}processSegmentAgainstRoute(e,r,t,n,o,a,s,l){return Io(t)!==a&&(a===dt||!Qm(n,o,t))?hl(n):t.redirectTo===void 0?this.matchSegmentAgainstRoute(e,n,t,o,a,l):this.allowRedirects&&s?this.expandSegmentAgainstRouteUsingRedirect(e,n,r,t,o,a,l):hl(n)}expandSegmentAgainstRouteUsingRedirect(e,r,t,n,o,a,s){let{matched:l,parameters:u,consumedSegments:f,positionalParamSegments:v,remainingSegments:C}=AM(r,n,o);if(!l)return hl(r);typeof n.redirectTo=="string"&&n.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>wz&&(this.allowRedirects=!1));let D=new fl(o,u,Object.freeze(j({},this.urlTree.queryParams)),this.urlTree.fragment,rM(n),Io(n),n.component??n._loadedComponent??null,n,aM(n)),S=Um(D,s,this.paramsInheritanceStrategy);D.params=Object.freeze(S.params),D.data=Object.freeze(S.data);let P=this.applyRedirects.applyRedirectCommands(f,n.redirectTo,v,D,e);return this.applyRedirects.lineralizeSegments(n,P).pipe(ci(z=>this.processSegment(e,t,r,z.concat(C),a,!1,s)))}matchSegmentAgainstRoute(e,r,t,n,o,a){let s=mz(r,t,n,e,this.urlSerializer);return t.path==="**"&&(r.children={}),s.pipe(Tt(l=>l.matched?(e=t._injector??e,this.getChildConfig(e,t,n).pipe(Tt(({routes:u})=>{let f=t._loadedInjector??e,{parameters:v,consumedSegments:C,remainingSegments:D}=l,S=new fl(C,v,Object.freeze(j({},this.urlTree.queryParams)),this.urlTree.fragment,rM(t),Io(t),t.component??t._loadedComponent??null,t,aM(t)),P=Um(S,a,this.paramsInheritanceStrategy);S.params=Object.freeze(P.params),S.data=Object.freeze(P.data);let{segmentGroup:z,slicedSegments:O}=oM(r,C,D,u);if(O.length===0&&z.hasChildren())return this.processChildren(f,u,z,S).pipe(ue(ht=>new Vn(S,ht)));if(u.length===0&&O.length===0)return oe(new Vn(S,[]));let de=Io(t)===o;return this.processSegment(f,u,z,O,de?dt:o,!0,S).pipe(ue(ht=>new Vn(S,ht instanceof Vn?[ht]:[])))}))):hl(r)))}getChildConfig(e,r,t){return r.children?oe({routes:r.children,injector:e}):r.loadChildren?r._loadedRoutes!==void 0?oe({routes:r._loadedRoutes,injector:r._loadedInjector}):cz(e,r,t,this.urlSerializer).pipe(ci(n=>n?this.configLoader.loadChildren(e,r).pipe(Ht(o=>{r._loadedRoutes=o.routes,r._loadedInjector=o.injector})):hz(r))):oe({routes:[],injector:e})}};function Cz(i){i.sort((e,r)=>e.value.outlet===dt?-1:r.value.outlet===dt?1:e.value.outlet.localeCompare(r.value.outlet))}function xz(i){let e=i.value.routeConfig;return e&&e.path===""}function OM(i){let e=[],r=new Set;for(let t of i){if(!xz(t)){e.push(t);continue}let n=e.find(o=>t.value.routeConfig===o.value.routeConfig);n!==void 0?(n.children.push(...t.children),r.add(n)):e.push(t)}for(let t of r){let n=OM(t.children);e.push(new Vn(t.value,n))}return e.filter(t=>!r.has(t))}function rM(i){return i.data||{}}function aM(i){return i.resolve||{}}function Dz(i,e,r,t,n,o){return ci(a=>yz(i,e,r,t,a.extractedUrl,n,o).pipe(ue(({state:s,tree:l})=>rt(j({},a),{targetSnapshot:s,urlAfterRedirects:l}))))}function Sz(i,e){return ci(r=>{let{targetSnapshot:t,guards:{canActivateChecks:n}}=r;if(!n.length)return oe(r);let o=new Set(n.map(l=>l.route)),a=new Set;for(let l of o)if(!a.has(l))for(let u of RM(l))a.add(u);let s=0;return Kt(a).pipe(hr(l=>o.has(l)?Ez(l,t,i,e):(l.data=Um(l,l.parent,i).resolve,oe(void 0))),Ht(()=>s++),Bs(1),ci(l=>s===a.size?oe(r):Ai))})}function RM(i){let e=i.children.map(r=>RM(r)).flat();return[i,...e]}function Ez(i,e,r,t){let n=i.routeConfig,o=i._resolve;return n?.title!==void 0&&!SM(n)&&(o[ad]=n.title),Iz(o,i,e,t).pipe(ue(a=>(i._resolvedData=a,i.data=Um(i,i.parent,r).resolve,null)))}function Iz(i,e,r,t){let n=n0(i);if(n.length===0)return oe({});let o={};return Kt(n).pipe(ci(a=>Mz(i[a],e,r,t).pipe(Uo(),Ht(s=>{if(s instanceof nd)throw $m(new vl,s);o[a]=s}))),Bs(1),hc(o),Wi(a=>TM(a)?Ai:jo(a)))}function Mz(i,e,r,t){let n=ld(e)??t,o=Cl(i,n),a=o.resolve?o.resolve(e,r):io(n,()=>o(e,r));return ma(a)}function t0(i){return Tt(e=>{let r=i(e);return r?Kt(r).pipe(ue(()=>e)):oe(e)})}var PM=(()=>{let e=class e{buildTitle(t){let n,o=t.root;for(;o!==void 0;)n=this.getResolvedTitleForRoute(o)??n,o=o.children.find(a=>a.outlet===dt);return n}getResolvedTitleForRoute(t){return t.data[ad]}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:()=>k(Tz),providedIn:"root"});let i=e;return i})(),Tz=(()=>{let e=class e extends PM{constructor(t){super(),this.title=t}updateTitle(t){let n=this.buildTitle(t);n!==void 0&&this.title.setTitle(n)}};e.\u0275fac=function(n){return new(n||e)(M(XI))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),ud=new R("",{providedIn:"root",factory:()=>({})}),kz=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=E({type:e,selectors:[["ng-component"]],standalone:!0,features:[re],decls:1,vars:0,template:function(n,o){n&1&&I(0,"router-outlet")},dependencies:[T0],encapsulation:2});let i=e;return i})();function k0(i){let e=i.children&&i.children.map(k0),r=e?rt(j({},i),{children:e}):j({},i);return!r.component&&!r.loadComponent&&(e||r.loadChildren)&&r.outlet&&r.outlet!==dt&&(r.component=kz),r}var Gm=new R(""),A0=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=k(mm)}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return oe(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);let n=ma(t.loadComponent()).pipe(ue(FM),Ht(a=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=a}),zo(()=>{this.componentLoaders.delete(t)})),o=new Wr(n,()=>new G).pipe(Rs());return this.componentLoaders.set(t,o),o}loadChildren(t,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return oe({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let a=Az(n,this.compiler,t,this.onLoadEndListener).pipe(zo(()=>{this.childrenLoaders.delete(n)})),s=new Wr(a,()=>new G).pipe(Rs());return this.childrenLoaders.set(n,s),s}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function Az(i,e,r,t){return ma(i.loadChildren()).pipe(ue(FM),ci(n=>n instanceof Cc||Array.isArray(n)?oe(n):Kt(e.compileModuleAsync(n))),ue(n=>{t&&t(i);let o,a,s=!1;return Array.isArray(n)?(a=n,s=!0):(o=n.create(r).injector,a=o.get(Gm,[],{optional:!0,self:!0}).flat()),{routes:a.map(k0),injector:o}}))}function Oz(i){return i&&typeof i=="object"&&"default"in i}function FM(i){return Oz(i)?i.default:i}var O0=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:()=>k(Rz),providedIn:"root"});let i=e;return i})(),Rz=(()=>{let e=class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,n){return t}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),NM=new R(""),LM=new R("");function Pz(i,e,r){let t=i.get(LM),n=i.get(se);return i.get(Z).runOutsideAngular(()=>{if(!n.startViewTransition||t.skipNextTransition)return t.skipNextTransition=!1,new Promise(u=>setTimeout(u));let o,a=new Promise(u=>{o=u}),s=n.startViewTransition(()=>(o(),Fz(i))),{onViewTransitionCreated:l}=t;return l&&io(i,()=>l({transition:s,from:e,to:r})),a})}function Fz(i){return new Promise(e=>{ai({read:()=>setTimeout(e)},{injector:i})})}var Nz=new R(""),R0=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new G,this.transitionAbortSubject=new G,this.configLoader=k(A0),this.environmentInjector=k(qi),this.urlSerializer=k(sd),this.rootContexts=k(cd),this.location=k(er),this.inputBindingEnabled=k(Ym,{optional:!0})!==null,this.titleStrategy=k(PM),this.options=k(ud,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=k(O0),this.createViewTransition=k(NM,{optional:!0}),this.navigationErrorHandler=k(Nz,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>oe(void 0),this.rootComponentType=null;let t=o=>this.events.next(new u0(o)),n=o=>this.events.next(new h0(o));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=t}complete(){this.transitions?.complete()}handleNavigationRequest(t){let n=++this.navigationId;this.transitions?.next(rt(j(j({},this.transitions.value),t),{id:n}))}setupNavigations(t,n,o){return this.transitions=new Gt({id:0,currentUrlTree:n,currentRawUrl:n,extractedUrl:this.urlHandlingStrategy.extract(n),urlAfterRedirects:this.urlHandlingStrategy.extract(n),rawUrl:n,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Zc,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Ye(a=>a.id!==0),ue(a=>rt(j({},a),{extractedUrl:this.urlHandlingStrategy.extract(a.rawUrl)})),Tt(a=>{let s=!1,l=!1;return oe(a).pipe(Tt(u=>{if(this.navigationId>a.id)return this.cancelNavigationTransition(a,"",jn.SupersededByNewNavigation),Ai;this.currentTransition=a,this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,targetBrowserUrl:typeof u.extras.browserUrl=="string"?this.urlSerializer.parse(u.extras.browserUrl):u.extras.browserUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?rt(j({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let f=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),v=u.extras.onSameUrlNavigation??t.onSameUrlNavigation;if(!f&&v!=="reload"){let C="";return this.events.next(new ha(u.id,this.urlSerializer.serialize(u.rawUrl),C,Lm.IgnoredSameUrlNavigation)),u.resolve(!1),Ai}if(this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return oe(u).pipe(Tt(C=>{let D=this.transitions?.getValue();return this.events.next(new bl(C.id,this.urlSerializer.serialize(C.extractedUrl),C.source,C.restoredState)),D!==this.transitions?.getValue()?Ai:Promise.resolve(C)}),Dz(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy),Ht(C=>{a.targetSnapshot=C.targetSnapshot,a.urlAfterRedirects=C.urlAfterRedirects,this.currentNavigation=rt(j({},this.currentNavigation),{finalUrl:C.urlAfterRedirects});let D=new Vm(C.id,this.urlSerializer.serialize(C.extractedUrl),this.urlSerializer.serialize(C.urlAfterRedirects),C.targetSnapshot);this.events.next(D)}));if(f&&this.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){let{id:C,extractedUrl:D,source:S,restoredState:P,extras:z}=u,O=new bl(C,this.urlSerializer.serialize(D),S,P);this.events.next(O);let de=xM(this.rootComponentType).snapshot;return this.currentTransition=a=rt(j({},u),{targetSnapshot:de,urlAfterRedirects:D,extras:rt(j({},z),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=D,oe(a)}else{let C="";return this.events.next(new ha(u.id,this.urlSerializer.serialize(u.extractedUrl),C,Lm.IgnoredByUrlHandlingStrategy)),u.resolve(!1),Ai}}),Ht(u=>{let f=new s0(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(f)}),ue(u=>(this.currentTransition=a=rt(j({},u),{guards:$B(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),a)),tz(this.environmentInjector,u=>this.events.next(u)),Ht(u=>{if(a.guardsResult=u.guardsResult,u.guardsResult&&typeof u.guardsResult!="boolean")throw $m(this.urlSerializer,u.guardsResult);let f=new l0(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(f)}),Ye(u=>u.guardsResult?!0:(this.cancelNavigationTransition(u,"",jn.GuardRejected),!1)),t0(u=>{if(u.guards.canActivateChecks.length)return oe(u).pipe(Ht(f=>{let v=new c0(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(v)}),Tt(f=>{let v=!1;return oe(f).pipe(Sz(this.paramsInheritanceStrategy,this.environmentInjector),Ht({next:()=>v=!0,complete:()=>{v||this.cancelNavigationTransition(f,"",jn.NoDataFromResolver)}}))}),Ht(f=>{let v=new d0(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(v)}))}),t0(u=>{let f=v=>{let C=[];v.routeConfig?.loadComponent&&!v.routeConfig._loadedComponent&&C.push(this.configLoader.loadComponent(v.routeConfig).pipe(Ht(D=>{v.component=D}),ue(()=>{})));for(let D of v.children)C.push(...f(D));return C};return Rn(f(u.targetSnapshot.root)).pipe(Yr(null),Ot(1))}),t0(()=>this.afterPreactivation()),Tt(()=>{let{currentSnapshot:u,targetSnapshot:f}=a,v=this.createViewTransition?.(this.environmentInjector,u.root,f.root);return v?Kt(v).pipe(ue(()=>a)):oe(a)}),ue(u=>{let f=jB(t.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=a=rt(j({},u),{targetRouterState:f}),this.currentNavigation.targetRouterState=f,a}),Ht(()=>{this.events.next(new td)}),HB(this.rootContexts,t.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),Ot(1),Ht({next:u=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new ir(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),this.titleStrategy?.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{s=!0}}),fe(this.transitionAbortSubject.pipe(Ht(u=>{throw u}))),zo(()=>{!s&&!l&&this.cancelNavigationTransition(a,"",jn.SupersededByNewNavigation),this.currentTransition?.id===a.id&&(this.currentNavigation=null,this.currentTransition=null)}),Wi(u=>{if(l=!0,MM(u))this.events.next(new Ar(a.id,this.urlSerializer.serialize(a.extractedUrl),u.message,u.cancellationCode)),UB(u)?this.events.next(new yl(u.url,u.navigationBehaviorOptions)):a.resolve(!1);else{let f=new ed(a.id,this.urlSerializer.serialize(a.extractedUrl),u,a.targetSnapshot??void 0);try{let v=io(this.environmentInjector,()=>this.navigationErrorHandler?.(f));if(v instanceof nd){let{message:C,cancellationCode:D}=$m(this.urlSerializer,v);this.events.next(new Ar(a.id,this.urlSerializer.serialize(a.extractedUrl),C,D)),this.events.next(new yl(v.redirectTo,v.navigationBehaviorOptions))}else{this.events.next(f);let C=t.errorHandler(u);a.resolve(!!C)}}catch(v){this.options.resolveNavigationPromiseOnError?a.resolve(!1):a.reject(v)}}return Ai}))}))}cancelNavigationTransition(t,n,o){let a=new Ar(t.id,this.urlSerializer.serialize(t.extractedUrl),n,o);this.events.next(a),t.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let t=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return t.toString()!==n?.toString()&&!this.currentNavigation?.extras.skipLocationChange}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function Lz(i){return i!==Zc}var Vz=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:()=>k(jz),providedIn:"root"});let i=e;return i})(),I0=class{shouldDetach(e){return!1}store(e,r){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,r){return e.routeConfig===r.routeConfig}},jz=(()=>{let e=class e extends I0{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=jt(e)))(o||e)}})(),e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),VM=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:()=>k(Bz),providedIn:"root"});let i=e;return i})(),Bz=(()=>{let e=class e extends VM{constructor(){super(...arguments),this.location=k(er),this.urlSerializer=k(sd),this.options=k(ud,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=k(O0),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Or,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=xM(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(n=>{n.type==="popstate"&&t(n.url,n.state)})}handleRouterEvent(t,n){if(t instanceof bl)this.stateMemento=this.createStateMemento();else if(t instanceof ha)this.rawUrlTree=n.initialUrl;else if(t instanceof Vm){if(this.urlUpdateStrategy==="eager"&&!n.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl);this.setBrowserUrl(n.targetBrowserUrl??o,n)}}else t instanceof td?(this.currentUrlTree=n.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl),this.routerState=n.targetRouterState,this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(n.targetBrowserUrl??this.rawUrlTree,n)):t instanceof Ar&&(t.code===jn.GuardRejected||t.code===jn.NoDataFromResolver)?this.restoreHistory(n):t instanceof ed?this.restoreHistory(n,!0):t instanceof ir&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,n){let o=t instanceof Or?this.urlSerializer.serialize(t):t;if(this.location.isCurrentPathEqualTo(o)||n.extras.replaceUrl){let a=this.browserPageId,s=j(j({},n.extras.state),this.generateNgRouterState(n.id,a));this.location.replaceState(o,"",s)}else{let a=j(j({},n.extras.state),this.generateNgRouterState(n.id,this.browserPageId+1));this.location.go(o,"",a)}}restoreHistory(t,n=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,a=this.currentPageId-o;a!==0?this.location.historyGo(a):this.currentUrlTree===t.finalUrl&&a===0&&(this.resetState(t),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,n){return this.canceledNavigationResolution==="computed"?{navigationId:t,\u0275routerPageId:n}:{navigationId:t}}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=jt(e)))(o||e)}})(),e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),Qc=function(i){return i[i.COMPLETE=0]="COMPLETE",i[i.FAILED=1]="FAILED",i[i.REDIRECTING=2]="REDIRECTING",i}(Qc||{});function jM(i,e){i.events.pipe(Ye(r=>r instanceof ir||r instanceof Ar||r instanceof ed||r instanceof ha),ue(r=>r instanceof ir||r instanceof ha?Qc.COMPLETE:(r instanceof Ar?r.code===jn.Redirect||r.code===jn.SupersededByNewNavigation:!1)?Qc.REDIRECTING:Qc.FAILED),Ye(r=>r!==Qc.REDIRECTING),Ot(1)).subscribe(()=>{e()})}function zz(i){throw i}var Uz={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Hz={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},nr=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=k(lm),this.stateManager=k(VM),this.options=k(ud,{optional:!0})||{},this.pendingTasks=k(Zo),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=k(R0),this.urlSerializer=k(sd),this.location=k(er),this.urlHandlingStrategy=k(O0),this._events=new G,this.errorHandler=this.options.errorHandler||zz,this.navigated=!1,this.routeReuseStrategy=k(Vz),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=k(Gm,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!k(Ym,{optional:!0}),this.eventsSubscription=new ve,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:t=>{this.console.warn(t)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let t=this.navigationTransitions.events.subscribe(n=>{try{let o=this.navigationTransitions.currentTransition,a=this.navigationTransitions.currentNavigation;if(o!==null&&a!==null){if(this.stateManager.handleRouterEvent(n,a),n instanceof Ar&&n.code!==jn.Redirect&&n.code!==jn.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof ir)this.navigated=!0;else if(n instanceof yl){let s=n.navigationBehaviorOptions,l=this.urlHandlingStrategy.merge(n.url,o.currentRawUrl),u=j({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Lz(o.source)},s);this.scheduleNavigation(l,Zc,null,u,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}Wz(n)&&this._events.next(n)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Zc,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,n)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(t,"popstate",n)},0)})}navigateToSyncWithBrowser(t,n,o){let a={replaceUrl:!0},s=o?.navigationId?o:null;if(o){let u=j({},o);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(a.state=u)}let l=this.parseUrl(t);this.scheduleNavigation(l,n,s,a)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(k0),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(t,n={}){let{relativeTo:o,queryParams:a,fragment:s,queryParamsHandling:l,preserveFragment:u}=n,f=u?this.currentUrlTree.fragment:s,v=null;switch(l??this.options.defaultQueryParamsHandling){case"merge":v=j(j({},this.currentUrlTree.queryParams),a);break;case"preserve":v=this.currentUrlTree.queryParams;break;default:v=a||null}v!==null&&(v=this.removeEmptyProps(v));let C;try{let D=o?o.snapshot:this.routerState.snapshot.root;C=bM(D)}catch{(typeof t[0]!="string"||t[0][0]!=="/")&&(t=[]),C=this.currentUrlTree.root}return yM(C,t,v,f??null)}navigateByUrl(t,n={skipLocationChange:!1}){let o=rs(t)?t:this.parseUrl(t),a=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(a,Zc,null,n)}navigate(t,n={skipLocationChange:!1}){return $z(t),this.navigateByUrl(this.createUrlTree(t,n),n)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){try{return this.urlSerializer.parse(t)}catch{return this.urlSerializer.parse("/")}}isActive(t,n){let o;if(n===!0?o=j({},Uz):n===!1?o=j({},Hz):o=n,rs(t))return JI(this.currentUrlTree,t,o);let a=this.parseUrl(t);return JI(this.currentUrlTree,a,o)}removeEmptyProps(t){return Object.entries(t).reduce((n,[o,a])=>(a!=null&&(n[o]=a),n),{})}scheduleNavigation(t,n,o,a,s){if(this.disposed)return Promise.resolve(!1);let l,u,f;s?(l=s.resolve,u=s.reject,f=s.promise):f=new Promise((C,D)=>{l=C,u=D});let v=this.pendingTasks.add();return jM(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(v))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:a,resolve:l,reject:u,promise:f,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),f.catch(C=>Promise.reject(C))}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function $z(i){for(let e=0;e{let e=class e{constructor(t,n,o,a,s,l){this.router=t,this.route=n,this.tabIndexAttribute=o,this.renderer=a,this.el=s,this.locationStrategy=l,this.href=null,this.onChanges=new G,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let u=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=u==="a"||u==="area",this.isAnchorElement?this.subscription=t.events.subscribe(f=>{f instanceof ir&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(t){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(t){t==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(rs(t)?this.routerLinkInput=t:this.routerLinkInput=Array.isArray(t)?t:[t],this.setTabIndexIfNotOnNativeEl("0"))}onClick(t,n,o,a,s){let l=this.urlTree;if(l===null||this.isAnchorElement&&(t!==0||n||o||a||s||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(l,u),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let t=this.urlTree;this.href=t!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(t)):null;let n=this.href===null?null:LS(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(t,n){let o=this.renderer,a=this.el.nativeElement;n!==null?o.setAttribute(a,t,n):o.removeAttribute(a,t)}get urlTree(){return this.routerLinkInput===null?null:rs(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(n){return new(n||e)(m(nr),m(Oe),vi("tabindex"),m(xr),m(q),m(kr))},e.\u0275dir=L({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,o){n&1&&b("click",function(s){return o.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),n&2&&ie("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Y],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Y],replaceUrl:[2,"replaceUrl","replaceUrl",Y],routerLink:"routerLink"},standalone:!0,features:[ge,Qe]});let i=e;return i})();var qm=class{};var Gz=(()=>{let e=class e{constructor(t,n,o,a,s){this.router=t,this.injector=o,this.preloadingStrategy=a,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(Ye(t=>t instanceof ir),hr(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,n){let o=[];for(let a of n){a.providers&&!a._injector&&(a._injector=sm(a.providers,t,`Route: ${a.path}`));let s=a._injector??t,l=a._loadedInjector??s;(a.loadChildren&&!a._loadedRoutes&&a.canLoad===void 0||a.loadComponent&&!a._loadedComponent)&&o.push(this.preloadConfig(s,a)),(a.children||a._loadedRoutes)&&o.push(this.processRoutes(l,a.children??a._loadedRoutes))}return Kt(o).pipe(qr())}preloadConfig(t,n){return this.preloadingStrategy.preload(n,()=>{let o;n.loadChildren&&n.canLoad===void 0?o=this.loader.loadChildren(t,n):o=oe(null);let a=o.pipe(ci(s=>s===null?oe(void 0):(n._loadedRoutes=s.routes,n._loadedInjector=s.injector,this.processRoutes(s.injector??t,s.routes))));if(n.loadComponent&&!n._loadedComponent){let s=this.loader.loadComponent(n);return Kt([a,s]).pipe(qr())}else return a})}};e.\u0275fac=function(n){return new(n||e)(M(nr),M(mm),M(qi),M(qm),M(A0))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),BM=new R(""),qz=(()=>{let e=class e{constructor(t,n,o,a,s={}){this.urlSerializer=t,this.transitions=n,this.viewportScroller=o,this.zone=a,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration||="disabled",s.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof bl?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof ir?(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment)):t instanceof ha&&t.code===Lm.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof jm&&(t.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(t.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,n){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new jm(t,this.lastSource==="popstate"?this.store[this.restoredId]:null,n))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(n){ts()},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();function Yz(i){return i.routerState.root}function hd(i,e){return{\u0275kind:i,\u0275providers:e}}function Qz(){let i=k(Pe);return e=>{let r=i.get(Ln);if(e!==r.components[0])return;let t=i.get(nr),n=i.get(zM);i.get(P0)===1&&t.initialNavigation(),i.get(UM,null,gt.Optional)?.setUpPreloading(),i.get(BM,null,gt.Optional)?.init(),t.resetRootComponentType(r.componentTypes[0]),n.closed||(n.next(),n.complete(),n.unsubscribe())}}var zM=new R("",{factory:()=>new G}),P0=new R("",{providedIn:"root",factory:()=>1});function Kz(){return hd(2,[{provide:P0,useValue:0},{provide:um,multi:!0,deps:[Pe],useFactory:e=>{let r=e.get(wI,Promise.resolve());return()=>r.then(()=>new Promise(t=>{let n=e.get(nr),o=e.get(zM);jM(n,()=>{t(!0)}),e.get(R0).afterPreactivation=()=>(t(!0),o.closed?oe(void 0):o),n.initialNavigation()}))}}])}function Zz(){return hd(3,[{provide:um,multi:!0,useFactory:()=>{let e=k(nr);return()=>{e.setUpLocationChangeListener()}}},{provide:P0,useValue:2}])}var UM=new R("");function Xz(i){return hd(0,[{provide:UM,useExisting:Gz},{provide:qm,useExisting:i}])}function Jz(){return hd(8,[nM,{provide:Ym,useExisting:nM}])}function e4(i){let e=[{provide:NM,useValue:Pz},{provide:LM,useValue:j({skipNextTransition:!!i?.skipInitialTransition},i)}];return hd(9,e)}var sM=new R("ROUTER_FORROOT_GUARD"),t4=[er,{provide:sd,useClass:vl},nr,cd,{provide:Oe,useFactory:Yz,deps:[nr]},A0,[]],F0=(()=>{let e=class e{constructor(t){}static forRoot(t,n){return{ngModule:e,providers:[t4,[],{provide:Gm,multi:!0,useValue:t},{provide:sM,useFactory:r4,deps:[[nr,new to,new Do]]},{provide:ud,useValue:n||{}},n?.useHash?n4():o4(),i4(),n?.preloadingStrategy?Xz(n.preloadingStrategy).\u0275providers:[],n?.initialNavigation?a4(n):[],n?.bindToComponentInputs?Jz().\u0275providers:[],n?.enableViewTransitions?e4().\u0275providers:[],s4()]}}static forChild(t){return{ngModule:e,providers:[{provide:Gm,multi:!0,useValue:t}]}}};e.\u0275fac=function(n){return new(n||e)(M(sM,8))},e.\u0275mod=te({type:e}),e.\u0275inj=ee({});let i=e;return i})();function i4(){return{provide:BM,useFactory:()=>{let i=k(MI),e=k(Z),r=k(ud),t=k(R0),n=k(sd);return r.scrollOffset&&i.setOffset(r.scrollOffset),new qz(n,t,i,e,r)}}}function n4(){return{provide:kr,useClass:xI}}function o4(){return{provide:kr,useClass:Fb}}function r4(i){return"guarded"}function a4(i){return[i.initialNavigation==="disabled"?Zz().\u0275providers:[],i.initialNavigation==="enabledBlocking"?Kz().\u0275providers:[]]}var lM=new R("");function s4(){return[{provide:lM,useFactory:Qz},{provide:hm,multi:!0,useExisting:lM}]}var Km=class{constructor(e){this.user=e.user,this.role=e.role,this.admin=e.admin}get isStaff(){return this.role==="staff"||this.role==="admin"}get isAdmin(){return this.role==="admin"}get isLogged(){return this.user!=null}};function Bn(i){return i!=null&&`${i}`!="false"}function Mo(i,e=0){return N0(i)?Number(i):arguments.length===2?e:0}function N0(i){return!isNaN(parseFloat(i))&&!isNaN(Number(i))}function xl(i){return Array.isArray(i)?i:[i]}function xi(i){return i==null?"":typeof i=="string"?i:`${i}px`}function En(i){return i instanceof q?i.nativeElement:i}function HM(i,e=/\s+/){let r=[];if(i!=null){let t=Array.isArray(i)?i:`${i}`.split(e);for(let n of t){let o=`${n}`.trim();o&&r.push(o)}}return r}var V0;try{V0=typeof Intl<"u"&&Intl.v8BreakIterator}catch{V0=!1}var Ve=(()=>{let e=class e{constructor(t){this._platformId=t,this.isBrowser=this._platformId?Lb(this._platformId):typeof document=="object"&&!!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||V0)&&typeof CSS<"u"&&!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}};e.\u0275fac=function(n){return new(n||e)(M(oo))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var Dl,$M=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function j0(){if(Dl)return Dl;if(typeof document!="object"||!document)return Dl=new Set($M),Dl;let i=document.createElement("input");return Dl=new Set($M.filter(e=>(i.setAttribute("type",e),i.type===e))),Dl}var md;function l4(){if(md==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>md=!0}))}finally{md=md||!1}return md}function Ui(i){return l4()?i:!!i.capture}var To=function(i){return i[i.NORMAL=0]="NORMAL",i[i.NEGATED=1]="NEGATED",i[i.INVERTED=2]="INVERTED",i}(To||{}),Zm,as;function Xm(){if(as==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return as=!1,as;if("scrollBehavior"in document.documentElement.style)as=!0;else{let i=Element.prototype.scrollTo;i?as=!/\{\s*\[native code\]\s*\}/.test(i.toString()):as=!1}}return as}function Sl(){if(typeof document!="object"||!document)return To.NORMAL;if(Zm==null){let i=document.createElement("div"),e=i.style;i.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";let r=document.createElement("div"),t=r.style;t.width="2px",t.height="1px",i.appendChild(r),document.body.appendChild(i),Zm=To.NORMAL,i.scrollLeft===0&&(i.scrollLeft=1,Zm=i.scrollLeft===0?To.NEGATED:To.INVERTED),i.remove()}return Zm}var L0;function c4(){if(L0==null){let i=typeof document<"u"?document.head:null;L0=!!(i&&(i.createShadowRoot||i.attachShadow))}return L0}function WM(i){if(c4()){let e=i.getRootNode?i.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function pa(){let i=typeof document<"u"&&document?document.activeElement:null;for(;i&&i.shadowRoot;){let e=i.shadowRoot.activeElement;if(e===i)break;i=e}return i}function mn(i){return i.composedPath?i.composedPath()[0]:i.target}function pd(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var d4=new R("cdk-dir-doc",{providedIn:"root",factory:u4});function u4(){return k(se)}var h4=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function m4(i){let e=i?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?h4.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var Nt=(()=>{let e=class e{constructor(t){if(this.value="ltr",this.change=new T,t){let n=t.body?t.body.dir:null,o=t.documentElement?t.documentElement.dir:null;this.value=m4(n||o||"ltr")}}ngOnDestroy(){this.change.complete()}};e.\u0275fac=function(n){return new(n||e)(M(d4,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var fa=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({});let i=e;return i})();var Jm=class{};function ep(i){return i&&typeof i.connect=="function"&&!(i instanceof Wr)}var El=function(i){return i[i.REPLACED=0]="REPLACED",i[i.INSERTED=1]="INSERTED",i[i.MOVED=2]="MOVED",i[i.REMOVED=3]="REMOVED",i}(El||{}),fd=new R("_ViewRepeater"),Il=class{applyChanges(e,r,t,n,o){e.forEachOperation((a,s,l)=>{let u,f;if(a.previousIndex==null){let v=t(a,s,l);u=r.createEmbeddedView(v.templateRef,v.context,v.index),f=El.INSERTED}else l==null?(r.remove(s),f=El.REMOVED):(u=r.get(s),r.move(u,l),f=El.MOVED);o&&o({context:u?.context,operation:f,record:a})})}detach(){}};var Rr=class{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(e=!1,r,t=!0,n){this._multiple=e,this._emitChanges=t,this.compareWith=n,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new G,r&&r.length&&(e?r.forEach(o=>this._markSelected(o)):this._markSelected(r[0]),this._selectedToEmit.length=0)}select(...e){this._verifyValueAssignment(e),e.forEach(t=>this._markSelected(t));let r=this._hasQueuedChanges();return this._emitChangeEvent(),r}deselect(...e){this._verifyValueAssignment(e),e.forEach(t=>this._unmarkSelected(t));let r=this._hasQueuedChanges();return this._emitChangeEvent(),r}setSelection(...e){this._verifyValueAssignment(e);let r=this.selected,t=new Set(e);e.forEach(o=>this._markSelected(o)),r.filter(o=>!t.has(this._getConcreteValue(o,t))).forEach(o=>this._unmarkSelected(o));let n=this._hasQueuedChanges();return this._emitChangeEvent(),n}toggle(e){return this.isSelected(e)?this.deselect(e):this.select(e)}clear(e=!0){this._unmarkAll();let r=this._hasQueuedChanges();return e&&this._emitChangeEvent(),r}isSelected(e){return this._selection.has(this._getConcreteValue(e))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(e){this._multiple&&this.selected&&this._selected.sort(e)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(e){e=this._getConcreteValue(e),this.isSelected(e)||(this._multiple||this._unmarkAll(),this.isSelected(e)||this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}_unmarkSelected(e){e=this._getConcreteValue(e),this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}_unmarkAll(){this.isEmpty()||this._selection.forEach(e=>this._unmarkSelected(e))}_verifyValueAssignment(e){e.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(e,r){if(this.compareWith){r=r??this._selection;for(let t of r)if(this.compareWith(e,t))return t;return e}else return e}};var p4=20,Ml=(()=>{let e=class e{constructor(t,n,o){this._ngZone=t,this._platform=n,this._scrolled=new G,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=o}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){let n=this.scrollContainers.get(t);n&&(n.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=p4){return this._platform.isBrowser?new Re(n=>{this._globalSubscription||this._addGlobalListener();let o=t>0?this._scrolled.pipe(zu(t)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):oe()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,n)=>this.deregister(n)),this._scrolled.complete()}ancestorScrolled(t,n){let o=this.getAncestorScrollContainers(t);return this.scrolled(n).pipe(Ye(a=>!a||o.indexOf(a)>-1))}getAncestorScrollContainers(t){let n=[];return this.scrollContainers.forEach((o,a)=>{this._scrollableContainsElement(a,t)&&n.push(a)}),n}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,n){let o=En(n),a=t.getElementRef().nativeElement;do if(o==a)return!0;while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let t=this._getWindow();return dn(t.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}};e.\u0275fac=function(n){return new(n||e)(M(Z),M(Ve),M(se,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),gd=(()=>{let e=class e{constructor(t,n,o,a){this.elementRef=t,this.scrollDispatcher=n,this.ngZone=o,this.dir=a,this._destroyed=new G,this._elementScrolled=new Re(s=>this.ngZone.runOutsideAngular(()=>dn(this.elementRef.nativeElement,"scroll").pipe(fe(this._destroyed)).subscribe(s)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){let n=this.elementRef.nativeElement,o=this.dir&&this.dir.value=="rtl";t.left==null&&(t.left=o?t.end:t.start),t.right==null&&(t.right=o?t.start:t.end),t.bottom!=null&&(t.top=n.scrollHeight-n.clientHeight-t.bottom),o&&Sl()!=To.NORMAL?(t.left!=null&&(t.right=n.scrollWidth-n.clientWidth-t.left),Sl()==To.INVERTED?t.left=t.right:Sl()==To.NEGATED&&(t.left=t.right?-t.right:t.right)):t.right!=null&&(t.left=n.scrollWidth-n.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){let n=this.elementRef.nativeElement;Xm()?n.scrollTo(t):(t.top!=null&&(n.scrollTop=t.top),t.left!=null&&(n.scrollLeft=t.left))}measureScrollOffset(t){let n="left",o="right",a=this.elementRef.nativeElement;if(t=="top")return a.scrollTop;if(t=="bottom")return a.scrollHeight-a.clientHeight-a.scrollTop;let s=this.dir&&this.dir.value=="rtl";return t=="start"?t=s?o:n:t=="end"&&(t=s?n:o),s&&Sl()==To.INVERTED?t==n?a.scrollWidth-a.clientWidth-a.scrollLeft:a.scrollLeft:s&&Sl()==To.NEGATED?t==n?a.scrollLeft+a.scrollWidth-a.clientWidth:-a.scrollLeft:t==n?a.scrollLeft:a.scrollWidth-a.clientWidth-a.scrollLeft}};e.\u0275fac=function(n){return new(n||e)(m(q),m(Ml),m(Z),m(Nt,8))},e.\u0275dir=L({type:e,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0});let i=e;return i})(),f4=20,fn=(()=>{let e=class e{constructor(t,n,o){this._platform=t,this._change=new G,this._changeListener=a=>{this._change.next(a)},this._document=o,n.runOutsideAngular(()=>{if(t.isBrowser){let a=this._getWindow();a.addEventListener("resize",this._changeListener),a.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){let t=this.getViewportScrollPosition(),{width:n,height:o}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+o,right:t.left+n,height:o,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let t=this._document,n=this._getWindow(),o=t.documentElement,a=o.getBoundingClientRect(),s=-a.top||t.body.scrollTop||n.scrollY||o.scrollTop||0,l=-a.left||t.body.scrollLeft||n.scrollX||o.scrollLeft||0;return{top:s,left:l}}change(t=f4){return t>0?this._change.pipe(zu(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}};e.\u0275fac=function(n){return new(n||e)(M(Ve),M(Z),M(se,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var so=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({});let i=e;return i})(),_d=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({imports:[fa,so,fa,so]});let i=e;return i})();var vd=class{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;e!=null&&(this._attachedHost=null,e.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(e){this._attachedHost=e}},In=class extends vd{constructor(e,r,t,n,o){super(),this.component=e,this.viewContainerRef=r,this.injector=t,this.componentFactoryResolver=n,this.projectableNodes=o}},Oi=class extends vd{constructor(e,r,t,n){super(),this.templateRef=e,this.viewContainerRef=r,this.context=t,this.injector=n}get origin(){return this.templateRef.elementRef}attach(e,r=this.context){return this.context=r,super.attach(e)}detach(){return this.context=void 0,super.detach()}},B0=class extends vd{constructor(e){super(),this.element=e instanceof q?e.nativeElement:e}},ga=class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){if(e instanceof In)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof Oi)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof B0)return this._attachedPortal=e,this.attachDomPortal(e)}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var Tl=class extends ga{constructor(e,r,t,n,o){super(),this.outletElement=e,this._componentFactoryResolver=r,this._appRef=t,this._defaultInjector=n,this.attachDomPortal=a=>{this._document;let s=a.element;s.parentNode;let l=this._document.createComment("dom-portal");s.parentNode.insertBefore(l,s),this.outletElement.appendChild(s),this._attachedPortal=a,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(s,l)})},this._document=o}attachComponentPortal(e){let t=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),n;return e.viewContainerRef?(n=e.viewContainerRef.createComponent(t,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector,e.projectableNodes||void 0),this.setDisposeFn(()=>n.destroy())):(n=t.create(e.injector||this._defaultInjector||Pe.NULL),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),this._attachedPortal=e,n}attachTemplatePortal(e){let r=e.viewContainerRef,t=r.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return t.rootNodes.forEach(n=>this.outletElement.appendChild(n)),t.detectChanges(),this.setDisposeFn(()=>{let n=r.indexOf(t);n!==-1&&r.remove(n)}),this._attachedPortal=e,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}};var GM=(()=>{let e=class e extends Oi{constructor(t,n){super(t,n)}};e.\u0275fac=function(n){return new(n||e)(m(ct),m(Ct))},e.\u0275dir=L({type:e,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],standalone:!0,features:[be]});let i=e;return i})();var rn=(()=>{let e=class e extends ga{constructor(t,n,o){super(),this._componentFactoryResolver=t,this._viewContainerRef=n,this._isInitialized=!1,this.attached=new T,this.attachDomPortal=a=>{this._document;let s=a.element;s.parentNode;let l=this._document.createComment("dom-portal");a.setAttachedHost(this),s.parentNode.insertBefore(l,s),this._getRootNode().appendChild(s),this._attachedPortal=a,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(s,l)})},this._document=o}get portal(){return this._attachedPortal}set portal(t){this.hasAttached()&&!t&&!this._isInitialized||(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(t){t.setAttachedHost(this);let n=t.viewContainerRef!=null?t.viewContainerRef:this._viewContainerRef,a=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),s=n.createComponent(a,n.length,t.injector||n.injector,t.projectableNodes||void 0);return n!==this._viewContainerRef&&this._getRootNode().appendChild(s.hostView.rootNodes[0]),super.setDisposeFn(()=>s.destroy()),this._attachedPortal=t,this._attachedRef=s,this.attached.emit(s),s}attachTemplatePortal(t){t.setAttachedHost(this);let n=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=n,this.attached.emit(n),n}_getRootNode(){let t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}};e.\u0275fac=function(n){return new(n||e)(m(wn),m(Ct),m(se))},e.\u0275dir=L({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[be]});let i=e;return i})();var zn=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({});let i=e;return i})();function Pt(i,...e){return e.length?e.some(r=>i[r]):i.altKey||i.shiftKey||i.ctrlKey||i.metaKey}var qM=Xm(),z0=class{constructor(e,r){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=r}attach(){}enable(){if(this._canBeEnabled()){let e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=xi(-this._previousScrollPosition.left),e.style.top=xi(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let e=this._document.documentElement,r=this._document.body,t=e.style,n=r.style,o=t.scrollBehavior||"",a=n.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),qM&&(t.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),qM&&(t.scrollBehavior=o,n.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let r=this._document.body,t=this._viewportRuler.getViewportSize();return r.scrollHeight>t.height||r.scrollWidth>t.width}};var U0=class{constructor(e,r,t,n){this._scrollDispatcher=e,this._ngZone=r,this._viewportRuler=t,this._config=n,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(this._scrollSubscription)return;let e=this._scrollDispatcher.scrolled(0).pipe(Ye(r=>!r||!this._overlayRef.overlayElement.contains(r.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{let r=this._viewportRuler.getViewportScrollPosition().top;Math.abs(r-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},tp=class{enable(){}disable(){}attach(){}};function H0(i,e){return e.some(r=>{let t=i.bottomr.bottom,o=i.rightr.right;return t||n||o||a})}function YM(i,e){return e.some(r=>{let t=i.topr.bottom,o=i.leftr.right;return t||n||o||a})}var $0=class{constructor(e,r,t,n){this._scrollDispatcher=e,this._viewportRuler=r,this._ngZone=t,this._config=n,this._scrollSubscription=null}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(!this._scrollSubscription){let e=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(e).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let r=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:n}=this._viewportRuler.getViewportSize();H0(r,[{width:t,height:n,bottom:n,right:t,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},g4=(()=>{let e=class e{constructor(t,n,o,a){this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=o,this.noop=()=>new tp,this.close=s=>new U0(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new z0(this._viewportRuler,this._document),this.reposition=s=>new $0(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=a}};e.\u0275fac=function(n){return new(n||e)(M(Ml),M(fn),M(Z),M(se))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),Mn=class{constructor(e){if(this.scrollStrategy=new tp,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){let r=Object.keys(e);for(let t of r)e[t]!==void 0&&(this[t]=e[t])}}};var W0=class{constructor(e,r){this.connectionPair=e,this.scrollableViewProperties=r}};var e1=(()=>{let e=class e{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){let n=this._attachedOverlays.indexOf(t);n>-1&&this._attachedOverlays.splice(n,1),this._attachedOverlays.length===0&&this.detach()}};e.\u0275fac=function(n){return new(n||e)(M(se))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),_4=(()=>{let e=class e extends e1{constructor(t,n){super(t),this._ngZone=n,this._keydownListener=o=>{let a=this._attachedOverlays;for(let s=a.length-1;s>-1;s--)if(a[s]._keydownEvents.observers.length>0){let l=a[s]._keydownEvents;this._ngZone?this._ngZone.run(()=>l.next(o)):l.next(o);break}}}add(t){super.add(t),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}};e.\u0275fac=function(n){return new(n||e)(M(se),M(Z,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),v4=(()=>{let e=class e extends e1{constructor(t,n,o){super(t),this._platform=n,this._ngZone=o,this._cursorStyleIsSet=!1,this._pointerDownListener=a=>{this._pointerDownEventTarget=mn(a)},this._clickListener=a=>{let s=mn(a),l=a.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;this._pointerDownEventTarget=null;let u=this._attachedOverlays.slice();for(let f=u.length-1;f>-1;f--){let v=u[f];if(v._outsidePointerEvents.observers.length<1||!v.hasAttached())continue;if(QM(v.overlayElement,s)||QM(v.overlayElement,l))break;let C=v._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>C.next(a)):C.next(a)}}}add(t){if(super.add(t),!this._isAttached){let n=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(n)):this._addEventListeners(n),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=n.style.cursor,n.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){let t=this._document.body;t.removeEventListener("pointerdown",this._pointerDownListener,!0),t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(t){t.addEventListener("pointerdown",this._pointerDownListener,!0),t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0)}};e.\u0275fac=function(n){return new(n||e)(M(se),M(Ve),M(Z,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function QM(i,e){let r=typeof ShadowRoot<"u"&&ShadowRoot,t=e;for(;t;){if(t===i)return!0;t=r&&t instanceof ShadowRoot?t.host:t.parentNode}return!1}var kl=(()=>{let e=class e{constructor(t,n){this._platform=n,this._document=t}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let t="cdk-overlay-container";if(this._platform.isBrowser||pd()){let o=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let a=0;athis._backdropClick.next(C),this._backdropTransitionendHandler=C=>{this._disposeBackdrop(C.target)},this._keydownEvents=new G,this._outsidePointerEvents=new G,this._renders=new G,n.scrollStrategy&&(this._scrollStrategy=n.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=n.positionStrategy,this._afterRenderRef=Dn(()=>Oc(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let r=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=ai(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof r?.onDestroy=="function"&&r.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),r}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){let e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=null,e&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=j(j({},this._config),e),this._updateElementSize()}setDirection(e){this._config=rt(j({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){let e=this._config.direction;return e?typeof e=="string"?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let e=this._pane.style;e.width=xi(this._config.width),e.height=xi(this._config.height),e.minWidth=xi(this._config.minWidth),e.minHeight=xi(this._config.minHeight),e.maxWidth=xi(this._config.maxWidth),e.maxHeight=xi(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){let e="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(e)})}):this._backdropElement.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let e=this._backdropElement;if(e){if(this._animationsDisabled){this._disposeBackdrop(e);return}e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",this._backdropTransitionendHandler)}),e.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(e)},500))}}_toggleClasses(e,r,t){let n=xl(r||[]).filter(o=>!!o);n.length&&(t?e.classList.add(...n):e.classList.remove(...n))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let e=this._renders.pipe(fe(wt(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),e.unsubscribe())})})}_disposeScrollStrategy(){let e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}_disposeBackdrop(e){e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",this._backdropTransitionendHandler),e.remove(),this._backdropElement===e&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}},KM="cdk-overlay-connected-position-bounding-box",b4=/([A-Za-z%]+)$/,bd=class{get positions(){return this._preferredPositions}constructor(e,r,t,n,o){this._viewportRuler=r,this._document=t,this._platform=n,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new G,this._resizeSubscription=ve.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}attach(e){this._overlayRef&&this._overlayRef,this._validatePositions(),e.hostElement.classList.add(KM),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._originRect,r=this._overlayRect,t=this._viewportRect,n=this._containerRect,o=[],a;for(let s of this._preferredPositions){let l=this._getOriginPoint(e,n,s),u=this._getOverlayPoint(l,r,s),f=this._getOverlayFit(u,r,t,s);if(f.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(s,l);return}if(this._canFitWithFlexibleDimensions(f,u,t)){o.push({position:s,origin:l,overlayRect:r,boundingBoxRect:this._calculateBoundingBoxRect(l,s)});continue}(!a||a.overlayFit.visibleAreal&&(l=f,s=u)}this._isPushed=!1,this._applyPosition(s.position,s.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(a.position,a.originPoint);return}this._applyPosition(a.position,a.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ls(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(KM),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let e=this._lastPosition;if(e){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let r=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,r)}else this.apply()}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,e.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,r,t){let n;if(t.originX=="center")n=e.left+e.width/2;else{let a=this._isRtl()?e.right:e.left,s=this._isRtl()?e.left:e.right;n=t.originX=="start"?a:s}r.left<0&&(n-=r.left);let o;return t.originY=="center"?o=e.top+e.height/2:o=t.originY=="top"?e.top:e.bottom,r.top<0&&(o-=r.top),{x:n,y:o}}_getOverlayPoint(e,r,t){let n;t.overlayX=="center"?n=-r.width/2:t.overlayX==="start"?n=this._isRtl()?-r.width:0:n=this._isRtl()?0:-r.width;let o;return t.overlayY=="center"?o=-r.height/2:o=t.overlayY=="top"?0:-r.height,{x:e.x+n,y:e.y+o}}_getOverlayFit(e,r,t,n){let o=XM(r),{x:a,y:s}=e,l=this._getOffset(n,"x"),u=this._getOffset(n,"y");l&&(a+=l),u&&(s+=u);let f=0-a,v=a+o.width-t.width,C=0-s,D=s+o.height-t.height,S=this._subtractOverflows(o.width,f,v),P=this._subtractOverflows(o.height,C,D),z=S*P;return{visibleArea:z,isCompletelyWithinViewport:o.width*o.height===z,fitsInViewportVertically:P===o.height,fitsInViewportHorizontally:S==o.width}}_canFitWithFlexibleDimensions(e,r,t){if(this._hasFlexibleDimensions){let n=t.bottom-r.y,o=t.right-r.x,a=ZM(this._overlayRef.getConfig().minHeight),s=ZM(this._overlayRef.getConfig().minWidth),l=e.fitsInViewportVertically||a!=null&&a<=n,u=e.fitsInViewportHorizontally||s!=null&&s<=o;return l&&u}return!1}_pushOverlayOnScreen(e,r,t){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};let n=XM(r),o=this._viewportRect,a=Math.max(e.x+n.width-o.width,0),s=Math.max(e.y+n.height-o.height,0),l=Math.max(o.top-t.top-e.y,0),u=Math.max(o.left-t.left-e.x,0),f=0,v=0;return n.width<=o.width?f=u||-a:f=e.xS&&!this._isInitialRender&&!this._growAfterOpen&&(a=e.y-S/2)}let l=r.overlayX==="start"&&!n||r.overlayX==="end"&&n,u=r.overlayX==="end"&&!n||r.overlayX==="start"&&n,f,v,C;if(u)C=t.width-e.x+this._viewportMargin*2,f=e.x-this._viewportMargin;else if(l)v=e.x,f=t.right-e.x;else{let D=Math.min(t.right-e.x+t.left,e.x),S=this._lastBoundingBoxSize.width;f=D*2,v=e.x-D,f>S&&!this._isInitialRender&&!this._growAfterOpen&&(v=e.x-S/2)}return{top:a,left:v,bottom:s,right:C,width:f,height:o}}_setBoundingBoxStyles(e,r){let t=this._calculateBoundingBoxRect(e,r);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));let n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{let o=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;n.height=xi(t.height),n.top=xi(t.top),n.bottom=xi(t.bottom),n.width=xi(t.width),n.left=xi(t.left),n.right=xi(t.right),r.overlayX==="center"?n.alignItems="center":n.alignItems=r.overlayX==="end"?"flex-end":"flex-start",r.overlayY==="center"?n.justifyContent="center":n.justifyContent=r.overlayY==="bottom"?"flex-end":"flex-start",o&&(n.maxHeight=xi(o)),a&&(n.maxWidth=xi(a))}this._lastBoundingBoxSize=t,ls(this._boundingBox.style,n)}_resetBoundingBoxStyles(){ls(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ls(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,r){let t={},n=this._hasExactPosition(),o=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(n){let f=this._viewportRuler.getViewportScrollPosition();ls(t,this._getExactOverlayY(r,e,f)),ls(t,this._getExactOverlayX(r,e,f))}else t.position="static";let s="",l=this._getOffset(r,"x"),u=this._getOffset(r,"y");l&&(s+=`translateX(${l}px) `),u&&(s+=`translateY(${u}px)`),t.transform=s.trim(),a.maxHeight&&(n?t.maxHeight=xi(a.maxHeight):o&&(t.maxHeight="")),a.maxWidth&&(n?t.maxWidth=xi(a.maxWidth):o&&(t.maxWidth="")),ls(this._pane.style,t)}_getExactOverlayY(e,r,t){let n={top:"",bottom:""},o=this._getOverlayPoint(r,this._overlayRect,e);if(this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,t)),e.overlayY==="bottom"){let a=this._document.documentElement.clientHeight;n.bottom=`${a-(o.y+this._overlayRect.height)}px`}else n.top=xi(o.y);return n}_getExactOverlayX(e,r,t){let n={left:"",right:""},o=this._getOverlayPoint(r,this._overlayRect,e);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,t));let a;if(this._isRtl()?a=e.overlayX==="end"?"left":"right":a=e.overlayX==="end"?"right":"left",a==="right"){let s=this._document.documentElement.clientWidth;n.right=`${s-(o.x+this._overlayRect.width)}px`}else n.left=xi(o.x);return n}_getScrollVisibility(){let e=this._getOriginRect(),r=this._pane.getBoundingClientRect(),t=this._scrollables.map(n=>n.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:YM(e,t),isOriginOutsideView:H0(e,t),isOverlayClipped:YM(r,t),isOverlayOutsideView:H0(r,t)}}_subtractOverflows(e,...r){return r.reduce((t,n)=>t-Math.max(n,0),e)}_getNarrowedViewportRect(){let e=this._document.documentElement.clientWidth,r=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+e-this._viewportMargin,bottom:t.top+r-this._viewportMargin,width:e-2*this._viewportMargin,height:r-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,r){return r==="x"?e.offsetX==null?this._offsetX:e.offsetX:e.offsetY==null?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&xl(e).forEach(r=>{r!==""&&this._appliedPanelClasses.indexOf(r)===-1&&(this._appliedPanelClasses.push(r),this._pane.classList.add(r))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){let e=this._origin;if(e instanceof q)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();let r=e.width||0,t=e.height||0;return{top:e.y,bottom:e.y+t,left:e.x,right:e.x+r,height:t,width:r}}};function ls(i,e){for(let r in e)e.hasOwnProperty(r)&&(i[r]=e[r]);return i}function ZM(i){if(typeof i!="number"&&i!=null){let[e,r]=i.split(b4);return!r||r==="px"?parseFloat(e):null}return i||null}function XM(i){return{top:Math.floor(i.top),right:Math.floor(i.right),bottom:Math.floor(i.bottom),left:Math.floor(i.left),width:Math.floor(i.width),height:Math.floor(i.height)}}function y4(i,e){return i===e?!0:i.isOriginClipped===e.isOriginClipped&&i.isOriginOutsideView===e.isOriginOutsideView&&i.isOverlayClipped===e.isOverlayClipped&&i.isOverlayOutsideView===e.isOverlayOutsideView}var JM="cdk-global-overlay-wrapper",G0=class{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(e){let r=e.getConfig();this._overlayRef=e,this._width&&!r.width&&e.updateSize({width:this._width}),this._height&&!r.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(JM),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let e=this._overlayRef.overlayElement.style,r=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:n,height:o,maxWidth:a,maxHeight:s}=t,l=(n==="100%"||n==="100vw")&&(!a||a==="100%"||a==="100vw"),u=(o==="100%"||o==="100vh")&&(!s||s==="100%"||s==="100vh"),f=this._xPosition,v=this._xOffset,C=this._overlayRef.getConfig().direction==="rtl",D="",S="",P="";l?P="flex-start":f==="center"?(P="center",C?S=v:D=v):C?f==="left"||f==="end"?(P="flex-end",D=v):(f==="right"||f==="start")&&(P="flex-start",S=v):f==="left"||f==="start"?(P="flex-start",D=v):(f==="right"||f==="end")&&(P="flex-end",S=v),e.position=this._cssPosition,e.marginLeft=l?"0":D,e.marginTop=u?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=l?"0":S,r.justifyContent=P,r.alignItems=u?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let e=this._overlayRef.overlayElement.style,r=this._overlayRef.hostElement,t=r.style;r.classList.remove(JM),t.justifyContent=t.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}},w4=(()=>{let e=class e{constructor(t,n,o,a){this._viewportRuler=t,this._document=n,this._platform=o,this._overlayContainer=a}global(){return new G0}flexibleConnectedTo(t){return new bd(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}};e.\u0275fac=function(n){return new(n||e)(M(fn),M(se),M(Ve),M(kl))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),C4=0,xt=(()=>{let e=class e{constructor(t,n,o,a,s,l,u,f,v,C,D,S){this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=o,this._positionBuilder=a,this._keyboardDispatcher=s,this._injector=l,this._ngZone=u,this._document=f,this._directionality=v,this._location=C,this._outsideClickDispatcher=D,this._animationsModuleType=S}create(t){let n=this._createHostElement(),o=this._createPaneElement(n),a=this._createPortalOutlet(o),s=new Mn(t);return s.direction=s.direction||this._directionality.value,new Pr(a,n,o,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(qi))}position(){return this._positionBuilder}_createPaneElement(t){let n=this._document.createElement("div");return n.id=`cdk-overlay-${C4++}`,n.classList.add("cdk-overlay-pane"),t.appendChild(n),n}_createHostElement(){let t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(Ln)),new Tl(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}};e.\u0275fac=function(n){return new(n||e)(M(g4),M(kl),M(wn),M(w4),M(_4),M(Pe),M(Z),M(se),M(Nt),M(er),M(v4),M(kt,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),x4=[{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"}],t1=new R("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let i=k(xt);return()=>i.scrollStrategies.reposition()}}),yd=(()=>{let e=class e{constructor(t){this.elementRef=t}};e.\u0275fac=function(n){return new(n||e)(m(q))},e.\u0275dir=L({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0});let i=e;return i})(),q0=(()=>{let e=class e{get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(t){this._disposeOnNavigation=t}constructor(t,n,o,a,s){this._overlay=t,this._dir=s,this._backdropSubscription=ve.EMPTY,this._attachSubscription=ve.EMPTY,this._detachSubscription=ve.EMPTY,this._positionSubscription=ve.EMPTY,this._disposeOnNavigation=!1,this._ngZone=k(Z),this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.hasBackdrop=!1,this.lockPosition=!1,this.flexibleDimensions=!1,this.growAfterOpen=!1,this.push=!1,this.backdropClick=new T,this.positionChange=new T,this.attach=new T,this.detach=new T,this.overlayKeydown=new T,this.overlayOutsideClick=new T,this._templatePortal=new Oi(n,o),this._scrollStrategyFactory=a,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(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())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=x4);let t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(n=>{this.overlayKeydown.next(n),n.keyCode===27&&!this.disableClose&&!Pt(n)&&(n.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(n=>{let o=this._getOriginElement(),a=mn(n);(!o||o!==a&&!o.contains(a))&&this.overlayOutsideClick.next(n)})}_buildConfig(){let t=this._position=this.positionStrategy||this._createPositionStrategy(),n=new Mn({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(n.width=this.width),(this.height||this.height===0)&&(n.height=this.height),(this.minWidth||this.minWidth===0)&&(n.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(n.minHeight=this.minHeight),this.backdropClass&&(n.backdropClass=this.backdropClass),this.panelClass&&(n.panelClass=this.panelClass),n}_updatePositionStrategy(t){let n=this.positions.map(o=>({originX:o.originX,originY:o.originY,overlayX:o.overlayX,overlayY:o.overlayY,offsetX:o.offsetX||this.offsetX,offsetY:o.offsetY||this.offsetY,panelClass:o.panelClass||void 0}));return t.setOrigin(this._getOrigin()).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let t=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(t),t}_getOrigin(){return this.origin instanceof yd?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof yd?this.origin.elementRef.nativeElement:this.origin instanceof q?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_attachOverlay(){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(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(i_(()=>this.positionChange.observers.length>0)).subscribe(t=>{this._ngZone.run(()=>this.positionChange.emit(t)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}};e.\u0275fac=function(n){return new(n||e)(m(xt),m(ct),m(Ct),m(t1),m(Nt,8))},e.\u0275dir=L({type:e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",Y],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",Y],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",Y],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",Y],push:[2,"cdkConnectedOverlayPush","push",Y],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",Y]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[ge,Qe]});let i=e;return i})();function D4(i){return()=>i.scrollStrategies.reposition()}var S4={provide:t1,deps:[xt],useFactory:D4},an=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({providers:[xt,S4],imports:[fa,zn,_d,_d]});let i=e;return i})();function E4(i){if(i.type==="characterData"&&i.target instanceof Comment)return!0;if(i.type==="childList"){for(let e=0;e{let e=class e{create(t){return typeof MutationObserver>"u"?null:new MutationObserver(t)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),I4=(()=>{let e=class e{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map,this._ngZone=k(Z)}ngOnDestroy(){this._observedElements.forEach((t,n)=>this._cleanupObserver(n))}observe(t){let n=En(t);return new Re(o=>{let s=this._observeElement(n).pipe(ue(l=>l.filter(u=>!E4(u))),Ye(l=>!!l.length)).subscribe(l=>{this._ngZone.run(()=>{o.next(l)})});return()=>{s.unsubscribe(),this._unobserveElement(n)}})}_observeElement(t){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(t))this._observedElements.get(t).count++;else{let n=new G,o=this._mutationObserverFactory.create(a=>n.next(a));o&&o.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:o,stream:n,count:1})}return this._observedElements.get(t).stream})}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){let{observer:n,stream:o}=this._observedElements.get(t);n&&n.disconnect(),o.complete(),this._observedElements.delete(t)}}};e.\u0275fac=function(n){return new(n||e)(M(i1))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),n1=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=Mo(t),this._subscribe()}constructor(t,n){this._contentObserver=t,this._elementRef=n,this.event=new T,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let t=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?t.pipe(mr(this.debounce)):t).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}};e.\u0275fac=function(n){return new(n||e)(m(I4),m(q))},e.\u0275dir=L({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",Y],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"],standalone:!0,features:[ge]});let i=e;return i})(),ip=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({providers:[i1]});let i=e;return i})();var o1=new Set,ds,M4=(()=>{let e=class e{constructor(t,n){this._platform=t,this._nonce=n,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):k4}matchMedia(t){return(this._platform.WEBKIT||this._platform.BLINK)&&T4(t,this._nonce),this._matchMedia(t)}};e.\u0275fac=function(n){return new(n||e)(M(Ve),M(Ic,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function T4(i,e){if(!o1.has(i))try{ds||(ds=document.createElement("style"),e&&ds.setAttribute("nonce",e),ds.setAttribute("type","text/css"),document.head.appendChild(ds)),ds.sheet&&(ds.sheet.insertRule(`@media ${i} {body{ }}`,0),o1.add(i))}catch(r){console.error(r)}}function k4(i){return{matches:i==="all"||i==="",media:i,addListener:()=>{},removeListener:()=>{}}}var Al=(()=>{let e=class e{constructor(t,n){this._mediaMatcher=t,this._zone=n,this._queries=new Map,this._destroySubject=new G}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return r1(xl(t)).some(o=>this._registerQuery(o).mql.matches)}observe(t){let o=r1(xl(t)).map(s=>this._registerQuery(s).observable),a=Rn(o);return a=Bo(a.pipe(Ot(1)),a.pipe(Ba(1),mr(0))),a.pipe(ue(s=>{let l={matches:!1,breakpoints:{}};return s.forEach(({matches:u,query:f})=>{l.matches=l.matches||u,l.breakpoints[f]=u}),l}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);let n=this._mediaMatcher.matchMedia(t),a={observable:new Re(s=>{let l=u=>this._zone.run(()=>s.next(u));return n.addListener(l),()=>{n.removeListener(l)}}).pipe(Rt(n),ue(({matches:s})=>({query:t,matches:s})),fe(this._destroySubject)),mql:n};return this._queries.set(t,a),a}};e.\u0275fac=function(n){return new(n||e)(M(M4),M(Z))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function r1(i){return i.map(e=>e.split(",")).reduce((e,r)=>e.concat(r)).map(e=>e.trim())}var np={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"};var d1=" ";function Nl(i,e,r){let t=sp(i,e);r=r.trim(),!t.some(n=>n.trim()===r)&&(t.push(r),i.setAttribute(e,t.join(d1)))}function va(i,e,r){let t=sp(i,e);r=r.trim();let n=t.filter(o=>o!==r);n.length?i.setAttribute(e,n.join(d1)):i.removeAttribute(e)}function sp(i,e){return i.getAttribute(e)?.match(/\S+/g)??[]}var u1="cdk-describedby-message",op="cdk-describedby-host",K0=0,cp=(()=>{let e=class e{constructor(t,n){this._platform=n,this._messageRegistry=new Map,this._messagesContainer=null,this._id=`${K0++}`,this._document=t,this._id=k(al)+"-"+K0++}describe(t,n,o){if(!this._canBeDescribed(t,n))return;let a=Y0(n,o);typeof n!="string"?(a1(n,this._id),this._messageRegistry.set(a,{messageElement:n,referenceCount:0})):this._messageRegistry.has(a)||this._createMessageElement(n,o),this._isElementDescribedByMessage(t,a)||this._addMessageReference(t,a)}removeDescription(t,n,o){if(!n||!this._isElementNode(t))return;let a=Y0(n,o);if(this._isElementDescribedByMessage(t,a)&&this._removeMessageReference(t,a),typeof n=="string"){let s=this._messageRegistry.get(a);s&&s.referenceCount===0&&this._deleteMessageElement(a)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let t=this._document.querySelectorAll(`[${op}="${this._id}"]`);for(let n=0;no.indexOf(u1)!=0);t.setAttribute("aria-describedby",n.join(" "))}_addMessageReference(t,n){let o=this._messageRegistry.get(n);Nl(t,"aria-describedby",o.messageElement.id),t.setAttribute(op,this._id),o.referenceCount++}_removeMessageReference(t,n){let o=this._messageRegistry.get(n);o.referenceCount--,va(t,"aria-describedby",o.messageElement.id),t.removeAttribute(op)}_isElementDescribedByMessage(t,n){let o=sp(t,"aria-describedby"),a=this._messageRegistry.get(n),s=a&&a.messageElement.id;return!!s&&o.indexOf(s)!=-1}_canBeDescribed(t,n){if(!this._isElementNode(t))return!1;if(n&&typeof n=="object")return!0;let o=n==null?"":`${n}`.trim(),a=t.getAttribute("aria-label");return o?!a||a.trim()!==o:!1}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}};e.\u0275fac=function(n){return new(n||e)(M(se),M(Ve))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function Y0(i,e){return typeof i=="string"?`${e||""}/${i}`:i}function a1(i,e){i.id||(i.id=`${u1}-${e}-${K0++}`)}var B4=200,Z0=class{constructor(e,r){this._letterKeyStream=new G,this._items=[],this._selectedItemIndex=-1,this._pressedLetters=[],this._selectedItem=new G,this.selectedItem=this._selectedItem;let t=typeof r?.debounceInterval=="number"?r.debounceInterval:B4;r?.skipPredicate&&(this._skipPredicateFn=r.skipPredicate),this.setItems(e),this._setupKeyHandler(t)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(e){this._selectedItemIndex=e}setItems(e){this._items=e}handleKey(e){let r=e.keyCode;e.key&&e.key.length===1?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(r>=65&&r<=90||r>=48&&r<=57)&&this._letterKeyStream.next(String.fromCharCode(r))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(e){this._letterKeyStream.pipe(Ht(r=>this._pressedLetters.push(r)),mr(e),Ye(()=>this._pressedLetters.length>0),ue(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(r=>{for(let t=1;tt.disabled,this.tabOut=new G,this.change=new G,e instanceof eo?this._itemChangesSubscription=e.changes.subscribe(t=>this._itemsChanged(t.toArray())):am(e)&&(this._effectRef=Db(()=>this._itemsChanged(e()),{injector:r}))}skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){this._typeaheadSubscription.unsubscribe();let r=this._getItemsArray();return this._typeahead=new Z0(r,{debounceInterval:typeof e=="number"?e:void 0,skipPredicate:t=>this._skipPredicateFn(t)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(t=>{this.setActiveItem(t)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(e=!0){return this._homeAndEnd=e,this}withPageUpDown(e=!0,r=10){return this._pageUpAndDown={enabled:e,delta:r},this}setActiveItem(e){let r=this._activeItem;this.updateActiveItem(e),this._activeItem!==r&&this.change.next(this._activeItemIndex)}onKeydown(e){let r=e.keyCode,n=["altKey","ctrlKey","metaKey","shiftKey"].every(o=>!e[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(r){case 9:this.tabOut.next();return;case 40:if(this._vertical&&n){this.setNextItemActive();break}else return;case 38:if(this._vertical&&n){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&n){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&n){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&n){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&n){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&n){let o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&n){let o=this._activeItemIndex+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(o-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r,this._typeahead?.setCurrentSelectedItemIndex(r))}}},Rl=class extends lp{setActiveItem(e){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(e),this.activeItem&&this.activeItem.setActiveStyles()}},_a=class extends lp{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin)}};var Cd=(()=>{let e=class e{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return U4(t)&&getComputedStyle(t).visibility==="visible"}isTabbable(t){if(!this._platform.isBrowser)return!1;let n=z4(K4(t));if(n&&(s1(n)===-1||!this.isVisible(n)))return!1;let o=t.nodeName.toLowerCase(),a=s1(t);return t.hasAttribute("contenteditable")?a!==-1:o==="iframe"||o==="object"||this._platform.WEBKIT&&this._platform.IOS&&!Y4(t)?!1:o==="audio"?t.hasAttribute("controls")?a!==-1:!1:o==="video"?a===-1?!1:a!==null?!0:this._platform.FIREFOX||t.hasAttribute("controls"):t.tabIndex>=0}isFocusable(t,n){return Q4(t)&&!this.isDisabled(t)&&(n?.ignoreVisibility||this.isVisible(t))}};e.\u0275fac=function(n){return new(n||e)(M(Ve))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function z4(i){try{return i.frameElement}catch{return null}}function U4(i){return!!(i.offsetWidth||i.offsetHeight||typeof i.getClientRects=="function"&&i.getClientRects().length)}function H4(i){let e=i.nodeName.toLowerCase();return e==="input"||e==="select"||e==="button"||e==="textarea"}function $4(i){return G4(i)&&i.type=="hidden"}function W4(i){return q4(i)&&i.hasAttribute("href")}function G4(i){return i.nodeName.toLowerCase()=="input"}function q4(i){return i.nodeName.toLowerCase()=="a"}function h1(i){if(!i.hasAttribute("tabindex")||i.tabIndex===void 0)return!1;let e=i.getAttribute("tabindex");return!!(e&&!isNaN(parseInt(e,10)))}function s1(i){if(!h1(i))return null;let e=parseInt(i.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}function Y4(i){let e=i.nodeName.toLowerCase(),r=e==="input"&&i.type;return r==="text"||r==="password"||e==="select"||e==="textarea"}function Q4(i){return $4(i)?!1:H4(i)||W4(i)||i.hasAttribute("contenteditable")||h1(i)}function K4(i){return i.ownerDocument&&i.ownerDocument.defaultView||window}var X0=class{get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}constructor(e,r,t,n,o=!1,a){this._element=e,this._checker=r,this._ngZone=t,this._document=n,this._injector=a,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}destroy(){let e=this._startAnchor,r=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.remove()),r&&(r.removeEventListener("focus",this.endAnchorListener),r.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.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)}focusInitialElementWhenReady(e){return new Promise(r=>{this._executeOnStable(()=>r(this.focusInitialElement(e)))})}focusFirstTabbableElementWhenReady(e){return new Promise(r=>{this._executeOnStable(()=>r(this.focusFirstTabbableElement(e)))})}focusLastTabbableElementWhenReady(e){return new Promise(r=>{this._executeOnStable(()=>r(this.focusLastTabbableElement(e)))})}_getRegionBoundary(e){let r=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);return e=="start"?r.length?r[0]:this._getFirstTabbableElement(this._element):r.length?r[r.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(e){let r=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(r){if(!this._checker.isFocusable(r)){let t=this._getFirstTabbableElement(r);return t?.focus(e),!!t}return r.focus(e),!0}return this.focusFirstTabbableElement(e)}focusFirstTabbableElement(e){let r=this._getRegionBoundary("start");return r&&r.focus(e),!!r}focusLastTabbableElement(e){let r=this._getRegionBoundary("end");return r&&r.focus(e),!!r}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let r=e.children;for(let t=0;t=0;t--){let n=r[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(r[t]):null;if(n)return n}return null}_createAnchor(){let e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,r){e?r.setAttribute("tabindex","0"):r.removeAttribute("tabindex")}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_executeOnStable(e){this._injector?ai(e,{injector:this._injector}):setTimeout(e)}},xd=(()=>{let e=class e{constructor(t,n,o){this._checker=t,this._ngZone=n,this._injector=k(Pe),this._document=o}create(t,n=!1){return new X0(t,this._checker,this._ngZone,this._document,n,this._injector)}};e.\u0275fac=function(n){return new(n||e)(M(Cd),M(Z),M(se))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),m1=(()=>{let e=class e{get enabled(){return this.focusTrap?.enabled||!1}set enabled(t){this.focusTrap&&(this.focusTrap.enabled=t)}constructor(t,n,o){this._elementRef=t,this._focusTrapFactory=n,this._previouslyFocusedElement=null,k(Ve).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(t){let n=t.autoCapture;n&&!n.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=pa(),this.focusTrap?.focusInitialElementWhenReady()}};e.\u0275fac=function(n){return new(n||e)(m(q),m(xd),m(se))},e.\u0275dir=L({type:e,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",Y],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",Y]},exportAs:["cdkTrapFocus"],standalone:!0,features:[ge,Qe]});let i=e;return i})();function Dd(i){return i.buttons===0||i.detail===0}function Sd(i){let e=i.touches&&i.touches[0]||i.changedTouches&&i.changedTouches[0];return!!e&&e.identifier===-1&&(e.radiusX==null||e.radiusX===1)&&(e.radiusY==null||e.radiusY===1)}var Z4=new R("cdk-input-modality-detector-options"),X4={ignoreKeys:[18,17,224,91,16]},p1=650,Ol=Ui({passive:!0,capture:!0}),J4=(()=>{let e=class e{get mostRecentModality(){return this._modality.value}constructor(t,n,o,a){this._platform=t,this._mostRecentTarget=null,this._modality=new Gt(null),this._lastTouchMs=0,this._onKeydown=s=>{this._options?.ignoreKeys?.some(l=>l===s.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=mn(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs{if(Sd(s)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=mn(s)},this._options=j(j({},X4),a),this.modalityDetected=this._modality.pipe(Ba(1)),this.modalityChanged=this.modalityDetected.pipe(js()),t.isBrowser&&n.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,Ol),o.addEventListener("mousedown",this._onMousedown,Ol),o.addEventListener("touchstart",this._onTouchstart,Ol)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Ol),document.removeEventListener("mousedown",this._onMousedown,Ol),document.removeEventListener("touchstart",this._onTouchstart,Ol))}};e.\u0275fac=function(n){return new(n||e)(M(Ve),M(Z),M(se),M(Z4,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),eU=new R("liveAnnouncerElement",{providedIn:"root",factory:tU});function tU(){return null}var iU=new R("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),nU=0,dp=(()=>{let e=class e{constructor(t,n,o,a){this._ngZone=n,this._defaultOptions=a,this._document=o,this._liveElement=t||this._createLiveElement()}announce(t,...n){let o=this._defaultOptions,a,s;return n.length===1&&typeof n[0]=="number"?s=n[0]:[a,s]=n,this.clear(),clearTimeout(this._previousTimeout),a||(a=o&&o.politeness?o.politeness:"polite"),s==null&&o&&(s=o.duration),this._liveElement.setAttribute("aria-live",a),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(l=>this._currentResolve=l)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,typeof s=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),s)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let t="cdk-live-announcer-element",n=this._document.getElementsByClassName(t),o=this._document.createElement("div");for(let a=0;a .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{let e=class e{constructor(t,n,o,a,s){this._ngZone=t,this._platform=n,this._inputModalityDetector=o,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new G,this._rootNodeFocusAndBlurListener=l=>{let u=mn(l);for(let f=u;f;f=f.parentElement)l.type==="focus"?this._onFocus(l,f):this._onBlur(l,f)},this._document=a,this._detectionMode=s?.detectionMode||ap.IMMEDIATE}monitor(t,n=!1){let o=En(t);if(!this._platform.isBrowser||o.nodeType!==1)return oe();let a=WM(o)||this._getDocument(),s=this._elementInfo.get(o);if(s)return n&&(s.checkChildren=!0),s.subject;let l={checkChildren:n,subject:new G,rootNode:a};return this._elementInfo.set(o,l),this._registerGlobalListeners(l),l.subject}stopMonitoring(t){let n=En(t),o=this._elementInfo.get(n);o&&(o.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(o))}focusVia(t,n,o){let a=En(t),s=this._getDocument().activeElement;a===s?this._getClosestElementsInfo(a).forEach(([l,u])=>this._originChanged(l,n,u)):(this._setOrigin(n),typeof a.focus=="function"&&a.focus(o))}ngOnDestroy(){this._elementInfo.forEach((t,n)=>this.stopMonitoring(n))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:t&&this._isLastInteractionFromInputLabel(t)?"mouse":"program"}_shouldBeAttributedToTouch(t){return this._detectionMode===ap.EVENTUAL||!!t?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(t,n){t.classList.toggle("cdk-focused",!!n),t.classList.toggle("cdk-touch-focused",n==="touch"),t.classList.toggle("cdk-keyboard-focused",n==="keyboard"),t.classList.toggle("cdk-mouse-focused",n==="mouse"),t.classList.toggle("cdk-program-focused",n==="program")}_setOrigin(t,n=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=t,this._originFromTouchInteraction=t==="touch"&&n,this._detectionMode===ap.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?p1:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o)}})}_onFocus(t,n){let o=this._elementInfo.get(n),a=mn(t);!o||!o.checkChildren&&n!==a||this._originChanged(n,this._getFocusOrigin(a),o)}_onBlur(t,n){let o=this._elementInfo.get(n);!o||o.checkChildren&&t.relatedTarget instanceof Node&&n.contains(t.relatedTarget)||(this._setClasses(n),this._emitOrigin(o,null))}_emitOrigin(t,n){t.subject.observers.length&&this._ngZone.run(()=>t.subject.next(n))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;let n=t.rootNode,o=this._rootNodeFocusListenerCount.get(n)||0;o||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,rp),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,rp)}),this._rootNodeFocusListenerCount.set(n,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(fe(this._stopInputModalityDetector)).subscribe(a=>{this._setOrigin(a,!0)}))}_removeGlobalListeners(t){let n=t.rootNode;if(this._rootNodeFocusListenerCount.has(n)){let o=this._rootNodeFocusListenerCount.get(n);o>1?this._rootNodeFocusListenerCount.set(n,o-1):(n.removeEventListener("focus",this._rootNodeFocusAndBlurListener,rp),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,rp),this._rootNodeFocusListenerCount.delete(n))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,n,o){this._setClasses(t,n),this._emitOrigin(o,n),this._lastFocusOrigin=n}_getClosestElementsInfo(t){let n=[];return this._elementInfo.forEach((o,a)=>{(a===t||o.checkChildren&&a.contains(t))&&n.push([a,o])}),n}_isLastInteractionFromInputLabel(t){let{_mostRecentTarget:n,mostRecentModality:o}=this._inputModalityDetector;if(o!=="mouse"||!n||n===t||t.nodeName!=="INPUT"&&t.nodeName!=="TEXTAREA"||t.disabled)return!1;let a=t.labels;if(a){for(let s=0;s{let e=class e{constructor(t,n){this._elementRef=t,this._focusMonitor=n,this._focusOrigin=null,this.cdkFocusChange=new T}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,t.nodeType===1&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(n=>{this._focusOrigin=n,this.cdkFocusChange.emit(n)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}};e.\u0275fac=function(n){return new(n||e)(m(q),m(Di))},e.\u0275dir=L({type:e,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"],standalone:!0});let i=e;return i})(),us=function(i){return i[i.NONE=0]="NONE",i[i.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",i[i.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",i}(us||{}),l1="cdk-high-contrast-black-on-white",c1="cdk-high-contrast-white-on-black",Q0="cdk-high-contrast-active",ey=(()=>{let e=class e{constructor(t,n){this._platform=t,this._document=n,this._breakpointSubscription=k(Al).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return us.NONE;let t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);let n=this._document.defaultView||window,o=n&&n.getComputedStyle?n.getComputedStyle(t):null,a=(o&&o.backgroundColor||"").replace(/ /g,"");switch(t.remove(),a){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return us.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return us.BLACK_ON_WHITE}return us.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let t=this._document.body.classList;t.remove(Q0,l1,c1),this._hasCheckedHighContrastMode=!0;let n=this.getHighContrastMode();n===us.BLACK_ON_WHITE?t.add(Q0,l1):n===us.WHITE_ON_BLACK&&t.add(Q0,c1)}}};e.\u0275fac=function(n){return new(n||e)(M(Ve),M(se))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),Ll=(()=>{let e=class e{constructor(t){t._applyBodyHighContrastModeCssClasses()}};e.\u0275fac=function(n){return new(n||e)(M(ey))},e.\u0275mod=te({type:e}),e.\u0275inj=ee({imports:[ip]});let i=e;return i})();function rU(i,e){}var ps=class{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}};var iy=(()=>{let e=class e extends ga{constructor(t,n,o,a,s,l,u,f){super(),this._elementRef=t,this._focusTrapFactory=n,this._config=a,this._interactivityChecker=s,this._ngZone=l,this._overlayRef=u,this._focusMonitor=f,this._platform=k(Ve),this._focusTrap=null,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this._changeDetectorRef=k(he),this._injector=k(Pe),this._isDestroyed=!1,this.attachDomPortal=v=>{this._portalOutlet.hasAttached();let C=this._portalOutlet.attachDomPortal(v);return this._contentAttached(),C},this._document=o,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(t){this._ariaLabelledByQueue.push(t),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(t){let n=this._ariaLabelledByQueue.indexOf(t);n>-1&&(this._ariaLabelledByQueue.splice(n,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(t){this._portalOutlet.hasAttached();let n=this._portalOutlet.attachComponentPortal(t);return this._contentAttached(),n}attachTemplatePortal(t){this._portalOutlet.hasAttached();let n=this._portalOutlet.attachTemplatePortal(t);return this._contentAttached(),n}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(t,n){this._interactivityChecker.isFocusable(t)||(t.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let o=()=>{t.removeEventListener("blur",o),t.removeEventListener("mousedown",o),t.removeAttribute("tabindex")};t.addEventListener("blur",o),t.addEventListener("mousedown",o)})),t.focus(n)}_focusByCssSelector(t,n){let o=this._elementRef.nativeElement.querySelector(t);o&&this._forceFocus(o,n)}_trapFocus(){this._isDestroyed||ai(()=>{let t=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||t.focus();break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement()||this._focusDialogContainer();break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus);break}},{injector:this._injector})}_restoreFocus(){let t=this._config.restoreFocus,n=null;if(typeof t=="string"?n=this._document.querySelector(t):typeof t=="boolean"?n=t?this._elementFocusedBeforeDialogWasOpened:null:t&&(n=t),this._config.restoreFocus&&n&&typeof n.focus=="function"){let o=pa(),a=this._elementRef.nativeElement;(!o||o===this._document.body||o===a||a.contains(o))&&(this._focusMonitor?(this._focusMonitor.focusVia(n,this._closeInteractionType),this._closeInteractionType=null):n.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){let t=this._elementRef.nativeElement,n=pa();return t===n||t.contains(n)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=pa()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}};e.\u0275fac=function(n){return new(n||e)(m(q),m(xd),m(se,8),m(ps),m(Cd),m(Z),m(Pr),m(Di))},e.\u0275cmp=E({type:e,selectors:[["cdk-dialog-container"]],viewQuery:function(n,o){if(n&1&&ce(rn,7),n&2){let a;Q(a=K())&&(o._portalOutlet=a.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(n,o){n&2&&ie("id",o._config.id||null)("role",o._config.role)("aria-modal",o._config.ariaModal)("aria-labelledby",o._config.ariaLabel?null:o._ariaLabelledByQueue[0])("aria-label",o._config.ariaLabel)("aria-describedby",o._config.ariaDescribedBy||null)},standalone:!0,features:[be,re],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(n,o){n&1&&x(0,rU,0,0,"ng-template",0)},dependencies:[rn],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2});let i=e;return i})(),Ed=class{constructor(e,r){this.overlayRef=e,this.config=r,this.closed=new G,this.disableClose=r.disableClose,this.backdropClick=e.backdropClick(),this.keydownEvents=e.keydownEvents(),this.outsidePointerEvents=e.outsidePointerEvents(),this.id=r.id,this.keydownEvents.subscribe(t=>{t.keyCode===27&&!this.disableClose&&!Pt(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=e.detachments().subscribe(()=>{r.closeOnOverlayDetachments!==!1&&this.close()})}close(e,r){if(this.containerInstance){let t=this.closed;this.containerInstance._closeInteractionType=r?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),t.next(e),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(e="",r=""){return this.overlayRef.updateSize({width:e,height:r}),this}addPanelClass(e){return this.overlayRef.addPanelClass(e),this}removePanelClass(e){return this.overlayRef.removePanelClass(e),this}},aU=new R("DialogScrollStrategy",{providedIn:"root",factory:()=>{let i=k(xt);return()=>i.scrollStrategies.block()}}),sU=new R("DialogData"),lU=new R("DefaultDialogConfig");var cU=0,ny=(()=>{let e=class e{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(t,n,o,a,s,l){this._overlay=t,this._injector=n,this._defaultOptions=o,this._parentDialog=a,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new G,this._afterOpenedAtThisLevel=new G,this._ariaHiddenElements=new Map,this.afterAllClosed=Xn(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Rt(void 0))),this._scrollStrategy=l}open(t,n){let o=this._defaultOptions||new ps;n=j(j({},o),n),n.id=n.id||`cdk-dialog-${cU++}`,n.id&&this.getDialogById(n.id);let a=this._getOverlayConfig(n),s=this._overlay.create(a),l=new Ed(s,n),u=this._attachContainer(s,l,n);return l.containerInstance=u,this._attachDialogContent(t,l,u,n),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(l),l.closed.subscribe(()=>this._removeOpenDialog(l,!0)),this.afterOpened.next(l),l}closeAll(){ty(this.openDialogs,t=>t.close())}getDialogById(t){return this.openDialogs.find(n=>n.id===t)}ngOnDestroy(){ty(this._openDialogsAtThisLevel,t=>{t.config.closeOnDestroy===!1&&this._removeOpenDialog(t,!1)}),ty(this._openDialogsAtThisLevel,t=>t.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(t){let n=new Mn({positionStrategy:t.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),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,width:t.width,height:t.height,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(n.backdropClass=t.backdropClass),n}_attachContainer(t,n,o){let a=o.injector||o.viewContainerRef?.injector,s=[{provide:ps,useValue:o},{provide:Ed,useValue:n},{provide:Pr,useValue:t}],l;o.container?typeof o.container=="function"?l=o.container:(l=o.container.type,s.push(...o.container.providers(o))):l=iy;let u=new In(l,o.viewContainerRef,Pe.create({parent:a||this._injector,providers:s}),o.componentFactoryResolver);return t.attach(u).instance}_attachDialogContent(t,n,o,a){if(t instanceof ct){let s=this._createInjector(a,n,o,void 0),l={$implicit:a.data,dialogRef:n};a.templateContext&&(l=j(j({},l),typeof a.templateContext=="function"?a.templateContext():a.templateContext)),o.attachTemplatePortal(new Oi(t,null,l,s))}else{let s=this._createInjector(a,n,o,this._injector),l=o.attachComponentPortal(new In(t,a.viewContainerRef,s,a.componentFactoryResolver));n.componentRef=l,n.componentInstance=l.instance}}_createInjector(t,n,o,a){let s=t.injector||t.viewContainerRef?.injector,l=[{provide:sU,useValue:t.data},{provide:Ed,useValue:n}];return t.providers&&(typeof t.providers=="function"?l.push(...t.providers(n,t,o)):l.push(...t.providers)),t.direction&&(!s||!s.get(Nt,null,{optional:!0}))&&l.push({provide:Nt,useValue:{value:t.direction,change:oe()}}),Pe.create({parent:s||a,providers:l})}_removeOpenDialog(t,n){let o=this.openDialogs.indexOf(t);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((a,s)=>{a?s.setAttribute("aria-hidden",a):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),n&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){let t=this._overlayContainer.getContainerElement();if(t.parentElement){let n=t.parentElement.children;for(let o=n.length-1;o>-1;o--){let a=n[o];a!==t&&a.nodeName!=="SCRIPT"&&a.nodeName!=="STYLE"&&!a.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(a,a.getAttribute("aria-hidden")),a.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}};e.\u0275fac=function(n){return new(n||e)(M(xt),M(Pe),M(lU,8),M(e,12),M(kl),M(aU))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function ty(i,e){let r=i.length;for(;r--;)e(i[r])}var f1=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({providers:[ny],imports:[an,zn,Ll,zn]});let i=e;return i})();var dU=["text"],uU=[[["mat-icon"]],"*"],hU=["mat-icon","*"];function mU(i,e){if(i&1&&I(0,"mat-pseudo-checkbox",1),i&2){let r=_();p("disabled",r.disabled)("state",r.selected?"checked":"unchecked")}}function pU(i,e){if(i&1&&I(0,"mat-pseudo-checkbox",3),i&2){let r=_();p("disabled",r.disabled)}}function fU(i,e){if(i&1&&(c(0,"span",4),g(1),d()),i&2){let r=_();h(),F("(",r.group.label,")")}}var gU=["mat-internal-form-field",""],_U=["*"];var D1=(()=>{let e=class e{};e.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",e.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",e.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",e.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)";let i=e;return i})(),S1=(()=>{let e=class e{};e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms";let i=e;return i})();function vU(){return!0}var bU=new R("mat-sanity-checks",{providedIn:"root",factory:vU}),pe=(()=>{let e=class e{constructor(t,n,o){this._sanityChecks=n,this._document=o,this._hasDoneGlobalChecks=!1,t._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(t){return pd()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[t]}};e.\u0275fac=function(n){return new(n||e)(M(ey),M(bU,8),M(se))},e.\u0275mod=te({type:e}),e.\u0275inj=ee({imports:[fa,fa]});let i=e;return i})();var Fr=class{constructor(e,r,t,n,o){this._defaultMatcher=e,this.ngControl=r,this._parentFormGroup=t,this._parentForm=n,this._stateChanges=o,this.errorState=!1}updateErrorState(){let e=this.errorState,r=this._parentFormGroup||this._parentForm,t=this.matcher||this._defaultMatcher,n=this.ngControl?this.ngControl.control:null,o=t?.isErrorState(n,r)??!1;o!==e&&(this.errorState=o,this._stateChanges.next())}};var mp=new R("MAT_DATE_LOCALE",{providedIn:"root",factory:yU});function yU(){return k(Lc)}var Ri=class{constructor(){this._localeChanges=new G,this.localeChanges=this._localeChanges}getValidDateOrNull(e){return this.isDateInstance(e)&&this.isValid(e)?e:null}deserialize(e){return e==null||this.isDateInstance(e)&&this.isValid(e)?e:this.invalid()}setLocale(e){this.locale=e,this._localeChanges.next()}compareDate(e,r){return this.getYear(e)-this.getYear(r)||this.getMonth(e)-this.getMonth(r)||this.getDate(e)-this.getDate(r)}sameDate(e,r){if(e&&r){let t=this.isValid(e),n=this.isValid(r);return t&&n?!this.compareDate(e,r):t==n}return e==r}clampDate(e,r,t){return r&&this.compareDate(e,r)<0?r:t&&this.compareDate(e,t)>0?t:e}},ba=new R("mat-date-formats"),wU=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function oy(i,e){let r=Array(i);for(let t=0;t{let e=class e extends Ri{constructor(t){super(),this.useUtcForDisplay=!1,this._matDateLocale=k(mp,{optional:!0}),t!==void 0&&(this._matDateLocale=t),super.setLocale(this._matDateLocale)}getYear(t){return t.getFullYear()}getMonth(t){return t.getMonth()}getDate(t){return t.getDate()}getDayOfWeek(t){return t.getDay()}getMonthNames(t){let n=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return oy(12,o=>this._format(n,new Date(2017,o,1)))}getDateNames(){let t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return oy(31,n=>this._format(t,new Date(2017,0,n+1)))}getDayOfWeekNames(t){let n=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return oy(7,o=>this._format(n,new Date(2017,0,o+1)))}getYearName(t){let n=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(n,t)}getFirstDayOfWeek(){if(typeof Intl<"u"&&Intl.Locale){let t=new Intl.Locale(this.locale),n=(t.getWeekInfo?.()||t.weekInfo)?.firstDay??0;return n===7?0:n}return 0}getNumDaysInMonth(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))}clone(t){return new Date(t.getTime())}createDate(t,n,o){let a=this._createDateWithOverflow(t,n,o);return a.getMonth()!=n,a}today(){return new Date}parse(t,n){return typeof t=="number"?new Date(t):t?new Date(Date.parse(t)):null}format(t,n){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");let o=new Intl.DateTimeFormat(this.locale,rt(j({},n),{timeZone:"utc"}));return this._format(o,t)}addCalendarYears(t,n){return this.addCalendarMonths(t,n*12)}addCalendarMonths(t,n){let o=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+n,this.getDate(t));return this.getMonth(o)!=((this.getMonth(t)+n)%12+12)%12&&(o=this._createDateWithOverflow(this.getYear(o),this.getMonth(o),0)),o}addCalendarDays(t,n){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+n)}toIso8601(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}deserialize(t){if(typeof t=="string"){if(!t)return null;if(wU.test(t)){let n=new Date(t);if(this.isValid(n))return n}}return super.deserialize(t)}isDateInstance(t){return t instanceof Date}isValid(t){return!isNaN(t.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(t,n,o){let a=new Date;return a.setFullYear(t,n,o),a.setHours(0,0,0,0),a}_2digit(t){return("00"+t).slice(-2)}_format(t,n){let o=new Date;return o.setUTCFullYear(n.getFullYear(),n.getMonth(),n.getDate()),o.setUTCHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),t.format(o)}};e.\u0275fac=function(n){return new(n||e)(M(mp,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),xU={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"}}};var E1=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({providers:[DU()]});let i=e;return i})();function DU(i=xU){return[{provide:Ri,useClass:CU},{provide:ba,useValue:i}]}var Nr=(()=>{let e=class e{isErrorState(t,n){return!!(t&&t.invalid&&(t.touched||n&&n.submitted))}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var lo=function(i){return i[i.FADING_IN=0]="FADING_IN",i[i.VISIBLE=1]="VISIBLE",i[i.FADING_OUT=2]="FADING_OUT",i[i.HIDDEN=3]="HIDDEN",i}(lo||{}),sy=class{constructor(e,r,t,n=!1){this._renderer=e,this.element=r,this.config=t,this._animationForciblyDisabledThroughCss=n,this.state=lo.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}},g1=Ui({passive:!0,capture:!0}),ly=class{constructor(){this._events=new Map,this._delegateEventHandler=e=>{let r=mn(e);r&&this._events.get(e.type)?.forEach((t,n)=>{(n===r||n.contains(r))&&t.forEach(o=>o.handleEvent(e))})}}addHandler(e,r,t,n){let o=this._events.get(r);if(o){let a=o.get(t);a?a.add(n):o.set(t,new Set([n]))}else this._events.set(r,new Map([[t,new Set([n])]])),e.runOutsideAngular(()=>{document.addEventListener(r,this._delegateEventHandler,g1)})}removeHandler(e,r,t){let n=this._events.get(e);if(!n)return;let o=n.get(r);o&&(o.delete(t),o.size===0&&n.delete(r),n.size===0&&(this._events.delete(e),document.removeEventListener(e,this._delegateEventHandler,g1)))}},_1={enterDuration:225,exitDuration:150},SU=800,v1=Ui({passive:!0,capture:!0}),b1=["mousedown","touchstart"],y1=["mouseup","mouseleave","touchend","touchcancel"],Id=class Id{constructor(e,r,t,n){this._target=e,this._ngZone=r,this._platform=n,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,n.isBrowser&&(this._containerElement=En(t))}fadeInRipple(e,r,t={}){let n=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=j(j({},_1),t.animation);t.centered&&(e=n.left+n.width/2,r=n.top+n.height/2);let a=t.radius||EU(e,r,n),s=e-n.left,l=r-n.top,u=o.enterDuration,f=document.createElement("div");f.classList.add("mat-ripple-element"),f.style.left=`${s-a}px`,f.style.top=`${l-a}px`,f.style.height=`${a*2}px`,f.style.width=`${a*2}px`,t.color!=null&&(f.style.backgroundColor=t.color),f.style.transitionDuration=`${u}ms`,this._containerElement.appendChild(f);let v=window.getComputedStyle(f),C=v.transitionProperty,D=v.transitionDuration,S=C==="none"||D==="0s"||D==="0s, 0s"||n.width===0&&n.height===0,P=new sy(this,f,t,S);f.style.transform="scale3d(1, 1, 1)",P.state=lo.FADING_IN,t.persistent||(this._mostRecentTransientRipple=P);let z=null;return!S&&(u||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let O=()=>{z&&(z.fallbackTimer=null),clearTimeout(ht),this._finishRippleTransition(P)},de=()=>this._destroyRipple(P),ht=setTimeout(de,u+100);f.addEventListener("transitionend",O),f.addEventListener("transitioncancel",de),z={onTransitionEnd:O,onTransitionCancel:de,fallbackTimer:ht}}),this._activeRipples.set(P,z),(S||!u)&&this._finishRippleTransition(P),P}fadeOutRipple(e){if(e.state===lo.FADING_OUT||e.state===lo.HIDDEN)return;let r=e.element,t=j(j({},_1),e.config.animation);r.style.transitionDuration=`${t.exitDuration}ms`,r.style.opacity="0",e.state=lo.FADING_OUT,(e._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(e)}fadeOutAll(){this._getActiveRipples().forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){let r=En(e);!this._platform.isBrowser||!r||r===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=r,b1.forEach(t=>{Id._eventManager.addHandler(this._ngZone,t,r,this)}))}handleEvent(e){e.type==="mousedown"?this._onMousedown(e):e.type==="touchstart"?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{y1.forEach(r=>{this._triggerElement.addEventListener(r,this,v1)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(e){e.state===lo.FADING_IN?this._startFadeOutTransition(e):e.state===lo.FADING_OUT&&this._destroyRipple(e)}_startFadeOutTransition(e){let r=e===this._mostRecentTransientRipple,{persistent:t}=e.config;e.state=lo.VISIBLE,!t&&(!r||!this._isPointerDown)&&e.fadeOut()}_destroyRipple(e){let r=this._activeRipples.get(e)??null;this._activeRipples.delete(e),this._activeRipples.size||(this._containerRect=null),e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),e.state=lo.HIDDEN,r!==null&&(e.element.removeEventListener("transitionend",r.onTransitionEnd),e.element.removeEventListener("transitioncancel",r.onTransitionCancel),r.fallbackTimer!==null&&clearTimeout(r.fallbackTimer)),e.element.remove()}_onMousedown(e){let r=Dd(e),t=this._lastTouchStartEvent&&Date.now(){let r=e.state===lo.VISIBLE||e.config.terminateOnPointerUp&&e.state===lo.FADING_IN;!e.config.persistent&&r&&e.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let e=this._triggerElement;e&&(b1.forEach(r=>Id._eventManager.removeHandler(r,e,this)),this._pointerUpEventsRegistered&&(y1.forEach(r=>e.removeEventListener(r,this,v1)),this._pointerUpEventsRegistered=!1))}};Id._eventManager=new ly;var cy=Id;function EU(i,e,r){let t=Math.max(Math.abs(i-r.left),Math.abs(i-r.right)),n=Math.max(Math.abs(e-r.top),Math.abs(e-r.bottom));return Math.sqrt(t*t+n*n)}var Vl=new R("mat-ripple-global-options"),Tn=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}constructor(t,n,o,a,s){this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=a||{},this._rippleRenderer=new cy(this,n,t,o)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:j(j(j({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,n=0,o){return typeof t=="number"?this._rippleRenderer.fadeInRipple(t,n,j(j({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,j(j({},this.rippleConfig),t))}};e.\u0275fac=function(n){return new(n||e)(m(q),m(Z),m(Ve),m(Vl,8),m(kt,8))},e.\u0275dir=L({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(n,o){n&2&&ne("mat-ripple-unbounded",o.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0});let i=e;return i})(),Lr=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({imports:[pe,pe]});let i=e;return i})(),dy=(()=>{let e=class e{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1,this.appearance="full"}};e.\u0275fac=function(n){return new(n||e)(m(kt,8))},e.\u0275cmp=E({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(n,o){n&2&&ne("mat-pseudo-checkbox-indeterminate",o.state==="indeterminate")("mat-pseudo-checkbox-checked",o.state==="checked")("mat-pseudo-checkbox-disabled",o.disabled)("mat-pseudo-checkbox-minimal",o.appearance==="minimal")("mat-pseudo-checkbox-full",o.appearance==="full")("_mat-animation-noopable",o._animationMode==="NoopAnimations")},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},standalone:!0,features:[re],decls:0,vars:0,template:function(n,o){},styles:['.mat-pseudo-checkbox{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-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color, var(--mat-app-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color, var(--mat-app-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color, var(--mat-app-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color, var(--mat-app-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color, var(--mat-app-surface))}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0});let i=e;return i})(),IU=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({imports:[pe]});let i=e;return i})(),Td=new R("MAT_OPTION_PARENT_COMPONENT");var kd=new R("MatOptgroup");var MU=0,Md=class{constructor(e,r=!1){this.source=e,this.isUserInput=r}},nt=(()=>{let e=class e{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=t}get disableRipple(){return!!(this._parent&&this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}constructor(t,n,o,a){this._element=t,this._changeDetectorRef=n,this._parent=o,this.group=a,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id=`mat-option-${MU++}`,this.onSelectionChange=new T,this._stateChanges=new G}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(t=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),t&&this._emitSelectionChangeEvent())}deselect(t=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),t&&this._emitSelectionChangeEvent())}focus(t,n){let o=this._getHostElement();typeof o.focus=="function"&&o.focus(n)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){(t.keyCode===13||t.keyCode===32)&&!Pt(t)&&(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=t)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new Md(this,t))}};e.\u0275fac=function(n){return new(n||e)(m(q),m(he),m(Td,8),m(kd,8))},e.\u0275cmp=E({type:e,selectors:[["mat-option"]],viewQuery:function(n,o){if(n&1&&ce(dU,7),n&2){let a;Q(a=K())&&(o._text=a.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(n,o){n&1&&b("click",function(){return o._selectViaInteraction()})("keydown",function(s){return o._handleKeydown(s)}),n&2&&(Si("id",o.id),ie("aria-selected",o.selected)("aria-disabled",o.disabled.toString()),ne("mdc-list-item--selected",o.selected)("mat-mdc-option-multiple",o.multiple)("mat-mdc-option-active",o.active)("mdc-list-item--disabled",o.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",Y]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],standalone:!0,features:[ge,re],ngContentSelectors:hU,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(n,o){n&1&&(He(uU),x(0,mU,1,2,"mat-pseudo-checkbox",1),ae(1),c(2,"span",2,0),ae(4,1),d(),x(5,pU,1,1,"mat-pseudo-checkbox",3)(6,fU,2,1,"span",4),I(7,"div",5)),n&2&&(De(o.multiple?0:-1),h(5),De(!o.multiple&&o.selected&&!o.hideSingleSelectionIndicator?5:-1),h(),De(o.group&&o.group._inert?6:-1),h(),p("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disabled||o.disableRipple))},dependencies:[dy,Tn],styles:['.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-app-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-app-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-app-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-app-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-app-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-app-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color);outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-app-on-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color, var(--mat-app-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-app-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let i=e;return i})();function pp(i,e,r){if(r.length){let t=e.toArray(),n=r.toArray(),o=0;for(let a=0;ar+t?Math.max(0,i-t+e):r}var jl=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({imports:[Lr,pe,IU]});let i=e;return i})(),w1={capture:!0},C1=["focus","mousedown","mouseenter","touchstart"],ry="mat-ripple-loader-uninitialized",ay="mat-ripple-loader-class-name",x1="mat-ripple-loader-centered",hp="mat-ripple-loader-disabled",gp=(()=>{let e=class e{constructor(){this._document=k(se,{optional:!0}),this._animationMode=k(kt,{optional:!0}),this._globalRippleOptions=k(Vl,{optional:!0}),this._platform=k(Ve),this._ngZone=k(Z),this._hosts=new Map,this._onInteraction=t=>{let n=mn(t);if(n instanceof HTMLElement){let o=n.closest(`[${ry}="${this._globalRippleOptions?.namespace??""}"]`);o&&this._createRipple(o)}},this._ngZone.runOutsideAngular(()=>{for(let t of C1)this._document?.addEventListener(t,this._onInteraction,w1)})}ngOnDestroy(){let t=this._hosts.keys();for(let n of t)this.destroyRipple(n);for(let n of C1)this._document?.removeEventListener(n,this._onInteraction,w1)}configureRipple(t,n){t.setAttribute(ry,this._globalRippleOptions?.namespace??""),(n.className||!t.hasAttribute(ay))&&t.setAttribute(ay,n.className||""),n.centered&&t.setAttribute(x1,""),n.disabled&&t.setAttribute(hp,"")}getRipple(t){return this._hosts.get(t)||this._createRipple(t)}setDisabled(t,n){let o=this._hosts.get(t);if(o){o.disabled=n;return}n?t.setAttribute(hp,""):t.removeAttribute(hp)}_createRipple(t){if(!this._document)return;let n=this._hosts.get(t);if(n)return n;t.querySelector(".mat-ripple")?.remove();let o=this._document.createElement("span");o.classList.add("mat-ripple",t.getAttribute(ay)),t.append(o);let a=new Tn(new q(o),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return a._isInitialized=!0,a.trigger=t,a.centered=t.hasAttribute(x1),a.disabled=t.hasAttribute(hp),this.attachRipple(t,a),a}attachRipple(t,n){t.removeAttribute(ry),this._hosts.set(t,n)}destroyRipple(t){let n=this._hosts.get(t);n&&(n.ngOnDestroy(),this._hosts.delete(t))}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),_p=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=E({type:e,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(n,o){n&2&&ne("mdc-form-field--align-end",o.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},standalone:!0,features:[re],attrs:gU,ngContentSelectors:_U,decls:1,vars:0,template:function(n,o){n&1&&(He(),ae(0))},styles:[".mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0}"],encapsulation:2,changeDetection:0});let i=e;return i})();var ot=function(i){return i[i.State=0]="State",i[i.Transition=1]="Transition",i[i.Sequence=2]="Sequence",i[i.Group=3]="Group",i[i.Animate=4]="Animate",i[i.Keyframes=5]="Keyframes",i[i.Style=6]="Style",i[i.Trigger=7]="Trigger",i[i.Reference=8]="Reference",i[i.AnimateChild=9]="AnimateChild",i[i.AnimateRef=10]="AnimateRef",i[i.Query=11]="Query",i[i.Stagger=12]="Stagger",i}(ot||{}),or="*";function ui(i,e){return{type:ot.Trigger,name:i,definitions:e,options:{}}}function Mt(i,e=null){return{type:ot.Animate,styles:e,timings:i}}function I1(i,e=null){return{type:ot.Group,steps:i,options:e}}function M1(i,e=null){return{type:ot.Sequence,steps:i,options:e}}function Me(i){return{type:ot.Style,styles:i,offset:null}}function Lt(i,e,r){return{type:ot.State,name:i,styles:e,options:r}}function wa(i){return{type:ot.Keyframes,steps:i}}function St(i,e,r=null){return{type:ot.Transition,expr:i,animation:e,options:r}}function vp(i=null){return{type:ot.AnimateChild,options:i}}function bp(i,e,r=null){return{type:ot.Query,selector:i,animation:e,options:r}}var ya=class{constructor(e=0,r=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+r}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let r=e=="start"?this._onStartFns:this._onDoneFns;r.forEach(t=>t()),r.length=0}},Ad=class{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let r=0,t=0,n=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++r==o&&this._onFinish()}),a.onDestroy(()=>{++t==o&&this._onDestroy()}),a.onStart(()=>{++n==o&&this._onStart()})}),this.totalTime=this.players.reduce((a,s)=>Math.max(a,s.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let r=e*this.totalTime;this.players.forEach(t=>{let n=t.totalTime?Math.min(1,r/t.totalTime):1;t.setPosition(n)})}getPosition(){let e=this.players.reduce((r,t)=>r===null||t.totalTime>r.totalTime?t:r,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let r=e=="start"?this._onStartFns:this._onDoneFns;r.forEach(t=>t()),r.length=0}},yp="!";function TU(i,e){}var Od=class{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}},uy="mdc-dialog--open",T1="mdc-dialog--opening",k1="mdc-dialog--closing",kU=150,AU=75,OU=(()=>{let e=class e extends iy{constructor(t,n,o,a,s,l,u,f,v){super(t,n,o,a,s,l,u,v),this._animationMode=f,this._animationStateChanged=new T,this._animationsEnabled=this._animationMode!=="NoopAnimations",this._actionSectionCount=0,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?O1(this._config.enterAnimationDuration)??kU:0,this._exitAnimationDuration=this._animationsEnabled?O1(this._config.exitAnimationDuration)??AU:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(A1,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(T1,uy)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(uy),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(uy),this._animationsEnabled?(this._hostElement.style.setProperty(A1,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(k1)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(t){this._actionSectionCount+=t,this._changeDetectorRef.markForCheck()}_clearAnimationClasses(){this._hostElement.classList.remove(T1,k1)}_waitForAnimationToComplete(t,n){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(n,t)}_requestAnimationFrame(t){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(t):t()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(t){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:t})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(t){let n=super.attachComponentPortal(t);return n.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),n}};e.\u0275fac=function(n){return new(n||e)(m(q),m(xd),m(se,8),m(Od),m(Cd),m(Z),m(Pr),m(kt,8),m(Di))},e.\u0275cmp=E({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(n,o){n&2&&(Si("id",o._config.id),ie("aria-modal",o._config.ariaModal)("role",o._config.role)("aria-labelledby",o._config.ariaLabel?null:o._ariaLabelledByQueue[0])("aria-label",o._config.ariaLabel)("aria-describedby",o._config.ariaDescribedBy||null),ne("_mat-animation-noopable",!o._animationsEnabled)("mat-mdc-dialog-container-with-actions",o._actionSectionCount>0))},standalone:!0,features:[be,re],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1),x(2,TU,0,0,"ng-template",2),d()())},dependencies:[rn],styles:['.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 80vw);min-width:var(--mat-dialog-container-min-width, 0)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, 80vw)}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12));border-radius:var(--mdc-dialog-container-shape, var(--mat-app-corner-extra-large, 4px));background-color:var(--mdc-dialog-container-color, var(--mat-app-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 0 24px 9px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mdc-dialog-subhead-color, var(--mat-app-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mdc-dialog-subhead-font, var(--mat-app-headline-small-font, inherit));line-height:var(--mdc-dialog-subhead-line-height, var(--mat-app-headline-small-line-height, 1.5rem));font-size:var(--mdc-dialog-subhead-size, var(--mat-app-headline-small-size, 1rem));font-weight:var(--mdc-dialog-subhead-weight, var(--mat-app-headline-small-weight, 400));letter-spacing:var(--mdc-dialog-subhead-tracking, var(--mat-app-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mdc-dialog-supporting-text-color, var(--mat-app-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mdc-dialog-supporting-text-font, var(--mat-app-body-medium-font, inherit));line-height:var(--mdc-dialog-supporting-text-line-height, var(--mat-app-body-medium-line-height, 1.5rem));font-size:var(--mdc-dialog-supporting-text-size, var(--mat-app-body-medium-size, 1rem));font-weight:var(--mdc-dialog-supporting-text-weight, var(--mat-app-body-medium-weight, 400));letter-spacing:var(--mdc-dialog-supporting-text-tracking, var(--mat-app-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 8px);justify-content:var(--mat-dialog-actions-alignment, start)}.cdk-high-contrast-active .mat-mdc-dialog-actions{border-top-color:CanvasText}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents}'],encapsulation:2});let i=e;return i})(),A1="--mat-dialog-transition-duration";function O1(i){return i==null?null:typeof i=="number"?i:i.endsWith("ms")?Mo(i.substring(0,i.length-2)):i.endsWith("s")?Mo(i.substring(0,i.length-1))*1e3:i==="0"?0:null}var wp=function(i){return i[i.OPEN=0]="OPEN",i[i.CLOSING=1]="CLOSING",i[i.CLOSED=2]="CLOSED",i}(wp||{}),Ne=class{constructor(e,r,t){this._ref=e,this._containerInstance=t,this._afterOpened=new G,this._beforeClosed=new G,this._state=wp.OPEN,this.disableClose=r.disableClose,this.id=e.id,e.addPanelClass("mat-mdc-dialog-panel"),t._animationStateChanged.pipe(Ye(n=>n.state==="opened"),Ot(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe(Ye(n=>n.state==="closed"),Ot(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),e.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),wt(this.backdropClick(),this.keydownEvents().pipe(Ye(n=>n.keyCode===27&&!this.disableClose&&!Pt(n)))).subscribe(n=>{this.disableClose||(n.preventDefault(),R1(this,n.type==="keydown"?"keyboard":"mouse"))})}close(e){this._result=e,this._containerInstance._animationStateChanged.pipe(Ye(r=>r.state==="closing"),Ot(1)).subscribe(r=>{this._beforeClosed.next(e),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),r.totalTime+100)}),this._state=wp.CLOSING,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(e){let r=this._ref.config.positionStrategy;return e&&(e.left||e.right)?e.left?r.left(e.left):r.right(e.right):r.centerHorizontally(),e&&(e.top||e.bottom)?e.top?r.top(e.top):r.bottom(e.bottom):r.centerVertically(),this._ref.updatePosition(),this}updateSize(e="",r=""){return this._ref.updateSize(e,r),this}addPanelClass(e){return this._ref.addPanelClass(e),this}removePanelClass(e){return this._ref.removePanelClass(e),this}getState(){return this._state}_finishDialogClose(){this._state=wp.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function R1(i,e,r){return i._closeInteractionType=e,i.close(r)}var Ke=new R("MatMdcDialogData"),RU=new R("mat-mdc-dialog-default-options"),PU=new R("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let i=k(xt);return()=>i.scrollStrategies.block()}});var FU=0,Rd=(()=>{let e=class e{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(t,n,o,a,s,l,u,f){this._overlay=t,this._defaultOptions=a,this._scrollStrategy=s,this._parentDialog=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new G,this._afterOpenedAtThisLevel=new G,this.dialogConfigClass=Od,this.afterAllClosed=Xn(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Rt(void 0))),this._dialog=n.get(ny),this._dialogRefConstructor=Ne,this._dialogContainerType=OU,this._dialogDataToken=Ke}open(t,n){let o;n=j(j({},this._defaultOptions||new Od),n),n.id=n.id||`mat-mdc-dialog-${FU++}`,n.scrollStrategy=n.scrollStrategy||this._scrollStrategy();let a=this._dialog.open(t,rt(j({},n),{positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:n},{provide:ps,useValue:n}]},templateContext:()=>({dialogRef:o}),providers:(s,l,u)=>(o=new this._dialogRefConstructor(s,n,u),o.updatePosition(n?.position),[{provide:this._dialogContainerType,useValue:u},{provide:this._dialogDataToken,useValue:l.data},{provide:this._dialogRefConstructor,useValue:o}])}));return o.componentRef=a.componentRef,o.componentInstance=a.componentInstance,this.openDialogs.push(o),this.afterOpened.next(o),o.afterClosed().subscribe(()=>{let s=this.openDialogs.indexOf(o);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||this._getAfterAllClosed().next())}),o}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(n=>n.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(t){let n=t.length;for(;n--;)t[n].close()}};e.\u0275fac=function(n){return new(n||e)(M(xt),M(Pe),M(er,8),M(RU,8),M(PU),M(e,12),M(kl),M(kt,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),NU=0,Qt=(()=>{let e=class e{constructor(t,n,o){this.dialogRef=t,this._elementRef=n,this._dialog=o,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=F1(this._elementRef,this._dialog.openDialogs))}ngOnChanges(t){let n=t._matDialogClose||t._matDialogCloseResult;n&&(this.dialogResult=n.currentValue)}_onButtonClick(t){R1(this.dialogRef,t.screenX===0&&t.screenY===0?"keyboard":"mouse",this.dialogResult)}};e.\u0275fac=function(n){return new(n||e)(m(Ne,8),m(q),m(Rd))},e.\u0275dir=L({type:e,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(n,o){n&1&&b("click",function(s){return o._onButtonClick(s)}),n&2&&ie("aria-label",o.ariaLabel||null)("type",o.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],standalone:!0,features:[Qe]});let i=e;return i})(),P1=(()=>{let e=class e{constructor(t,n,o){this._dialogRef=t,this._elementRef=n,this._dialog=o}ngOnInit(){this._dialogRef||(this._dialogRef=F1(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}};e.\u0275fac=function(n){return new(n||e)(m(Ne,8),m(q),m(Rd))},e.\u0275dir=L({type:e,standalone:!0});let i=e;return i})(),Je=(()=>{let e=class e extends P1{constructor(){super(...arguments),this.id=`mat-mdc-dialog-title-${NU++}`}_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=jt(e)))(o||e)}})(),e.\u0275dir=L({type:e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(n,o){n&2&&Si("id",o.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],standalone:!0,features:[be]});let i=e;return i})(),et=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],standalone:!0,features:[OE([gd])]});let i=e;return i})(),tt=(()=>{let e=class e extends P1{_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=jt(e)))(o||e)}})(),e.\u0275dir=L({type:e,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(n,o){n&2&&ne("mat-mdc-dialog-actions-align-start",o.align==="start")("mat-mdc-dialog-actions-align-center",o.align==="center")("mat-mdc-dialog-actions-align-end",o.align==="end")},inputs:{align:"align"},standalone:!0,features:[be]});let i=e;return i})();function F1(i,e){let r=i.nativeElement.parentElement;for(;r&&!r.classList.contains("mat-mdc-dialog-container");)r=r.parentElement;return r?e.find(t=>t.id===r.id):null}var N1=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({providers:[Rd],imports:[f1,an,zn,pe,pe]});let i=e;return i})();var L1,V1=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],j1=[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")];var B1=i=>{let e=[];return i.forEach(r=>{e.push(r.substring(0,3))}),e},Ca=(i,e,r)=>(typeof e>"u"&&(e=new Date),fs(i,e,r));var fs=(i,e,r,t)=>{t=t||{},e=e||new Date;let n=r||jU;n.formats=n.formats||{};let o=e.getTime();return(t.utc||typeof t.timezone=="number")&&(e=LU(e)),typeof t.timezone=="number"&&(e=new Date(e.getTime()+t.timezone*6e4)),i.replace(/%([-_0]?.)/g,(a,s)=>{let l,u,f,v,C,D,S,P;if(f=null,C=null,s.length===2){if(f=s[0],f==="-")C="";else if(f==="_")C=" ";else if(f==="0")C="0";else return a;s=s[1]}switch(s){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 _n(Math.floor(e.getFullYear()/100),C);case"D":return fs(n.formats.D||"%m/%d/%y",e,n);case"d":return _n(e.getDate(),C);case"e":return e.getDate();case"F":return fs(n.formats.F||"%Y-%m-%d",e,n);case"H":return _n(e.getHours(),C);case"h":return n.shortMonths[e.getMonth()];case"I":return _n(z1(e),C);case"j":return S=new Date(e.getFullYear(),0,1),l=Math.ceil((e.getTime()-S.getTime())/(1e3*60*60*24)),_n(l,3);case"k":return _n(e.getHours(),C===void 0?" ":C);case"L":return _n(Math.floor(o%1e3),3);case"l":return _n(z1(e),C===void 0?" ":C);case"M":return _n(e.getMinutes(),C);case"m":return _n(e.getMonth()+1,C);case"n":return` -`;case"o":return String(e.getDate())+VU(e.getDate());case"P":return"";case"p":return"";case"R":return fs(n.formats.R||"%H:%M",e,n);case"r":return fs(n.formats.r||"%I:%M:%S %p",e,n);case"S":return _n(e.getSeconds(),C);case"s":return Math.floor(o/1e3);case"T":return fs(n.formats.T||"%H:%M:%S",e,n);case"t":return" ";case"U":return _n(U1(e,"sunday"),C);case"u":return u=e.getDay(),u===0?7:u;case"v":return fs(n.formats.v||"%e-%b-%Y",e,n);case"W":return _n(U1(e,"monday"),C);case"w":return e.getDay();case"Y":return e.getFullYear();case"y":return P=String(e.getFullYear()),P.slice(P.length-2);case"Z":return t.utc?"GMT":(D=e.toString().match(/\((\w+)\)/),D&&D[1]||"");case"z":return t.utc?"+0000":(v=typeof t.timezone=="number"?t.timezone:-e.getTimezoneOffset(),(v<0?"-":"+")+_n(Math.abs(v/60))+_n(v%60));default:return s}})},LU=i=>{let e=(i.getTimezoneOffset()||0)*6e4;return new Date(i.getTime()+e)},_n=(i,e,r)=>{typeof e=="number"&&(r=e,e="0"),e=e??"0",r=r??2;let t=String(i);if(e)for(;t.length{let e;return e=i.getHours(),e===0?e=12:e>12&&(e-=12),e},VU=i=>{let e=i%10,r=i%100;if(r>=11&&r<=13||e===0||e>=4)return"th";switch(e){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"},U1=(i,e)=>{e=e||"sunday";let r=i.getDay();e==="monday"&&(r===0?r=6:r--);let t=new Date(i.getFullYear(),0,1),n=Math.floor((i.getTime()-t.getTime())/864e5);return Math.floor((n+7-r)/7)},hy=i=>i.replace(/./g,e=>{switch(e){case"a":case"A":return"%p";case"b":case"d":case"m":case"w":case"W":case"y":case"Y":return"%"+e;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":return"";case"t":return"";case"T":return"%Z";case"u":return"0";case"U":return"";case"z":return"%j";case"Z":return"z";default:return e}}),$i=(i,e,r=null)=>{let t;if(e==="None"||e===null||e===void 0)e=7226578800,t=django.gettext("Never");else{let n=django.get_format(i);r&&(n+=r),t=Ca(hy(n),new Date(e*1e3))}return t},H1=i=>({1e4:"OTHER",2e4:"DEBUG",3e4:"INFO",4e4:"WARN",5e4:"ERROR",6e4:"FATAL"})[i]||"OTHER",my=i=>!!(i==null||typeof i=="object"&&Object.keys(i).length===0&&i.constructor===Object||Array.isArray(i)&&i.length===0||typeof i=="string"&&i.trim()===""),$1=i=>i===""||i===null||i===void 0,Cp=i=>i==="yes"||i===!0||i==="true"||i===1,jU={days:V1,shortDays:B1(V1),months:j1,shortMonths:B1(j1),AM:"AM",PM:"PM",am:"am",pm:"pm"},rr=(i,e)=>{let r;if(i instanceof Promise)r=i;else if(i instanceof Jt)r=i;else{if(e)return Lu(i.pipe(Kg(e)));r=Lu(i)}return r},Jt=class{constructor(){this[L1]="Future",this.resolve=()=>{},this.reject=()=>{},this.promise=new Promise((e,r)=>{this.resolve=e,this.reject=r})}then(e,r){return this.promise.then(e,r)}catch(e){return this.promise.catch(e)}finally(e){return this.promise.finally(e)}};L1=Symbol.toStringTag;var W1=["mat-button",""],G1=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],q1=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],BU='.mat-mdc-button-base{text-decoration:none}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-text-button-horizontal-padding, 8px);height:var(--mdc-text-button-container-height);font-family:var(--mdc-text-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, var(--mat-app-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-filled-button-horizontal-padding, 16px);height:var(--mdc-filled-button-container-height);font-family:var(--mdc-filled-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color, var(--mat-app-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-app-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-app-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow, var(--mat-app-level1));height:var(--mdc-protected-button-container-height);font-family:var(--mdc-protected-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-app-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-app-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-app-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-app-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow, var(--mat-app-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow, var(--mat-app-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-outlined-button-horizontal-padding, 15px);height:var(--mdc-outlined-button-container-height);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-app-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-app-corner-full));border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-app-primary));border-color:var(--mdc-outlined-button-outline-color, var(--mat-app-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button .mdc-button__ripple{border-width:var(--mdc-outlined-button-outline-width);border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',py=".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}";var Y1=["mat-icon-button",""],Q1=["*"],zU='.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);color:var(--mdc-icon-button-icon-color, var(--mat-app-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',UU=new R("MAT_BUTTON_CONFIG");var HU=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],fy=(()=>{let e=class e{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(t){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,t)}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=t,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._updateRippleDisabled()}constructor(t,n,o,a){this._elementRef=t,this._platform=n,this._ngZone=o,this._animationMode=a,this._focusMonitor=k(Di),this._rippleLoader=k(gp),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;let s=k(UU,{optional:!0}),l=t.nativeElement,u=l.classList;this.disabledInteractive=s?.disabledInteractive??!1,this.color=s?.color??null,this._rippleLoader?.configureRipple(l,{className:"mat-mdc-button-ripple"});for(let{attribute:f,mdcClasses:v}of HU)l.hasAttribute(f)&&u.add(...v)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(t="program",n){t?this._focusMonitor.focusVia(this._elementRef.nativeElement,t,n):this._elementRef.nativeElement.focus(n)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}};e.\u0275fac=function(n){ts()},e.\u0275dir=L({type:e,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",Y],disabled:[2,"disabled","disabled",Y],ariaDisabled:[2,"aria-disabled","ariaDisabled",Y],disabledInteractive:[2,"disabledInteractive","disabledInteractive",Y]},features:[ge]});let i=e;return i})();var K1=(()=>{let e=class e extends fy{constructor(t,n,o,a){super(t,n,o,a),this._haltDisabledEvents=s=>{this.disabled&&(s.preventDefault(),s.stopImmediatePropagation())}}ngOnInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)})}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled||null}};e.\u0275fac=function(n){ts()},e.\u0275dir=L({type:e,inputs:{tabIndex:[2,"tabIndex","tabIndex",t=>t==null?void 0:ni(t)]},features:[ge,be]});let i=e;return i})(),ke=(()=>{let e=class e extends fy{constructor(t,n,o,a){super(t,n,o,a)}};e.\u0275fac=function(n){return new(n||e)(m(q),m(Ve),m(Z),m(kt,8))},e.\u0275cmp=E({type:e,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(n,o){n&2&&(ie("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),Yt(o.color?"mat-"+o.color:""),ne("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[be,re],attrs:W1,ngContentSelectors:q1,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(He(G1),I(0,"span",0),ae(1),c(2,"span",1),ae(3,1),d(),ae(4,2),I(5,"span",2)(6,"span",3)),n&2&&ne("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:['.mat-mdc-button-base{text-decoration:none}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-text-button-horizontal-padding, 8px);height:var(--mdc-text-button-container-height);font-family:var(--mdc-text-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, var(--mat-app-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-filled-button-horizontal-padding, 16px);height:var(--mdc-filled-button-container-height);font-family:var(--mdc-filled-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color, var(--mat-app-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-app-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-app-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow, var(--mat-app-level1));height:var(--mdc-protected-button-container-height);font-family:var(--mdc-protected-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-app-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-app-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-app-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-app-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow, var(--mat-app-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow, var(--mat-app-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-outlined-button-horizontal-padding, 15px);height:var(--mdc-outlined-button-container-height);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-app-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-app-corner-full));border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-app-primary));border-color:var(--mdc-outlined-button-outline-color, var(--mat-app-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button .mdc-button__ripple{border-width:var(--mdc-outlined-button-outline-width);border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0});let i=e;return i})(),xa=(()=>{let e=class e extends K1{constructor(t,n,o,a){super(t,n,o,a)}};e.\u0275fac=function(n){return new(n||e)(m(q),m(Ve),m(Z),m(kt,8))},e.\u0275cmp=E({type:e,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostVars:15,hostBindings:function(n,o){n&2&&(ie("disabled",o._getDisabledAttribute())("tabindex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex)("aria-disabled",o._getAriaDisabled()),Yt(o.color?"mat-"+o.color:""),ne("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],standalone:!0,features:[be,re],attrs:W1,ngContentSelectors:q1,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(He(G1),I(0,"span",0),ae(1),c(2,"span",1),ae(3,1),d(),ae(4,2),I(5,"span",2)(6,"span",3)),n&2&&ne("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:[BU,py],encapsulation:2,changeDetection:0});let i=e;return i})();var Qi=(()=>{let e=class e extends fy{constructor(t,n,o,a){super(t,n,o,a),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}};e.\u0275fac=function(n){return new(n||e)(m(q),m(Ve),m(Z),m(kt,8))},e.\u0275cmp=E({type:e,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(n,o){n&2&&(ie("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),Yt(o.color?"mat-"+o.color:""),ne("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[be,re],attrs:Y1,ngContentSelectors:Q1,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(He(),I(0,"span",0),ae(1),I(2,"span",1)(3,"span",2))},styles:['.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);color:var(--mdc-icon-button-icon-color, var(--mat-app-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',py],encapsulation:2,changeDetection:0});let i=e;return i})(),xp=(()=>{let e=class e extends K1{constructor(t,n,o,a){super(t,n,o,a)}};e.\u0275fac=function(n){return new(n||e)(m(q),m(Ve),m(Z),m(kt,8))},e.\u0275cmp=E({type:e,selectors:[["a","mat-icon-button",""]],hostVars:15,hostBindings:function(n,o){n&2&&(ie("disabled",o._getDisabledAttribute())("tabindex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex)("aria-disabled",o._getAriaDisabled()),Yt(o.color?"mat-"+o.color:""),ne("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],standalone:!0,features:[be,re],attrs:Y1,ngContentSelectors:Q1,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(He(),I(0,"span",0),ae(1),I(2,"span",1)(3,"span",2))},styles:[zU,py],encapsulation:2,changeDetection:0});let i=e;return i})(),ar=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({imports:[pe,Lr,pe]});let i=e;return i})();var le=(()=>{let e=class e{constructor(t){this.el=t}ngOnInit(){this.el.nativeElement.innerHTML=django.gettext(this.el.nativeElement.innerHTML.trim().replaceAll("&","&"))}};e.\u0275fac=function(n){return new(n||e)(m(q))},e.\u0275dir=L({type:e,selectors:[["uds-translate"]]});let i=e;return i})();var Dp=(()=>{let e=class e{constructor(t){this.sanitizer=t}transform(t,n){return t=t.replace(/<\s*script\s*/gi,""),t=t.replace(/onclick|onmouseover|onmouseout|onmousemove|onmouseenter|onmouseleave|onmouseup|onmousedown|onkeyup|onkeydown|onkeypress|onkeydown|onkeypress|onkeyup|onchange|onfocus|onblur|onload|onunload|onabort|onerror|onresize|onscroll/gi,""),t=t.replace(/javascript\s*\:/gi,""),this.sanitizer.bypassSecurityTrustHtml(t)}};e.\u0275fac=function(n){return new(n||e)(m(is,16))},e.\u0275pipe=Qo({name:"safeHtml",type:e,pure:!0});let i=e;return i})();function $U(i,e){if(i&1){let r=A();c(0,"button",4),b("click",function(){y(r);let n=_();return w(n.resolveAndClose(!1))}),c(1,"uds-translate"),g(2,"Close"),d(),g(3),d()}if(i&2){let r=_();h(3),$e(r.extra)}}function WU(i,e){if(i&1){let r=A();c(0,"button",5),b("click",function(){y(r);let n=_();return w(n.resolveAndClose(!0))}),c(1,"uds-translate"),g(2,"Yes"),d()()}if(i&2){let r=_();p("color",r.yesColor)}}function GU(i,e){if(i&1){let r=A();c(0,"button",5),b("click",function(){y(r);let n=_();return w(n.resolveAndClose(!1))}),c(1,"uds-translate"),g(2,"No"),d()()}if(i&2){let r=_();p("color",r.noColor)}}var Pd=function(i){return i[i.alert=0]="alert",i[i.question=1]="question",i}(Pd||{}),gy=(()=>{let e=class e{constructor(t,n){this.dialogRef=t,this.data=n,this.yesColor="primary",this.noColor="warn",this.extra="",this.subscription={},this.acceptance=new Jt}resolveAndClose(t){this.acceptance.resolve(t),this.close()}close(){this.dialogRef.close()}closed(){this.subscription!==null&&this.subscription.unsubscribe()}setExtra(t){this.extra=" ("+Math.floor(t/1e3)+" "+django.gettext("seconds")+") "}initAlert(){return W(this,null,function*(){let t=this.data.autoclose||0;t>0&&(this.dialogRef.afterClosed().subscribe(n=>{this.closed()}),this.setExtra(t),this.subscription=Zg(1e3).subscribe(n=>{let o=t-(n+1)*1e3;this.setExtra(o),o<=0&&this.close()}))})}ngOnInit(){this.data.warnOnYes===!0&&(this.yesColor="warn",this.noColor="primary"),this.data.type===Pd.alert&&this.initAlert()}};e.\u0275fac=function(n){return new(n||e)(m(Ne),m(Ke))},e.\u0275cmp=E({type:e,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,"click","color"]],template:function(n,o){n&1&&(I(0,"h4",0),_t(1,"safeHtml"),I(2,"mat-dialog-content",1),_t(3,"safeHtml"),c(4,"mat-dialog-actions"),x(5,$U,4,1,"button",2)(6,WU,3,1,"button",3)(7,GU,3,1,"button",3),d()),n&2&&(p("innerHtml",Dt(1,5,o.data.title),qt),h(2),p("innerHTML",Dt(3,7,o.data.body),qt),h(3),p("ngIf",o.data.type===0),h(),p("ngIf",o.data.type===1),h(),p("ngIf",o.data.type===1))},dependencies:[me,ke,Qt,Je,tt,et,le,Dp],styles:[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]});let i=e;return i})();var Ki=function(i){return i.TEXT="text",i.TEXT_AUTOCOMPLETE="text-autocomplete",i.TEXTBOX="textbox",i.NUMERIC="numeric",i.PASSWORD="password",i.HIDDEN="hidden",i.CHOICE="choice",i.MULTI_CHOICE="multichoice",i.EDITLIST="editlist",i.CHECKBOX="checkbox",i.IMAGECHOICE="imgchoice",i.DATE="date",i.DATETIME="datetime",i.TAGLIST="taglist",i.INFO="internal-info",i}(Ki||{}),Fd=class{static locateChoice(e,r){let t=r.gui.choices;if(t===void 0)return{id:"",img:"",text:""};let n=t.find(o=>o.id===e);if(n===void 0)try{n=t[0]}catch{n={id:"",img:"",text:""}}return n}};var oT=(()=>{let e=class e{constructor(t,n){this._renderer=t,this._elementRef=n,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(t,n){this._renderer.setProperty(this._elementRef.nativeElement,t,n)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}};e.\u0275fac=function(n){return new(n||e)(m(xr),m(q))},e.\u0275dir=L({type:e});let i=e;return i})(),rT=(()=>{let e=class e extends oT{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=jt(e)))(o||e)}})(),e.\u0275dir=L({type:e,features:[be]});let i=e;return i})(),vn=new R("");var qU={provide:vn,useExisting:Xt(()=>lt),multi:!0};function YU(){let i=Jo()?Jo().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}var QU=new R(""),lt=(()=>{let e=class e extends oT{constructor(t,n,o){super(t,n),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!YU())}writeValue(t){let n=t??"";this.setProperty("value",n)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}};e.\u0275fac=function(n){return new(n||e)(m(xr),m(q),m(QU,8))},e.\u0275dir=L({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,o){n&1&&b("input",function(s){return o._handleInput(s.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(s){return o._compositionEnd(s.target.value)})},features:[Ce([qU]),be]});let i=e;return i})();function Da(i){return i==null||(typeof i=="string"||Array.isArray(i))&&i.length===0}function aT(i){return i!=null&&typeof i.length=="number"}var co=new R(""),Np=new R(""),KU=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,sr=class{static min(e){return ZU(e)}static max(e){return XU(e)}static required(e){return sT(e)}static requiredTrue(e){return JU(e)}static email(e){return e5(e)}static minLength(e){return t5(e)}static maxLength(e){return lT(e)}static pattern(e){return i5(e)}static nullValidator(e){return Ep(e)}static compose(e){return pT(e)}static composeAsync(e){return fT(e)}};function ZU(i){return e=>{if(Da(e.value)||Da(i))return null;let r=parseFloat(e.value);return!isNaN(r)&&r{if(Da(e.value)||Da(i))return null;let r=parseFloat(e.value);return!isNaN(r)&&r>i?{max:{max:i,actual:e.value}}:null}}function sT(i){return Da(i.value)?{required:!0}:null}function JU(i){return i.value===!0?null:{required:!0}}function e5(i){return Da(i.value)||KU.test(i.value)?null:{email:!0}}function t5(i){return e=>Da(e.value)||!aT(e.value)?null:e.value.lengthaT(e.value)&&e.value.length>i?{maxlength:{requiredLength:i,actualLength:e.value.length}}:null}function i5(i){if(!i)return Ep;let e,r;return typeof i=="string"?(r="",i.charAt(0)!=="^"&&(r+="^"),r+=i,i.charAt(i.length-1)!=="$"&&(r+="$"),e=new RegExp(r)):(r=i.toString(),e=i),t=>{if(Da(t.value))return null;let n=t.value;return e.test(n)?null:{pattern:{requiredPattern:r,actualValue:n}}}}function Ep(i){return null}function cT(i){return i!=null}function dT(i){return la(i)?Kt(i):i}function uT(i){let e={};return i.forEach(r=>{e=r!=null?j(j({},e),r):e}),Object.keys(e).length===0?null:e}function hT(i,e){return e.map(r=>r(i))}function n5(i){return!i.validate}function mT(i){return i.map(e=>n5(e)?e:r=>e.validate(r))}function pT(i){if(!i)return null;let e=i.filter(cT);return e.length==0?null:function(r){return uT(hT(r,e))}}function yy(i){return i!=null?pT(mT(i)):null}function fT(i){if(!i)return null;let e=i.filter(cT);return e.length==0?null:function(r){let t=hT(r,e).map(dT);return uc(t).pipe(ue(uT))}}function wy(i){return i!=null?fT(mT(i)):null}function X1(i,e){return i===null?[e]:Array.isArray(i)?[...i,e]:[i,e]}function gT(i){return i._rawValidators}function _T(i){return i._rawAsyncValidators}function _y(i){return i?Array.isArray(i)?i:[i]:[]}function Ip(i,e){return Array.isArray(i)?i.includes(e):i===e}function J1(i,e){let r=_y(e);return _y(i).forEach(n=>{Ip(r,n)||r.push(n)}),r}function eT(i,e){return _y(e).filter(r=>!Ip(i,r))}var Mp=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=yy(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=wy(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,r){return this.control?this.control.hasError(e,r):!1}getError(e,r){return this.control?this.control.getError(e,r):null}},Sa=class extends Mp{get formDirective(){return null}get path(){return null}},kn=class extends Mp{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Tp=class{constructor(e){this._cd=e}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},o5={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},nce=rt(j({},o5),{"[class.ng-submitted]":"isSubmitted"}),xe=(()=>{let e=class e extends Tp{constructor(t){super(t)}};e.\u0275fac=function(n){return new(n||e)(m(kn,2))},e.\u0275dir=L({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,o){n&2&&ne("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[be]});let i=e;return i})(),Lp=(()=>{let e=class e extends Tp{constructor(t){super(t)}};e.\u0275fac=function(n){return new(n||e)(m(Sa,10))},e.\u0275dir=L({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,o){n&2&&ne("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[be]});let i=e;return i})();var Nd="VALID",Sp="INVALID",Bl="PENDING",Ld="DISABLED",Ea=class{},kp=class extends Ea{constructor(e,r){super(),this.value=e,this.source=r}},jd=class extends Ea{constructor(e,r){super(),this.pristine=e,this.source=r}},Bd=class extends Ea{constructor(e,r){super(),this.touched=e,this.source=r}},zl=class extends Ea{constructor(e,r){super(),this.status=e,this.source=r}},vy=class extends Ea{constructor(e){super(),this.source=e}},by=class extends Ea{constructor(e){super(),this.source=e}};function vT(i){return(Vp(i)?i.validators:i)||null}function r5(i){return Array.isArray(i)?yy(i):i||null}function bT(i,e){return(Vp(e)?e.asyncValidators:i)||null}function a5(i){return Array.isArray(i)?wy(i):i||null}function Vp(i){return i!=null&&!Array.isArray(i)&&typeof i=="object"}function s5(i,e,r){let t=i.controls;if(!(e?Object.keys(t):t).length)throw new J(1e3,"");if(!t[r])throw new J(1001,"")}function l5(i,e,r){i._forEachChild((t,n)=>{if(r[n]===void 0)throw new J(1002,"")})}var Ap=class{constructor(e,r){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=Mr(()=>this.statusReactive()),this.statusReactive=Dr(void 0),this._pristine=Mr(()=>this.pristineReactive()),this.pristineReactive=Dr(!0),this._touched=Mr(()=>this.touchedReactive()),this.touchedReactive=Dr(!1),this._events=new G,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(r)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return Dn(this.statusReactive)}set status(e){Dn(()=>this.statusReactive.set(e))}get valid(){return this.status===Nd}get invalid(){return this.status===Sp}get pending(){return this.status==Bl}get disabled(){return this.status===Ld}get enabled(){return this.status!==Ld}get pristine(){return Dn(this.pristineReactive)}set pristine(e){Dn(()=>this.pristineReactive.set(e))}get dirty(){return!this.pristine}get touched(){return Dn(this.touchedReactive)}set touched(e){Dn(()=>this.touchedReactive.set(e))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(J1(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(J1(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(eT(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(eT(e,this._rawAsyncValidators))}hasValidator(e){return Ip(this._rawValidators,e)}hasAsyncValidator(e){return Ip(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let r=this.touched===!1;this.touched=!0;let t=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(rt(j({},e),{sourceControl:t})),r&&e.emitEvent!==!1&&this._events.next(new Bd(!0,t))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(r=>r.markAllAsTouched(e))}markAsUntouched(e={}){let r=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let t=e.sourceControl??this;this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:t})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,t),r&&e.emitEvent!==!1&&this._events.next(new Bd(!1,t))}markAsDirty(e={}){let r=this.pristine===!0;this.pristine=!1;let t=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(rt(j({},e),{sourceControl:t})),r&&e.emitEvent!==!1&&this._events.next(new jd(!1,t))}markAsPristine(e={}){let r=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let t=e.sourceControl??this;this._forEachChild(n=>{n.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,t),r&&e.emitEvent!==!1&&this._events.next(new jd(!0,t))}markAsPending(e={}){this.status=Bl;let r=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new zl(this.status,r)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(rt(j({},e),{sourceControl:r}))}disable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=Ld,this.errors=null,this._forEachChild(n=>{n.disable(rt(j({},e),{onlySelf:!0}))}),this._updateValue();let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new kp(this.value,t)),this._events.next(new zl(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(rt(j({},e),{skipPristineCheck:r}),this),this._onDisabledChange.forEach(n=>n(!0))}enable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=Nd,this._forEachChild(t=>{t.enable(rt(j({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(rt(j({},e),{skipPristineCheck:r}),this),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(e,r){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},r),this._parent._updateTouched({},r))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let t=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Nd||this.status===Bl)&&this._runAsyncValidator(t,e.emitEvent)}let r=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new kp(this.value,r)),this._events.next(new zl(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(rt(j({},e),{sourceControl:r}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(r=>r._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ld:Nd}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,r){if(this.asyncValidator){this.status=Bl,this._hasOwnPendingAsyncValidator={emitEvent:r!==!1};let t=dT(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(n=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(n,{emitEvent:r,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,r={}){this.errors=e,this._updateControlsErrors(r.emitEvent!==!1,this,r.shouldHaveEmitted)}get(e){let r=e;return r==null||(Array.isArray(r)||(r=r.split(".")),r.length===0)?null:r.reduce((t,n)=>t&&t._find(n),this)}getError(e,r){let t=r?this.get(r):this;return t&&t.errors?t.errors[e]:null}hasError(e,r){return!!this.getError(e,r)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,r,t){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||t)&&this._events.next(new zl(this.status,r)),this._parent&&this._parent._updateControlsErrors(e,r,t)}_initObservables(){this.valueChanges=new T,this.statusChanges=new T}_calculateStatus(){return this._allControlsDisabled()?Ld:this.errors?Sp:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Bl)?Bl:this._anyControlsHaveStatus(Sp)?Sp:Nd}_anyControlsHaveStatus(e){return this._anyControls(r=>r.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,r){let t=!this._anyControlsDirty(),n=this.pristine!==t;this.pristine=t,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,r),n&&this._events.next(new jd(this.pristine,r))}_updateTouched(e={},r){this.touched=this._anyControlsTouched(),this._events.next(new Bd(this.touched,r)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,r)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Vp(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let r=this._parent&&this._parent.dirty;return!e&&!!r&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=r5(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=a5(this._rawAsyncValidators)}},Op=class extends Ap{constructor(e,r,t){super(vT(r),bT(t,r)),this.controls=e,this._initObservables(),this._setUpdateStrategy(r),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,r){return this.controls[e]?this.controls[e]:(this.controls[e]=r,r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange),r)}addControl(e,r,t={}){this.registerControl(e,r),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(e,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}setControl(e,r,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],r&&this.registerControl(e,r),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,r={}){l5(this,!0,e),Object.keys(e).forEach(t=>{s5(this,!0,t),this.controls[t].setValue(e[t],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(e,r={}){e!=null&&(Object.keys(e).forEach(t=>{let n=this.controls[t];n&&n.patchValue(e[t],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(e={},r={}){this._forEachChild((t,n)=>{t.reset(e?e[n]:null,{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r,this),this._updateTouched(r,this),this.updateValueAndValidity(r)}getRawValue(){return this._reduceChildren({},(e,r,t)=>(e[t]=r.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(r,t)=>t._syncPendingControls()?!0:r);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(r=>{let t=this.controls[r];t&&e(t,r)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[r,t]of Object.entries(this.controls))if(this.contains(r)&&e(t))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(r,t,n)=>((t.enabled||this.disabled)&&(r[n]=t.value),r))}_reduceChildren(e,r){let t=e;return this._forEachChild((n,o)=>{t=r(t,n,o)}),t}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var Ul=new R("CallSetDisabledState",{providedIn:"root",factory:()=>jp}),jp="always";function c5(i,e){return[...e.path,i]}function zd(i,e,r=jp){Cy(i,e),e.valueAccessor.writeValue(i.value),(i.disabled||r==="always")&&e.valueAccessor.setDisabledState?.(i.disabled),u5(i,e),m5(i,e),h5(i,e),d5(i,e)}function Rp(i,e,r=!0){let t=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(t),e.valueAccessor.registerOnTouched(t)),Fp(i,e),i&&(e._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function Pp(i,e){i.forEach(r=>{r.registerOnValidatorChange&&r.registerOnValidatorChange(e)})}function d5(i,e){if(e.valueAccessor.setDisabledState){let r=t=>{e.valueAccessor.setDisabledState(t)};i.registerOnDisabledChange(r),e._registerOnDestroy(()=>{i._unregisterOnDisabledChange(r)})}}function Cy(i,e){let r=gT(i);e.validator!==null?i.setValidators(X1(r,e.validator)):typeof r=="function"&&i.setValidators([r]);let t=_T(i);e.asyncValidator!==null?i.setAsyncValidators(X1(t,e.asyncValidator)):typeof t=="function"&&i.setAsyncValidators([t]);let n=()=>i.updateValueAndValidity();Pp(e._rawValidators,n),Pp(e._rawAsyncValidators,n)}function Fp(i,e){let r=!1;if(i!==null){if(e.validator!==null){let n=gT(i);if(Array.isArray(n)&&n.length>0){let o=n.filter(a=>a!==e.validator);o.length!==n.length&&(r=!0,i.setValidators(o))}}if(e.asyncValidator!==null){let n=_T(i);if(Array.isArray(n)&&n.length>0){let o=n.filter(a=>a!==e.asyncValidator);o.length!==n.length&&(r=!0,i.setAsyncValidators(o))}}}let t=()=>{};return Pp(e._rawValidators,t),Pp(e._rawAsyncValidators,t),r}function u5(i,e){e.valueAccessor.registerOnChange(r=>{i._pendingValue=r,i._pendingChange=!0,i._pendingDirty=!0,i.updateOn==="change"&&yT(i,e)})}function h5(i,e){e.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,i.updateOn==="blur"&&i._pendingChange&&yT(i,e),i.updateOn!=="submit"&&i.markAsTouched()})}function yT(i,e){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function m5(i,e){let r=(t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)};i.registerOnChange(r),e._registerOnDestroy(()=>{i._unregisterOnChange(r)})}function wT(i,e){i==null,Cy(i,e)}function p5(i,e){return Fp(i,e)}function CT(i,e){if(!i.hasOwnProperty("model"))return!1;let r=i.model;return r.isFirstChange()?!0:!Object.is(e,r.currentValue)}function f5(i){return Object.getPrototypeOf(i.constructor)===rT}function xT(i,e){i._syncPendingControls(),e.forEach(r=>{let t=r.control;t.updateOn==="submit"&&t._pendingChange&&(r.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function DT(i,e){if(!e)return null;Array.isArray(e);let r,t,n;return e.forEach(o=>{o.constructor===lt?r=o:f5(o)?t=o:n=o}),n||t||r||null}function g5(i,e){let r=i.indexOf(e);r>-1&&i.splice(r,1)}var _5={provide:Sa,useExisting:Xt(()=>Oo)},Vd=Promise.resolve(),Oo=(()=>{let e=class e extends Sa{get submitted(){return Dn(this.submittedReactive)}constructor(t,n,o){super(),this.callSetDisabledState=o,this._submitted=Mr(()=>this.submittedReactive()),this.submittedReactive=Dr(!1),this._directives=new Set,this.ngSubmit=new T,this.form=new Op({},yy(t),wy(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Vd.then(()=>{let n=this._findContainer(t.path);t.control=n.registerControl(t.name,t.control),zd(t.control,t,this.callSetDisabledState),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Vd.then(()=>{let n=this._findContainer(t.path);n&&n.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){Vd.then(()=>{let n=this._findContainer(t.path),o=new Op({});wT(o,t),n.registerControl(t.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Vd.then(()=>{let n=this._findContainer(t.path);n&&n.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,n){Vd.then(()=>{this.form.get(t.path).setValue(n)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submittedReactive.set(!0),xT(this.form,this._directives),this.ngSubmit.emit(t),t?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}};e.\u0275fac=function(n){return new(n||e)(m(co,10),m(Np,10),m(Ul,8))},e.\u0275dir=L({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,o){n&1&&b("submit",function(s){return o.onSubmit(s)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ce([_5]),be]});let i=e;return i})();function tT(i,e){let r=i.indexOf(e);r>-1&&i.splice(r,1)}function iT(i){return typeof i=="object"&&i!==null&&Object.keys(i).length===2&&"value"in i&&"disabled"in i}var Bp=class extends Ap{constructor(e=null,r,t){super(vT(r),bT(t,r)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(r),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Vp(r)&&(r.nonNullable||r.initialValueIsDefault)&&(iT(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,r={}){this.value=this._pendingValue=e,this._onChange.length&&r.emitModelToViewChange!==!1&&this._onChange.forEach(t=>t(this.value,r.emitViewToModelChange!==!1)),this.updateValueAndValidity(r)}patchValue(e,r={}){this.setValue(e,r)}reset(e=this.defaultValue,r={}){this._applyFormState(e),this.markAsPristine(r),this.markAsUntouched(r),this.setValue(this.value,r),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){tT(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){tT(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){iT(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var v5=i=>i instanceof Bp;var b5={provide:kn,useExisting:Xt(()=>Se)},nT=Promise.resolve(),Se=(()=>{let e=class e extends kn{constructor(t,n,o,a,s,l){super(),this._changeDetectorRef=s,this.callSetDisabledState=l,this.control=new Bp,this._registered=!1,this.name="",this.update=new T,this._parent=t,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=DT(this,a)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){let n=t.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),CT(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){zd(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(t){nT.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){let n=t.isDisabled.currentValue,o=n!==0&&Y(n);nT.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?c5(t,this._parent):[t]}};e.\u0275fac=function(n){return new(n||e)(m(Sa,9),m(co,10),m(Np,10),m(vn,10),m(he,8),m(Ul,8))},e.\u0275dir=L({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Ce([b5]),be,Qe]});let i=e;return i})(),zp=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let i=e;return i})(),y5={provide:vn,useExisting:Xt(()=>$n),multi:!0},$n=(()=>{let e=class e extends rT{writeValue(t){let n=t??"";this.setProperty("value",n)}registerOnChange(t){this.onChange=n=>{t(n==""?null:parseFloat(n))}}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=jt(e)))(o||e)}})(),e.\u0275dir=L({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,o){n&1&&b("input",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},features:[Ce([y5]),be]});let i=e;return i})();var ST=new R(""),w5={provide:kn,useExisting:Xt(()=>xy)},xy=(()=>{let e=class e extends kn{set isDisabled(t){}constructor(t,n,o,a,s){super(),this._ngModelWarningConfig=a,this.callSetDisabledState=s,this.update=new T,this._ngModelWarningSent=!1,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=DT(this,o)}ngOnChanges(t){if(this._isControlChanged(t)){let n=t.form.previousValue;n&&Rp(n,this,!1),zd(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}CT(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Rp(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(n){return new(n||e)(m(co,10),m(Np,10),m(vn,10),m(ST,8),m(Ul,8))},e.\u0275dir=L({type:e,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Ce([w5]),be,Qe]});let i=e;return i})(),C5={provide:Sa,useExisting:Xt(()=>gs)},gs=(()=>{let e=class e extends Sa{get submitted(){return Dn(this._submittedReactive)}set submitted(t){this._submittedReactive.set(t)}constructor(t,n,o){super(),this.callSetDisabledState=o,this._submitted=Mr(()=>this._submittedReactive()),this._submittedReactive=Dr(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new T,this._setValidators(t),this._setAsyncValidators(n)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Fp(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){let n=this.form.get(t.path);return zd(n,t,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),n}getControl(t){return this.form.get(t.path)}removeControl(t){Rp(t.control||null,t,!1),g5(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,n){this.form.get(t.path).setValue(n)}onSubmit(t){return this._submittedReactive.set(!0),xT(this.form,this.directives),this.ngSubmit.emit(t),this.form._events.next(new vy(this.control)),t?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this._submittedReactive.set(!1),this.form._events.next(new by(this.form))}_updateDomValue(){this.directives.forEach(t=>{let n=t.control,o=this.form.get(t.path);n!==o&&(Rp(n||null,t),v5(o)&&(zd(o,t,this.callSetDisabledState),t.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){let n=this.form.get(t.path);wT(n,t),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){let n=this.form.get(t.path);n&&p5(n,t)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Cy(this.form,this),this._oldForm&&Fp(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(n){return new(n||e)(m(co,10),m(Np,10),m(Ul,8))},e.\u0275dir=L({type:e,selectors:[["","formGroup",""]],hostBindings:function(n,o){n&1&&b("submit",function(s){return o.onSubmit(s)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ce([C5]),be,Qe]});let i=e;return i})();function x5(i){return typeof i=="number"?i:parseInt(i,10)}var ET=(()=>{let e=class e{constructor(){this._validator=Ep}ngOnChanges(t){if(this.inputName in t){let n=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(n),this._validator=this._enabled?this.createValidator(n):Ep,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return t!=null}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e,features:[Qe]});let i=e;return i})();var D5={provide:co,useExisting:Xt(()=>Fi),multi:!0};var Fi=(()=>{let e=class e extends ET{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Y,this.createValidator=t=>sT}enabled(t){return t}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=jt(e)))(o||e)}})(),e.\u0275dir=L({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(n,o){n&2&&ie("required",o._enabled?"":null)},inputs:{required:"required"},features:[Ce([D5]),be]});let i=e;return i})();var S5={provide:co,useExisting:Xt(()=>_s),multi:!0},_s=(()=>{let e=class e extends ET{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=t=>x5(t),this.createValidator=t=>lT(t)}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=jt(e)))(o||e)}})(),e.\u0275dir=L({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(n,o){n&2&&ie("maxlength",o._enabled?o.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Ce([S5]),be]});let i=e;return i})();var IT=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({});let i=e;return i})();var MT=(()=>{let e=class e{static withConfig(t){return{ngModule:e,providers:[{provide:Ul,useValue:t.callSetDisabledState??jp}]}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({imports:[IT]});let i=e;return i})(),Up=(()=>{let e=class e{static withConfig(t){return{ngModule:e,providers:[{provide:ST,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:Ul,useValue:t.callSetDisabledState??jp}]}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({imports:[IT]});let i=e;return i})();var Dy=class{constructor(e){this._box=e,this._destroyed=new G,this._resizeSubject=new G,this._elementObservables=new Map,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(r=>this._resizeSubject.next(r)))}observe(e){return this._elementObservables.has(e)||this._elementObservables.set(e,new Re(r=>{let t=this._resizeSubject.subscribe(r);return this._resizeObserver?.observe(e,{box:this._box}),()=>{this._resizeObserver?.unobserve(e),t.unsubscribe(),this._elementObservables.delete(e)}}).pipe(Ye(r=>r.some(t=>t.target===e)),Hu({bufferSize:1,refCount:!0}),fe(this._destroyed))),this._elementObservables.get(e)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},Hp=(()=>{let e=class e{constructor(){this._observers=new Map,this._ngZone=k(Z),typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,t]of this._observers)t.destroy();this._observers.clear(),typeof ResizeObserver<"u"}observe(t,n){let o=n?.box||"content-box";return this._observers.has(o)||this._observers.set(o,new Dy(o)),this._observers.get(o).observe(t)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var My=["*"];function E5(i,e){i&1&&ae(0)}var I5=["tabListContainer"],M5=["tabList"],T5=["tabListInner"],k5=["nextPaginator"],A5=["previousPaginator"],O5=i=>({animationDuration:i}),R5=(i,e)=>({value:i,params:e});function P5(i,e){}var F5=["tabBodyWrapper"],N5=["tabHeader"];function L5(i,e){}function V5(i,e){if(i&1&&x(0,L5,0,0,"ng-template",12),i&2){let r=_().$implicit;p("cdkPortalOutlet",r.templateLabel)}}function j5(i,e){if(i&1&&g(0),i&2){let r=_().$implicit;$e(r.textLabel)}}function B5(i,e){if(i&1){let r=A();c(0,"div",7,2),b("click",function(){let n=y(r),o=n.$implicit,a=n.$index,s=_(),l=we(1);return w(s._handleClick(o,l,a))})("cdkFocusChange",function(n){let o=y(r).$index,a=_();return w(a._tabFocusChanged(n,o))}),I(2,"span",8)(3,"div",9),c(4,"span",10)(5,"span",11),x(6,V5,1,1,null,12)(7,j5,1,1),d()()()}if(i&2){let r=e.$implicit,t=e.$index,n=we(1),o=_();Yt(r.labelClass),ne("mdc-tab--active",o.selectedIndex===t),p("id",o._getTabLabelId(t))("disabled",r.disabled)("fitInkBarToContent",o.fitInkBarToContent),ie("tabIndex",o._getTabIndex(t))("aria-posinset",t+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(t))("aria-selected",o.selectedIndex===t)("aria-label",r.ariaLabel||null)("aria-labelledby",!r.ariaLabel&&r.ariaLabelledby?r.ariaLabelledby:null),h(3),p("matRippleTrigger",n)("matRippleDisabled",r.disabled||o.disableRipple),h(3),De(r.templateLabel?6:7)}}function z5(i,e){i&1&&ae(0)}function U5(i,e){if(i&1){let r=A();c(0,"mat-tab-body",13),b("_onCentered",function(){y(r);let n=_();return w(n._removeTabBodyWrapperHeight())})("_onCentering",function(n){y(r);let o=_();return w(o._setTabBodyWrapperHeight(n))}),d()}if(i&2){let r=e.$implicit,t=e.$index,n=_();Yt(r.bodyClass),ne("mat-mdc-tab-body-active",n.selectedIndex===t),p("id",n._getTabContentId(t))("content",r.content)("position",r.position)("origin",r.origin)("animationDuration",n.animationDuration)("preserveContent",n.preserveContent),ie("tabindex",n.contentTabIndex!=null&&n.selectedIndex===t?n.contentTabIndex:null)("aria-labelledby",n._getTabLabelId(t))("aria-hidden",n.selectedIndex!==t)}}var H5=new R("MatTabContent"),$5=(()=>{let e=class e{constructor(t){this.template=t}};e.\u0275fac=function(n){return new(n||e)(m(ct))},e.\u0275dir=L({type:e,selectors:[["","matTabContent",""]],standalone:!0,features:[Ce([{provide:H5,useExisting:e}])]});let i=e;return i})(),W5=new R("MatTabLabel"),AT=new R("MAT_TAB"),ei=(()=>{let e=class e extends GM{constructor(t,n,o){super(t,n),this._closestTab=o}};e.\u0275fac=function(n){return new(n||e)(m(ct),m(Ct),m(AT,8))},e.\u0275dir=L({type:e,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],standalone:!0,features:[Ce([{provide:W5,useExisting:e}]),be]});let i=e;return i})(),OT=new R("MAT_TAB_GROUP"),ti=(()=>{let e=class e{get templateLabel(){return this._templateLabel}set templateLabel(t){this._setTemplateLabelInput(t)}get content(){return this._contentPortal}constructor(t,n){this._viewContainerRef=t,this._closestTabGroup=n,this.disabled=!1,this._explicitContent=void 0,this.textLabel="",this._contentPortal=null,this._stateChanges=new G,this.position=null,this.origin=null,this.isActive=!1}ngOnChanges(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Oi(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(t){t&&t._closestTab===this&&(this._templateLabel=t)}};e.\u0275fac=function(n){return new(n||e)(m(Ct),m(OT,8))},e.\u0275cmp=E({type:e,selectors:[["mat-tab"]],contentQueries:function(n,o,a){if(n&1&&(Be(a,ei,5),Be(a,$5,7,ct)),n&2){let s;Q(s=K())&&(o.templateLabel=s.first),Q(s=K())&&(o._explicitContent=s.first)}},viewQuery:function(n,o){if(n&1&&ce(ct,7),n&2){let a;Q(a=K())&&(o._implicitContent=a.first)}},hostAttrs:["hidden",""],inputs:{disabled:[2,"disabled","disabled",Y],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],standalone:!0,features:[Ce([{provide:AT,useExisting:e}]),ge,Qe,re],ngContentSelectors:My,decls:1,vars:0,template:function(n,o){n&1&&(He(),x(0,E5,1,0,"ng-template"))},encapsulation:2});let i=e;return i})(),Sy="mdc-tab-indicator--active",TT="mdc-tab-indicator--no-transition",Ey=class{constructor(e){this._items=e}hide(){this._items.forEach(e=>e.deactivateInkBar())}alignToElement(e){let r=this._items.find(n=>n.elementRef.nativeElement===e),t=this._currentItem;if(r!==t&&(t?.deactivateInkBar(),r)){let n=t?.elementRef.nativeElement.getBoundingClientRect?.();r.activateInkBar(n),this._currentItem=r}}},G5=(()=>{let e=class e{constructor(){this._elementRef=k(q),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(t){this._fitToContent!==t&&(this._fitToContent=t,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(t){let n=this._elementRef.nativeElement;if(!t||!n.getBoundingClientRect||!this._inkBarContentElement){n.classList.add(Sy);return}let o=n.getBoundingClientRect(),a=t.width/o.width,s=t.left-o.left;n.classList.add(TT),this._inkBarContentElement.style.setProperty("transform",`translateX(${s}px) scaleX(${a})`),n.getBoundingClientRect(),n.classList.remove(TT),n.classList.add(Sy),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(Sy)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){let t=this._elementRef.nativeElement.ownerDocument||document,n=this._inkBarElement=t.createElement("span"),o=this._inkBarContentElement=t.createElement("span");n.className="mdc-tab-indicator",o.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",n.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){this._inkBarElement;let t=this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement;t.appendChild(this._inkBarElement)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",Y]},features:[ge]});let i=e;return i})();var RT=(()=>{let e=class e extends G5{constructor(t){super(),this.elementRef=t,this.disabled=!1}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}};e.\u0275fac=function(n){return new(n||e)(m(q))},e.\u0275dir=L({type:e,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(n,o){n&2&&(ie("aria-disabled",!!o.disabled),ne("mat-mdc-tab-disabled",o.disabled))},inputs:{disabled:[2,"disabled","disabled",Y]},standalone:!0,features:[ge,be]});let i=e;return i})(),kT=Ui({passive:!0}),q5=650,Y5=100,Q5=(()=>{let e=class e{get selectedIndex(){return this._selectedIndex}set selectedIndex(t){let n=isNaN(t)?0:t;this._selectedIndex!=n&&(this._selectedIndexChanged=!0,this._selectedIndex=n,this._keyManager&&this._keyManager.updateActiveItem(n))}constructor(t,n,o,a,s,l,u){this._elementRef=t,this._changeDetectorRef=n,this._viewportRuler=o,this._dir=a,this._ngZone=s,this._platform=l,this._animationMode=u,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new G,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new G,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new T,this.indexFocused=new T,this._sharedResizeObserver=k(Hp),this._injector=k(Pe),s.runOutsideAngular(()=>{dn(t.nativeElement,"mouseleave").pipe(fe(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){dn(this._previousPaginator.nativeElement,"touchstart",kT).pipe(fe(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),dn(this._nextPaginator.nativeElement,"touchstart",kT).pipe(fe(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){let t=this._dir?this._dir.change:oe("ltr"),n=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(mr(32),fe(this._destroyed)),o=this._viewportRuler.change(150).pipe(fe(this._destroyed)),a=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new _a(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),ai(a,{injector:this._injector}),wt(t,o,n,this._items.changes,this._itemsResized()).pipe(fe(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),a()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(s=>{this.indexFocused.emit(s),this._setTabFocus(s)})}_itemsResized(){return typeof ResizeObserver!="function"?Ai:this._items.changes.pipe(Rt(this._items),Tt(t=>new Re(n=>this._ngZone.runOutsideAngular(()=>{let o=new ResizeObserver(a=>n.next(a));return t.forEach(a=>o.observe(a.elementRef.nativeElement)),()=>{o.disconnect()}}))),Ba(1),Ye(t=>t.some(n=>n.contentRect.width>0&&n.contentRect.height>0)))}ngAfterContentChecked(){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())}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(t){if(!Pt(t))switch(t.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){let n=this._items.get(this.focusIndex);n&&!n.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t))}break;default:this._keyManager.onKeydown(t)}}_onContentChanges(){let t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(t){!this._isValidIndex(t)||this.focusIndex===t||!this._keyManager||this._keyManager.setActiveItem(t)}_isValidIndex(t){return this._items?!!this._items.toArray()[t]:!0}_setTabFocus(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();let n=this._tabListContainer.nativeElement;this._getLayoutDirection()=="ltr"?n.scrollLeft=0:n.scrollLeft=n.scrollWidth-n.offsetWidth}}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;let t=this.scrollDistance,n=this._getLayoutDirection()==="ltr"?-t:t;this._tabList.nativeElement.style.transform=`translateX(${Math.round(n)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(t){this._scrollTo(t)}_scrollHeader(t){let n=this._tabListContainer.nativeElement.offsetWidth,o=(t=="before"?-1:1)*n/3;return this._scrollTo(this._scrollDistance+o)}_handlePaginatorClick(t){this._stopInterval(),this._scrollHeader(t)}_scrollToLabel(t){if(this.disablePagination)return;let n=this._items?this._items.toArray()[t]:null;if(!n)return;let o=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:a,offsetWidth:s}=n.elementRef.nativeElement,l,u;this._getLayoutDirection()=="ltr"?(l=a,u=l+s):(u=this._tabListInner.nativeElement.offsetWidth-a,l=u-s);let f=this.scrollDistance,v=this.scrollDistance+o;lv&&(this.scrollDistance+=Math.min(u-v,l-f))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let t=this._tabListInner.nativeElement.scrollWidth,n=this._elementRef.nativeElement.offsetWidth,o=t-n>=5;o||(this.scrollDistance=0),o!==this._showPaginationControls&&(this._showPaginationControls=o,this._changeDetectorRef.markForCheck())}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=this.scrollDistance==0,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){let t=this._tabListInner.nativeElement.scrollWidth,n=this._tabListContainer.nativeElement.offsetWidth;return t-n||0}_alignInkBarToSelectedTab(){let t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,n=t?t.elementRef.nativeElement:null;n?this._inkBar.alignToElement(n):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(t,n){n&&n.button!=null&&n.button!==0||(this._stopInterval(),yo(q5,Y5).pipe(fe(wt(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:o,distance:a}=this._scrollHeader(t);(a===0||a>=o)&&this._stopInterval()}))}_scrollTo(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let n=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(n,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:n,distance:this._scrollDistance}}};e.\u0275fac=function(n){return new(n||e)(m(q),m(he),m(fn),m(Nt,8),m(Z),m(Ve),m(kt,8))},e.\u0275dir=L({type:e,inputs:{disablePagination:[2,"disablePagination","disablePagination",Y],selectedIndex:[2,"selectedIndex","selectedIndex",ni]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[ge]});let i=e;return i})(),K5=(()=>{let e=class e extends Q5{constructor(t,n,o,a,s,l,u){super(t,n,o,a,s,l,u),this.disableRipple=!1}ngAfterContentInit(){this._inkBar=new Ey(this._items),super.ngAfterContentInit()}_itemSelected(t){t.preventDefault()}};e.\u0275fac=function(n){return new(n||e)(m(q),m(he),m(fn),m(Nt,8),m(Z),m(Ve),m(kt,8))},e.\u0275cmp=E({type:e,selectors:[["mat-tab-header"]],contentQueries:function(n,o,a){if(n&1&&Be(a,RT,4),n&2){let s;Q(s=K())&&(o._items=s)}},viewQuery:function(n,o){if(n&1&&(ce(I5,7),ce(M5,7),ce(T5,7),ce(k5,5),ce(A5,5)),n&2){let a;Q(a=K())&&(o._tabListContainer=a.first),Q(a=K())&&(o._tabList=a.first),Q(a=K())&&(o._tabListInner=a.first),Q(a=K())&&(o._nextPaginator=a.first),Q(a=K())&&(o._previousPaginator=a.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(n,o){n&2&&ne("mat-mdc-tab-header-pagination-controls-enabled",o._showPaginationControls)("mat-mdc-tab-header-rtl",o._getLayoutDirection()=="rtl")},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],disableRipple:[2,"disableRipple","disableRipple",Y]},standalone:!0,features:[ge,be,re],ngContentSelectors:My,decls:13,vars:10,consts:[["previousPaginator",""],["tabListContainer",""],["tabList",""],["tabListInner",""],["nextPaginator",""],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"click","mousedown","touchend","matRippleDisabled"],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],[1,"mat-mdc-tab-labels"],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"mousedown","click","touchend","matRippleDisabled"]],template:function(n,o){if(n&1){let a=A();He(),c(0,"div",5,0),b("click",function(){return y(a),w(o._handlePaginatorClick("before"))})("mousedown",function(l){return y(a),w(o._handlePaginatorPress("before",l))})("touchend",function(){return y(a),w(o._stopInterval())}),I(2,"div",6),d(),c(3,"div",7,1),b("keydown",function(l){return y(a),w(o._handleKeydown(l))}),c(5,"div",8,2),b("cdkObserveContent",function(){return y(a),w(o._onContentChanges())}),c(7,"div",9,3),ae(9),d()()(),c(10,"div",10,4),b("mousedown",function(l){return y(a),w(o._handlePaginatorPress("after",l))})("click",function(){return y(a),w(o._handlePaginatorClick("after"))})("touchend",function(){return y(a),w(o._stopInterval())}),I(12,"div",6),d()}n&2&&(ne("mat-mdc-tab-header-pagination-disabled",o._disableScrollBefore),p("matRippleDisabled",o._disableScrollBefore||o.disableRipple),h(3),ne("_mat-animation-noopable",o._animationMode==="NoopAnimations"),h(2),ie("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby||null),h(5),ne("mat-mdc-tab-header-pagination-disabled",o._disableScrollAfter),p("matRippleDisabled",o._disableScrollAfter||o.disableRipple))},dependencies:[Tn,n1],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-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:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;outline:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-app-on-surface))}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-header-pagination-icon-color, var(--mat-app-on-surface))}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-header-divider-height);border-bottom-color:var(--mat-tab-header-divider-color, var(--mat-app-surface-variant))}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-header-divider-height);border-top-color:var(--mat-tab-header-divider-color, var(--mat-app-surface-variant))}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-labels,.mat-mdc-tab-labels.cdk-drop-list{min-height:var(--mdc-secondary-navigation-tab-container-height)}.mat-mdc-tab::before{margin:5px}.cdk-high-contrast-active .mat-mdc-tab[aria-disabled=true]{color:GrayText}"],encapsulation:2});let i=e;return i})(),Z5=new R("MAT_TABS_CONFIG"),X5={translateTab:ui("translateTab",[Lt("center, void, left-origin-center, right-origin-center",Me({transform:"none",visibility:"visible"})),Lt("left",Me({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Lt("right",Me({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),St("* => left, * => right, left => center, right => center",Mt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),St("void => left-origin-center",[Me({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),Mt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),St("void => right-origin-center",[Me({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),Mt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},J5=(()=>{let e=class e extends rn{constructor(t,n,o,a){super(t,n,a),this._host=o,this._centeringSub=ve.EMPTY,this._leavingSub=ve.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Rt(this._host._isCenterPosition(this._host._position))).subscribe(t=>{this._host._content&&t&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}};e.\u0275fac=function(n){return new(n||e)(m(wn),m(Ct),m(Xt(()=>PT)),m(se))},e.\u0275dir=L({type:e,selectors:[["","matTabBodyHost",""]],standalone:!0,features:[be]});let i=e;return i})(),PT=(()=>{let e=class e{set position(t){this._positionIndex=t,this._computePositionAnimationState()}constructor(t,n,o){this._elementRef=t,this._dir=n,this._dirChangeSubscription=ve.EMPTY,this._translateTabComplete=new G,this._onCentering=new T,this._beforeCentering=new T,this._afterLeavingCenter=new T,this._onCentered=new T(!0),this.animationDuration="500ms",this.preserveContent=!1,n&&(this._dirChangeSubscription=n.change.subscribe(a=>{this._computePositionAnimationState(a),o.markForCheck()})),this._translateTabComplete.subscribe(a=>{this._isCenterPosition(a.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(a.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}ngOnInit(){this._position=="center"&&this.origin!=null&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(t){let n=this._isCenterPosition(t.toState);this._beforeCentering.emit(n),n&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_isCenterPosition(t){return t=="center"||t=="left-origin-center"||t=="right-origin-center"}_computePositionAnimationState(t=this._getLayoutDirection()){this._positionIndex<0?this._position=t=="ltr"?"left":"right":this._positionIndex>0?this._position=t=="ltr"?"right":"left":this._position="center"}_computePositionFromOrigin(t){let n=this._getLayoutDirection();return n=="ltr"&&t<=0||n=="rtl"&&t>0?"left-origin-center":"right-origin-center"}};e.\u0275fac=function(n){return new(n||e)(m(q),m(Nt,8),m(he))},e.\u0275cmp=E({type:e,selectors:[["mat-tab-body"]],viewQuery:function(n,o){if(n&1&&ce(rn,5),n&2){let a;Q(a=K())&&(o._portalHost=a.first)}},hostAttrs:[1,"mat-mdc-tab-body"],inputs:{_content:[0,"content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"},standalone:!0,features:[re],decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(n,o){if(n&1){let a=A();c(0,"div",1,0),b("@translateTab.start",function(l){return y(a),w(o._onTranslateTabStarted(l))})("@translateTab.done",function(l){return y(a),w(o._translateTabComplete.next(l))}),x(2,P5,0,0,"ng-template",2),d()}n&2&&p("@translateTab",cl(3,R5,o._position,Bi(1,O5,o.animationDuration)))},dependencies:[J5,gd],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[X5.translateTab]}});let i=e;return i})(),e8=0,t8=!0,oi=(()=>{let e=class e{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(t){this._fitInkBarToContent=t,this._changeDetectorRef.markForCheck()}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){this._indexToSelect=isNaN(t)?null:t}get animationDuration(){return this._animationDuration}set animationDuration(t){let n=t+"";this._animationDuration=/^\d+$/.test(n)?t+"ms":n}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(t){this._contentTabIndex=isNaN(t)?null:t}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){if(!t8)throw new Error("mat-tab-group background color must be set through the Sass theming API");let n=this._elementRef.nativeElement.classList;n.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),t&&n.add("mat-tabs-with-background",`mat-background-${t}`),this._backgroundColor=t}constructor(t,n,o,a){this._elementRef=t,this._changeDetectorRef=n,this._animationMode=a,this._tabs=new eo,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=ve.EMPTY,this._tabLabelSubscription=ve.EMPTY,this._fitInkBarToContent=!1,this.stretchTabs=!0,this.dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this.disablePagination=!1,this.disableRipple=!1,this.preserveContent=!1,this.selectedIndexChange=new T,this.focusChange=new T,this.animationDone=new T,this.selectedTabChange=new T(!0),this._isServer=!k(Ve).isBrowser,this._groupId=e8++,this.animationDuration=o&&o.animationDuration?o.animationDuration:"500ms",this.disablePagination=o&&o.disablePagination!=null?o.disablePagination:!1,this.dynamicHeight=o&&o.dynamicHeight!=null?o.dynamicHeight:!1,o?.contentTabIndex!=null&&(this.contentTabIndex=o.contentTabIndex),this.preserveContent=!!o?.preserveContent,this.fitInkBarToContent=o&&o.fitInkBarToContent!=null?o.fitInkBarToContent:!1,this.stretchTabs=o&&o.stretchTabs!=null?o.stretchTabs:!0}ngAfterContentChecked(){let t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){let n=this._selectedIndex==null;if(!n){this.selectedTabChange.emit(this._createChangeEvent(t));let o=this._tabBodyWrapper.nativeElement;o.style.minHeight=o.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((o,a)=>o.isActive=a===t),n||(this.selectedIndexChange.emit(t),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((n,o)=>{n.position=o-t,this._selectedIndex!=null&&n.position==0&&!n.origin&&(n.origin=t-this._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{let t=this._clampTabIndex(this._indexToSelect);if(t===this._selectedIndex){let n=this._tabs.toArray(),o;for(let a=0;a{n[t].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(t))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(Rt(this._allTabs)).subscribe(t=>{this._tabs.reset(t.filter(n=>n._closestTabGroup===this||!n._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(t){let n=this._tabHeader;n&&(n.focusIndex=t)}_focusChanged(t){this._lastFocusedTabIndex=t,this.focusChange.emit(this._createChangeEvent(t))}_createChangeEvent(t){let n=new Iy;return n.index=t,this._tabs&&this._tabs.length&&(n.tab=this._tabs.toArray()[t]),n}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=wt(...this._tabs.map(t=>t._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(t){return Math.min(this._tabs.length-1,Math.max(t||0,0))}_getTabLabelId(t){return`mat-tab-label-${this._groupId}-${t}`}_getTabContentId(t){return`mat-tab-content-${this._groupId}-${t}`}_setTabBodyWrapperHeight(t){if(!this.dynamicHeight||!this._tabBodyWrapperHeight)return;let n=this._tabBodyWrapper.nativeElement;n.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(n.style.height=t+"px")}_removeTabBodyWrapperHeight(){let t=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=t.clientHeight,t.style.height="",this.animationDone.emit()}_handleClick(t,n,o){n.focusIndex=o,t.disabled||(this.selectedIndex=o)}_getTabIndex(t){let n=this._lastFocusedTabIndex??this.selectedIndex;return t===n?0:-1}_tabFocusChanged(t,n){t&&t!=="mouse"&&t!=="touch"&&(this._tabHeader.focusIndex=n)}};e.\u0275fac=function(n){return new(n||e)(m(q),m(he),m(Z5,8),m(kt,8))},e.\u0275cmp=E({type:e,selectors:[["mat-tab-group"]],contentQueries:function(n,o,a){if(n&1&&Be(a,ti,5),n&2){let s;Q(s=K())&&(o._allTabs=s)}},viewQuery:function(n,o){if(n&1&&(ce(F5,5),ce(N5,5)),n&2){let a;Q(a=K())&&(o._tabBodyWrapper=a.first),Q(a=K())&&(o._tabHeader=a.first)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:10,hostBindings:function(n,o){n&2&&(Yt("mat-"+(o.color||"primary")),ji("--mat-tab-animation-duration",o.animationDuration),ne("mat-mdc-tab-group-dynamic-height",o.dynamicHeight)("mat-mdc-tab-group-inverted-header",o.headerPosition==="below")("mat-mdc-tab-group-stretch-tabs",o.stretchTabs))},inputs:{color:"color",fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",Y],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",Y],dynamicHeight:[2,"dynamicHeight","dynamicHeight",Y],selectedIndex:[2,"selectedIndex","selectedIndex",ni],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",ni],disablePagination:[2,"disablePagination","disablePagination",Y],disableRipple:[2,"disableRipple","disableRipple",Y],preserveContent:[2,"preserveContent","preserveContent",Y],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],standalone:!0,features:[Ce([{provide:OT,useExisting:e}]),ge,re],ngContentSelectors:My,decls:9,vars:8,consts:[["tabHeader",""],["tabBodyWrapper",""],["tabNode",""],[3,"indexFocused","selectFocusedIndex","selectedIndex","disableRipple","disablePagination","aria-label","aria-labelledby"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"id","mdc-tab--active","class","disabled","fitInkBarToContent"],[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","mat-mdc-tab-body-active","class","content","position","origin","animationDuration","preserveContent"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"click","cdkFocusChange","id","disabled","fitInkBarToContent"],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"_onCentered","_onCentering","id","content","position","origin","animationDuration","preserveContent"]],template:function(n,o){if(n&1){let a=A();He(),c(0,"mat-tab-header",3,0),b("indexFocused",function(l){return y(a),w(o._focusChanged(l))})("selectFocusedIndex",function(l){return y(a),w(o.selectedIndex=l)}),Sr(2,B5,8,17,"div",4,Rc),d(),x(4,z5,1,0),c(5,"div",5,1),Sr(7,U5,1,13,"mat-tab-body",6,Rc),d()}n&2&&(p("selectedIndex",o.selectedIndex||0)("disableRipple",o.disableRipple)("disablePagination",o.disablePagination)("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledby),h(2),Er(o._tabs),h(2),De(o._isServer?4:-1),h(),ne("_mat-animation-noopable",o._animationMode==="NoopAnimations"),h(2),Er(o._tabs))},dependencies:[K5,RT,up,Tn,rn,PT],styles:['.mdc-tab{min-width:90px;padding:0 24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;z-index:1}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab--active .mdc-tab__text-label{transition-delay:100ms}._mat-animation-noopable .mdc-tab__text-label{transition:none}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transition:var(--mat-tab-animation-duration, 250ms) transform cubic-bezier(0.4, 0, 0.2, 1);transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}._mat-animation-noopable .mdc-tab-indicator__content,.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mdc-secondary-navigation-tab-container-height);font-family:var(--mat-tab-header-label-text-font, var(--mat-app-title-small-font));font-size:var(--mat-tab-header-label-text-size, var(--mat-app-title-small-size));letter-spacing:var(--mat-tab-header-label-text-tracking, var(--mat-app-title-small-tracking));line-height:var(--mat-tab-header-label-text-line-height, var(--mat-app-title-small-line-height));font-weight:var(--mat-tab-header-label-text-weight, var(--mat-app-title-small-weight))}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color, var(--mat-app-primary));border-top-width:var(--mdc-tab-indicator-active-indicator-height);border-radius:var(--mdc-tab-indicator-active-indicator-shape)}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-header-active-ripple-color, var(--mat-app-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color, var(--mat-app-primary))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color, var(--mat-app-primary))}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-header-disabled-ripple-color)}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-app-on-surface))}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color, var(--mat-app-on-surface));display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-app-on-surface))}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-header-with-background-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-focus-indicator::before{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}'],encapsulation:2});let i=e;return i})(),Iy=class{};var FT=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({imports:[pe,pe]});let i=e;return i})();function i8(i,e){if(i&1){let r=A();c(0,"uds-field-text",2),b("changed",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()}if(i&2){let r=_();p("field",r.field)}}function n8(i,e){if(i&1){let r=A();c(0,"uds-field-autocomplete",2),b("changed",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()}if(i&2){let r=_();p("field",r.field)}}function o8(i,e){if(i&1){let r=A();c(0,"uds-field-textbox",2),b("changed",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()}if(i&2){let r=_();p("field",r.field)}}function r8(i,e){if(i&1){let r=A();c(0,"uds-field-numeric",2),b("changed",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()}if(i&2){let r=_();p("field",r.field)}}function a8(i,e){if(i&1){let r=A();c(0,"uds-field-password",2),b("changed",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()}if(i&2){let r=_();p("field",r.field)}}function s8(i,e){if(i&1){let r=A();c(0,"uds-field-hidden",2),b("changed",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()}if(i&2){let r=_();p("field",r.field)}}function l8(i,e){if(i&1){let r=A();c(0,"uds-field-choice",2),b("changed",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()}if(i&2){let r=_();p("field",r.field)}}function c8(i,e){if(i&1){let r=A();c(0,"uds-field-multichoice",2),b("changed",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()}if(i&2){let r=_();p("field",r.field)}}function d8(i,e){if(i&1){let r=A();c(0,"uds-field-editlist",2),b("changed",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()}if(i&2){let r=_();p("field",r.field)}}function u8(i,e){if(i&1){let r=A();c(0,"uds-field-checkbox",2),b("changed",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()}if(i&2){let r=_();p("field",r.field)}}function h8(i,e){if(i&1){let r=A();c(0,"uds-field-imgchoice",2),b("changed",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()}if(i&2){let r=_();p("field",r.field)}}function m8(i,e){if(i&1){let r=A();c(0,"uds-field-date",2),b("changed",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()}if(i&2){let r=_();p("field",r.field)}}function p8(i,e){if(i&1){let r=A();c(0,"uds-field-tags",2),b("changed",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()}if(i&2){let r=_();p("field",r.field)}}var $p=(()=>{let e=class e{constructor(){this.field={},this.changed=new T,this.udsGuiFieldType=Ki}ngOnInit(){}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=E({type:e,selectors:[["uds-field"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:14,vars:15,consts:[["matTooltipShowDelay","1000",1,"field",3,"ngSwitch","matTooltip"],[3,"field","changed",4,"ngSwitchCase"],[3,"changed","field"]],template:function(n,o){n&1&&(c(0,"div",0),x(1,i8,1,1,"uds-field-text",1)(2,n8,1,1,"uds-field-autocomplete",1)(3,o8,1,1,"uds-field-textbox",1)(4,r8,1,1,"uds-field-numeric",1)(5,a8,1,1,"uds-field-password",1)(6,s8,1,1,"uds-field-hidden",1)(7,l8,1,1,"uds-field-choice",1)(8,c8,1,1,"uds-field-multichoice",1)(9,d8,1,1,"uds-field-editlist",1)(10,u8,1,1,"uds-field-checkbox",1)(11,h8,1,1,"uds-field-imgchoice",1)(12,m8,1,1,"uds-field-date",1)(13,p8,1,1,"uds-field-tags",1),d()),n&2&&(p("ngSwitch",o.field.gui.type)("matTooltip",o.field.gui.tooltip),h(),p("ngSwitchCase",o.udsGuiFieldType.TEXT),h(),p("ngSwitchCase",o.udsGuiFieldType.TEXT_AUTOCOMPLETE),h(),p("ngSwitchCase",o.udsGuiFieldType.TEXTBOX),h(),p("ngSwitchCase",o.udsGuiFieldType.NUMERIC),h(),p("ngSwitchCase",o.udsGuiFieldType.PASSWORD),h(),p("ngSwitchCase",o.udsGuiFieldType.HIDDEN),h(),p("ngSwitchCase",o.udsGuiFieldType.CHOICE),h(),p("ngSwitchCase",o.udsGuiFieldType.MULTI_CHOICE),h(),p("ngSwitchCase",o.udsGuiFieldType.EDITLIST),h(),p("ngSwitchCase",o.udsGuiFieldType.CHECKBOX),h(),p("ngSwitchCase",o.udsGuiFieldType.IMAGECHOICE),h(),p("ngSwitchCase",o.udsGuiFieldType.DATE),h(),p("ngSwitchCase",o.udsGuiFieldType.TAGLIST))},styles:["uds-field[_ngcontent-%COMP%]{flex:1 50%} .mat-mdc-form-field{width:calc(100% - 1px)} .mat-form-field-flex{padding-top:0!important} .mat-mdc-tooltip{font-size:.9rem!important;margin:0!important;max-width:26em!important}"]});let i=e;return i})();function g8(i,e){if(i&1&&g(0),i&2){let r=_().$implicit;F(" ",r," ")}}function _8(i,e){if(i&1){let r=A();c(0,"uds-field",9),b("changed",function(n){y(r);let o=_(3);return w(o.changed.emit(n))}),d()}if(i&2){let r=e.$implicit;p("field",r)}}function v8(i,e){if(i&1&&(c(0,"mat-tab",4),x(1,g8,1,1,"ng-template",5),c(2,"div",6)(3,"div",7),x(4,_8,1,1,"uds-field",8),d()()()),i&2){let r=e.$implicit,t=_(2);h(4),p("ngForOf",t.fieldsByTab[r])}}function b8(i,e){if(i&1&&(c(0,"mat-tab-group",2),x(1,v8,5,1,"mat-tab",3),d()),i&2){let r=_();p("disableRipple",!1)("@.disabled",!0),h(),p("ngForOf",r.tabs)}}function y8(i,e){if(i&1){let r=A();c(0,"div")(1,"uds-field",9),b("changed",function(n){y(r);let o=_(2);return w(o.changed.emit(n))}),d()()}if(i&2){let r=e.$implicit;h(),p("field",r)}}function w8(i,e){if(i&1&&(c(0,"div",6),x(1,y8,2,1,"div",10),d()),i&2){let r=_();h(),p("ngForOf",r.fields)}}var C8=django.gettext("Main"),NT=(()=>{let e=class e{constructor(){this.fields=[],this.changed=new T,this.tabs=new Array,this.fieldsByTab={}}ngOnInit(){this.fieldsByTab={};for(let t of this.fields){let n=t.gui.tab===void 0?C8:t.gui.tab;this.tabs.includes(n)||(this.tabs.push(n),this.fieldsByTab[n]=new Array),this.fieldsByTab[n].push(t)}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=E({type:e,selectors:[["uds-form"]],inputs:{fields:"fields"},outputs:{changed:"changed"},decls:3,vars:2,consts:[["onlyone",""],["backgroundColor","primary",3,"disableRipple",4,"ngIf","ngIfElse"],["backgroundColor","primary",3,"disableRipple"],["class","noOverflow",4,"ngFor","ngForOf"],[1,"noOverflow"],["mat-tab-label",""],[1,"form-content"],[1,"content"],[3,"field","changed",4,"ngFor","ngForOf"],[3,"changed","field"],[4,"ngFor","ngForOf"]],template:function(n,o){if(n&1&&x(0,b8,2,3,"mat-tab-group",1)(1,w8,2,1,"ng-template",null,0,fi),n&2){let a=we(2);p("ngIf",o.tabs.length>1)("ngIfElse",a)}},dependencies:[We,me,ei,ti,oi,$p],styles:[".content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.form-content[_ngcontent-%COMP%]{padding-top:1rem} .mat-mdc-tab-body-content{overflow:hidden!important} .mat-mdc-form-field-infix{min-height:3rem} .mat-mdc-tab-header{position:sticky;top:0;z-index:1000}"]});let i=e;return i})();function D8(i,e){if(i&1){let r=A();c(0,"button",10),b("click",function(){y(r);let n=_();return w(n.customButtonClicked())}),g(1),d()}if(i&2){let r=_();h(),$e(r.data.customButton)}}var LT=(()=>{let e=class e{constructor(t,n){this.dialogRef=t,this.data=n,this.onEvent=new T(!0),this.saving=!1}ngOnInit(){this.onEvent.emit({type:"init",data:null,dialog:this.dialogRef})}changed(t){this.onEvent.emit({type:"changed",data:t,dialog:this.dialogRef})}getFields(){let t={},n=[];return this.data.guiFields.forEach(o=>{let a=o.value;if(o.gui.required&&a!==0&&a!==!1&&(!a||a instanceof Array&&a.length===0)&&n.push(o.gui.label),typeof a=="number"){let s=parseInt((o.gui.minValue||987654321).toString(),10),l=parseInt((o.gui.maxValue||987654321).toString(),10);s!==987654321&&a= "+o.gui.minValue),l!==987654321&&a>l&&n.push(o.gui.label+" <= "+o.gui.maxValue),a=a.toString()}t[o.name]=a}),{data:t,errors:n}}save(){let t=this.getFields();if(t.errors.length>0){this.data.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+t.errors.join(", "));return}this.onEvent.emit({data:t.data,type:"save",dialog:this.dialogRef})}cancel(){this.onEvent.emit({data:null,type:"cancel",dialog:this.dialogRef})}customButtonClicked(){let t=this.getFields();this.onEvent.emit({data:t.data,type:this.data.customButton||"",errors:t.errors,dialog:this.dialogRef})}};e.\u0275fac=function(n){return new(n||e)(m(Ne),m(Ke))},e.\u0275cmp=E({type:e,selectors:[["uds-modal-form"]],decls:17,vars:7,consts:[["vc",""],["mat-dialog-title","",3,"innerHtml"],["autocomplete","off"],[3,"changed","fields"],[1,"buttons"],[1,"group1"],["ngClass","custom","mat-raised-button","",3,"click",4,"ngIf"],[1,"group2"],["mat-raised-button","",3,"click","disabled"],["mat-raised-button","","color","primary",3,"click","disabled"],["ngClass","custom","mat-raised-button","",3,"click"]],template:function(n,o){if(n&1){let a=A();I(0,"h4",1),_t(1,"safeHtml"),c(2,"mat-dialog-content",null,0)(4,"form",2)(5,"uds-form",3),b("changed",function(l){return y(a),w(o.changed(l))}),d()()(),c(6,"mat-dialog-actions")(7,"div",4)(8,"div",5),x(9,D8,2,1,"button",6),d(),c(10,"div",7)(11,"button",8),b("click",function(){return y(a),w(o.dialogRef.close())})("click",function(){return y(a),w(o.cancel())}),c(12,"uds-translate"),g(13,"Discard & close"),d()(),c(14,"button",9),b("click",function(){return y(a),w(o.save())}),c(15,"uds-translate"),g(16,"Save"),d()()()()()}n&2&&(p("innerHtml",Dt(1,5,o.data.title),qt),h(5),p("fields",o.data.guiFields),h(4),p("ngIf",o.data.customButton!==void 0),h(2),p("disabled",o.saving),h(3),p("disabled",o.saving))},dependencies:[Sn,me,zp,Lp,Oo,ke,Je,tt,et,le,NT,Dp],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}.modal-form[_ngcontent-%COMP%]{padding-top:1.5rem}"]});let i=e;return i})();var Wp=class{constructor(e){this.gui=e}modalForm(e,r,t=null,n){r.sort((l,u)=>l.gui.order>u.gui.order?1:-1);let o=t!=null;t=o?t:{},r.forEach(l=>{(o===!1||l.gui.readonly===void 0)&&(l.gui.readonly=!1),l.gui.type===Ki.TEXT&&l.gui.lines&&(l.gui.type=Ki.TEXTBOX);let u=t[l.name];if(u!==void 0)if(u instanceof Array){let f=new Array;u.forEach(v=>f.push(v)),l.value=f}else l.value=u});let a=window.innerWidth<800?"80%":"50%";return this.gui.dialog.open(LT,{position:{top:"64px"},width:a,data:{title:e,guiFields:r,customButton:n,gui:this.gui},disableClose:!0}).componentInstance.onEvent}typedForm(e,r,t,n,o,a,s){return W(this,null,function*(){let l=s||{},u=l.callback||(()=>{}),f=n||[],v=t?django.gettext("Test"):void 0,C={},D={},S=O=>{if(D.hasOwnProperty(O.name)){let de=D[O.name];O.value!==""&&O.value!==void 0&&this.executeCallback(e,O,C)}},P=l.snack||this.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss")),z=yield e.table.rest.gui(a);if(P.dismiss(),f!==void 0)for(let O of f)z.push(O);for(let O of z){if(O.gui.type===Ki.INFO){O.name==="title"&&(r+=" "+(O.value||O.gui.default||""));continue}C[O.name]=O,O.gui.fills!==void 0&&(D[O.name]=O.gui.fills)}this.modalForm(r,z,o,v).subscribe(O=>W(this,null,function*(){switch(O.data&&(O.data.data_type=a),O.type){case v:if(O.errors&&O.errors.length>0){this.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+O.errors.join(", "));return}this.gui.snackbar.open(django.gettext("Testing..."),django.gettext("dismiss")),e.table.rest.test(a,O.data).then(de=>{de!=="ok"?this.gui.snackbar.open(django.gettext("Test failed:")+" "+de,django.gettext("dismiss")):this.gui.snackbar.open(django.gettext("Test passed successfully"),django.gettext("dismiss"),{duration:2e3})});break;case"changed":case"init":if(O.data===null)for(let de of z)S(de);else S(O.data.field);u({on:O.data,all:C});break;case"save":if(l.save===void 0){O.dialog.componentInstance.saving=!0;try{o?yield e.table.rest.save(O.data,o.id):yield e.table.rest.create(O.data),this.gui.snackbar.open(django.gettext("Successfully saved"),django.gettext("dismiss"),{duration:2e3}),O.dialog.close(),e.table.overview()}finally{O.dialog.componentInstance.saving=!1}}else O.dialog.close(),l.save.resolve(O.data);break;case"cancel":O.dialog.close();break}}))})}typedEditForm(e,r,t=!1,n,o=()=>{}){return W(this,null,function*(){let a=e.table.selection.selected[0],s=a.type,l=new T,u=this.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss")),f=yield e.table.rest.get(a.id);return this.typedForm(e,r,t,n,f,s,{snack:u,callback:o})})}typedNewForm(e,r,t=!1,n,o=()=>{}){return W(this,null,function*(){let a=e.param?e.param.type:void 0;return this.typedForm(e,r,t,n,null,a,{callback:o})})}deleteForm(e,r,t){return W(this,null,function*(){let n=new Array,o=new Array;for(let l of e.table.selection.selected){let u=l.name||l.friendly_name||l[t||"name"]||l.id;u&&u.changingThisBreaksApplicationSecurity&&(u=u.changingThisBreaksApplicationSecurity),n.push(u),o.push(l.id)}let a=django.gettext("Are you sure do you want to delete the following items?")+"
"+n.join(", ")+"";if(yield this.gui.questionDialog(r,a,!0)){for(let u of o)try{yield e.table.rest.delete(u)}catch(f){console.warn("Error deleting item",u,f)}let l=o.length;this.gui.snackbar.open(django.gettext("Deletion finished"),django.gettext("dismiss"),{duration:2e3}),e.table.overview()}})}executeCallback(o,a,s){return W(this,arguments,function*(e,r,t,n={}){let l=new Array;if(!r.gui.fills)return;for(let v of r.gui.fills.parameters)l.push(v+"="+encodeURIComponent(t[v].value));let u=yield e.table.rest.callback(r.gui.fills.callback_name,l.join("&")),f=new Array;for(let v of u){let C=t[v.name];if(C!==void 0){C.gui.fills!==void 0&&f.push(C);let D=new Array;for(let S of v.choices)D.push({id:S.id,text:S.text,img:S.img});if(C.gui.choices=D,C.value instanceof Array){let S=new Array;for(let P of C.gui.choices)C.value.indexOf(P.id)>=0&&S.push(P.id);C.value=S}else(!C.value||C.value instanceof Array&&C.value.length===0)&&(C.value=v.choices.length>0?v.choices[0].id:"")}}for(let v of f)n[v.name]===void 0&&(n[v.name]=!0,this.executeCallback(e,v,t,n))})}};var S8="display:inline-block; background-size: SIZE SIZE; background-repeat: no-repeat; width: SIZE; height: SIZE; vertical-align: middle; margin: 4px 8px 4px 0px;",Gp=class{constructor(e,r){this.dialog=e,this.snackbar=r,this.forms=new Wp(this)}alert(e,r,t=0,n){return W(this,null,function*(){let o=n||(window.innerWidth<800?"80%":"40%");return this.dialog.open(gy,{width:o,data:{title:e,body:r,autoclose:t,type:Pd.alert},disableClose:!0}).componentInstance.acceptance})}questionDialog(e,r,t=!1){return W(this,null,function*(){let n=window.innerWidth<800?"80%":"40%",o=this.dialog.open(gy,{width:n,data:{title:e,body:r,type:Pd.question,warnOnYes:t},disableClose:!0});return rr(o.componentInstance.acceptance)})}icon(e,r="24px"){return''}};var qp={production:!0};var gi=function(i){return i.NUMERIC="numeric",i.ALPHANUMERIC="alphanumeric",i.DATETIME="datetime",i.DATETIMESEC="datetimesec",i.DATE="date",i.TIME="time",i.ICON="iconType",i.CALLBACK="callback",i.DICTIONARY="dict",i.IMAGE="image",i}(gi||{}),ut=function(i){return i[i.ALWAYS=0]="ALWAYS",i[i.SINGLE_SELECT=1]="SINGLE_SELECT",i[i.MULTI_SELECT=2]="MULTI_SELECT",i[i.ONLY_MENU=3]="ONLY_MENU",i[i.ACCELERATOR=4]="ACCELERATOR",i}(ut||{});var Ty="provider",ky="service",Ud="pool",E8="authenticator",Hd="user",Ay="group",Oy="transport",Ry="osmanager",Yp="calendar",Py="poolgroup",I8={provider:django.gettext("provider"),service:django.gettext("service"),pool:django.gettext("service pool"),authenticator:django.gettext("authenticator"),mfa:django.gettext("MFA"),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")},Ii=class{constructor(e){this.router=e}static getGotoButton(e,r,t){return{id:e,html:'link'+django.gettext("Go to")+" "+I8[e]+"",type:ut.ACCELERATOR,acceleratorProperties:[r,t||""]}}gotoProvider(e){e!==void 0?this.router.navigate(["services","providers",e]):this.router.navigate(["services","providers"])}gotoService(e,r){r!==void 0?this.router.navigate(["services","providers",e,"detail",r]):this.router.navigate(["services","providers",e,"detail"])}gotoServer(e){this.router.navigate(["services","servers",e])}gotoServerDetail(e){this.router.navigate(["services","servers",e,"detail"])}gotoServicePool(e){this.router.navigate(["pools","service-pools",e])}gotoServicePoolDetail(e){this.router.navigate(["pools","service-pools",e,"detail"])}gotoMetapool(e){this.router.navigate(["pools","meta-pools",e])}gotoMetapoolDetail(e){this.router.navigate(["pools","meta-pools",e,"detail"])}gotoCalendar(e){this.router.navigate(["pools","calendars",e])}gotoCalendarDetail(e){this.router.navigate(["pools","calendars",e,"detail"])}gotoAccount(e){this.router.navigate(["pools","accounts",e])}gotoAccountDetail(e){this.router.navigate(["pools","accounts",e,"detail"])}gotoPoolGroup(e){e=e||"",this.router.navigate(["pools","pool-groups",e])}gotoAuthenticator(e){this.router.navigate(["authenticators",e])}gotoAuthenticatorDetail(e){this.router.navigate(["authenticators",e,"detail"])}gotoMFA(e){this.router.navigate(["mfas",e])}gotoUser(e,r){this.router.navigate(["authenticators",e,"detail","users",r])}gotoGroup(e,r){this.router.navigate(["authenticators",e,"detail","groups",r])}gotoTransport(e){this.router.navigate(["connectivity/transports",e])}gotoTunnel(e){this.router.navigate(["connectivity/tunnels",e])}gotoTunnelDetail(e){this.router.navigate(["connectivity/tunnels",e,"detail"])}gotoOSManager(e){this.router.navigate(["osmanagers",e])}goto(e,r,t){let n=o=>{let a=r;if(t[o].split(".").forEach(s=>a=a[s]),!a)throw new Error("not going :)");return a};try{switch(e){case Ty:this.gotoProvider(n(0));break;case ky:this.gotoService(n(0),n(1));break;case Ud:this.gotoServicePool(n(0));break;case E8:this.gotoAuthenticator(n(0));break;case Hd:this.gotoUser(n(0),n(1));break;case Ay:this.gotoGroup(n(0),n(1));break;case Oy:this.gotoTransport(n(0));break;case Ry:this.gotoOSManager(n(0));break;case Yp:this.gotoCalendar(n(0));break;case Py:this.gotoPoolGroup(n(0));break}}catch{}}};function M8(i,e){if(i&1){let r=A();c(0,"div",1)(1,"button",2),b("click",function(){y(r);let n=_();return w(n.action())}),g(2),d()()}if(i&2){let r=_();h(2),F(" ",r.data.action," ")}}var T8=["label"];function k8(i,e){}var A8=Math.pow(2,31)-1,$d=class{constructor(e,r){this._overlayRef=r,this._afterDismissed=new G,this._afterOpened=new G,this._onAction=new G,this._dismissedByAction=!1,this.containerInstance=e,e._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(e){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(e,A8))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}},VT=new R("MatSnackBarData"),Hl=class{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}},O8=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"],standalone:!0});let i=e;return i})(),R8=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"],standalone:!0});let i=e;return i})(),P8=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"],standalone:!0});let i=e;return i})(),jT=(()=>{let e=class e{constructor(t,n){this.snackBarRef=t,this.data=n}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}};e.\u0275fac=function(n){return new(n||e)(m($d),m(VT))},e.\u0275cmp=E({type:e,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],standalone:!0,features:[re],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(n,o){n&1&&(c(0,"div",0),g(1),d(),x(2,M8,3,1,"div",1)),n&2&&(h(),F(" ",o.data.message,` -`),h(),De(o.hasAction?2:-1))},dependencies:[ke,O8,R8,P8],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0});let i=e;return i})(),F8={snackBarState:ui("state",[Lt("void, hidden",Me({transform:"scale(0.8)",opacity:0})),Lt("visible",Me({transform:"scale(1)",opacity:1})),St("* => visible",Mt("150ms cubic-bezier(0, 0, 0.2, 1)")),St("* => void, * => hidden",Mt("75ms cubic-bezier(0.4, 0.0, 1, 1)",Me({opacity:0})))])},N8=0,L8=(()=>{let e=class e extends ga{constructor(t,n,o,a,s){super(),this._ngZone=t,this._elementRef=n,this._changeDetectorRef=o,this._platform=a,this.snackBarConfig=s,this._document=k(se),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new G,this._onExit=new G,this._onEnter=new G,this._animationState="void",this._liveElementId=`mat-snack-bar-container-live-${N8++}`,this.attachDomPortal=l=>{this._assertNotAttached();let u=this._portalOutlet.attachDomPortal(l);return this._afterPortalAttached(),u},s.politeness==="assertive"&&!s.announcementMessage?this._live="assertive":s.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"))}attachComponentPortal(t){this._assertNotAttached();let n=this._portalOutlet.attachComponentPortal(t);return this._afterPortalAttached(),n}attachTemplatePortal(t){this._assertNotAttached();let n=this._portalOutlet.attachTemplatePortal(t);return this._afterPortalAttached(),n}onAnimationEnd(t){let{fromState:n,toState:o}=t;if((o==="void"&&n!=="void"||o==="hidden")&&this._completeExit(),o==="visible"){let a=this._onEnter;this._ngZone.run(()=>{a.next(),a.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){let t=this._elementRef.nativeElement,n=this.snackBarConfig.panelClass;n&&(Array.isArray(n)?n.forEach(s=>t.classList.add(s)):t.classList.add(n)),this._exposeToModals();let o=this._label.nativeElement,a="mdc-snackbar__label";o.classList.toggle(a,!o.querySelector(`.${a}`))}_exposeToModals(){let t=this._liveElementId,n=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{let n=t.getAttribute("aria-owns");if(n){let o=n.replace(this._liveElementId,"").trim();o.length>0?t.setAttribute("aria-owns",o):t.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{let t=this._elementRef.nativeElement.querySelector("[aria-hidden]"),n=this._elementRef.nativeElement.querySelector("[aria-live]");if(t&&n){let o=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&t.contains(document.activeElement)&&(o=document.activeElement),t.removeAttribute("aria-hidden"),n.appendChild(t),o?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}};e.\u0275fac=function(n){return new(n||e)(m(Z),m(q),m(he),m(Ve),m(Hl))},e.\u0275cmp=E({type:e,selectors:[["mat-snack-bar-container"]],viewQuery:function(n,o){if(n&1&&(ce(rn,7),ce(T8,7)),n&2){let a;Q(a=K())&&(o._portalOutlet=a.first),Q(a=K())&&(o._label=a.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:1,hostBindings:function(n,o){n&1&&Fc("@state.done",function(s){return o.onAnimationEnd(s)}),n&2&&Pc("@state",o._animationState)},standalone:!0,features:[be,re],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface","mat-mdc-snackbar-surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(n,o){n&1&&(c(0,"div",1)(1,"div",2,0)(3,"div",3),x(4,k8,0,0,"ng-template",4),d(),I(5,"div"),d()()),n&2&&(h(5),ie("aria-live",o._live)("role",o._role)("id",o._liveElementId))},dependencies:[rn],styles:[".mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-mdc-snackbar-surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}.cdk-high-contrast-active .mat-mdc-snackbar-surface{outline:solid 1px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mdc-snackbar-supporting-text-color, var(--mat-app-inverse-on-surface));border-radius:var(--mdc-snackbar-container-shape, var(--mat-app-corner-extra-small));background-color:var(--mdc-snackbar-container-color, var(--mat-app-inverse-surface))}.mdc-snackbar__label{width:100%;flex-grow:1;box-sizing:border-box;margin:0;padding:14px 8px 14px 16px}[dir=rtl] .mdc-snackbar__label{padding-left:8px;padding-right:16px}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-family:var(--mdc-snackbar-supporting-text-font, var(--mat-app-body-medium-font));font-size:var(--mdc-snackbar-supporting-text-size, var(--mat-app-body-medium-size));font-weight:var(--mdc-snackbar-supporting-text-weight, var(--mat-app-body-medium-weight));line-height:var(--mdc-snackbar-supporting-text-line-height, var(--mat-app-body-medium-line-height))}.mat-mdc-snack-bar-actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:var(--mat-snack-bar-button-color, var(--mat-app-inverse-primary));--mat-text-button-state-layer-color:currentColor;--mat-text-button-ripple-color:currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1}"],encapsulation:2,data:{animation:[F8.snackBarState]}});let i=e;return i})();function V8(){return new Hl}var j8=new R("mat-snack-bar-default-options",{providedIn:"root",factory:V8}),Fy=(()=>{let e=class e{get _openedSnackBarRef(){let t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t}constructor(t,n,o,a,s,l){this._overlay=t,this._live=n,this._injector=o,this._breakpointObserver=a,this._parentSnackBar=s,this._defaultConfig=l,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=jT,this.snackBarContainerComponent=L8,this.handsetCssClass="mat-mdc-snack-bar-handset"}openFromComponent(t,n){return this._attach(t,n)}openFromTemplate(t,n){return this._attach(t,n)}open(t,n="",o){let a=j(j({},this._defaultConfig),o);return a.data={message:t,action:n},a.announcementMessage===t&&(a.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,a)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(t,n){let o=n&&n.viewContainerRef&&n.viewContainerRef.injector,a=Pe.create({parent:o||this._injector,providers:[{provide:Hl,useValue:n}]}),s=new In(this.snackBarContainerComponent,n.viewContainerRef,a),l=t.attach(s);return l.instance.snackBarConfig=n,l.instance}_attach(t,n){let o=j(j(j({},new Hl),this._defaultConfig),n),a=this._createOverlay(o),s=this._attachSnackBarContainer(a,o),l=new $d(s,a);if(t instanceof ct){let u=new Oi(t,null,{$implicit:o.data,snackBarRef:l});l.instance=s.attachTemplatePortal(u)}else{let u=this._createInjector(o,l),f=new In(t,void 0,u),v=s.attachComponentPortal(f);l.instance=v.instance}return this._breakpointObserver.observe(np.HandsetPortrait).pipe(fe(a.detachments())).subscribe(u=>{a.overlayElement.classList.toggle(this.handsetCssClass,u.matches)}),o.announcementMessage&&s._onAnnounce.subscribe(()=>{this._live.announce(o.announcementMessage,o.politeness)}),this._animateSnackBar(l,o),this._openedSnackBarRef=l,this._openedSnackBarRef}_animateSnackBar(t,n){t.afterDismissed().subscribe(()=>{this._openedSnackBarRef==t&&(this._openedSnackBarRef=null),n.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{t.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):t.containerInstance.enter(),n.duration&&n.duration>0&&t.afterOpened().subscribe(()=>t._dismissAfter(n.duration))}_createOverlay(t){let n=new Mn;n.direction=t.direction;let o=this._overlay.position().global(),a=t.direction==="rtl",s=t.horizontalPosition==="left"||t.horizontalPosition==="start"&&!a||t.horizontalPosition==="end"&&a,l=!s&&t.horizontalPosition!=="center";return s?o.left("0"):l?o.right("0"):o.centerHorizontally(),t.verticalPosition==="top"?o.top("0"):o.bottom("0"),n.positionStrategy=o,this._overlay.create(n)}_createInjector(t,n){let o=t&&t.viewContainerRef&&t.viewContainerRef.injector;return Pe.create({parent:o||this._injector,providers:[{provide:$d,useValue:n},{provide:VT,useValue:t.data}]})}};e.\u0275fac=function(n){return new(n||e)(M(xt),M(dp),M(Pe),M(Al),M(e,12),M(j8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var BT=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({providers:[Fy],imports:[an,zn,ar,pe,jT,pe]});let i=e;return i})();var zT="dark-theme",UT="light-theme",B=(()=>{let e=class e{constructor(t,n,o,a,s,l){this.http=t,this.router=n,this.dialog=o,this.snackbar=a,this.sanitizer=s,this.dateAdapter=l,this.user=new Km(udsData.profile),this.navigation=new Ii(this.router),this.gui=new Gp(this.dialog,this.snackbar),this.dateAdapter.setLocale(this.config.language)}get config(){return udsData.config}get csrfField(){return csrf.csrfField}get csrfToken(){return csrf.csrfToken}get notices(){return udsData.errors}restPath(t){return this.config.urls.rest+t}staticURL(t){return qp.production?this.config.urls.static+t:"/static/"+t}logout(){window.location.href=this.config.urls.logout}gotoUser(){window.location.href=this.config.urls.user}putOnStorage(t,n){typeof Storage!==void 0&&sessionStorage.setItem(t,n)}getFromStorage(t){return typeof Storage!==void 0?sessionStorage.getItem(t):null}safeString(t){return this.sanitizer.bypassSecurityTrustHtml(t)}boolAsHumanString(t){return t?django.gettext("yes"):django.gettext("no")}switchTheme(t){let n=document.getElementsByTagName("html")[0];[zT,UT].forEach(o=>{n.classList.contains(o)&&n.classList.remove(o)}),n.classList.add(t?zT:UT)}};e.\u0275fac=function(n){return new(n||e)(M(Uc),M(nr),M(Rd),M(Fy),M(is),M(Ri))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var HT=(()=>{let e=class e{constructor(t){this.api=t}canActivate(t,n){return this.api.user.isStaff?!0:(window.location.href=this.api.config.urls.user,!1)}};e.\u0275fac=function(n){return new(n||e)(M(B))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var $l=3e4,Vr=function(i){return i[i.NONE=0]="NONE",i[i.READ=32]="READ",i[i.MANAGEMENT=64]="MANAGEMENT",i[i.ALL=96]="ALL",i}(Vr||{}),_i=class{constructor(e,r,t){this.api=e,t===void 0&&(t={}),t.base===void 0&&(t.base=r);let n=(o,a)=>o===void 0?a:o;this.id=r,this.paths={base:t.base,get:n(t.get,t.base),log:n(t.log,t.base),put:n(t.put,t.base),test:n(t.test,t.base+"/test"),delete:n(t.delete,t.base),types:n(t.types,t.base+"/types"),gui:n(t.gui,t.base+"/gui"),tableInfo:n(t.tableInfo,t.base+"/tableinfo")},this.headers=new Eo().set("Content-Type","application/json; charset=utf8").set(this.api.config.auth_header,this.api.config.auth_token)}get(e){return this.typedGet(e)}getLogs(e){return this.doGet(this.getPath(this.paths.log,e)+"/log")}overview(e){return this.typedGet("overview"+(e!==void 0?"?filter="+e:""))}summary(e){return this.typedGet("overview?summarize"+(e!==void 0?"&filter="+e:""))}put(e,r){return this.typedPut(e,r)}create(e){return this.typedPut(e)}save(e,r){return r=r!==void 0?r:e.id,this.typedPut(e,r)}test(e,r){return rr(this.api.http.post(this.getPath(this.paths.test,e),r,{headers:this.headers}).pipe(Wi(t=>this.handleError(t))),$l)}delete(e){return rr(this.api.http.delete(this.getPath(this.paths.delete,e),{headers:this.headers}).pipe(Wi(r=>this.handleError(r))),$l)}permision(){return this.api.user.isAdmin?Vr.ALL:Vr.NONE}getPermissions(e){return this.doGet(this.getPath("permissions/"+this.paths.base+"/"+e))}addPermission(e,r,t,n){let o=this.getPath("permissions/"+this.paths.base+"/"+e+"/"+r+"/add/"+t),a={perm:n};return rr(this.api.http.put(o,a,{headers:this.headers}).pipe(Wi(s=>this.handleError(s))),$l)}revokePermission(e){let r=this.getPath("permissions/revoke"),t={items:e};return rr(this.api.http.put(r,t,{headers:this.headers}).pipe(Wi(n=>this.handleError(n))),$l)}types(){return this.doGet(this.getPath(this.paths.types))}gui(e){let r=this.getPath(this.paths.gui+(e!==void 0?"/"+e:""));return this.doGet(r)}callback(e,r){let t=this.getPath("gui/callback/"+e+"?"+r);return this.doGet(t)}tableInfo(){return this.doGet(this.getPath(this.paths.tableInfo))}detail(e,r){return new Ny(this,e,r)}invoke(e,r){let t=e+(r?"?"+r:"");return this.typedGet(t)}getPath(e,r){if(e===void 0)throw new Error("Path is undefined");return this.api.restPath(e+(r!==void 0?"/"+r:""))}doGet(e){return rr(this.api.http.get(e,{headers:this.headers}).pipe(Wi(r=>this.handleError(r))),$l)}typedGet(e){return this.doGet(this.getPath(this.paths.get,e))}typedPut(e,r){return rr(this.api.http.put(this.getPath(this.paths.put,r),e,{headers:this.headers}).pipe(Wi(t=>this.handleError(t,!0))),$l)}handleError(e,r=!1){let t="";return e.error instanceof ErrorEvent?t=e.error.message:r?t=django.gettext("Error saving: ")+e.error:t=`Error ${e.status}: ${e.error}`,this.api.gui.alert(r?django.gettext("Error saving element"):django.gettext("Error handling your request"),t),jo(()=>new Error(t))}},Ny=class extends _i{constructor(e,r,t,n){super(e.api,[e.paths.base,r,t].join("/")),this.parentModel=e,this.parentId=r,this.model=t,this.perm=n}permision(){return this.perm||Vr.ALL}},Qp=class extends _i{constructor(e){super(e,"providers"),this.api=e}allServices(){return this.get("allservices")}service(e){return this.get("service/"+e)}maintenance(e){return this.get(e+"/maintenance")}},Kp=class extends _i{constructor(e){super(e,"authenticators"),this.api=e}search(e,r,t,n=12){return this.get(e+"/search?type="+encodeURIComponent(r)+"&term="+encodeURIComponent(t)+"&limit="+n)}},Zp=class extends _i{constructor(e){super(e,"osmanagers"),this.api=e}},Xp=class extends _i{constructor(e){super(e,"transports"),this.api=e}},Jp=class extends _i{constructor(e){super(e,"networks"),this.api=e}},ef=class extends _i{constructor(e){super(e,"tunnels/tunnels"),this.api=e}maintenance(e){return this.get(e+"/maintenance")}tunnels(e){return this.get(e+"/tunnels")}assign(e,r){return this.get(e+"/assign/"+r)}},tf=class extends _i{constructor(e){super(e,"servers/groups"),this.api=e}maintenance(e){return this.get(e+"/maintenance")}},nf=class extends _i{constructor(e){super(e,"servicespools"),this.api=e}setFallbackAccess(e,r){return this.get(e+"/setFallbackAccess?fallbackAccess="+r)}getFallbackAccess(e){return this.get(e+"/getFallbackAccess")}actionsList(e){return this.get(e+"/actionsList")}listAssignables(e){return this.get(e+"/listAssignables")}createFromAssignable(e,r,t){return this.get(e+"/createFromAssignable?user_id="+encodeURIComponent(r)+"&assignable_id="+encodeURIComponent(t))}},of=class extends _i{constructor(e){super(e,"metapools"),this.api=e}setFallbackAccess(e,r){return this.get(e+"/setFallbackAccess?fallbackAccess="+r)}getFallbackAccess(e){return this.get(e+"/getFallbackAccess")}},rf=class extends _i{constructor(e){super(e,"config"),this.api=e}},af=class extends _i{constructor(e){super(e,"gallery/images"),this.api=e}},sf=class extends _i{constructor(e){super(e,"gallery/servicespoolgroups"),this.api=e}},lf=class extends _i{constructor(e){super(e,"system"),this.api=e}information(){return this.get("overview")}stats(e,r){let t="stats/"+e;return r&&(t+="/"+r),this.get(t)}flushCache(){return this.doGet(this.getPath("cache","flush"))}},cf=class extends _i{constructor(e){super(e,"reports"),this.api=e}types(){return rr(oe([]))}},df=class extends _i{constructor(e){super(e,"calendars"),this.api=e}},uf=class extends _i{constructor(e){super(e,"accounts"),this.api=e}timemark(e){return this.get(e+"/timemark")}},hf=class extends _i{constructor(e){super(e,"actortokens"),this.api=e}},mf=class extends _i{constructor(e){super(e,"servers/tokens"),this.api=e}},pf=class extends _i{constructor(e){super(e,"mfa"),this.api=e}},ff=class extends _i{constructor(e){super(e,"messaging/notifiers"),this.api=e}};var X=(()=>{let e=class e{constructor(t){this.api=t,this.providers=new Qp(t),this.serverGroups=new tf(t),this.authenticators=new Kp(t),this.mfas=new pf(t),this.osManagers=new Zp(t),this.transports=new Xp(t),this.networks=new Jp(t),this.tunnels=new ef(t),this.servicesPools=new nf(t),this.metaPools=new of(t),this.gallery=new af(t),this.servicesPoolGroups=new sf(t),this.calendars=new df(t),this.accounts=new uf(t),this.system=new lf(t),this.configuration=new rf(t),this.actorToken=new hf(t),this.serversTokens=new mf(t),this.reports=new cf(t),this.notifiers=new ff(t)}};e.\u0275fac=function(n){return new(n||e)(M(B))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var Ly=class{constructor(){this.subject=new Zn(1),this.subscriptions=new ve}doFilter(e){this.subject.next(e)}dispose(){this.subscriptions.unsubscribe()}notEmpty(e,r){this.subscriptions.add(this.subject.subscribe(t=>{if(t[e]){let n=t[e].currentValue;n!=null&&r(n)}}))}has(e,r){this.subscriptions.add(this.subject.subscribe(t=>{if(t[e]){let n=t[e].currentValue;r(n)}}))}notFirst(e,r){this.subscriptions.add(this.subject.subscribe(t=>{if(t[e]&&!t[e].isFirstChange()){let n=t[e].currentValue;r(n)}}))}notFirstAndEmpty(e,r){this.subscriptions.add(this.subject.subscribe(t=>{if(t[e]&&!t[e].isFirstChange()){let n=t[e].currentValue;n!=null&&r(n)}}))}},$T=new R("NGX_ECHARTS_CONFIG"),gf=(()=>{let e=class e{constructor(t,n,o){this.el=n,this.ngZone=o,this.options=null,this.theme=null,this.initOpts=null,this.merge=null,this.autoResize=!0,this.loading=!1,this.loadingType="default",this.loadingOpts=null,this.chartInit=new T,this.optionsError=new T,this.chartClick=this.createLazyEvent("click"),this.chartDblClick=this.createLazyEvent("dblclick"),this.chartMouseDown=this.createLazyEvent("mousedown"),this.chartMouseMove=this.createLazyEvent("mousemove"),this.chartMouseUp=this.createLazyEvent("mouseup"),this.chartMouseOver=this.createLazyEvent("mouseover"),this.chartMouseOut=this.createLazyEvent("mouseout"),this.chartGlobalOut=this.createLazyEvent("globalout"),this.chartContextMenu=this.createLazyEvent("contextmenu"),this.chartHighlight=this.createLazyEvent("highlight"),this.chartDownplay=this.createLazyEvent("downplay"),this.chartSelectChanged=this.createLazyEvent("selectchanged"),this.chartLegendSelectChanged=this.createLazyEvent("legendselectchanged"),this.chartLegendSelected=this.createLazyEvent("legendselected"),this.chartLegendUnselected=this.createLazyEvent("legendunselected"),this.chartLegendLegendSelectAll=this.createLazyEvent("legendselectall"),this.chartLegendLegendInverseSelect=this.createLazyEvent("legendinverseselect"),this.chartLegendScroll=this.createLazyEvent("legendscroll"),this.chartDataZoom=this.createLazyEvent("datazoom"),this.chartDataRangeSelected=this.createLazyEvent("datarangeselected"),this.chartGraphRoam=this.createLazyEvent("graphroam"),this.chartGeoRoam=this.createLazyEvent("georoam"),this.chartTreeRoam=this.createLazyEvent("treeroam"),this.chartTimelineChanged=this.createLazyEvent("timelinechanged"),this.chartTimelinePlayChanged=this.createLazyEvent("timelineplaychanged"),this.chartRestore=this.createLazyEvent("restore"),this.chartDataViewChanged=this.createLazyEvent("dataviewchanged"),this.chartMagicTypeChanged=this.createLazyEvent("magictypechanged"),this.chartGeoSelectChanged=this.createLazyEvent("geoselectchanged"),this.chartGeoSelected=this.createLazyEvent("geoselected"),this.chartGeoUnselected=this.createLazyEvent("geounselected"),this.chartAxisAreaSelected=this.createLazyEvent("axisareaselected"),this.chartBrush=this.createLazyEvent("brush"),this.chartBrushEnd=this.createLazyEvent("brushend"),this.chartBrushSelected=this.createLazyEvent("brushselected"),this.chartGlobalCursorTaken=this.createLazyEvent("globalcursortaken"),this.chartRendered=this.createLazyEvent("rendered"),this.chartFinished=this.createLazyEvent("finished"),this.animationFrameID=null,this.chart$=new Zn(1),this.resize$=new G,this.changeFilter=new Ly,this.resizeObFired=!1,this.echarts=t.echarts,this.theme=t.theme||null}ngOnChanges(t){this.changeFilter.doFilter(t)}ngOnInit(){if(!window.ResizeObserver)throw new Error("please install a polyfill for ResizeObserver");this.resizeSub=this.resize$.pipe(n_(100,Ji,{leading:!1,trailing:!0})).subscribe(()=>this.resize()),this.autoResize&&(this.resizeOb=this.ngZone.runOutsideAngular(()=>new window.ResizeObserver(t=>{for(let n of t)n.target===this.el.nativeElement&&(this.resizeObFired?this.animationFrameID=window.requestAnimationFrame(()=>{this.resize$.next()}):this.resizeObFired=!0)})),this.resizeOb.observe(this.el.nativeElement)),this.changeFilter.notFirstAndEmpty("options",t=>this.onOptionsChange(t)),this.changeFilter.notFirstAndEmpty("merge",t=>this.setOption(t)),this.changeFilter.has("loading",t=>this.toggleLoading(!!t)),this.changeFilter.notFirst("theme",()=>this.refreshChart())}ngOnDestroy(){window.clearTimeout(this.initChartTimer),this.resizeSub&&this.resizeSub.unsubscribe(),this.animationFrameID&&window.cancelAnimationFrame(this.animationFrameID),this.resizeOb&&this.resizeOb.unobserve(this.el.nativeElement),this.loadingSub&&this.loadingSub.unsubscribe(),this.changeFilter.dispose(),this.dispose()}ngAfterViewInit(){this.initChartTimer=window.setTimeout(()=>this.initChart())}dispose(){this.chart&&(this.chart.isDisposed()||this.chart.dispose(),this.chart=null)}resize(){this.chart&&this.chart.resize()}toggleLoading(t){this.chart?t?this.chart.showLoading(this.loadingType,this.loadingOpts):this.chart.hideLoading():this.loadingSub=this.chart$.subscribe(n=>t?n.showLoading(this.loadingType,this.loadingOpts):n.hideLoading())}setOption(t,n){if(this.chart)try{this.chart.setOption(t,n)}catch(o){console.error(o),this.optionsError.emit(o)}}refreshChart(){return W(this,null,function*(){this.dispose(),yield this.initChart()})}createChart(){let t=this.el.nativeElement;if(window&&window.getComputedStyle){let n=window.getComputedStyle(t,null).getPropertyValue("height");(!n||n==="0px")&&(!t.style.height||t.style.height==="0px")&&(t.style.height="400px")}return this.ngZone.runOutsideAngular(()=>(typeof this.echarts=="function"?this.echarts:()=>Promise.resolve(this.echarts))().then(({init:o})=>o(t,this.theme,this.initOpts)))}initChart(){return W(this,null,function*(){yield this.onOptionsChange(this.options),this.merge&&this.chart&&this.setOption(this.merge)})}onOptionsChange(t){return W(this,null,function*(){t&&(this.chart?this.setOption(this.options,!0):(this.chart=yield this.createChart(),this.chart$.next(this.chart),this.chartInit.emit(this.chart),this.setOption(this.options,!0)))})}createLazyEvent(t){return this.chartInit.pipe(Tt(n=>new Re(o=>(n.on(t,a=>this.ngZone.run(()=>o.next(a))),()=>{this.chart&&(this.chart.isDisposed()||n.off(t))}))))}};e.\u0275fac=function(n){return new(n||e)(m($T),m(q),m(Z))},e.\u0275dir=L({type:e,selectors:[["echarts"],["","echarts",""]],inputs:{options:"options",theme:"theme",initOpts:"initOpts",merge:"merge",autoResize:"autoResize",loading:"loading",loadingType:"loadingType",loadingOpts:"loadingOpts"},outputs:{chartInit:"chartInit",optionsError:"optionsError",chartClick:"chartClick",chartDblClick:"chartDblClick",chartMouseDown:"chartMouseDown",chartMouseMove:"chartMouseMove",chartMouseUp:"chartMouseUp",chartMouseOver:"chartMouseOver",chartMouseOut:"chartMouseOut",chartGlobalOut:"chartGlobalOut",chartContextMenu:"chartContextMenu",chartHighlight:"chartHighlight",chartDownplay:"chartDownplay",chartSelectChanged:"chartSelectChanged",chartLegendSelectChanged:"chartLegendSelectChanged",chartLegendSelected:"chartLegendSelected",chartLegendUnselected:"chartLegendUnselected",chartLegendLegendSelectAll:"chartLegendLegendSelectAll",chartLegendLegendInverseSelect:"chartLegendLegendInverseSelect",chartLegendScroll:"chartLegendScroll",chartDataZoom:"chartDataZoom",chartDataRangeSelected:"chartDataRangeSelected",chartGraphRoam:"chartGraphRoam",chartGeoRoam:"chartGeoRoam",chartTreeRoam:"chartTreeRoam",chartTimelineChanged:"chartTimelineChanged",chartTimelinePlayChanged:"chartTimelinePlayChanged",chartRestore:"chartRestore",chartDataViewChanged:"chartDataViewChanged",chartMagicTypeChanged:"chartMagicTypeChanged",chartGeoSelectChanged:"chartGeoSelectChanged",chartGeoSelected:"chartGeoSelected",chartGeoUnselected:"chartGeoUnselected",chartAxisAreaSelected:"chartAxisAreaSelected",chartBrush:"chartBrush",chartBrushEnd:"chartBrushEnd",chartBrushSelected:"chartBrushSelected",chartGlobalCursorTaken:"chartGlobalCursorTaken",chartRendered:"chartRendered",chartFinished:"chartFinished"},exportAs:["echarts"],standalone:!0,features:[Qe]});let i=e;return i})();var z8=i=>({provide:$T,useValue:i}),WT=(()=>{let e=class e{static forRoot(t){return{ngModule:e,providers:[z8(t)]}}static forChild(){return{ngModule:e}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({});let i=e;return i})();function U8(i,e){if(i&1&&(c(0,"div",21)(1,"div",11),I(2,"img",4),c(3,"div",12),g(4),d()(),c(5,"div",13)(6,"a",15)(7,"uds-translate"),g(8,"View service pools"),d()()()()),i&2){let r=_(2);h(2),p("src",r.api.staticURL("admin/img/icons/logs.png"),Ie),h(2),F(" ",r.data.restrained," ")}}function H8(i,e){if(i&1){let r=A();c(0,"div")(1,"div",8)(2,"div",9)(3,"div",10)(4,"div",11),I(5,"img",4),c(6,"div",12),g(7),d()(),c(8,"div",13)(9,"a",14)(10,"uds-translate"),g(11,"View authenticators"),d()()()(),c(12,"div",10)(13,"div",11),I(14,"img",4),c(15,"div",12),g(16),d()(),c(17,"div",13)(18,"a",15)(19,"uds-translate"),g(20,"View service pools"),d()()()(),c(21,"div",10)(22,"div",11),I(23,"img",4),c(24,"div",12),g(25),d()(),c(26,"div",13)(27,"a",15)(28,"uds-translate"),g(29,"View service pools"),d()()()(),x(30,U8,9,2,"div",16),d(),c(31,"div",17)(32,"div",18)(33,"div",19)(34,"uds-translate"),g(35,"Assigned services chart"),d()(),c(36,"div",20),b("chartInit",function(n){y(r);let o=_();return w(o.chartInit("assigned",n))}),d()(),c(37,"div",18)(38,"div",19)(39,"uds-translate"),g(40,"In use services chart"),d()(),c(41,"div",20),b("chartInit",function(n){y(r);let o=_();return w(o.chartInit("inuse",n))}),d()()()()()}if(i&2){let r=_();h(5),p("src",r.api.staticURL("admin/img/icons/authenticators.png"),Ie),h(2),F(" ",r.data.users," "),h(7),p("src",r.api.staticURL("admin/img/icons/pools.png"),Ie),h(2),F(" ",r.data.pools," "),h(7),p("src",r.api.staticURL("admin/img/icons/services.png"),Ie),h(2),F(" ",r.data.user_services," "),h(5),p("ngIf",r.data.restrained),h(6),p("options",r.assignedChartOpts),h(5),p("options",r.inuseChartOpts)}}function $8(i,e){i&1&&(c(0,"div",22)(1,"div",23)(2,"div",24)(3,"uds-translate"),g(4,"UDS Administration"),d()(),c(5,"div",25)(6,"p")(7,"uds-translate"),g(8,"You are accessing UDS Administration as staff member."),d()(),c(9,"p")(10,"uds-translate"),g(11,"This means that you have restricted access to elements."),d()(),c(12,"p")(13,"uds-translate"),g(14,"In order to increase your access privileges, please contact your local UDS administrator. "),d()(),I(15,"br"),c(16,"p")(17,"uds-translate"),g(18,"Thank you."),d()()()()())}var qT=(()=>{let e=class e{constructor(t,n){this.api=t,this.rest=n,this.data={},this.assignedChartInstance=null,this.assignedChartOpts={},this.inuseChartOpts={},this.inuseChartInstance=null}onResize(t){this.assignedChartInstance&&this.assignedChartInstance.resize(),this.inuseChartInstance&&this.inuseChartInstance.resize()}ngOnInit(){if(this.api.user.isAdmin){this.rest.system.information().then(t=>{this.data={users:django.gettext("#USR_NUMBER# users, #GRP_NUMBER# groups").replace("#USR_NUMBER#",t.users).replace("#GRP_NUMBER#",t.groups),pools:django.gettext("#POOLS_NUMBER# service pools").replace("#POOLS_NUMBER#",t.service_pools),user_services:django.gettext("#SERVICES_NUMBER# user services").replace("#SERVICES_NUMBER#",t.user_services)},t.restrained_services_pools>0&&(this.data.restrained=django.gettext("#RESTRAINED_NUMBER# restrained services!").replace("#RESTRAINED_NUMBER#",t.restrained_services_pools))});for(let t of["assigned","inuse"])this.rest.system.stats(t).then(n=>{let o={tooltip:{trigger:"axis"},toolbox:{feature:{dataZoom:{yAxisIndex:"none"},restore:{},saveAsImage:{}}},xAxis:{type:"category",data:n.map(a=>$i("SHORT_DATE_FORMAT",new Date(a.stamp))),boundaryGap:!1},yAxis:{type:"value"},series:[{name:t==="assigned"?django.gettext("Assigned services"):django.gettext("Services in use"),type:"line",smooth:!0,areaStyle:{},data:n.map(a=>a.value)}]};t==="assigned"?this.assignedChartOpts=o:this.inuseChartOpts=o})}}chartInit(t,n){t==="assigned"?this.assignedChartInstance=n:this.inuseChartInstance=n}};e.\u0275fac=function(n){return new(n||e)(m(B),m(X))},e.\u0275cmp=E({type:e,selectors:[["uds-summary"]],hostBindings:function(n,o){n&1&&b("resize",function(s){return o.onResize(s)},!1,Jh)},decls:11,vars:3,consts:[["noAdmin",""],[1,"card"],[1,"card-header"],[1,"card-title"],[3,"src"],[1,"card-subtitle"],[1,"card-content"],[4,"ngIf","ngIfElse"],[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,"statistics"],[1,"statistics-chart"],[1,"statistics-title"],["echarts","","theme","dark-digerati",3,"chartInit","options"],[1,"info-panel","info-danger"],[1,"staff-container"],[1,"staff","mat-elevation-z8"],[1,"staff-header"],[1,"staff-content"]],template:function(n,o){if(n&1&&(c(0,"div",1)(1,"div",2)(2,"div",3),I(3,"img",4),c(4,"uds-translate"),g(5,"Dashboard"),d()(),I(6,"div",5),d(),c(7,"div",6),x(8,H8,42,9,"div",7)(9,$8,19,0,"ng-template",null,0,fi),d()()),n&2){let a=we(10);h(3),p("src",o.api.staticURL("admin/img/icons/dashboard-monitor.png"),Ie),h(5),p("ngIf",o.api.user.isAdmin)("ngIfElse",a)}},dependencies:[me,bi,xa,gf,le],styles:['.mat-ripple[_ngcontent-%COMP%]{overflow:hidden;position:relative}.mat-ripple[_ngcontent-%COMP%]:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded[_ngcontent-%COMP%]{overflow:visible}.mat-ripple-element[_ngcontent-%COMP%]{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale3d(0,0,0);background-color:var(--mat-ripple-color, rgba(0, 0, 0, .1))}.cdk-high-contrast-active[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%], .cdk-drag-placeholder[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%]{display:none}.cdk-visually-hidden[_ngcontent-%COMP%]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl][_ngcontent-%COMP%] .cdk-visually-hidden[_ngcontent-%COMP%]{left:auto;right:0}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_ngcontent-%COMP%]{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container[_ngcontent-%COMP%]{position:fixed;z-index:1000}.cdk-overlay-container[_ngcontent-%COMP%]:empty{display:none}.cdk-global-overlay-wrapper[_ngcontent-%COMP%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:1}.cdk-high-contrast-active[_ngcontent-%COMP%] .cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:.6}.cdk-overlay-dark-backdrop[_ngcontent-%COMP%]{background:#00000052}.cdk-overlay-transparent-backdrop[_ngcontent-%COMP%]{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation[_ngcontent-%COMP%]{transition:none}.cdk-overlay-connected-position-bounding-box[_ngcontent-%COMP%]{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock[_ngcontent-%COMP%]{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize[_ngcontent-%COMP%]{resize:none}textarea.cdk-textarea-autosize-measuring[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-start{}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{animation:_ngcontent-%COMP%_cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){animation:_ngcontent-%COMP%_cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border:var(--mat-focus-indicator-border-width, 3px) var(--mat-focus-indicator-border-style, solid) var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-focus-indicator-display: block}.mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-mdc-focus-indicator-display, none);border:var(--mat-mdc-focus-indicator-border-width, 3px) var(--mat-mdc-focus-indicator-border-style, solid) var(--mat-mdc-focus-indicator-border-color, transparent);border-radius:var(--mat-mdc-focus-indicator-border-radius, 4px)}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-mdc-focus-indicator-display: block}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-app-background, transparent));color:var(--mat-app-text-color, var(--mat-app-on-background, inherit))}.mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, none)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, none)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, none)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, none)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, none)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, none)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, none)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, none)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, none)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, none)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, none)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, none)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, none)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, none)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, none)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, none)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, none)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, none)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, none)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, none)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, none)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, none)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, none)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, none)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, none)}.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;padding:.5rem 1rem}.staff-content[_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:#00000024 0 1px 4px;box-sizing:border-box;color:#333;display:flex;flex-direction:column;margin:2rem 1rem;width:100%}.info-danger[_ngcontent-%COMP%]{background-image:linear-gradient(to right,#f83600,#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:linear-gradient(60deg,#4b5266,#465d9c)}.info-panel-link[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:100%;color:#fff}.statistics[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-around;width:100%}.statistics-title[_ngcontent-%COMP%]{background:linear-gradient(60deg,#4b5266,#465d9c);width:100%;color:#fff;padding:1rem 0rem;text-align:center}.statistics-chart[_ngcontent-%COMP%]{border-color:#333;box-shadow:#00000024 0 1px 4px;box-sizing:border-box;color:#333;display:flex;flex-direction:column;margin:2rem 1rem;width:100%;height:400px} .dark-theme .staff{border:#337ab7} .dark-theme .staff-header{color:#fff} .dark-theme .info-panel{border-color:lightned(#303030,60%);background-image:linear-gradient(135deg,#fdfcfb,#e2d1c3);box-shadow:#00000024 0 1px 4px;color:#b3b3b3} .dark-theme .info-danger{background-image:linear-gradient(to right,#f83600,#f9d423);color:#fff} .dark-theme .info-panel-link{background:#4682b4} .dark-theme .info-panel-link a{color:#fff} .dark-theme .statistics-title{color:#fff} .dark-theme .statistics-chart{border-color:#333;box-shadow:#00000024 0 1px 4px;color:#333}']});let i=e;return i})();var W8=["notch"],G8=["matFormFieldNotchedOutline",""],q8=["*"],Y8=["textField"],Q8=["iconPrefixContainer"],K8=["textPrefixContainer"],Z8=["iconSuffixContainer"],X8=["textSuffixContainer"],J8=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],eH=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function tH(i,e){i&1&&I(0,"span",21)}function iH(i,e){if(i&1&&(c(0,"label",20),ae(1,1),x(2,tH,1,0,"span",21),d()),i&2){let r=_(2);p("floating",r._shouldLabelFloat())("monitorResize",r._hasOutline())("id",r._labelId),ie("for",r._control.disableAutomaticLabeling?null:r._control.id),h(2),De(!r.hideRequiredMarker&&r._control.required?2:-1)}}function nH(i,e){if(i&1&&x(0,iH,3,5,"label",20),i&2){let r=_();De(r._hasFloatingLabel()?0:-1)}}function oH(i,e){i&1&&I(0,"div",7)}function rH(i,e){}function aH(i,e){if(i&1&&x(0,rH,0,0,"ng-template",13),i&2){_(2);let r=we(1);p("ngTemplateOutlet",r)}}function sH(i,e){if(i&1&&(c(0,"div",9),x(1,aH,1,1,null,13),d()),i&2){let r=_();p("matFormFieldNotchedOutlineOpen",r._shouldLabelFloat()),h(),De(r._forceDisplayInfixLabel()?-1:1)}}function lH(i,e){i&1&&(c(0,"div",10,2),ae(2,2),d())}function cH(i,e){i&1&&(c(0,"div",11,3),ae(2,3),d())}function dH(i,e){}function uH(i,e){if(i&1&&x(0,dH,0,0,"ng-template",13),i&2){_();let r=we(1);p("ngTemplateOutlet",r)}}function hH(i,e){i&1&&(c(0,"div",14,4),ae(2,4),d())}function mH(i,e){i&1&&(c(0,"div",15,5),ae(2,5),d())}function pH(i,e){i&1&&I(0,"div",16)}function fH(i,e){if(i&1&&(c(0,"div",18),ae(1,6),d()),i&2){let r=_();p("@transitionMessages",r._subscriptAnimationState)}}function gH(i,e){if(i&1&&(c(0,"mat-hint",22),g(1),d()),i&2){let r=_(2);p("id",r._hintLabelId),h(),$e(r.hintLabel)}}function _H(i,e){if(i&1&&(c(0,"div",19),x(1,gH,2,2,"mat-hint",22),ae(2,7),I(3,"div",23),ae(4,8),d()),i&2){let r=_();p("@transitionMessages",r._subscriptAnimationState),h(),De(r.hintLabel?1:-1)}}var Ae=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e,selectors:[["mat-label"]],standalone:!0});let i=e;return i})();var vH=new R("MatError");var bH=0,YT=(()=>{let e=class e{constructor(){this.align="start",this.id=`mat-mdc-hint-${bH++}`}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(n,o){n&2&&(Si("id",o.id),ie("align",null),ne("mat-mdc-form-field-hint-end",o.align==="end"))},inputs:{align:"align",id:"id"},standalone:!0});let i=e;return i})(),yH=new R("MatPrefix");var ik=new R("MatSuffix"),uo=(()=>{let e=class e{constructor(){this._isText=!1}set _isTextSelector(t){this._isText=!0}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},standalone:!0,features:[Ce([{provide:ik,useExisting:e}])]});let i=e;return i})(),nk=new R("FloatingLabelParent"),QT=(()=>{let e=class e{get floating(){return this._floating}set floating(t){this._floating=t,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(t){this._monitorResize=t,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(t){this._elementRef=t,this._floating=!1,this._monitorResize=!1,this._resizeObserver=k(Hp),this._ngZone=k(Z),this._parent=k(nk),this._resizeSubscription=new ve}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return wH(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}};e.\u0275fac=function(n){return new(n||e)(m(q))},e.\u0275dir=L({type:e,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(n,o){n&2&&ne("mdc-floating-label--float-above",o.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"},standalone:!0});let i=e;return i})();function wH(i){let e=i;if(e.offsetParent!==null)return e.scrollWidth;let r=e.cloneNode(!0);r.style.setProperty("position","absolute"),r.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(r);let t=r.scrollWidth;return r.remove(),t}var KT="mdc-line-ripple--active",_f="mdc-line-ripple--deactivating",ZT=(()=>{let e=class e{constructor(t,n){this._elementRef=t,this._handleTransitionEnd=o=>{let a=this._elementRef.nativeElement.classList,s=a.contains(_f);o.propertyName==="opacity"&&s&&a.remove(KT,_f)},n.runOutsideAngular(()=>{t.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){let t=this._elementRef.nativeElement.classList;t.remove(_f),t.add(KT)}deactivate(){this._elementRef.nativeElement.classList.add(_f)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}};e.\u0275fac=function(n){return new(n||e)(m(q),m(Z))},e.\u0275dir=L({type:e,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"],standalone:!0});let i=e;return i})(),XT=(()=>{let e=class e{constructor(t,n){this._elementRef=t,this._ngZone=n,this.open=!1}ngAfterViewInit(){let t=this._elementRef.nativeElement.querySelector(".mdc-floating-label");t?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(t.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>t.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(t){!this.open||!t?this._notch.nativeElement.style.width="":this._notch.nativeElement.style.width=`calc(${t}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}};e.\u0275fac=function(n){return new(n||e)(m(q),m(Z))},e.\u0275cmp=E({type:e,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(n,o){if(n&1&&ce(W8,5),n&2){let a;Q(a=K())&&(o._notch=a.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(n,o){n&2&&ne("mdc-notched-outline--notched",o.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},standalone:!0,features:[re],attrs:G8,ngContentSelectors:q8,decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(n,o){n&1&&(He(),I(0,"div",1),c(1,"div",2,0),ae(3),d(),I(4,"div",3))},encapsulation:2,changeDetection:0});let i=e;return i})(),CH={transitionMessages:ui("transitionMessages",[Lt("enter",Me({opacity:1,transform:"translateY(0%)"})),St("void => enter",[Me({opacity:0,transform:"translateY(-5px)"}),Mt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Ia=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e});let i=e;return i})();var Ro=new R("MatFormField"),Vy=new R("MAT_FORM_FIELD_DEFAULT_OPTIONS"),JT=0,ek="fill",xH="auto",tk="fixed",DH="translateY(-50%)",_e=(()=>{let e=class e{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=Bn(t)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||xH}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(t){let n=this._appearance,o=t||this._defaults?.appearance||ek;this._appearance=o,this._appearance==="outline"&&this._appearance!==n&&(this._needsOutlineLabelOffsetUpdate=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||tk}set subscriptSizing(t){this._subscriptSizing=t||this._defaults?.subscriptSizing||tk}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(t){this._explicitFormFieldControl=t}constructor(t,n,o,a,s,l,u,f){this._elementRef=t,this._changeDetectorRef=n,this._dir=a,this._platform=s,this._defaults=l,this._animationMode=u,this._labelChild=AE(Ae),this._hideRequiredMarker=!1,this.color="primary",this._appearance=ek,this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId=`mat-mdc-form-field-label-${JT++}`,this._hintLabelId=`mat-mdc-hint-${JT++}`,this._subscriptAnimationState="",this._destroyed=new G,this._isFocused=null,this._needsOutlineLabelOffsetUpdate=!1,this._previousControl=null,this._injector=k(Pe),this.getLabelId=Mr(()=>this._hasFloatingLabel()?this._labelId:null),this._hasFloatingLabel=Mr(()=>!!this._labelChild()),l&&(l.appearance&&(this.appearance=l.appearance),this._hideRequiredMarker=!!l?.hideRequiredMarker,l.color&&(this.color=l.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._previousControl=this._control)}ngOnDestroy(){this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(t){let n=this._control,o="mat-mdc-form-field-type-";t&&this._elementRef.nativeElement.classList.remove(o+t.controlType),n.controlType&&this._elementRef.nativeElement.classList.add(o+n.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=n.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._valueChanges?.unsubscribe(),n.ngControl&&n.ngControl.valueChanges&&(this._valueChanges=n.ngControl.valueChanges.pipe(fe(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(t=>!t._isText),this._hasTextPrefix=!!this._prefixChildren.find(t=>t._isText),this._hasIconSuffix=!!this._suffixChildren.find(t=>!t._isText),this._hasTextSuffix=!!this._suffixChildren.find(t=>t._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),wt(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){this._control}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0),Oc(()=>{this._needsOutlineLabelOffsetUpdate&&(this._needsOutlineLabelOffsetUpdate=!1,this._updateOutlineLabelOffset())},{injector:this._injector}),this._dir.change.pipe(fe(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0)}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(t){let n=this._control?this._control.ngControl:null;return n&&n[t]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||!this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){this._hintChildren}_syncDescribedByIds(){if(this._control){let t=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&t.push(...this._control.userAriaDescribedBy.split(" ")),this._getDisplayedMessages()==="hint"){let n=this._hintChildren?this._hintChildren.find(a=>a.align==="start"):null,o=this._hintChildren?this._hintChildren.find(a=>a.align==="end"):null;n?t.push(n.id):this._hintLabel&&t.push(this._hintLabelId),o&&t.push(o.id)}else this._errorChildren&&t.push(...this._errorChildren.map(n=>n.id));this._control.setDescribedByIds(t)}}_updateOutlineLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return;let t=this._floatingLabel.element;if(!(this._iconPrefixContainer||this._textPrefixContainer)){t.style.transform="";return}if(!this._isAttachedToDom()){this._needsOutlineLabelOffsetUpdate=!0;return}let n=this._iconPrefixContainer?.nativeElement,o=this._textPrefixContainer?.nativeElement,a=this._iconSuffixContainer?.nativeElement,s=this._textSuffixContainer?.nativeElement,l=n?.getBoundingClientRect().width??0,u=o?.getBoundingClientRect().width??0,f=a?.getBoundingClientRect().width??0,v=s?.getBoundingClientRect().width??0,C=this._dir.value==="rtl"?"-1":"1",D=`${l+u}px`,P=`calc(${C} * (${D} + var(--mat-mdc-form-field-label-offset-x, 0px)))`;t.style.transform=`var( + `)}`}var to=vD(dD("Optional"),8);var Do=vD(dD("SkipSelf"),4);function Wa(i,e){let r=i.hasOwnProperty(oh);return r?i[oh]:null}function RF(i,e,r){if(i.length!==e.length)return!1;for(let t=0;tArray.isArray(r)?kv(r,e):e(r))}function bD(i,e,r){e>=i.length?i.push(r):i.splice(e,0,r)}function ah(i,e){return e>=i.length-1?i.pop():i.splice(e,1)[0]}function FF(i,e){let r=[];for(let t=0;te;){let o=n-2;i[n]=i[o],n--}i[e]=r,i[e+1]=t}}function Vh(i,e,r){let t=Sc(i,e);return t>=0?i[t|1]=r:(t=~t,NF(i,t,e,r)),t}function o_(i,e){let r=Sc(i,e);if(r>=0)return i[r|1]}function Sc(i,e){return LF(i,e,1)}function LF(i,e,r){let t=0,n=i.length>>r;for(;n!==t;){let o=t+(n-t>>1),a=i[o<e?n=o:t=o+1}return~(n<e){a=o-1;break}}}for(;o-1){let o;for(;++no?v="":v=n[f+1].toLowerCase(),t&2&&u!==v){if(wo(t))return!1;a=!0}}}}return wo(t)||a}function wo(i){return(i&1)===0}function HF(i,e,r,t){if(e===null)return-1;let n=0;if(t||!r){let o=!1;for(;n-1)for(r++;r0?'="'+s+'"':"")+"]"}else t&8?n+="."+a:t&4&&(n+=" "+a);else n!==""&&!wo(a)&&(e+=Dx(o,n),n=""),t=a,o=o||!wo(t);r++}return n!==""&&(e+=Dx(o,n)),e}function QF(i){return i.map(YF).join(",")}function KF(i){let e=[],r=[],t=1,n=2;for(;t{let e=TD(i),r=rt(j({},e),{decls:i.decls,vars:i.vars,template:i.template,consts:i.consts||null,ngContentSelectors:i.ngContentSelectors,onPush:i.changeDetection===CD.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&i.dependencies||null,getStandaloneInjector:null,signals:i.signals??!1,data:i.data||{},encapsulation:i.encapsulation||Wo.Emulated,styles:i.styles||un,_:null,schemas:i.schemas||null,tView:null,id:""});kD(r);let t=i.dependencies;return r.directiveDefs=lh(t,!1),r.pipeDefs=lh(t,!0),r.id=JF(r),r})}function ZF(i){return ea(i)||Ov(i)}function XF(i){return i!==null}function te(i){return Dc(()=>({type:i.type,bootstrap:i.bootstrap||un,declarations:i.declarations||un,imports:i.imports||un,exports:i.exports||un,transitiveCompileScopes:null,schemas:i.schemas||null,id:i.id||null}))}function Sx(i,e){if(i==null)return pr;let r={};for(let t in i)if(i.hasOwnProperty(t)){let n=i[t],o,a,s=Jr.None;Array.isArray(n)?(s=n[0],o=n[1],a=n[2]??o):(o=n,a=n),e?(r[o]=s!==Jr.None?[t,s]:t,e[o]=a):r[o]=t}return r}function L(i){return Dc(()=>{let e=TD(i);return kD(e),e})}function Qo(i){return{type:i.type,name:i.name,factory:null,pure:i.pure!==!1,standalone:i.standalone===!0,onDestroy:i.type.prototype.ngOnDestroy||null}}function ea(i){return i[vF]||null}function Ov(i){return i[bF]||null}function ED(i){return i[yF]||null}function ID(i){let e=ea(i)||Ov(i)||ED(i);return e!==null?e.standalone:!1}function MD(i,e){let r=i[wF]||null;if(!r&&e===!0)throw new Error(`Type ${hn(i)} does not have '\u0275mod' property.`);return r}function TD(i){let e={};return{type:i.type,providersResolver:null,factory:null,hostBindings:i.hostBindings||null,hostVars:i.hostVars||0,hostAttrs:i.hostAttrs||null,contentQueries:i.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:i.inputs||pr,exportAs:i.exportAs||null,standalone:i.standalone===!0,signals:i.signals===!0,selectors:i.selectors||un,viewQuery:i.viewQuery||null,features:i.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Sx(i.inputs,e),outputs:Sx(i.outputs),debugInfo:null}}function kD(i){i.features?.forEach(e=>e(i))}function lh(i,e){if(!i)return null;let r=e?ED:ZF;return()=>(typeof i=="function"?i():i).map(t=>r(t)).filter(XF)}function JF(i){let e=0,r=[i.selectors,i.ngContentSelectors,i.hostVars,i.hostAttrs,i.consts,i.vars,i.decls,i.encapsulation,i.standalone,i.signals,i.exportAs,JSON.stringify(i.inputs),JSON.stringify(i.outputs),Object.getOwnPropertyNames(i.type.prototype),!!i.contentQueries,!!i.viewQuery].join("|");for(let n of r)e=Math.imul(31,e)+n.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function jh(i){return{\u0275providers:i}}function eN(...i){return{\u0275providers:AD(!0,i),\u0275fromNgModule:!0}}function AD(i,...e){let r=[],t=new Set,n,o=a=>{r.push(a)};return kv(e,a=>{let s=a;C_(s,o,[],t)&&(n||=[],n.push(s))}),n!==void 0&&OD(n,o),r}function OD(i,e){for(let r=0;r{e(o,t)})}}function C_(i,e,r,t){if(i=Gi(i),!i)return!1;let n=null,o=bx(i),a=!o&&ea(i);if(!o&&!a){let l=i.ngModule;if(o=bx(l),o)n=l;else return!1}else{if(a&&!a.standalone)return!1;n=i}let s=t.has(n);if(a){if(s)return!1;if(t.add(n),a.dependencies){let l=typeof a.dependencies=="function"?a.dependencies():a.dependencies;for(let u of l)C_(u,e,r,t)}}else if(o){if(o.imports!=null&&!s){t.add(n);let u;try{kv(o.imports,f=>{C_(f,e,r,t)&&(u||=[],u.push(f))})}finally{}u!==void 0&&OD(u,e)}if(!s){let u=Wa(n)||(()=>new n);e({provide:n,useFactory:u,deps:un},n),e({provide:wD,useValue:n,multi:!0},n),e({provide:qs,useValue:()=>M(n),multi:!0},n)}let l=o.providers;if(l!=null&&!s){let u=i;Rv(l,f=>{e(f,u)})}}else return!1;return n!==i&&i.providers!==void 0}function Rv(i,e){for(let r of i)fD(r)&&(r=r.\u0275providers),Array.isArray(r)?Rv(r,e):e(r)}var tN=Zt({provide:String,useValue:Zt});function RD(i){return i!==null&&typeof i=="object"&&tN in i}function iN(i){return!!(i&&i.useExisting)}function nN(i){return!!(i&&i.useFactory)}function Ys(i){return typeof i=="function"}function oN(i){return!!i.useClass}var Bh=new R(""),Xu={},rN={},r_;function Pv(){return r_===void 0&&(r_=new sh),r_}var qi=class{},bc=class extends qi{get destroyed(){return this._destroyed}constructor(e,r,t,n){super(),this.parent=r,this.source=t,this.scopes=n,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,D_(e,a=>this.processProvider(a)),this.records.set(yD,zs(void 0,this)),n.has("environment")&&this.records.set(qi,zs(void 0,this));let o=this.records.get(Bh);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(wD,un,gt.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=yt(null);try{for(let t of this._ngOnDestroyHooks)t.ngOnDestroy();let r=this._onDestroyHooks;this._onDestroyHooks=[];for(let t of r)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),yt(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let r=Kr(this),t=bn(void 0),n;try{return e()}finally{Kr(r),bn(t)}}get(e,r=_c,t=gt.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(wx))return e[wx](this);t=Lh(t);let n,o=Kr(this),a=bn(void 0);try{if(!(t>.SkipSelf)){let l=this.records.get(e);if(l===void 0){let u=dN(e)&&Nh(e);u&&this.injectableDefInScope(u)?l=zs(x_(e),Xu):l=null,this.records.set(e,l)}if(l!=null)return this.hydrate(e,l)}let s=t>.Self?Pv():this.parent;return r=t>.Optional&&r===_c?null:r,s.get(e,r)}catch(s){if(s.name==="NullInjectorError"){if((s[rh]=s[rh]||[]).unshift(hn(e)),o)throw s;return AF(s,e,"R3InjectorError",this.source)}else throw s}finally{bn(a),Kr(o)}}resolveInjectorInitializers(){let e=yt(null),r=Kr(this),t=bn(void 0),n;try{let o=this.get(qs,un,gt.Self);for(let a of o)a()}finally{Kr(r),bn(t),yt(e)}}toString(){let e=[],r=this.records;for(let t of r.keys())e.push(hn(t));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new J(205,!1)}processProvider(e){e=Gi(e);let r=Ys(e)?e:Gi(e&&e.provide),t=sN(e);if(!Ys(e)&&e.multi===!0){let n=this.records.get(r);n||(n=zs(void 0,Xu,!0),n.factory=()=>y_(n.multi),this.records.set(r,n)),r=e,n.multi.push(e)}this.records.set(r,t)}hydrate(e,r){let t=yt(null);try{return r.value===Xu&&(r.value=rN,r.value=r.factory()),typeof r.value=="object"&&r.value&&cN(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{yt(t)}}injectableDefInScope(e){if(!e.providedIn)return!1;let r=Gi(e.providedIn);return typeof r=="string"?r==="any"||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(e){let r=this._onDestroyHooks.indexOf(e);r!==-1&&this._onDestroyHooks.splice(r,1)}};function x_(i){let e=Nh(i),r=e!==null?e.factory:Wa(i);if(r!==null)return r;if(i instanceof R)throw new J(204,!1);if(i instanceof Function)return aN(i);throw new J(204,!1)}function aN(i){if(i.length>0)throw new J(204,!1);let r=gF(i);return r!==null?()=>r.factory(i):()=>new i}function sN(i){if(RD(i))return zs(void 0,i.useValue);{let e=PD(i);return zs(e,Xu)}}function PD(i,e,r){let t;if(Ys(i)){let n=Gi(i);return Wa(n)||x_(n)}else if(RD(i))t=()=>Gi(i.useValue);else if(nN(i))t=()=>i.useFactory(...y_(i.deps||[]));else if(iN(i))t=()=>M(Gi(i.useExisting));else{let n=Gi(i&&(i.useClass||i.provide));if(lN(i))t=()=>new n(...y_(i.deps));else return Wa(n)||x_(n)}return t}function zs(i,e,r=!1){return{factory:i,value:e,multi:r?[]:void 0}}function lN(i){return!!i.deps}function cN(i){return i!==null&&typeof i=="object"&&typeof i.ngOnDestroy=="function"}function dN(i){return typeof i=="function"||typeof i=="object"&&i instanceof R}function D_(i,e){for(let r of i)Array.isArray(r)?D_(r,e):r&&fD(r)?D_(r.\u0275providers,e):e(r)}function io(i,e){i instanceof bc&&i.assertNotDestroyed();let r,t=Kr(i),n=bn(void 0);try{return e()}finally{Kr(t),bn(n)}}function FD(){return gD()!==void 0||MF()!=null}function Fv(i){if(!FD())throw new J(-203,!1)}function uN(i){let e=Pn.ng;if(e&&e.\u0275compilerFacade)return e.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function hN(i){return typeof i=="function"}var Ko=0,at=1,Ze=2,on=3,xo=4,Cn=5,Qs=6,ch=7,tn=8,Ks=9,Go=10,ri=11,yc=12,Ex=13,nl=14,Fn=15,Ga=16,Us=17,fr=18,zh=19,ND=20,Zr=21,Ju=22,Jn=23,Li=25,Nv=1;var qa=7,dh=8,Zs=9,nn=10,uh=function(i){return i[i.None=0]="None",i[i.HasTransplantedViews=2]="HasTransplantedViews",i}(uh||{});function Xr(i){return Array.isArray(i)&&typeof i[Nv]=="object"}function vr(i){return Array.isArray(i)&&i[Nv]===!0}function Lv(i){return(i.flags&4)!==0}function Uh(i){return i.componentOffset>-1}function Hh(i){return(i.flags&1)===1}function gr(i){return!!i.template}function S_(i){return(i[Ze]&512)!==0}var E_=class{constructor(e,r,t){this.previousValue=e,this.currentValue=r,this.firstChange=t}isFirstChange(){return this.firstChange}};function LD(i,e,r,t){e!==null?e.applyValueToInputSignal(e,t):i[r]=t}function Qe(){return VD}function VD(i){return i.type.prototype.ngOnChanges&&(i.setInput=pN),mN}Qe.ngInherit=!0;function mN(){let i=BD(this),e=i?.current;if(e){let r=i.previous;if(r===pr)i.previous=e;else for(let t in e)r[t]=e[t];i.current=null,this.ngOnChanges(e)}}function pN(i,e,r,t,n){let o=this.declaredInputs[t],a=BD(i)||fN(i,{previous:pr,current:null}),s=a.current||(a.current={}),l=a.previous,u=l[o];s[o]=new E_(u&&u.currentValue,r,l===pr),LD(i,e,n,r)}var jD="__ngSimpleChanges__";function BD(i){return i[jD]||null}function fN(i,e){return i[jD]=e}var Ix=null;var Ho=function(i,e,r){Ix?.(i,e,r)},zD="svg",gN="math";function qo(i){for(;Array.isArray(i);)i=i[Ko];return i}function _N(i){for(;Array.isArray(i);){if(typeof i[Nv]=="object")return i;i=i[Ko]}return null}function UD(i,e){return qo(e[i])}function no(i,e){return qo(e[i.index])}function Vv(i,e){return i.data[e]}function jv(i,e){return i[e]}function ra(i,e){let r=e[i];return Xr(r)?r:r[Ko]}function vN(i){return(i[Ze]&4)===4}function Bv(i){return(i[Ze]&128)===128}function bN(i){return vr(i[on])}function ta(i,e){return e==null?null:i[e]}function HD(i){i[Us]=0}function $D(i){i[Ze]&1024||(i[Ze]|=1024,Bv(i)&&Wh(i))}function yN(i,e){for(;i>0;)e=e[nl],i--;return e}function $h(i){return!!(i[Ze]&9216||i[Jn]?.dirty)}function I_(i){i[Go].changeDetectionScheduler?.notify(8),i[Ze]&64&&(i[Ze]|=1024),$h(i)&&Wh(i)}function Wh(i){i[Go].changeDetectionScheduler?.notify(0);let e=Ya(i);for(;e!==null&&!(e[Ze]&8192||(e[Ze]|=8192,!Bv(e)));)e=Ya(e)}function WD(i,e){if((i[Ze]&256)===256)throw new J(911,!1);i[Zr]===null&&(i[Zr]=[]),i[Zr].push(e)}function wN(i,e){if(i[Zr]===null)return;let r=i[Zr].indexOf(e);r!==-1&&i[Zr].splice(r,1)}function Ya(i){let e=i[on];return vr(e)?e[on]:e}var st={lFrame:JD(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var GD=!1;function CN(){return st.lFrame.elementDepthCount}function xN(){st.lFrame.elementDepthCount++}function DN(){st.lFrame.elementDepthCount--}function qD(){return st.bindingsEnabled}function YD(){return st.skipHydrationRootTNode!==null}function SN(i){return st.skipHydrationRootTNode===i}function EN(){st.skipHydrationRootTNode=null}function Ue(){return st.lFrame.lView}function ii(){return st.lFrame.tView}function y(i){return st.lFrame.contextLView=i,i[tn]}function w(i){return st.lFrame.contextLView=null,i}function Vi(){let i=QD();for(;i!==null&&i.type===64;)i=i.parent;return i}function QD(){return st.lFrame.currentTNode}function IN(){let i=st.lFrame,e=i.currentTNode;return i.isParent?e:e.parent}function es(i,e){let r=st.lFrame;r.currentTNode=i,r.isParent=e}function zv(){return st.lFrame.isParent}function Uv(){st.lFrame.isParent=!1}function MN(){return st.lFrame.contextLView}function KD(){return GD}function Mx(i){GD=i}function Ec(){let i=st.lFrame,e=i.bindingRootIndex;return e===-1&&(e=i.bindingRootIndex=i.tView.bindingStartIndex),e}function TN(){return st.lFrame.bindingIndex}function kN(i){return st.lFrame.bindingIndex=i}function aa(){return st.lFrame.bindingIndex++}function Hv(i){let e=st.lFrame,r=e.bindingIndex;return e.bindingIndex=e.bindingIndex+i,r}function AN(){return st.lFrame.inI18n}function ON(i,e){let r=st.lFrame;r.bindingIndex=r.bindingRootIndex=i,M_(e)}function RN(){return st.lFrame.currentDirectiveIndex}function M_(i){st.lFrame.currentDirectiveIndex=i}function $v(i){let e=st.lFrame.currentDirectiveIndex;return e===-1?null:i[e]}function Wv(){return st.lFrame.currentQueryIndex}function Gh(i){st.lFrame.currentQueryIndex=i}function PN(i){let e=i[at];return e.type===2?e.declTNode:e.type===1?i[Cn]:null}function ZD(i,e,r){if(r>.SkipSelf){let n=e,o=i;for(;n=n.parent,n===null&&!(r>.Host);)if(n=PN(o),n===null||(o=o[nl],n.type&10))break;if(n===null)return!1;e=n,i=o}let t=st.lFrame=XD();return t.currentTNode=e,t.lView=i,!0}function Gv(i){let e=XD(),r=i[at];st.lFrame=e,e.currentTNode=r.firstChild,e.lView=i,e.tView=r,e.contextLView=i,e.bindingIndex=r.bindingStartIndex,e.inI18n=!1}function XD(){let i=st.lFrame,e=i===null?null:i.child;return e===null?JD(i):e}function JD(i){let 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:i,child:null,inI18n:!1};return i!==null&&(i.child=e),e}function eS(){let i=st.lFrame;return st.lFrame=i.parent,i.currentTNode=null,i.lView=null,i}var tS=eS;function qv(){let i=eS();i.isParent=!0,i.tView=null,i.selectedIndex=-1,i.contextLView=null,i.elementDepthCount=0,i.currentDirectiveIndex=-1,i.currentNamespace=null,i.bindingRootIndex=-1,i.bindingIndex=-1,i.currentQueryIndex=0}function FN(i){return(st.lFrame.contextLView=yN(i,st.lFrame.contextLView))[tn]}function br(){return st.lFrame.selectedIndex}function Qa(i){st.lFrame.selectedIndex=i}function ol(){let i=st.lFrame;return Vv(i.tView,i.selectedIndex)}function pi(){st.lFrame.currentNamespace=zD}function yr(){NN()}function NN(){st.lFrame.currentNamespace=null}function LN(){return st.lFrame.currentNamespace}var iS=!0;function qh(){return iS}function Yh(i){iS=i}function VN(i,e,r){let{ngOnChanges:t,ngOnInit:n,ngDoCheck:o}=e.type.prototype;if(t){let a=VD(e);(r.preOrderHooks??=[]).push(i,a),(r.preOrderCheckHooks??=[]).push(i,a)}n&&(r.preOrderHooks??=[]).push(0-i,n),o&&((r.preOrderHooks??=[]).push(i,o),(r.preOrderCheckHooks??=[]).push(i,o))}function Qh(i,e){for(let r=e.directiveStart,t=e.directiveEnd;r=t)break}else e[l]<0&&(i[Us]+=65536),(s>14>16&&(i[Ze]&3)===e&&(i[Ze]+=16384,Tx(s,o)):Tx(s,o)}var Gs=-1,Ka=class{constructor(e,r,t){this.factory=e,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=t}};function BN(i){return i instanceof Ka}function zN(i){return(i.flags&8)!==0}function UN(i){return(i.flags&16)!==0}var s_={},T_=class{constructor(e,r){this.injector=e,this.parentInjector=r}get(e,r,t){t=Lh(t);let n=this.injector.get(e,s_,t);return n!==s_||r===s_?n:this.parentInjector.get(e,r,t)}};function oS(i){return i!==Gs}function hh(i){return i&32767}function HN(i){return i>>16}function mh(i,e){let r=HN(i),t=e;for(;r>0;)t=t[nl],r--;return t}var k_=!0;function ph(i){let e=k_;return k_=i,e}var $N=256,rS=$N-1,aS=5,WN=0,$o={};function GN(i,e,r){let t;typeof r=="string"?t=r.charCodeAt(0)||0:r.hasOwnProperty(fc)&&(t=r[fc]),t==null&&(t=r[fc]=WN++);let n=t&rS,o=1<>aS)]|=o}function fh(i,e){let r=sS(i,e);if(r!==-1)return r;let t=e[at];t.firstCreatePass&&(i.injectorIndex=e.length,l_(t.data,i),l_(e,null),l_(t.blueprint,null));let n=Yv(i,e),o=i.injectorIndex;if(oS(n)){let a=hh(n),s=mh(n,e),l=s[at].data;for(let u=0;u<8;u++)e[o+u]=s[a+u]|l[a+u]}return e[o+8]=n,o}function l_(i,e){i.push(0,0,0,0,0,0,0,0,e)}function sS(i,e){return i.injectorIndex===-1||i.parent&&i.parent.injectorIndex===i.injectorIndex||e[i.injectorIndex+8]===null?-1:i.injectorIndex}function Yv(i,e){if(i.parent&&i.parent.injectorIndex!==-1)return i.parent.injectorIndex;let r=0,t=null,n=e;for(;n!==null;){if(t=hS(n),t===null)return Gs;if(r++,n=n[nl],t.injectorIndex!==-1)return t.injectorIndex|r<<16}return Gs}function A_(i,e,r){GN(i,e,r)}function qN(i,e){if(e==="class")return i.classes;if(e==="style")return i.styles;let r=i.attrs;if(r){let t=r.length,n=0;for(;n>20,v=t?s:s+f,C=n?s+f:u;for(let D=v;D=l&&S.type===r)return D}if(n){let D=a[l];if(D&&gr(D)&&D.type===r)return l}return null}function Za(i,e,r,t){let n=i[r],o=e.data;if(BN(n)){let a=n;a.resolving&&xF(CF(o[r]));let s=ph(a.canSeeViewProviders);a.resolving=!0;let l,u=a.injectImpl?bn(a.injectImpl):null,f=ZD(i,t,gt.Default);try{n=i[r]=a.factory(void 0,o,i,t),e.firstCreatePass&&r>=t.directiveStart&&VN(r,o[r],e)}finally{u!==null&&bn(u),ph(s),a.resolving=!1,tS()}}return n}function QN(i){if(typeof i=="string")return i.charCodeAt(0)||0;let e=i.hasOwnProperty(fc)?i[fc]:void 0;return typeof e=="number"?e>=0?e&rS:KN:e}function kx(i,e,r){let t=1<>aS)]&t)}function Ax(i,e){return!(i>.Self)&&!(i>.Host&&e)}var Ha=class{constructor(e,r){this._tNode=e,this._lView=r}get(e,r,t){return dS(this._tNode,this._lView,e,Lh(t),r)}};function KN(){return new Ha(Vi(),Ue())}function jt(i){return Dc(()=>{let e=i.prototype.constructor,r=e[oh]||O_(e),t=Object.prototype,n=Object.getPrototypeOf(i.prototype).constructor;for(;n&&n!==t;){let o=n[oh]||O_(n);if(o&&o!==r)return o;n=Object.getPrototypeOf(n)}return o=>new o})}function O_(i){return uD(i)?()=>{let e=O_(Gi(i));return e&&e()}:Wa(i)}function ZN(i,e,r,t,n){let o=i,a=e;for(;o!==null&&a!==null&&a[Ze]&2048&&!(a[Ze]&512);){let s=uS(o,a,r,t|gt.Self,$o);if(s!==$o)return s;let l=o.parent;if(!l){let u=a[ND];if(u){let f=u.get(r,$o,t);if(f!==$o)return f}l=hS(a),a=a[nl]}o=l}return n}function hS(i){let e=i[at],r=e.type;return r===2?e.declTNode:r===1?i[Cn]:null}function vi(i){return qN(Vi(),i)}function Ox(i,e=null,r=null,t){let n=mS(i,e,r,t);return n.resolveInjectorInitializers(),n}function mS(i,e=null,r=null,t,n=new Set){let o=[r||un,eN(i)];return t=t||(typeof i=="object"?void 0:hn(i)),new bc(o,e||Pv(),t||null,n)}var za=class za{static create(e,r){if(Array.isArray(e))return Ox({name:""},r,e,"");{let t=e.name??"";return Ox({name:t},e.parent,e.providers,t)}}};za.THROW_IF_NOT_FOUND=_c,za.NULL=new sh,za.\u0275prov=V({token:za,providedIn:"any",factory:()=>M(yD)}),za.__NG_ELEMENT_ID__=-1;var Pe=za;var XN=new R("");XN.__NG_ELEMENT_ID__=i=>{let e=Vi();if(e===null)throw new J(204,!1);if(e.type&2)return e.value;if(i>.Optional)return null;throw new J(204,!1)};var JN="ngOriginalError";function c_(i){return i[JN]}var pS=!0,Kh=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=e2,e.__NG_ENV_ID__=t=>t;let i=e;return i})(),R_=class extends Kh{constructor(e){super(),this._lView=e}onDestroy(e){return WD(this._lView,e),()=>wN(this._lView,e)}};function e2(){return new R_(Ue())}var Zo=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Gt(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let t=this.taskId++;return this.pendingTasks.add(t),t}remove(t){this.pendingTasks.delete(t),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};e.\u0275prov=V({token:e,providedIn:"root",factory:()=>new e});let i=e;return i})();var P_=class extends G{constructor(e=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=e,FD()&&(this.destroyRef=k(Kh,{optional:!0})??void 0,this.pendingTasks=k(Zo,{optional:!0})??void 0)}emit(e){let r=yt(null);try{super.next(e)}finally{yt(r)}}subscribe(e,r,t){let n=e,o=r||(()=>null),a=t;if(e&&typeof e=="object"){let l=e;n=l.next?.bind(l),o=l.error?.bind(l),a=l.complete?.bind(l)}this.__isAsync&&(o=this.wrapInTimeout(o),n&&(n=this.wrapInTimeout(n)),a&&(a=this.wrapInTimeout(a)));let s=super.subscribe({next:n,error:o,complete:a});return e instanceof ve&&e.add(s),s}wrapInTimeout(e){return r=>{let t=this.pendingTasks?.add();setTimeout(()=>{e(r),t!==void 0&&this.pendingTasks?.remove(t)})}}},T=P_;function gh(...i){}function fS(i){let e,r;function t(){i=gh;try{r!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(r),e!==void 0&&clearTimeout(e)}catch{}}return e=setTimeout(()=>{i(),t()}),typeof requestAnimationFrame=="function"&&(r=requestAnimationFrame(()=>{i(),t()})),()=>t()}function Rx(i){return queueMicrotask(()=>i()),()=>{i=gh}}var Qv="isAngularZone",_h=Qv+"_ID",t2=0,Z=class i{constructor(e){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new T(!1),this.onMicrotaskEmpty=new T(!1),this.onStable=new T(!1),this.onError=new T(!1);let{enableLongStackTrace:r=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:n=!1,scheduleInRootZone:o=pS}=e;if(typeof Zone>"u")throw new J(908,!1);Zone.assertZonePatched();let a=this;a._nesting=0,a._outer=a._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(a._inner=a._inner.fork(new Zone.TaskTrackingZoneSpec)),r&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!n&&t,a.shouldCoalesceRunChangeDetection=n,a.callbackScheduled=!1,a.scheduleInRootZone=o,o2(a)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Qv)===!0}static assertInAngularZone(){if(!i.isInAngularZone())throw new J(909,!1)}static assertNotInAngularZone(){if(i.isInAngularZone())throw new J(909,!1)}run(e,r,t){return this._inner.run(e,r,t)}runTask(e,r,t,n){let o=this._inner,a=o.scheduleEventTask("NgZoneEvent: "+n,e,i2,gh,gh);try{return o.runTask(a,r,t)}finally{o.cancelTask(a)}}runGuarded(e,r,t){return this._inner.runGuarded(e,r,t)}runOutsideAngular(e){return this._outer.run(e)}},i2={};function Kv(i){if(i._nesting==0&&!i.hasPendingMicrotasks&&!i.isStable)try{i._nesting++,i.onMicrotaskEmpty.emit(null)}finally{if(i._nesting--,!i.hasPendingMicrotasks)try{i.runOutsideAngular(()=>i.onStable.emit(null))}finally{i.isStable=!0}}}function n2(i){if(i.isCheckStableRunning||i.callbackScheduled)return;i.callbackScheduled=!0;function e(){fS(()=>{i.callbackScheduled=!1,F_(i),i.isCheckStableRunning=!0,Kv(i),i.isCheckStableRunning=!1})}i.scheduleInRootZone?Zone.root.run(()=>{e()}):i._outer.run(()=>{e()}),F_(i)}function o2(i){let e=()=>{n2(i)},r=t2++;i._inner=i._inner.fork({name:"angular",properties:{[Qv]:!0,[_h]:r,[_h+r]:!0},onInvokeTask:(t,n,o,a,s,l)=>{if(r2(l))return t.invokeTask(o,a,s,l);try{return Px(i),t.invokeTask(o,a,s,l)}finally{(i.shouldCoalesceEventChangeDetection&&a.type==="eventTask"||i.shouldCoalesceRunChangeDetection)&&e(),Fx(i)}},onInvoke:(t,n,o,a,s,l,u)=>{try{return Px(i),t.invoke(o,a,s,l,u)}finally{i.shouldCoalesceRunChangeDetection&&!i.callbackScheduled&&!a2(l)&&e(),Fx(i)}},onHasTask:(t,n,o,a)=>{t.hasTask(o,a),n===o&&(a.change=="microTask"?(i._hasPendingMicrotasks=a.microTask,F_(i),Kv(i)):a.change=="macroTask"&&(i.hasPendingMacrotasks=a.macroTask))},onHandleError:(t,n,o,a)=>(t.handleError(o,a),i.runOutsideAngular(()=>i.onError.emit(a)),!1)})}function F_(i){i._hasPendingMicrotasks||(i.shouldCoalesceEventChangeDetection||i.shouldCoalesceRunChangeDetection)&&i.callbackScheduled===!0?i.hasPendingMicrotasks=!0:i.hasPendingMicrotasks=!1}function Px(i){i._nesting++,i.isStable&&(i.isStable=!1,i.onUnstable.emit(null))}function Fx(i){i._nesting--,Kv(i)}var vh=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new T,this.onMicrotaskEmpty=new T,this.onStable=new T,this.onError=new T}run(e,r,t){return e.apply(r,t)}runGuarded(e,r,t){return e.apply(r,t)}runOutsideAngular(e){return e()}runTask(e,r,t,n){return e.apply(r,t)}};function r2(i){return gS(i,"__ignore_ng_zone__")}function a2(i){return gS(i,"__scheduler_tick__")}function gS(i,e){return!Array.isArray(i)||i.length!==1?!1:i[0]?.data?.[e]===!0}function s2(i="zone.js",e){return i==="noop"?new vh:i==="zone.js"?new Z(e):i}var yn=class{constructor(){this._console=console}handleError(e){let r=this._findOriginalError(e);this._console.error("ERROR",e),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(e){let r=e&&c_(e);for(;r&&c_(r);)r=c_(r);return r||null}},l2=new R("",{providedIn:"root",factory:()=>{let i=k(Z),e=k(yn);return r=>i.runOutsideAngular(()=>e.handleError(r))}});function c2(){return rl(Vi(),Ue())}function rl(i,e){return new q(no(i,e))}var q=(()=>{let e=class e{constructor(t){this.nativeElement=t}};e.__NG_ELEMENT_ID__=c2;let i=e;return i})();function _S(i){return i instanceof q?i.nativeElement:i}function d2(){return this._results[Symbol.iterator]()}var eo=class i{get changes(){return this._changes??=new T}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let r=i.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=d2)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,r){return this._results.reduce(e,r)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,r){this.dirty=!1;let t=PF(e);(this._changesDetected=!RF(this._results,t,r))&&(this._results=t,this.length=t.length,this.last=t[this.length-1],this.first=t[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function vS(i){return(i.flags&128)===128}var bS=new Map,u2=0;function h2(){return u2++}function m2(i){bS.set(i[zh],i)}function N_(i){bS.delete(i[zh])}var Nx="__ngContext__";function ia(i,e){Xr(e)?(i[Nx]=e[zh],m2(e)):i[Nx]=e}function yS(i){return CS(i[yc])}function wS(i){return CS(i[xo])}function CS(i){for(;i!==null&&!vr(i);)i=i[xo];return i}var L_;function xS(i){L_=i}function DS(){if(L_!==void 0)return L_;if(typeof document<"u")return document;throw new J(210,!1)}var al=new R("",{providedIn:"root",factory:()=>p2}),p2="ng",Zv=new R(""),oo=new R("",{providedIn:"platform",factory:()=>"unknown"});var kt=new R(""),Ic=new R("",{providedIn:"root",factory:()=>DS().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var f2="h",g2="b";var _2=()=>null;function Xv(i,e,r=!1){return _2(i,e,r)}var SS=!1,v2=new R("",{providedIn:"root",factory:()=>SS});var Wu;function b2(){if(Wu===void 0&&(Wu=null,Pn.trustedTypes))try{Wu=Pn.trustedTypes.createPolicy("angular",{createHTML:i=>i,createScript:i=>i,createScriptURL:i=>i})}catch{}return Wu}function Zh(i){return b2()?.createHTML(i)||i}var Gu;function ES(){if(Gu===void 0&&(Gu=null,Pn.trustedTypes))try{Gu=Pn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:i=>i,createScript:i=>i,createScriptURL:i=>i})}catch{}return Gu}function Lx(i){return ES()?.createHTML(i)||i}function Vx(i){return ES()?.createScriptURL(i)||i}var _r=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${cD})`}},V_=class extends _r{getTypeName(){return"HTML"}},j_=class extends _r{getTypeName(){return"Style"}},B_=class extends _r{getTypeName(){return"Script"}},z_=class extends _r{getTypeName(){return"URL"}},U_=class extends _r{getTypeName(){return"ResourceURL"}};function ro(i){return i instanceof _r?i.changingThisBreaksApplicationSecurity:i}function wr(i,e){let r=y2(i);if(r!=null&&r!==e){if(r==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${r} (see ${cD})`)}return r===e}function y2(i){return i instanceof _r&&i.getTypeName()||null}function IS(i){return new V_(i)}function MS(i){return new j_(i)}function TS(i){return new B_(i)}function kS(i){return new z_(i)}function AS(i){return new U_(i)}function w2(i){let e=new $_(i);return C2()?new H_(e):e}var H_=class{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+e;try{let r=new window.DOMParser().parseFromString(Zh(e),"text/html").body;return r===null?this.inertDocumentHelper.getInertBodyElement(e):(r.firstChild?.remove(),r)}catch{return null}}},$_=class{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let r=this.inertDocument.createElement("template");return r.innerHTML=Zh(e),r}};function C2(){try{return!!new window.DOMParser().parseFromString(Zh(""),"text/html")}catch{return!1}}var x2=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Xh(i){return i=String(i),i.match(x2)?i:"unsafe:"+i}function Cr(i){let e={};for(let r of i.split(","))e[r]=!0;return e}function Mc(...i){let e={};for(let r of i)for(let t in r)r.hasOwnProperty(t)&&(e[t]=!0);return e}var OS=Cr("area,br,col,hr,img,wbr"),RS=Cr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),PS=Cr("rp,rt"),D2=Mc(PS,RS),S2=Mc(RS,Cr("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),E2=Mc(PS,Cr("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),jx=Mc(OS,S2,E2,D2),FS=Cr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),I2=Cr("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),M2=Cr("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),T2=Mc(FS,I2,M2),k2=Cr("script,style,template"),W_=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let r=e.firstChild,t=!0,n=[];for(;r;){if(r.nodeType===Node.ELEMENT_NODE?t=this.startElement(r):r.nodeType===Node.TEXT_NODE?this.chars(r.nodeValue):this.sanitizedSomething=!0,t&&r.firstChild){n.push(r),r=R2(r);continue}for(;r;){r.nodeType===Node.ELEMENT_NODE&&this.endElement(r);let o=O2(r);if(o){r=o;break}r=n.pop()}}return this.buf.join("")}startElement(e){let r=Bx(e).toLowerCase();if(!jx.hasOwnProperty(r))return this.sanitizedSomething=!0,!k2.hasOwnProperty(r);this.buf.push("<"),this.buf.push(r);let t=e.attributes;for(let n=0;n"),!0}endElement(e){let r=Bx(e).toLowerCase();jx.hasOwnProperty(r)&&!OS.hasOwnProperty(r)&&(this.buf.push(""))}chars(e){this.buf.push(zx(e))}};function A2(i,e){return(i.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function O2(i){let e=i.nextSibling;if(e&&i!==e.previousSibling)throw NS(e);return e}function R2(i){let e=i.firstChild;if(e&&A2(i,e))throw NS(e);return e}function Bx(i){let e=i.nodeName;return typeof e=="string"?e:"FORM"}function NS(i){return new Error(`Failed to sanitize html because the element is clobbered: ${i.outerHTML}`)}var P2=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,F2=/([^\#-~ |!])/g;function zx(i){return i.replace(/&/g,"&").replace(P2,function(e){let r=e.charCodeAt(0),t=e.charCodeAt(1);return"&#"+((r-55296)*1024+(t-56320)+65536)+";"}).replace(F2,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}var qu;function Jv(i,e){let r=null;try{qu=qu||w2(i);let t=e?String(e):"";r=qu.getInertBodyElement(t);let n=5,o=t;do{if(n===0)throw new Error("Failed to sanitize html because the input is unstable");n--,t=o,o=r.innerHTML,r=qu.getInertBodyElement(t)}while(t!==o);let s=new W_().sanitizeChildren(Ux(r)||r);return Zh(s)}finally{if(r){let t=Ux(r)||r;for(;t.firstChild;)t.firstChild.remove()}}}function Ux(i){return"content"in i&&N2(i)?i.content:null}function N2(i){return i.nodeType===Node.ELEMENT_NODE&&i.nodeName==="TEMPLATE"}var Yi=function(i){return i[i.NONE=0]="NONE",i[i.HTML=1]="HTML",i[i.STYLE=2]="STYLE",i[i.SCRIPT=3]="SCRIPT",i[i.URL=4]="URL",i[i.RESOURCE_URL=5]="RESOURCE_URL",i}(Yi||{});function qt(i){let e=eb();return e?Lx(e.sanitize(Yi.HTML,i)||""):wr(i,"HTML")?Lx(ro(i)):Jv(DS(),$a(i))}function Ie(i){let e=eb();return e?e.sanitize(Yi.URL,i)||"":wr(i,"URL")?ro(i):Xh($a(i))}function L2(i){let e=eb();if(e)return Vx(e.sanitize(Yi.RESOURCE_URL,i)||"");if(wr(i,"ResourceURL"))return Vx(ro(i));throw new J(904,!1)}function V2(i,e){return e==="src"&&(i==="embed"||i==="frame"||i==="iframe"||i==="media"||i==="script")||e==="href"&&(i==="base"||i==="link")?L2:Ie}function LS(i,e,r){return V2(e,r)(i)}function eb(){let i=Ue();return i&&i[Go].sanitizer}var j2=/^>|^->||--!>|)/g,z2="\u200B$1\u200B";function U2(i){return i.replace(j2,e=>e.replace(B2,z2))}function Jh(i){return i.ownerDocument.defaultView}function VS(i){return i.ownerDocument}function jS(i){return i instanceof Function?i():i}function BS(i){return(i??k(Pe)).get(oo)==="browser"}var Yo=function(i){return i[i.Important=1]="Important",i[i.DashCase=2]="DashCase",i}(Yo||{}),H2;function tb(i,e){return H2(i,e)}function Hs(i,e,r,t,n){if(t!=null){let o,a=!1;vr(t)?o=t:Xr(t)&&(a=!0,t=t[Ko]);let s=qo(t);i===0&&r!==null?n==null?WS(e,r,s):bh(e,r,s,n||null,!0):i===1&&r!==null?bh(e,r,s,n||null,!0):i===2?nL(e,s,a):i===3&&e.destroyNode(s),o!=null&&rL(e,i,o,r,n)}}function $2(i,e){return i.createText(e)}function W2(i,e,r){i.setValue(e,r)}function G2(i,e){return i.createComment(U2(e))}function zS(i,e,r){return i.createElement(e,r)}function q2(i,e){US(i,e),e[Ko]=null,e[Cn]=null}function Y2(i,e,r,t,n,o){t[Ko]=n,t[Cn]=e,im(i,t,r,1,n,o)}function US(i,e){e[Go].changeDetectionScheduler?.notify(9),im(i,e,e[ri],2,null,null)}function Q2(i){let e=i[yc];if(!e)return d_(i[at],i);for(;e;){let r=null;if(Xr(e))r=e[yc];else{let t=e[nn];t&&(r=t)}if(!r){for(;e&&!e[xo]&&e!==i;)Xr(e)&&d_(e[at],e),e=e[on];e===null&&(e=i),Xr(e)&&d_(e[at],e),r=e&&e[xo]}e=r}}function K2(i,e,r,t){let n=nn+t,o=r.length;t>0&&(r[n-1][xo]=e),t0&&(i[r-1][xo]=t[xo]);let o=ah(i,nn+e);q2(t[at],t);let a=o[fr];a!==null&&a.detachView(o[at]),t[on]=null,t[xo]=null,t[Ze]&=-129}return t}function em(i,e){if(!(e[Ze]&256)){let r=e[ri];r.destroyNode&&im(i,e,r,3,null,null),Q2(e)}}function d_(i,e){if(e[Ze]&256)return;let r=yt(null);try{e[Ze]&=-129,e[Ze]|=256,e[Jn]&&mu(e[Jn]),X2(i,e),Z2(i,e),e[at].type===1&&e[ri].destroy();let t=e[Ga];if(t!==null&&vr(e[on])){t!==e[on]&&ib(t,e);let n=e[fr];n!==null&&n.detachView(i)}N_(e)}finally{yt(r)}}function Z2(i,e){let r=i.cleanup,t=e[ch];if(r!==null)for(let o=0;o=0?t[a]():t[-a].unsubscribe(),o+=2}else{let a=t[r[o+1]];r[o].call(a)}t!==null&&(e[ch]=null);let n=e[Zr];if(n!==null){e[Zr]=null;for(let o=0;o-1){let{encapsulation:o}=i.data[t.directiveStart+n];if(o===Wo.None||o===Wo.Emulated)return null}return no(t,r)}}function bh(i,e,r,t,n){i.insertBefore(e,r,t,n)}function WS(i,e,r){i.appendChild(e,r)}function Hx(i,e,r,t,n){t!==null?bh(i,e,r,t,n):WS(i,e,r)}function GS(i,e){return i.parentNode(e)}function eL(i,e){return i.nextSibling(e)}function qS(i,e,r){return iL(i,e,r)}function tL(i,e,r){return i.type&40?no(i,r):null}var iL=tL,$x;function tm(i,e,r,t){let n=$S(i,t,e),o=e[ri],a=t.parent||e[Cn],s=qS(a,t,e);if(n!=null)if(Array.isArray(r))for(let l=0;lLi&&XS(i,e,Li,!1),Ho(a?2:0,n),r(t,n)}finally{Qa(o),Ho(a?3:1,n)}}function ob(i,e,r){if(Lv(e)){let t=yt(null);try{let n=e.directiveStart,o=e.directiveEnd;for(let a=n;anull;function pL(i,e,r,t){let n=sE(e);n.push(r),i.firstCreatePass&&lE(i).push(t,n.length-1)}function fL(i,e,r,t,n,o){let a=e?e.injectorIndex:-1,s=0;return YD()&&(s|=128),{type:r,index:t,insertBeforeIndex:null,injectorIndex:a,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:s,providerIndexes:0,value:n,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Wx(i,e,r,t,n){for(let o in e){if(!e.hasOwnProperty(o))continue;let a=e[o];if(a===void 0)continue;t??={};let s,l=Jr.None;Array.isArray(a)?(s=a[0],l=a[1]):s=a;let u=o;if(n!==null){if(!n.hasOwnProperty(o))continue;u=n[o]}i===0?Gx(t,r,u,s,l):Gx(t,r,u,s)}return t}function Gx(i,e,r,t,n){let o;i.hasOwnProperty(r)?(o=i[r]).push(e,t):o=i[r]=[e,t],n!==void 0&&o.push(n)}function gL(i,e,r){let t=e.directiveStart,n=e.directiveEnd,o=i.data,a=e.attrs,s=[],l=null,u=null;for(let f=t;f0;){let r=i[--e];if(typeof r=="number"&&r<0)return r}return 0}function wL(i,e,r,t){let n=r.directiveStart,o=r.directiveEnd;Uh(r)&&ML(e,r,i.data[n+r.componentOffset]),i.firstCreatePass||fh(r,e),ia(t,e);let a=r.initialInputs;for(let s=n;s{Wh(i.lView)},consumerOnSignalRead(){this.lView[Jn]=this}});function zL(i){let e=i[Jn]??Object.create(UL);return e.lView=i,e}var UL=rt(j({},Ts),{consumerIsAlwaysLive:!0,consumerMarkedDirty:i=>{let e=Ya(i.lView);for(;e&&!fE(e[at]);)e=Ya(e);e&&$D(e)},consumerOnSignalRead(){this.lView[Jn]=this}});function fE(i){return i.type!==2}var HL=100;function gE(i,e=!0,r=0){let t=i[Go],n=t.rendererFactory,o=!1;o||n.begin?.();try{$L(i,r)}catch(a){throw e&&dE(i,a),a}finally{o||(n.end?.(),t.inlineEffectRunner?.flush())}}function $L(i,e){let r=KD();try{Mx(!0),Q_(i,e);let t=0;for(;$h(i);){if(t===HL)throw new J(103,!1);t++,Q_(i,1)}}finally{Mx(r)}}function WL(i,e,r,t){let n=e[Ze];if((n&256)===256)return;let o=!1,a=!1;!o&&e[Go].inlineEffectRunner?.flush(),Gv(e);let s=!0,l=null,u=null;o||(fE(i)?(u=LL(e),l=ac(u)):MC()===null?(s=!1,u=zL(e),l=ac(u)):e[Jn]&&(mu(e[Jn]),e[Jn]=null));try{HD(e),kN(i.bindingStartIndex),r!==null&&tE(i,e,r,2,t);let f=(n&3)===3;if(!o)if(f){let D=i.preOrderCheckHooks;D!==null&&eh(e,D,null)}else{let D=i.preOrderHooks;D!==null&&th(e,D,0,null),a_(e,0)}if(a||GL(e),_E(e,0),i.contentQueries!==null&&aE(i,e),!o)if(f){let D=i.contentCheckHooks;D!==null&&eh(e,D)}else{let D=i.contentHooks;D!==null&&th(e,D,1),a_(e,1)}lL(i,e);let v=i.components;v!==null&&bE(e,v,0);let C=i.viewQuery;if(C!==null&&Y_(2,C,t),!o)if(f){let D=i.viewCheckHooks;D!==null&&eh(e,D)}else{let D=i.viewHooks;D!==null&&th(e,D,2),a_(e,2)}if(i.firstUpdatePass===!0&&(i.firstUpdatePass=!1),e[Ju]){for(let D of e[Ju])D();e[Ju]=null}o||(e[Ze]&=-73)}catch(f){throw o||Wh(e),f}finally{u!==null&&(uu(u,l),s&&jL(u)),qv()}}function _E(i,e){for(let r=yS(i);r!==null;r=wS(r))for(let t=nn;t-1&&(wc(e,t),ah(r,t))}this._attachedToViewContainer=!1}em(this._lView[at],this._lView)}onDestroy(e){WD(this._lView,e)}markForCheck(){ub(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[Ze]&=-129}reattach(){I_(this._lView),this._lView[Ze]|=128}detectChanges(){this._lView[Ze]|=1024,gE(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new J(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=S_(this._lView),r=this._lView[Ga];r!==null&&!e&&ib(r,this._lView),US(this._lView[at],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new J(902,!1);this._appRef=e;let r=S_(this._lView),t=this._lView[Ga];t!==null&&!r&&HS(t,this._lView),I_(this._lView)}},dt=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=KL;let i=e;return i})(),YL=dt,QL=class extends YL{constructor(e,r,t){super(),this._declarationLView=e,this._declarationTContainer=r,this.elementRef=t}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,r){return this.createEmbeddedViewImpl(e,r)}createEmbeddedViewImpl(e,r,t){let n=kc(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:r,dehydratedView:t});return new Xa(n)}};function KL(){return rm(Vi(),Ue())}function rm(i,e){return i.type&4?new QL(e,i,rl(i,e)):null}var _oe=new RegExp(`^(\\d+)*(${g2}|${f2})*(.*)`);var ZL=()=>null;function Js(i,e){return ZL(i,e)}var el=class{},hb=new R("",{providedIn:"root",factory:()=>!1});var yE=new R(""),wE=new R(""),K_=class{},wh=class{};function XL(i){let e=Error(`No component factory found for ${hn(i)}.`);return e[JL]=i,e}var JL="ngComponent";var Z_=class{resolveComponentFactory(e){throw XL(e)}},Sb=class Sb{};Sb.NULL=new Z_;var wn=Sb,na=class{},xr=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>eV();let i=e;return i})();function eV(){let i=Ue(),e=Vi(),r=ra(e.index,i);return(Xr(r)?r:i)[ri]}var tV=(()=>{let e=class e{};e.\u0275prov=V({token:e,providedIn:"root",factory:()=>null});let i=e;return i})();function Ch(i,e,r){let t=r?i.styles:null,n=r?i.classes:null,o=0;if(e!==null)for(let a=0;a0&&KS(i,r,o.join(" "))}}function lV(i,e,r){let t=i.projection=[];for(let n=0;n{let e=class e{};e.__NG_ELEMENT_ID__=dV;let i=e;return i})();function dV(){let i=Vi();return xE(i,Ue())}var uV=Ct,CE=class extends uV{constructor(e,r,t){super(),this._lContainer=e,this._hostTNode=r,this._hostLView=t}get element(){return rl(this._hostTNode,this._hostLView)}get injector(){return new Ha(this._hostTNode,this._hostLView)}get parentInjector(){let e=Yv(this._hostTNode,this._hostLView);if(oS(e)){let r=mh(e,this._hostLView),t=hh(e),n=r[at].data[t+8];return new Ha(n,r)}else return new Ha(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let r=Yx(this._lContainer);return r!==null&&r[e]||null}get length(){return this._lContainer.length-nn}createEmbeddedView(e,r,t){let n,o;typeof t=="number"?n=t:t!=null&&(n=t.index,o=t.injector);let a=Js(this._lContainer,e.ssrId),s=e.createEmbeddedViewImpl(r||{},o,a);return this.insertImpl(s,n,Xs(this._hostTNode,a)),s}createComponent(e,r,t,n,o){let a=e&&!hN(e),s;if(a)s=r;else{let S=r||{};s=S.index,t=S.injector,n=S.projectableNodes,o=S.environmentInjector||S.ngModuleRef}let l=a?e:new tl(ea(e)),u=t||this.parentInjector;if(!o&&l.ngModule==null){let P=(a?u:this.parentInjector).get(qi,null);P&&(o=P)}let f=ea(l.componentType??{}),v=Js(this._lContainer,f?.id??null),C=v?.firstChild??null,D=l.create(u,n,C,o);return this.insertImpl(D.hostView,s,Xs(this._hostTNode,v)),D}insert(e,r){return this.insertImpl(e,r,!0)}insertImpl(e,r,t){let n=e._lView;if(bN(n)){let s=this.indexOf(e);if(s!==-1)this.detach(s);else{let l=n[on],u=new CE(l,l[Cn],l[on]);u.detach(u.indexOf(e))}}let o=this._adjustIndex(r),a=this._lContainer;return Ac(a,n,o,t),e.attachToViewContainerRef(),bD(u_(a),o,e),e}move(e,r){return this.insert(e,r)}indexOf(e){let r=Yx(this._lContainer);return r!==null?r.indexOf(e):-1}remove(e){let r=this._adjustIndex(e,-1),t=wc(this._lContainer,r);t&&(ah(u_(this._lContainer),r),em(t[at],t))}detach(e){let r=this._adjustIndex(e,-1),t=wc(this._lContainer,r);return t&&ah(u_(this._lContainer),r)!=null?new Xa(t):null}_adjustIndex(e,r=0){return e??this.length+r}};function Yx(i){return i[dh]}function u_(i){return i[dh]||(i[dh]=[])}function xE(i,e){let r,t=e[i.index];return vr(t)?r=t:(r=rE(t,e,null,i),e[i.index]=r,om(e,r)),mV(r,e,i,t),new CE(r,i,e)}function hV(i,e){let r=i[ri],t=r.createComment(""),n=no(e,i),o=GS(r,n);return bh(r,o,t,eL(r,n),!1),t}var mV=gV,pV=()=>!1;function fV(i,e,r){return pV(i,e,r)}function gV(i,e,r,t){if(i[qa])return;let n;r.type&8?n=qo(t):n=hV(e,r),i[qa]=n}var J_=class i{constructor(e){this.queryList=e,this.matches=null}clone(){return new i(this.queryList)}setDirty(){this.queryList.setDirty()}},ev=class i{constructor(e=[]){this.queries=e}createEmbeddedView(e){let r=e.queries;if(r!==null){let t=e.contentQueries!==null?e.contentQueries[0]:r.length,n=[];for(let o=0;o0)t.push(a[s/2]);else{let u=o[s+1],f=e[-l];for(let v=nn;ve.trim())}function IE(i,e,r){i.queries===null&&(i.queries=new tv),i.queries.track(new iv(e,r))}function xV(i,e){let r=i.contentQueries||(i.contentQueries=[]),t=r.length?r[r.length-1]:-1;e!==t&&r.push(i.queries.length-1,e)}function pb(i,e){return i.queries.getByIndex(e)}function ME(i,e){let r=i[at],t=pb(r,e);return t.crossesNgTemplate?nv(r,i,e,[]):DE(r,i,t,e)}var Qx=new Set;function So(i){Qx.has(i)||(Qx.add(i),performance?.mark?.("mark_feature_usage",{detail:{feature:i}}))}function am(i){return typeof i=="function"&&i[Kn]!==void 0}function Dr(i,e){So("NgSignals");let r=jC(i),t=r[Kn];return e?.equal&&(t.equal=e.equal),r.set=n=>Ng(t,n),r.update=n=>BC(t,n),r.asReadonly=DV.bind(r),r}function DV(){let i=this[Kn];if(i.readonlyFn===void 0){let e=()=>this();e[Kn]=i,i.readonlyFn=e}return i.readonlyFn}function TE(i){return am(i)&&typeof i.set=="function"}function kE(i,e){let r,t=Fg(()=>{r._dirtyCounter();let n=MV(r,i);if(e&&n===void 0)throw new J(-951,!1);return n});return r=t[Kn],r._dirtyCounter=Dr(0),r._flatValue=void 0,t}function SV(){return kE(!0,!1)}function EV(){return kE(!0,!0)}function IV(i,e){let r=i[Kn];r._lView=Ue(),r._queryIndex=e,r._queryList=mb(r._lView,e),r._queryList.onDirty(()=>r._dirtyCounter.update(t=>t+1))}function MV(i,e){let r=i._lView,t=i._queryIndex;if(r===void 0||t===void 0||r[Ze]&4)return e?void 0:un;let n=mb(r,t),o=ME(r,t);return n.reset(o,_S),e?n.first:n._changesDetected||i._flatValue===void 0?i._flatValue=n.toArray():i._flatValue}function Kx(i,e){return SV()}function TV(i,e){return EV()}var AE=(Kx.required=TV,Kx);function kV(i){let e=[],r=new Map;function t(n){let o=r.get(n);if(!o){let a=i(n);r.set(n,o=a.then(PV))}return o}return Sh.forEach((n,o)=>{let a=[];n.templateUrl&&a.push(t(n.templateUrl).then(u=>{n.template=u}));let s=typeof n.styles=="string"?[n.styles]:n.styles||[];if(n.styles=s,n.styleUrl&&n.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(n.styleUrls?.length){let u=n.styles.length,f=n.styleUrls;n.styleUrls.forEach((v,C)=>{s.push(""),a.push(t(v).then(D=>{s[u+C]=D,f.splice(f.indexOf(v),1),f.length==0&&(n.styleUrls=void 0)}))})}else n.styleUrl&&a.push(t(n.styleUrl).then(u=>{s.push(u),n.styleUrl=void 0}));let l=Promise.all(a).then(()=>FV(o));e.push(l)}),OV(),Promise.all(e).then(()=>{})}var Sh=new Map,AV=new Set;function OV(){let i=Sh;return Sh=new Map,i}function RV(){return Sh.size===0}function PV(i){return typeof i=="string"?i:i.text()}function FV(i){AV.delete(i)}function NV(i){return Object.getPrototypeOf(i.prototype).constructor}function be(i){let e=NV(i.type),r=!0,t=[i];for(;e;){let n;if(gr(i))n=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new J(903,!1);n=e.\u0275dir}if(n){if(r){t.push(n);let a=i;a.inputs=Yu(i.inputs),a.inputTransforms=Yu(i.inputTransforms),a.declaredInputs=Yu(i.declaredInputs),a.outputs=Yu(i.outputs);let s=n.hostBindings;s&&zV(i,s);let l=n.viewQuery,u=n.contentQueries;if(l&&jV(i,l),u&&BV(i,u),LV(i,n),pF(i.outputs,n.outputs),gr(n)&&n.data.animation){let f=i.data;f.animation=(f.animation||[]).concat(n.data.animation)}}let o=n.features;if(o)for(let a=0;a=0;t--){let n=i[t];n.hostVars=e+=n.hostVars,n.hostAttrs=vc(n.hostAttrs,r=vc(r,n.hostAttrs))}}function Yu(i){return i===pr?{}:i===un?[]:i}function jV(i,e){let r=i.viewQuery;r?i.viewQuery=(t,n)=>{e(t,n),r(t,n)}:i.viewQuery=e}function BV(i,e){let r=i.contentQueries;r?i.contentQueries=(t,n,o)=>{e(t,n,o),r(t,n,o)}:i.contentQueries=e}function zV(i,e){let r=i.hostBindings;r?i.hostBindings=(t,n)=>{e(t,n),r(t,n)}:i.hostBindings=e}function OE(i){let e=r=>{let t=Array.isArray(i);r.hostDirectives===null?(r.findHostDirectiveDefs=RE,r.hostDirectives=t?i.map(ov):[i]):t?r.hostDirectives.unshift(...i.map(ov)):r.hostDirectives.unshift(i)};return e.ngInherit=!0,e}function RE(i,e,r){if(i.hostDirectives!==null)for(let t of i.hostDirectives)if(typeof t=="function"){let n=t();for(let o of n)Zx(ov(o),e,r)}else Zx(t,e,r)}function Zx(i,e,r){let t=Ov(i.directive);UV(t.declaredInputs,i.inputs),RE(t,e,r),r.set(t,i),e.push(t)}function ov(i){return typeof i=="function"?{directive:Gi(i),inputs:pr,outputs:pr}:{directive:Gi(i.directive),inputs:Xx(i.inputs),outputs:Xx(i.outputs)}}function Xx(i){if(i===void 0||i.length===0)return pr;let e={};for(let r=0;rr()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},Ih=class extends Cc{constructor(e){super(),this.moduleType=e}create(e){return new Eh(this.moduleType,e,[])}};function HV(i,e,r){return new Eh(i,e,r,!1)}var rv=class extends oa{constructor(e){super(),this.componentFactoryResolver=new xh(this),this.instance=null;let r=new bc([...e.providers,{provide:oa,useValue:this},{provide:wn,useValue:this.componentFactoryResolver}],e.parent||Pv(),e.debugName,new Set(["environment"]));this.injector=r,e.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function sm(i,e,r=null){return new rv({providers:i,parent:e,debugName:r,runEnvironmentInitializers:!0}).injector}function PE(i){return fb(i)?Array.isArray(i)||!(i instanceof Map)&&Symbol.iterator in i:!1}function $V(i,e){if(Array.isArray(i))for(let r=0;r{let e=class e{constructor(){this.impl=null}execute(){this.impl?.execute()}};e.\u0275prov=V({token:e,providedIn:"root",factory:()=>new e});let i=e;return i})(),Ua=class Ua{constructor(){this.ngZone=k(Z),this.scheduler=k(el),this.errorHandler=k(yn,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}execute(){this.executing=!0;for(let e of Ua.PHASES)for(let r of this.sequences)if(!(r.erroredOrDestroyed||!r.hooks[e]))try{r.pipelinedValue=this.ngZone.runOutsideAngular(()=>r.hooks[e](r.pipelinedValue))}catch(t){r.erroredOrDestroyed=!0,this.errorHandler?.handleError(t)}this.executing=!1;for(let e of this.sequences)e.afterRun(),e.once&&(this.sequences.delete(e),e.destroy());for(let e of this.deferredRegistrations)this.sequences.add(e);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(e){this.executing?this.deferredRegistrations.add(e):(this.sequences.add(e),this.scheduler.notify(6))}unregister(e){this.executing&&this.sequences.has(e)?(e.erroredOrDestroyed=!0,e.pipelinedValue=void 0,e.once=!0):(this.sequences.delete(e),this.deferredRegistrations.delete(e))}};Ua.PHASES=[$s.EarlyRead,$s.Write,$s.MixedReadWrite,$s.Read],Ua.\u0275prov=V({token:Ua,providedIn:"root",factory:()=>new Ua});var av=Ua,sv=class{constructor(e,r,t,n){this.impl=e,this.hooks=r,this.once=t,this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.unregisterOnDestroy=n?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}};function Oc(i,e){!e?.injector&&Fv(Oc);let r=e?.injector??k(Pe);return BS(r)?(So("NgAfterRender"),LE(i,r,e,!1)):VE}function ai(i,e){!e?.injector&&Fv(ai);let r=e?.injector??k(Pe);return BS(r)?(So("NgAfterNextRender"),LE(i,r,e,!0)):VE}function KV(i,e){if(i instanceof Function){let r=[void 0,void 0,void 0,void 0];return r[e]=i,r}else return[i.earlyRead,i.write,i.mixedReadWrite,i.read]}function LE(i,e,r,t){let n=e.get(NE);n.impl??=e.get(av);let o=r?.phase??$s.MixedReadWrite,a=r?.manualCleanup!==!0?e.get(Kh):null,s=new sv(n.impl,KV(i,o),t,a);return n.impl.register(s),s}var VE={destroy(){}};function ie(i,e,r,t){let n=Ue(),o=aa();if(Nn(n,o,e)){let a=ii(),s=ol();TL(s,n,i,e,r,t)}return ie}function _b(i,e,r,t){return Nn(i,aa(),r)?e+$a(r)+t:xn}function ZV(i,e,r,t,n,o){let a=TN(),s=FE(i,a,r,n);return Hv(2),s?e+$a(r)+t+$a(n)+o:xn}function Qu(i,e){return i<<17|e<<2}function Ja(i){return i>>17&32767}function XV(i){return(i&2)==2}function JV(i,e){return i&131071|e<<17}function lv(i){return i|2}function il(i){return(i&131068)>>2}function h_(i,e){return i&-131069|e<<2}function ej(i){return(i&1)===1}function cv(i){return i|1}function tj(i,e,r,t,n,o){let a=o?e.classBindings:e.styleBindings,s=Ja(a),l=il(a);i[t]=r;let u=!1,f;if(Array.isArray(r)){let v=r;f=v[1],(f===null||Sc(v,f)>0)&&(u=!0)}else f=r;if(n)if(l!==0){let C=Ja(i[s+1]);i[t+1]=Qu(C,s),C!==0&&(i[C+1]=h_(i[C+1],t)),i[s+1]=JV(i[s+1],t)}else i[t+1]=Qu(s,0),s!==0&&(i[s+1]=h_(i[s+1],t)),s=t;else i[t+1]=Qu(l,0),s===0?s=t:i[l+1]=h_(i[l+1],t),l=t;u&&(i[t+1]=lv(i[t+1])),Jx(i,f,t,!0),Jx(i,f,t,!1),ij(e,f,i,t,o),a=Qu(s,l),o?e.classBindings=a:e.styleBindings=a}function ij(i,e,r,t,n){let o=n?i.residualClasses:i.residualStyles;o!=null&&typeof e=="string"&&Sc(o,e)>=0&&(r[t+1]=cv(r[t+1]))}function Jx(i,e,r,t){let n=i[r+1],o=e===null,a=t?Ja(n):il(n),s=!1;for(;a!==0&&(s===!1||o);){let l=i[a],u=i[a+1];nj(l,e)&&(s=!0,i[a+1]=t?cv(u):lv(u)),a=t?Ja(u):il(u)}s&&(i[r+1]=t?lv(n):cv(n))}function nj(i,e){return i===null||e==null||(Array.isArray(i)?i[1]:i)===e?!0:Array.isArray(i)&&typeof e=="string"?Sc(i,e)>=0:!1}var Co={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function oj(i){return i.substring(Co.key,Co.keyEnd)}function rj(i){return aj(i),jE(i,BE(i,0,Co.textEnd))}function jE(i,e){let r=Co.textEnd;return r===e?-1:(e=Co.keyEnd=sj(i,Co.key=e,r),BE(i,e,r))}function aj(i){Co.key=0,Co.keyEnd=0,Co.value=0,Co.valueEnd=0,Co.textEnd=i.length}function BE(i,e,r){for(;e32;)e++;return e}function p(i,e,r){let t=Ue(),n=aa();if(Nn(t,n,e)){let o=ii(),a=ol();Tc(o,a,t,i,e,t[ri],r,!1)}return p}function dv(i,e,r,t,n){let o=e.inputs,a=n?"class":"style";cb(i,r,o[a],a,t)}function ji(i,e,r){return UE(i,e,r,!1),ji}function ne(i,e){return UE(i,e,null,!0),ne}function Yt(i){HE(mj,zE,i,!0)}function zE(i,e){for(let r=rj(e);r>=0;r=jE(e,r))Vh(i,oj(e),!0)}function UE(i,e,r,t){let n=Ue(),o=ii(),a=Hv(2);if(o.firstUpdatePass&&WE(o,i,a,t),e!==xn&&Nn(n,a,e)){let s=o.data[br()];GE(o,s,n,n[ri],i,n[a+1]=fj(e,r),t,a)}}function HE(i,e,r,t){let n=ii(),o=Hv(2);n.firstUpdatePass&&WE(n,null,o,t);let a=Ue();if(r!==xn&&Nn(a,o,r)){let s=n.data[br()];if(qE(s,t)&&!$E(n,o)){let l=t?s.classesWithoutHost:s.stylesWithoutHost;l!==null&&(r=__(l,r||"")),dv(n,s,a,r,t)}else pj(n,s,a,a[ri],a[o+1],a[o+1]=hj(i,e,r),t,o)}}function $E(i,e){return e>=i.expandoStartIndex}function WE(i,e,r,t){let n=i.data;if(n[r+1]===null){let o=n[br()],a=$E(i,r);qE(o,t)&&e===null&&!a&&(e=!1),e=lj(n,o,e,t),tj(n,o,e,r,a,t)}}function lj(i,e,r,t){let n=$v(i),o=t?e.residualClasses:e.residualStyles;if(n===null)(t?e.classBindings:e.styleBindings)===0&&(r=m_(null,i,e,r,t),r=xc(r,e.attrs,t),o=null);else{let a=e.directiveStylingLast;if(a===-1||i[a]!==n)if(r=m_(n,i,e,r,t),o===null){let l=cj(i,e,t);l!==void 0&&Array.isArray(l)&&(l=m_(null,i,e,l[1],t),l=xc(l,e.attrs,t),dj(i,e,t,l))}else o=uj(i,e,t)}return o!==void 0&&(t?e.residualClasses=o:e.residualStyles=o),r}function cj(i,e,r){let t=r?e.classBindings:e.styleBindings;if(il(t)!==0)return i[Ja(t)]}function dj(i,e,r,t){let n=r?e.classBindings:e.styleBindings;i[Ja(n)]=t}function uj(i,e,r){let t,n=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0;){let l=i[n],u=Array.isArray(l),f=u?l[1]:l,v=f===null,C=r[n+1];C===xn&&(C=v?un:void 0);let D=v?o_(C,t):f===t?C:void 0;if(u&&!Th(D)&&(D=o_(l,t)),Th(D)&&(s=D,a))return s;let S=i[n+1];n=a?Ja(S):il(S)}if(e!==null){let l=o?e.residualClasses:e.residualStyles;l!=null&&(s=o_(l,t))}return s}function Th(i){return i!==void 0}function fj(i,e){return i==null||i===""||(typeof e=="string"?i=i+e:typeof i=="object"&&(i=hn(ro(i)))),i}function qE(i,e){return(i.flags&(e?8:16))!==0}function YE(i,e,r){let t=Ue(),n=_b(t,i,e,r);HE(Vh,zE,n,!0)}var uv=class{destroy(e){}updateValue(e,r){}swap(e,r){let t=Math.min(e,r),n=Math.max(e,r),o=this.detach(n);if(n-t>1){let a=this.detach(t);this.attach(t,o),this.attach(n,a)}else this.attach(t,o)}move(e,r){this.attach(r,this.detach(e))}};function p_(i,e,r,t,n){return i===r&&Object.is(e,t)?1:Object.is(n(i,e),n(r,t))?-1:0}function gj(i,e,r){let t,n,o=0,a=i.length-1,s=void 0;if(Array.isArray(e)){let l=e.length-1;for(;o<=a&&o<=l;){let u=i.at(o),f=e[o],v=p_(o,u,o,f,r);if(v!==0){v<0&&i.updateValue(o,f),o++;continue}let C=i.at(a),D=e[l],S=p_(a,C,l,D,r);if(S!==0){S<0&&i.updateValue(a,D),a--,l--;continue}let P=r(o,u),z=r(a,C),O=r(o,f);if(Object.is(O,z)){let de=r(l,D);Object.is(de,P)?(i.swap(o,a),i.updateValue(a,D),l--,a--):i.move(a,o),i.updateValue(o,f),o++;continue}if(t??=new kh,n??=iD(i,o,a,r),hv(i,t,o,O))i.updateValue(o,f),o++,a++;else if(n.has(O))t.set(P,i.detach(o)),a--;else{let de=i.create(o,e[o]);i.attach(o,de),o++,a++}}for(;o<=l;)tD(i,t,r,o,e[o]),o++}else if(e!=null){let l=e[Symbol.iterator](),u=l.next();for(;!u.done&&o<=a;){let f=i.at(o),v=u.value,C=p_(o,f,o,v,r);if(C!==0)C<0&&i.updateValue(o,v),o++,u=l.next();else{t??=new kh,n??=iD(i,o,a,r);let D=r(o,v);if(hv(i,t,o,D))i.updateValue(o,v),o++,a++,u=l.next();else if(!n.has(D))i.attach(o,i.create(o,v)),o++,a++,u=l.next();else{let S=r(o,f);t.set(S,i.detach(o)),a--}}}for(;!u.done;)tD(i,t,r,i.length,u.value),u=l.next()}for(;o<=a;)i.destroy(i.detach(a--));t?.forEach(l=>{i.destroy(l)})}function hv(i,e,r,t){return e!==void 0&&e.has(t)?(i.attach(r,e.get(t)),e.delete(t),!0):!1}function tD(i,e,r,t,n){if(hv(i,e,t,r(t,n)))i.updateValue(t,n);else{let o=i.create(t,n);i.attach(t,o)}}function iD(i,e,r,t){let n=new Set;for(let o=e;o<=r;o++)n.add(t(o,i.at(o)));return n}var kh=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let r=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(r)?(this.kvMap.set(e,this._vMap.get(r)),this._vMap.delete(r)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,r){if(this.kvMap.has(e)){let t=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let n=this._vMap;for(;n.has(t);)t=n.get(t);n.set(t,r)}else this.kvMap.set(e,r)}forEach(e){for(let[r,t]of this.kvMap)if(e(t,r),this._vMap!==void 0){let n=this._vMap;for(;n.has(t);)t=n.get(t),e(t,r)}}};function De(i,e){So("NgControlFlow");let r=Ue(),t=aa(),n=r[t]!==xn?r[t]:-1,o=n!==-1?Ah(r,Li+n):void 0,a=0;if(Nn(r,t,i)){let s=yt(null);try{if(o!==void 0&&mE(o,a),i!==-1){let l=Li+i,u=Ah(r,l),f=gv(r[at],l),v=Js(u,f.tView.ssrId),C=kc(r,f,e,{dehydratedView:v});Ac(u,C,a,Xs(f,v))}}finally{yt(s)}}else if(o!==void 0){let s=hE(o,a);s!==void 0&&(s[tn]=e)}}var mv=class{constructor(e,r,t){this.lContainer=e,this.$implicit=r,this.$index=t}get $count(){return this.lContainer.length-nn}};function Rc(i,e){return e}var pv=class{constructor(e,r,t){this.hasEmptyBlock=e,this.trackByFn=r,this.liveCollection=t}};function Sr(i,e,r,t,n,o,a,s,l,u,f,v,C){So("NgControlFlow");let D=Ue(),S=ii(),P=l!==void 0,z=Ue(),O=s?a.bind(z[Fn][tn]):a,de=new pv(P,O);z[Li+i]=de,Mh(D,S,i+1,e,r,t,n,ta(S.consts,o)),P&&Mh(D,S,i+2,l,u,f,v,ta(S.consts,C))}var fv=class extends uv{constructor(e,r,t){super(),this.lContainer=e,this.hostLView=r,this.templateTNode=t,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-nn}at(e){return this.getLView(e)[tn].$implicit}attach(e,r){let t=r[Qs];this.needsIndexUpdate||=e!==this.length,Ac(this.lContainer,r,e,Xs(this.templateTNode,t))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,_j(this.lContainer,e)}create(e,r){let t=Js(this.lContainer,this.templateTNode.tView.ssrId),n=kc(this.hostLView,this.templateTNode,new mv(this.lContainer,r,e),{dehydratedView:t});return this.operationsCounter?.recordCreate(),n}destroy(e){em(e[at],e),this.operationsCounter?.recordDestroy()}updateValue(e,r){this.getLView(e)[tn].$implicit=r}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e(Yh(!0),zS(t,n,LN()));function wj(i,e,r,t,n){let o=e.consts,a=ta(o,t),s=sl(e,i,8,"ng-container",a);a!==null&&Ch(s,a,!0);let l=ta(o,n);return lb(e,r,s,l),e.queries!==null&&e.queries.elementStart(e,s),s}function mt(i,e,r){let t=Ue(),n=ii(),o=i+Li,a=n.firstCreatePass?wj(o,n,t,e,r):n.data[o];es(a,!0);let s=Cj(n,t,a,i);return t[o]=s,qh()&&tm(n,t,s,a),ia(s,t),Hh(a)&&(rb(n,t,a),ob(n,a,t)),r!=null&&ab(t,a),mt}function pt(){let i=Vi(),e=ii();return zv()?Uv():(i=i.parent,es(i,!1)),e.firstCreatePass&&(Qh(e,i),Lv(i)&&e.queries.elementEnd(i)),pt}function Ci(i,e,r){return mt(i,e,r),pt(),Ci}var Cj=(i,e,r,t)=>(Yh(!0),G2(e[ri],""));function A(){return Ue()}function Si(i,e,r){let t=Ue(),n=aa();if(Nn(t,n,e)){let o=ii(),a=ol();Tc(o,a,t,i,e,t[ri],r,!0)}return Si}function Pc(i,e,r){let t=Ue(),n=aa();if(Nn(t,n,e)){let o=ii(),a=ol(),s=$v(o.data),l=cE(s,a,t);Tc(o,a,t,i,e,l,r,!0)}return Pc}var Oh="en-US";var xj=Oh;function Dj(i){typeof i=="string"&&(xj=i.toLowerCase().replace(/_/g,"-"))}var Sj=(i,e,r)=>{};function b(i,e,r,t){let n=Ue(),o=ii(),a=Vi();return vb(o,n,n[ri],a,i,e,t),b}function Fc(i,e){let r=Vi(),t=Ue(),n=ii(),o=$v(n.data),a=cE(o,r,t);return vb(n,t,a,r,i,e),Fc}function Ej(i,e,r,t){let n=i.cleanup;if(n!=null)for(let o=0;ol?s[l]:null}typeof a=="string"&&(o+=2)}return null}function vb(i,e,r,t,n,o,a){let s=Hh(t),u=i.firstCreatePass&&lE(i),f=e[tn],v=sE(e),C=!0;if(t.type&3||a){let P=no(t,e),z=a?a(P):P,O=v.length,de=a?it=>a(qo(it[t.index])):t.index,ht=null;if(!a&&s&&(ht=Ej(i,e,n,t.index)),ht!==null){let it=ht.__ngLastListenerFn__||ht;it.__ngNextListenerFn__=o,ht.__ngLastListenerFn__=o,C=!1}else{o=oD(t,e,f,o),Sj(P,n,o);let it=r.listen(z,n,o);v.push(o,it),u&&u.push(n,de,O,O+1)}}else o=oD(t,e,f,o);let D=t.outputs,S;if(C&&D!==null&&(S=D[n])){let P=S.length;if(P)for(let z=0;z-1?ra(i.index,e):e;ub(a,5);let s=nD(e,r,t,o),l=n.__ngNextListenerFn__;for(;l;)s=nD(e,r,l,o)&&s,l=l.__ngNextListenerFn__;return s}}function _(i=1){return FN(i)}function Ij(i,e){let r=null,t=$F(i);for(let n=0;n=i.data.length&&(i.data[r]=null,i.blueprint[r]=null),e[r]=t}function we(i){let e=MN();return jv(e,Li+i)}function g(i,e=""){let r=Ue(),t=ii(),n=i+Li,o=t.firstCreatePass?sl(t,n,1,e,null):t.data[n],a=kj(t,r,o,e,i);r[n]=a,qh()&&tm(t,r,a,o),es(o,!1)}var kj=(i,e,r,t,n)=>(Yh(!0),$2(e[ri],t));function $e(i){return F("",i,""),$e}function F(i,e,r){let t=Ue(),n=_b(t,i,e,r);return n!==xn&&uE(t,br(),n),F}function Ir(i,e,r,t,n){let o=Ue(),a=ZV(o,i,e,r,t,n);return a!==xn&&uE(o,br(),a),Ir}function U(i,e,r){TE(e)&&(e=e());let t=Ue(),n=aa();if(Nn(t,n,e)){let o=ii(),a=ol();Tc(o,a,t,i,e,t[ri],r,!1)}return U}function $(i,e){let r=TE(i);return r&&i.set(e),r}function H(i,e){let r=Ue(),t=ii(),n=Vi();return vb(t,r,r[ri],n,i,e),H}function Aj(i,e,r){let t=ii();if(t.firstCreatePass){let n=gr(i);_v(r,t.data,t.blueprint,n,!0),_v(e,t.data,t.blueprint,n,!1)}}function _v(i,e,r,t,n){if(i=Gi(i),Array.isArray(i))for(let o=0;o>20;if(Ys(i)||!i.multi){let D=new Ka(u,n,m),S=g_(l,e,n?f:f+C,v);S===-1?(A_(fh(s,a),o,l),f_(o,i,e.length),e.push(l),s.directiveStart++,s.directiveEnd++,n&&(s.providerIndexes+=1048576),r.push(D),a.push(D)):(r[S]=D,a[S]=D)}else{let D=g_(l,e,f+C,v),S=g_(l,e,f,f+C),P=D>=0&&r[D],z=S>=0&&r[S];if(n&&!z||!n&&!P){A_(fh(s,a),o,l);let O=Pj(n?Rj:Oj,r.length,n,t,u);!n&&z&&(r[S].providerFactory=O),f_(o,i,e.length,0),e.push(l),s.directiveStart++,s.directiveEnd++,n&&(s.providerIndexes+=1048576),r.push(O),a.push(O)}else{let O=XE(r[n?S:D],u,!n&&t);f_(o,i,D>-1?D:S,O)}!n&&t&&z&&r[S].componentProviders++}}}function f_(i,e,r,t){let n=Ys(e),o=oN(e);if(n||o){let l=(o?Gi(e.useClass):e).prototype.ngOnDestroy;if(l){let u=i.destroyHooks||(i.destroyHooks=[]);if(!n&&e.multi){let f=u.indexOf(r);f===-1?u.push(r,[t,l]):u[f+1].push(t,l)}else u.push(r,l)}}}function XE(i,e,r){return r&&i.componentProviders++,i.multi.push(e)-1}function g_(i,e,r,t){for(let n=r;n{r.providersResolver=(t,n)=>Aj(t,n?n(i):i,e)}}var Fj=(()=>{let e=class e{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t)){let n=AD(!1,t.type),o=n.length>0?sm([n],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t,o)}return this.cachedInjectors.get(t)}ngOnDestroy(){try{for(let t of this.cachedInjectors.values())t!==null&&t.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=V({token:e,providedIn:"environment",factory:()=>new e(M(qi))});let i=e;return i})();function re(i){So("NgStandalone"),i.getStandaloneInjector=e=>e.get(Fj).getOrCreateStandaloneInjector(i)}function JE(i,e,r){let t=i.\u0275cmp;t.directiveDefs=lh(e,!1),t.pipeDefs=lh(r,!0)}function ll(i,e,r){let t=Ec()+i,n=Ue();return n[t]===xn?gb(n,t,r?e.call(r):e()):WV(n,t)}function Bi(i,e,r,t){return tI(Ue(),Ec(),i,e,r,t)}function cl(i,e,r,t,n){return iI(Ue(),Ec(),i,e,r,t,n)}function eI(i,e){let r=i[e];return r===xn?void 0:r}function tI(i,e,r,t,n,o){let a=e+r;return Nn(i,a,n)?gb(i,a+1,o?t.call(o,n):t(n)):eI(i,a+1)}function iI(i,e,r,t,n,o,a){let s=e+r;return FE(i,s,n,o)?gb(i,s+2,a?t.call(a,n,o):t(n,o)):eI(i,s+2)}function _t(i,e){let r=ii(),t,n=i+Li;r.firstCreatePass?(t=Nj(e,r.pipeRegistry),r.data[n]=t,t.onDestroy&&(r.destroyHooks??=[]).push(n,t.onDestroy)):t=r.data[n];let o=t.factory||(t.factory=Wa(t.type,!0)),a,s=bn(m);try{let l=ph(!1),u=o();return ph(l),Tj(r,Ue(),n,u),u}finally{bn(s)}}function Nj(i,e){if(e)for(let r=e.length-1;r>=0;r--){let t=e[r];if(i===t.name)return t}}function Dt(i,e,r){let t=i+Li,n=Ue(),o=jv(n,t);return nI(n,t)?tI(n,Ec(),e,o.transform,r,o):o.transform(r)}function bb(i,e,r,t){let n=i+Li,o=Ue(),a=jv(o,n);return nI(o,n)?iI(o,Ec(),e,a.transform,r,t,a):a.transform(r,t)}function nI(i,e){return i[at].data[e].pure}function fi(i,e){return rm(i,e)}var Ku=null;function Lj(i){Ku!==null&&(i.defaultEncapsulation!==Ku.defaultEncapsulation||i.preserveWhitespaces!==Ku.preserveWhitespaces)||(Ku=i)}var lm=(()=>{let e=class e{log(t){console.log(t)}warn(t){console.warn(t)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"platform"});let i=e;return i})();var yb=new R(""),Nc=new R(""),cm=(()=>{let e=class e{constructor(t,n,o){this._ngZone=t,this.registry=n,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,wb||(Vj(o),o.addToWindow(n)),this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Z.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb()}});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(n=>n.updateCb&&n.updateCb(t)?(clearTimeout(n.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,n,o){let a=-1;n&&n>0&&(a=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==a),t()},n)),this._callbacks.push({doneCb:t,timeoutId:a,updateCb:o})}whenStable(t,n,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,n,o),this._runCallbacksIfReady()}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,n,o){return[]}};e.\u0275fac=function(n){return new(n||e)(M(Z),M(dm),M(Nc))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),dm=(()=>{let e=class e{constructor(){this._applications=new Map}registerApplication(t,n){this._applications.set(t,n)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,n=!0){return wb?.findTestabilityInTree(this,t,n)??null}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"platform"});let i=e;return i})();function Vj(i){wb=i}var wb;function la(i){return!!i&&typeof i.then=="function"}function Cb(i){return!!i&&typeof i.subscribe=="function"}var um=new R(""),oI=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,n)=>{this.resolve=t,this.reject=n}),this.appInits=k(um,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let t=[];for(let o of this.appInits){let a=o();if(la(a))t.push(a);else if(Cb(a)){let s=new Promise((l,u)=>{a.subscribe({complete:l,error:u})});t.push(s)}}let n=()=>{this.done=!0,this.resolve()};Promise.all(t).then(()=>{n()}).catch(o=>{this.reject(o)}),t.length===0&&n(),this.initialized=!0}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),hm=new R("");function jj(){VC(()=>{throw new J(600,!1)})}function Bj(i){return i.isBoundToModule}var zj=10;function Uj(i,e,r){try{let t=r();return la(t)?t.catch(n=>{throw e.runOutsideAngular(()=>i.handleError(n)),n}):t}catch(t){throw e.runOutsideAngular(()=>i.handleError(t)),t}}function rI(i,e){return Array.isArray(e)?e.reduce(rI,i):j(j({},i),e)}var Ln=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=k(l2),this.afterRenderManager=k(NE),this.zonelessEnabled=k(hb),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new G,this.afterTick=new G,this.componentTypes=[],this.components=[],this.isStable=k(Zo).hasPendingTasks.pipe(ue(t=>!t)),this._injector=k(qi)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let t;return new Promise(n=>{t=this.isStable.subscribe({next:o=>{o&&n()}})}).finally(()=>{t.unsubscribe()})}get injector(){return this._injector}bootstrap(t,n){let o=t instanceof wh;if(!this._injector.get(oI).done){let D=!o&&ID(t),S=!1;throw new J(405,S)}let s;o?s=t:s=this._injector.get(wn).resolveComponentFactory(t),this.componentTypes.push(s.componentType);let l=Bj(s)?void 0:this._injector.get(oa),u=n||s.selector,f=s.create(Pe.NULL,[],u,l),v=f.location.nativeElement,C=f.injector.get(yb,null);return C?.registerApplication(v),f.onDestroy(()=>{this.detachView(f.hostView),nh(this.components,f),C?.unregisterApplication(v)}),this._loadComponent(f),f}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new J(101,!1);let t=yt(null);try{this._runningTick=!0,this.synchronize()}catch(n){this.internalErrorHandler(n)}finally{this._runningTick=!1,yt(t),this.afterTick.next()}}synchronize(){let t=null;this._injector.destroyed||(t=this._injector.get(na,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let n=0;for(;this.dirtyFlags!==0&&n++$h(t))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(t){let n=t;this._views.push(n),n.attachToAppRef(this)}detachView(t){let n=t;nh(this._views,n),n.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t);let n=this._injector.get(hm,[]);[...this._bootstrapListeners,...n].forEach(o=>o(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>nh(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new J(406,!1);let t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function nh(i,e){let r=i.indexOf(e);r>-1&&i.splice(r,1)}function Hj(i,e,r,t){if(!r&&!$h(i))return;gE(i,e,r&&!t?0:1)}var bv=class{constructor(e,r){this.ngModuleFactory=e,this.componentFactories=r}},mm=(()=>{let e=class e{compileModuleSync(t){return new Ih(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){let n=this.compileModuleSync(t),o=MD(t),a=jS(o.declarations).reduce((s,l)=>{let u=ea(l);return u&&s.push(new tl(u)),s},[]);return new bv(n,a)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),$j=new R("");function Wj(i,e,r){let t=new Ih(r);return Promise.resolve(t)}function rD(i){for(let e=i.length-1;e>=0;e--)if(i[e]!==void 0)return i[e]}var Gj=(()=>{let e=class e{constructor(){this.zone=k(Z),this.changeDetectionScheduler=k(el),this.applicationRef=k(Ln)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function qj({ngZoneFactory:i,ignoreChangesOutsideZone:e,scheduleInRootZone:r}){return i??=()=>new Z(rt(j({},aI()),{scheduleInRootZone:r})),[{provide:Z,useFactory:i},{provide:qs,multi:!0,useFactory:()=>{let t=k(Gj,{optional:!0});return()=>t.initialize()}},{provide:qs,multi:!0,useFactory:()=>{let t=k(Yj);return()=>{t.initialize()}}},e===!0?{provide:yE,useValue:!0}:[],{provide:wE,useValue:r??pS}]}function aI(i){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:i?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:i?.runCoalescing??!1}}var Yj=(()=>{let e=class e{constructor(){this.subscription=new ve,this.initialized=!1,this.zone=k(Z),this.pendingTasks=k(Zo)}initialize(){if(this.initialized)return;this.initialized=!0;let t=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(t=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Z.assertNotInAngularZone(),queueMicrotask(()=>{t!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(t),t=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Z.assertInAngularZone(),t??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var Qj=(()=>{let e=class e{constructor(){this.appRef=k(Ln),this.taskService=k(Zo),this.ngZone=k(Z),this.zonelessEnabled=k(hb),this.disableScheduling=k(yE,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new ve,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(_h):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(k(wE,{optional:!0})??!1),this.cancelScheduledCallback=null,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof vh||!this.zoneIsDefined)}notify(t){if(!this.zonelessEnabled&&t===5)return;switch(t){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 7:{this.appRef.deferredDirtyFlags|=8;break}case 9:case 8:case 6:case 10:default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;let n=this.useMicrotaskScheduler?Rx:fS;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>n(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>n(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(_h+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let t=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(n){throw this.taskService.remove(t),n}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Rx(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(t)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let t=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(t)}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function Kj(){return typeof $localize<"u"&&$localize.locale||Oh}var Lc=new R("",{providedIn:"root",factory:()=>k(Lc,gt.Optional|gt.SkipSelf)||Kj()});var Rh=new R("");function Zu(i){return!i.moduleRef}function Zj(i){let e=Zu(i)?i.r3Injector:i.moduleRef.injector,r=e.get(Z);return r.run(()=>{Zu(i)?i.r3Injector.resolveInjectorInitializers():i.moduleRef.resolveInjectorInitializers();let t=e.get(yn,null),n;if(r.runOutsideAngular(()=>{n=r.onError.subscribe({next:o=>{t.handleError(o)}})}),Zu(i)){let o=()=>e.destroy(),a=i.platformInjector.get(Rh);a.add(o),e.onDestroy(()=>{n.unsubscribe(),a.delete(o)})}else{let o=()=>i.moduleRef.destroy(),a=i.platformInjector.get(Rh);a.add(o),i.moduleRef.onDestroy(()=>{nh(i.allPlatformModules,i.moduleRef),n.unsubscribe(),a.delete(o)})}return Uj(t,r,()=>{let o=e.get(oI);return o.runInitializers(),o.donePromise.then(()=>{let a=e.get(Lc,Oh);if(Dj(a||Oh),Zu(i)){let s=e.get(Ln);return i.rootComponent!==void 0&&s.bootstrap(i.rootComponent),s}else return Xj(i.moduleRef,i.allPlatformModules),i.moduleRef})})})}function Xj(i,e){let r=i.injector.get(Ln);if(i._bootstrapComponents.length>0)i._bootstrapComponents.forEach(t=>r.bootstrap(t));else if(i.instance.ngDoBootstrap)i.instance.ngDoBootstrap(r);else throw new J(-403,!1);e.push(i)}var sI=(()=>{let e=class e{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,n){let o=n?.scheduleInRootZone,a=()=>s2(n?.ngZone,rt(j({},aI({eventCoalescing:n?.ngZoneEventCoalescing,runCoalescing:n?.ngZoneRunCoalescing})),{scheduleInRootZone:o})),s=n?.ignoreChangesOutsideZone,l=[qj({ngZoneFactory:a,ignoreChangesOutsideZone:s}),{provide:el,useExisting:Qj}],u=HV(t.moduleType,this.injector,l);return Zj({moduleRef:u,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(t,n=[]){let o=rI({},n);return Wj(this.injector,o,t).then(a=>this.bootstrapModuleFactory(a,o))}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new J(404,!1);this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());let t=this._injector.get(Rh,null);t&&(t.forEach(n=>n()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}};e.\u0275fac=function(n){return new(n||e)(M(Pe))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"platform"});let i=e;return i})(),gc=null,lI=new R("");function Jj(i){if(gc&&!gc.get(lI,!1))throw new J(400,!1);jj(),gc=i;let e=i.get(sI);return i3(i),e}function xb(i,e,r=[]){let t=`Platform: ${e}`,n=new R(t);return(o=[])=>{let a=cI();if(!a||a.injector.get(lI,!1)){let s=[...r,...o,{provide:n,useValue:!0}];i?i(s):Jj(e3(s,t))}return t3(n)}}function e3(i=[],e){return Pe.create({name:e,providers:[{provide:Bh,useValue:"platform"},{provide:Rh,useValue:new Set([()=>gc=null])},...i]})}function t3(i){let e=cI();if(!e)throw new J(401,!1);return e}function cI(){return gc?.get(sI)??null}function i3(i){i.get(Zv,null)?.forEach(r=>r())}var he=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=n3;let i=e;return i})();function n3(i){return o3(Vi(),Ue(),(i&16)===16)}function o3(i,e,r){if(Uh(i)&&!r){let t=ra(i.index,e);return new Xa(t,t)}else if(i.type&175){let t=e[Fn];return new Xa(t,e)}return null}var yv=class{constructor(){}supports(e){return PE(e)}create(e){return new wv(e)}},r3=(i,e)=>e,wv=class{constructor(e){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||r3}forEachItem(e){let r;for(r=this._itHead;r!==null;r=r._next)e(r)}forEachOperation(e){let r=this._itHead,t=this._removalsHead,n=0,o=null;for(;r||t;){let a=!t||r&&r.currentIndex{a=this._trackByFn(n,s),r===null||!Object.is(r.trackById,a)?(r=this._mismatch(r,s,a,n),t=!0):(t&&(r=this._verifyReinsertion(r,s,a,n)),Object.is(r.item,s)||this._addIdentityChange(r,s)),r=r._next,n++}),this.length=n;return this._truncate(r),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,r,t,n){let o;return e===null?o=this._itTail:(o=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(t,null),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._reinsertAfter(e,o,n)):(e=this._linkedRecords===null?null:this._linkedRecords.get(t,n),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._moveAfter(e,o,n)):e=this._addAfter(new Cv(r,t),o,n)),e}_verifyReinsertion(e,r,t,n){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(t,null);return o!==null?e=this._reinsertAfter(o,e._prev,n):e.currentIndex!=n&&(e.currentIndex=n,this._addToMoves(e,n)),e}_truncate(e){for(;e!==null;){let r=e._next;this._addToRemovals(this._unlink(e)),e=r}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,r,t){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let n=e._prevRemoved,o=e._nextRemoved;return n===null?this._removalsHead=o:n._nextRemoved=o,o===null?this._removalsTail=n:o._prevRemoved=n,this._insertAfter(e,r,t),this._addToMoves(e,t),e}_moveAfter(e,r,t){return this._unlink(e),this._insertAfter(e,r,t),this._addToMoves(e,t),e}_addAfter(e,r,t){return this._insertAfter(e,r,t),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,r,t){let n=r===null?this._itHead:r._next;return e._next=n,e._prev=r,n===null?this._itTail=e:n._prev=e,r===null?this._itHead=e:r._next=e,this._linkedRecords===null&&(this._linkedRecords=new Ph),this._linkedRecords.put(e),e.currentIndex=t,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let r=e._prev,t=e._next;return r===null?this._itHead=t:r._next=t,t===null?this._itTail=r:t._prev=r,e}_addToMoves(e,r){return e.previousIndex===r||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Ph),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,r){return e.item=r,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},Cv=class{constructor(e,r){this.item=e,this.trackById=r,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},xv=class{constructor(){this._head=null,this._tail=null}add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,r){let t;for(t=this._head;t!==null;t=t._nextDup)if((r===null||r<=t.currentIndex)&&Object.is(t.trackById,e))return t;return null}remove(e){let r=e._prevDup,t=e._nextDup;return r===null?this._head=t:r._nextDup=t,t===null?this._tail=r:t._prevDup=r,this._head===null}},Ph=class{constructor(){this.map=new Map}put(e){let r=e.trackById,t=this.map.get(r);t||(t=new xv,this.map.set(r,t)),t.add(e)}get(e,r){let t=e,n=this.map.get(t);return n?n.get(e,r):null}remove(e){let r=e.trackById;return this.map.get(r).remove(e)&&this.map.delete(r),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function aD(i,e,r){let t=i.previousIndex;if(t===null)return t;let n=0;return r&&t{if(r&&r.key===n)this._maybeAddToChanges(r,t),this._appendAfter=r,r=r._next;else{let o=this._getOrCreateRecordForKey(n,t);r=this._insertBeforeOrAppend(r,o)}}),r){r._prev&&(r._prev._next=null),this._removalsHead=r;for(let t=r;t!==null;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,r){if(e){let t=e._prev;return r._next=e,r._prev=t,e._prev=r,t&&(t._next=r),e===this._mapHead&&(this._mapHead=r),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=r,r._prev=this._appendAfter):this._mapHead=r,this._appendAfter=r,null}_getOrCreateRecordForKey(e,r){if(this._records.has(e)){let n=this._records.get(e);this._maybeAddToChanges(n,r);let o=n._prev,a=n._next;return o&&(o._next=a),a&&(a._prev=o),n._next=null,n._prev=null,n}let t=new Ev(e);return this._records.set(e,t),t.currentValue=r,this._addToAdditions(t),t}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;e!==null;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;e!=null;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,r){Object.is(r,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=r,this._addToChanges(e))}_addToAdditions(e){this._additionsHead===null?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){this._changesHead===null?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,r){e instanceof Map?e.forEach(r):Object.keys(e).forEach(t=>r(e[t],t))}},Ev=class{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}};function sD(){return new Xo([new yv])}var Xo=(()=>{let e=class e{constructor(t){this.factories=t}static create(t,n){if(n!=null){let o=n.factories.slice();t=t.concat(o)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>e.create(t,n||sD()),deps:[[e,new Do,new to]]}}find(t){let n=this.factories.find(o=>o.supports(t));if(n!=null)return n;throw new J(901,!1)}};e.\u0275prov=V({token:e,providedIn:"root",factory:sD});let i=e;return i})();function lD(){return new pm([new Dv])}var pm=(()=>{let e=class e{constructor(t){this.factories=t}static create(t,n){if(n){let o=n.factories.slice();t=t.concat(o)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>e.create(t,n||lD()),deps:[[e,new Do,new to]]}}find(t){let n=this.factories.find(o=>o.supports(t));if(n)return n;throw new J(901,!1)}};e.\u0275prov=V({token:e,providedIn:"root",factory:lD});let i=e;return i})();var dI=xb(null,"core",[]),uI=(()=>{let e=class e{constructor(t){}};e.\u0275fac=function(n){return new(n||e)(M(Ln))},e.\u0275mod=te({type:e}),e.\u0275inj=ee({});let i=e;return i})();function Y(i){return typeof i=="boolean"?i:i!=null&&i!=="false"}function ni(i,e=NaN){return!isNaN(parseFloat(i))&&!isNaN(Number(i))?Number(i):e}function Mr(i,e){So("NgSignals");let r=Fg(i);return e?.equal&&(r[Kn].equal=e.equal),r}function Dn(i){let e=yt(null);try{return i()}finally{yt(e)}}var a3=new R("",{providedIn:"root",factory:()=>k(s3)}),s3=(()=>{let e=class e{};e.\u0275prov=V({token:e,providedIn:"root",factory:()=>new Iv});let i=e;return i})(),Iv=class{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=k(Zo),this.taskId=null}scheduleEffect(e){if(this.enqueue(e),this.taskId===null){let r=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(r),this.taskId=null})}}enqueue(e){let r=e.creationZone;this.queues.has(r)||this.queues.set(r,new Set);let t=this.queues.get(r);t.has(e)||(this.queuedEffectCount++,t.add(e))}flush(){for(;this.queuedEffectCount>0;)for(let[e,r]of this.queues)e===null?this.flushQueue(r):e.run(()=>this.flushQueue(r))}flushQueue(e){for(let r of e)e.delete(r),this.queuedEffectCount--,r.run()}},Mv=class{constructor(e,r,t,n,o,a){this.scheduler=e,this.effectFn=r,this.creationZone=t,this.injector=o,this.watcher=UC(s=>this.runEffect(s),()=>this.schedule(),a),this.unregisterOnDestroy=n?.onDestroy(()=>this.destroy())}runEffect(e){try{this.effectFn(e)}catch(r){this.injector.get(yn,null,{optional:!0})?.handleError(r)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}};function Db(i,e){So("NgSignals"),!e?.injector&&Fv(Db);let r=e?.injector??k(Pe),t=e?.manualCleanup!==!0?r.get(Kh):null,n=new Mv(r.get(a3),i,typeof Zone>"u"?null:Zone.current,t,r,e?.allowSignalWrites??!1),o=r.get(he,null,{optional:!0});return!o||!(o._lView[Ze]&8)?n.watcher.notify():(o._lView[Ju]??=[]).push(n.watcher.notify),n}function hI(i){let e=ea(i);if(!e)return null;let r=new tl(e);return{get selector(){return r.selector},get type(){return r.componentType},get inputs(){return r.inputs},get outputs(){return r.outputs},get ngContentSelectors(){return r.ngContentSelectors},get isStandalone(){return e.standalone},get isSignal(){return e.signals}}}var bI=null;function Jo(){return bI}function yI(i){bI??=i}var fm=class{};var se=new R(""),Rb=(()=>{let e=class e{historyGo(t){throw new Error("")}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:()=>k(c3),providedIn:"platform"});let i=e;return i})(),wI=new R(""),c3=(()=>{let e=class e extends Rb{constructor(){super(),this._doc=k(se),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Jo().getBaseHref(this._doc)}onPopState(t){let n=Jo().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",t,!1),()=>n.removeEventListener("popstate",t)}onHashChange(t){let n=Jo().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",t,!1),()=>n.removeEventListener("hashchange",t)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(t){this._location.pathname=t}pushState(t,n,o){this._history.pushState(t,n,o)}replaceState(t,n,o){this._history.replaceState(t,n,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:()=>new e,providedIn:"platform"});let i=e;return i})();function Pb(i,e){if(i.length==0)return e;if(e.length==0)return i;let r=0;return i.endsWith("/")&&r++,e.startsWith("/")&&r++,r==2?i+e.substring(1):r==1?i+e:i+"/"+e}function mI(i){let e=i.match(/#|\?|$/),r=e&&e.index||i.length,t=r-(i[r-1]==="/"?1:0);return i.slice(0,t)+i.slice(r)}function Tr(i){return i&&i[0]!=="?"?"?"+i:i}var kr=(()=>{let e=class e{historyGo(t){throw new Error("")}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:()=>k(Fb),providedIn:"root"});let i=e;return i})(),CI=new R(""),Fb=(()=>{let e=class e extends kr{constructor(t,n){super(),this._platformLocation=t,this._removeListenerFns=[],this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??k(se).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return Pb(this._baseHref,t)}path(t=!1){let n=this._platformLocation.pathname+Tr(this._platformLocation.search),o=this._platformLocation.hash;return o&&t?`${n}${o}`:n}pushState(t,n,o,a){let s=this.prepareExternalUrl(o+Tr(a));this._platformLocation.pushState(t,n,s)}replaceState(t,n,o,a){let s=this.prepareExternalUrl(o+Tr(a));this._platformLocation.replaceState(t,n,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}};e.\u0275fac=function(n){return new(n||e)(M(Rb),M(CI,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),xI=(()=>{let e=class e extends kr{constructor(t,n){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],n!=null&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let n=this._platformLocation.hash??"#";return n.length>0?n.substring(1):n}prepareExternalUrl(t){let n=Pb(this._baseHref,t);return n.length>0?"#"+n:n}pushState(t,n,o,a){let s=this.prepareExternalUrl(o+Tr(a));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,n,s)}replaceState(t,n,o,a){let s=this.prepareExternalUrl(o+Tr(a));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,n,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}};e.\u0275fac=function(n){return new(n||e)(M(Rb),M(CI,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),er=(()=>{let e=class e{constructor(t){this._subject=new T,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=t;let n=this._locationStrategy.getBaseHref();this._basePath=h3(mI(pI(n))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,n=""){return this.path()==this.normalize(t+Tr(n))}normalize(t){return e.stripTrailingSlash(u3(this._basePath,pI(t)))}prepareExternalUrl(t){return t&&t[0]!=="/"&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,n="",o=null){this._locationStrategy.pushState(o,"",t,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Tr(n)),o)}replaceState(t,n="",o=null){this._locationStrategy.replaceState(o,"",t,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Tr(n)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription??=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)}),()=>{let n=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(n,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",n){this._urlChangeListeners.forEach(o=>o(t,n))}subscribe(t,n,o){return this._subject.subscribe({next:t,error:n,complete:o})}};e.normalizeQueryParams=Tr,e.joinWithSlash=Pb,e.stripTrailingSlash=mI,e.\u0275fac=function(n){return new(n||e)(M(kr))},e.\u0275prov=V({token:e,factory:()=>d3(),providedIn:"root"});let i=e;return i})();function d3(){return new er(M(kr))}function u3(i,e){if(!i||!e.startsWith(i))return e;let r=e.substring(i.length);return r===""||["/",";","?","#"].includes(r[0])?r:e}function pI(i){return i.replace(/\/index.html$/,"")}function h3(i){if(new RegExp("^(https?:)?//").test(i)){let[,r]=i.split(/\/\/[^\/]+/);return r}return i}function vm(i,e){e=encodeURIComponent(e);for(let r of i.split(";")){let t=r.indexOf("="),[n,o]=t==-1?[r,""]:[r.slice(0,t),r.slice(t+1)];if(n.trim()===e)return decodeURIComponent(o)}return null}var Eb=/\s+/,fI=[],Sn=(()=>{let e=class e{constructor(t,n){this._ngEl=t,this._renderer=n,this.initialClasses=fI,this.stateMap=new Map}set klass(t){this.initialClasses=t!=null?t.trim().split(Eb):fI}set ngClass(t){this.rawClass=typeof t=="string"?t.trim().split(Eb):t}ngDoCheck(){for(let n of this.initialClasses)this._updateState(n,!0);let t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(let n of t)this._updateState(n,!0);else if(t!=null)for(let n of Object.keys(t))this._updateState(n,!!t[n]);this._applyStateDiff()}_updateState(t,n){let o=this.stateMap.get(t);o!==void 0?(o.enabled!==n&&(o.changed=!0,o.enabled=n),o.touched=!0):this.stateMap.set(t,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(let t of this.stateMap){let n=t[0],o=t[1];o.changed?(this._toggleClass(n,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(n,!1),this.stateMap.delete(n)),o.touched=!1}}_toggleClass(t,n){t=t.trim(),t.length>0&&t.split(Eb).forEach(o=>{n?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}};e.\u0275fac=function(n){return new(n||e)(m(q),m(xr))},e.\u0275dir=L({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0});let i=e;return i})();var Ib=class{constructor(e,r,t,n){this.$implicit=e,this.ngForOf=r,this.index=t,this.count=n}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},We=(()=>{let e=class e{set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}constructor(t,n,o){this._viewContainer=t,this._template=n,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let t=this._ngForOf;if(!this._differ&&t)if(0)try{}catch{}else this._differ=this._differs.find(t).create(this.ngForTrackBy)}if(this._differ){let t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){let n=this._viewContainer;t.forEachOperation((o,a,s)=>{if(o.previousIndex==null)n.createEmbeddedView(this._template,new Ib(o.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)n.remove(a===null?void 0:a);else if(a!==null){let l=n.get(a);n.move(l,s),gI(l,o)}});for(let o=0,a=n.length;o{let a=n.get(o.currentIndex);gI(a,o)})}static ngTemplateContextGuard(t,n){return!0}};e.\u0275fac=function(n){return new(n||e)(m(Ct),m(dt),m(Xo))},e.\u0275dir=L({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let i=e;return i})();function gI(i,e){i.context.$implicit=e.item}var me=(()=>{let e=class e{constructor(t,n){this._viewContainer=t,this._context=new Mb,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){_I("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){_I("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,n){return!0}};e.\u0275fac=function(n){return new(n||e)(m(Ct),m(dt))},e.\u0275dir=L({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let i=e;return i})(),Mb=class{constructor(){this.$implicit=null,this.ngIf=null}};function _I(i,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${i} must be a TemplateRef, but received '${hn(e)}'.`)}var gm=class{constructor(e,r){this._viewContainerRef=e,this._templateRef=r,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}},ul=(()=>{let e=class e{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,this._caseCount===0&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews.push(t)}_matchCase(t){let n=t===this._ngSwitch;return this._lastCasesMatched||=n,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),n}_updateDefaultCases(t){if(this._defaultViews.length>0&&t!==this._defaultUsed){this._defaultUsed=t;for(let n of this._defaultViews)n.enforceState(t)}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0});let i=e;return i})(),bm=(()=>{let e=class e{constructor(t,n,o){this.ngSwitch=o,o._addCase(),this._view=new gm(t,n)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}};e.\u0275fac=function(n){return new(n||e)(m(Ct),m(dt),m(ul,9))},e.\u0275dir=L({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0});let i=e;return i})(),DI=(()=>{let e=class e{constructor(t,n,o){o._addDefault(new gm(t,n))}};e.\u0275fac=function(n){return new(n||e)(m(Ct),m(dt),m(ul,9))},e.\u0275dir=L({type:e,selectors:[["","ngSwitchDefault",""]],standalone:!0});let i=e;return i})();var SI=(()=>{let e=class e{constructor(t,n,o){this._ngEl=t,this._differs=n,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){let t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,n){let[o,a]=t.split("."),s=o.indexOf("-")===-1?void 0:Yo.DashCase;n!=null?this._renderer.setStyle(this._ngEl.nativeElement,o,a?`${n}${a}`:n,s):this._renderer.removeStyle(this._ngEl.nativeElement,o,s)}_applyChanges(t){t.forEachRemovedItem(n=>this._setStyle(n.key,null)),t.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),t.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}};e.\u0275fac=function(n){return new(n||e)(m(q),m(pm),m(xr))},e.\u0275dir=L({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0});let i=e;return i})(),ym=(()=>{let e=class e{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(t){if(this._shouldRecreateView(t)){let n=this._viewContainerRef;if(this._viewRef&&n.remove(n.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=n.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(t){return!!t.ngTemplateOutlet||!!t.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(t,n,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,n,o):!1,get:(t,n,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,n,o)}})}};e.\u0275fac=function(n){return new(n||e)(m(Ct))},e.\u0275dir=L({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Qe]});let i=e;return i})();function m3(i,e){return new J(2100,!1)}var Tb=class{createSubscription(e,r){return Dn(()=>e.subscribe({next:r,error:t=>{throw t}}))}dispose(e){Dn(()=>e.unsubscribe())}},kb=class{createSubscription(e,r){return e.then(r,t=>{throw t})}dispose(e){}},p3=new kb,f3=new Tb,EI=(()=>{let e=class e{constructor(t){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=t}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(t){if(!this._obj){if(t)try{this.markForCheckOnValueUpdate=!1,this._subscribe(t)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,n=>this._updateLatestValue(t,n))}_selectStrategy(t){if(la(t))return p3;if(Cb(t))return f3;throw m3(e,t)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,n){t===this._obj&&(this._latestValue=n,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}};e.\u0275fac=function(n){return new(n||e)(m(he,16))},e.\u0275pipe=Qo({name:"async",type:e,pure:!1,standalone:!0});let i=e;return i})();function g3(i,e){return{key:i,value:e}}var II=(()=>{let e=class e{constructor(t){this.differs=t,this.keyValues=[],this.compareFn=vI}transform(t,n=vI){if(!t||!(t instanceof Map)&&typeof t!="object")return null;this.differ??=this.differs.find(t).create();let o=this.differ.diff(t),a=n!==this.compareFn;return o&&(this.keyValues=[],o.forEachItem(s=>{this.keyValues.push(g3(s.key,s.currentValue))})),(o||a)&&(this.keyValues.sort(n),this.compareFn=n),this.keyValues}};e.\u0275fac=function(n){return new(n||e)(m(pm,16))},e.\u0275pipe=Qo({name:"keyvalue",type:e,pure:!1,standalone:!0});let i=e;return i})();function vI(i,e){let r=i.key,t=e.key;if(r===t)return 0;if(r===void 0)return 1;if(t===void 0)return-1;if(r===null)return 1;if(t===null)return-1;if(typeof r=="string"&&typeof t=="string")return r{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({});let i=e;return i})(),Nb="browser",_3="server";function Lb(i){return i===Nb}function wm(i){return i===_3}var MI=(()=>{let e=class e{};e.\u0275prov=V({token:e,providedIn:"root",factory:()=>Lb(k(oo))?new Ab(k(se),window):new Ob});let i=e;return i})(),Ab=class{constructor(e,r){this.document=e,this.window=r,this.offset=()=>[0,0]}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(e){this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){let r=v3(this.document,e);r&&(this.scrollToElement(r),r.focus())}setHistoryScrollRestoration(e){this.window.history.scrollRestoration=e}scrollToElement(e){let r=e.getBoundingClientRect(),t=r.left+this.window.pageXOffset,n=r.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(t-o[0],n-o[1])}};function v3(i,e){let r=i.getElementById(e)||i.getElementsByName(e)[0];if(r)return r;if(typeof i.createTreeWalker=="function"&&i.body&&typeof i.body.attachShadow=="function"){let t=i.createTreeWalker(i.body,NodeFilter.SHOW_ELEMENT),n=t.currentNode;for(;n;){let o=n.shadowRoot;if(o){let a=o.getElementById(e)||o.querySelector(`[name="${e}"]`);if(a)return a}n=t.nextNode()}}return null}var Ob=class{setOffset(e){}getScrollPosition(){return[0,0]}scrollToPosition(e){}scrollToAnchor(e){}setHistoryScrollRestoration(e){}},dl=class{};var jc=class{},xm=class{},Eo=class i{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(` +`).forEach(r=>{let t=r.indexOf(":");if(t>0){let n=r.slice(0,t),o=n.toLowerCase(),a=r.slice(t+1).trim();this.maybeSetNormalizedName(n,o),this.headers.has(o)?this.headers.get(o).push(a):this.headers.set(o,[a])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((r,t)=>{this.setHeaderEntries(t,r)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([r,t])=>{this.setHeaderEntries(r,t)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let r=this.headers.get(e.toLowerCase());return r&&r.length>0?r[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,r){return this.clone({name:e,value:r,op:"a"})}set(e,r){return this.clone({name:e,value:r,op:"s"})}delete(e,r){return this.clone({name:e,value:r,op:"d"})}maybeSetNormalizedName(e,r){this.normalizedNames.has(r)||this.normalizedNames.set(r,e)}init(){this.lazyInit&&(this.lazyInit instanceof i?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(r=>{this.headers.set(r,e.headers.get(r)),this.normalizedNames.set(r,e.normalizedNames.get(r))})}clone(e){let r=new i;return r.lazyInit=this.lazyInit&&this.lazyInit instanceof i?this.lazyInit:this,r.lazyUpdate=(this.lazyUpdate||[]).concat([e]),r}applyUpdate(e){let r=e.name.toLowerCase();switch(e.op){case"a":case"s":let t=e.value;if(typeof t=="string"&&(t=[t]),t.length===0)return;this.maybeSetNormalizedName(e.name,r);let n=(e.op==="a"?this.headers.get(r):void 0)||[];n.push(...t),this.headers.set(r,n);break;case"d":let o=e.value;if(!o)this.headers.delete(r),this.normalizedNames.delete(r);else{let a=this.headers.get(r);if(!a)return;a=a.filter(s=>o.indexOf(s)===-1),a.length===0?(this.headers.delete(r),this.normalizedNames.delete(r)):this.headers.set(r,a)}break}}setHeaderEntries(e,r){let t=(Array.isArray(r)?r:[r]).map(o=>o.toString()),n=e.toLowerCase();this.headers.set(n,t),this.maybeSetNormalizedName(e,n)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(r=>e(this.normalizedNames.get(r),this.headers.get(r)))}};var jb=class{encodeKey(e){return TI(e)}encodeValue(e){return TI(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function b3(i,e){let r=new Map;return i.length>0&&i.replace(/^\?/,"").split("&").forEach(n=>{let o=n.indexOf("="),[a,s]=o==-1?[e.decodeKey(n),""]:[e.decodeKey(n.slice(0,o)),e.decodeValue(n.slice(o+1))],l=r.get(a)||[];l.push(s),r.set(a,l)}),r}var y3=/%(\d[a-f0-9])/gi,w3={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function TI(i){return encodeURIComponent(i).replace(y3,(e,r)=>w3[r]??e)}function Cm(i){return`${i}`}var da=class i{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new jb,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=b3(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(r=>{let t=e.fromObject[r],n=Array.isArray(t)?t.map(Cm):[Cm(t)];this.map.set(r,n)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let r=this.map.get(e);return r?r[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,r){return this.clone({param:e,value:r,op:"a"})}appendAll(e){let r=[];return Object.keys(e).forEach(t=>{let n=e[t];Array.isArray(n)?n.forEach(o=>{r.push({param:t,value:o,op:"a"})}):r.push({param:t,value:n,op:"a"})}),this.clone(r)}set(e,r){return this.clone({param:e,value:r,op:"s"})}delete(e,r){return this.clone({param:e,value:r,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let r=this.encoder.encodeKey(e);return this.map.get(e).map(t=>r+"="+this.encoder.encodeValue(t)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let r=new i({encoder:this.encoder});return r.cloneFrom=this.cloneFrom||this,r.updates=(this.updates||[]).concat(e),r}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let r=(e.op==="a"?this.map.get(e.param):void 0)||[];r.push(Cm(e.value)),this.map.set(e.param,r);break;case"d":if(e.value!==void 0){let t=this.map.get(e.param)||[],n=t.indexOf(Cm(e.value));n!==-1&&t.splice(n,1),t.length>0?this.map.set(e.param,t):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var Bb=class{constructor(){this.map=new Map}set(e,r){return this.map.set(e,r),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function C3(i){switch(i){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function kI(i){return typeof ArrayBuffer<"u"&&i instanceof ArrayBuffer}function AI(i){return typeof Blob<"u"&&i instanceof Blob}function OI(i){return typeof FormData<"u"&&i instanceof FormData}function x3(i){return typeof URLSearchParams<"u"&&i instanceof URLSearchParams}var Vc=class i{constructor(e,r,t,n){this.url=r,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let o;if(C3(this.method)||n?(this.body=t!==void 0?t:null,o=n):o=t,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new Eo,this.context??=new Bb,!this.params)this.params=new da,this.urlWithParams=r;else{let a=this.params.toString();if(a.length===0)this.urlWithParams=r;else{let s=r.indexOf("?"),l=s===-1?"?":sC.set(D,e.setHeaders[D]),u)),e.setParams&&(f=Object.keys(e.setParams).reduce((C,D)=>C.set(D,e.setParams[D]),f)),new i(r,t,a,{params:f,headers:u,context:v,reportProgress:l,responseType:n,withCredentials:s,transferCache:o})}},ua=function(i){return i[i.Sent=0]="Sent",i[i.UploadProgress=1]="UploadProgress",i[i.ResponseHeader=2]="ResponseHeader",i[i.DownloadProgress=3]="DownloadProgress",i[i.Response=4]="Response",i[i.User=5]="User",i}(ua||{}),Bc=class{constructor(e,r=200,t="OK"){this.headers=e.headers||new Eo,this.status=e.status!==void 0?e.status:r,this.statusText=e.statusText||t,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},Dm=class i extends Bc{constructor(e={}){super(e),this.type=ua.ResponseHeader}clone(e={}){return new i({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},zc=class i extends Bc{constructor(e={}){super(e),this.type=ua.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new i({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},ca=class extends Bc{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},LI=200,D3=204;function Vb(i,e){return{body:e,headers:i.headers,context:i.context,observe:i.observe,params:i.params,reportProgress:i.reportProgress,responseType:i.responseType,withCredentials:i.withCredentials,transferCache:i.transferCache}}var Uc=(()=>{let e=class e{constructor(t){this.handler=t}request(t,n,o={}){let a;if(t instanceof Vc)a=t;else{let u;o.headers instanceof Eo?u=o.headers:u=new Eo(o.headers);let f;o.params&&(o.params instanceof da?f=o.params:f=new da({fromObject:o.params})),a=new Vc(t,n,o.body!==void 0?o.body:null,{headers:u,context:o.context,params:f,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let s=oe(a).pipe(hr(u=>this.handler.handle(u)));if(t instanceof Vc||o.observe==="events")return s;let l=s.pipe(Ye(u=>u instanceof zc));switch(o.observe||"body"){case"body":switch(a.responseType){case"arraybuffer":return l.pipe(ue(u=>{if(u.body!==null&&!(u.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return u.body}));case"blob":return l.pipe(ue(u=>{if(u.body!==null&&!(u.body instanceof Blob))throw new Error("Response is not a Blob.");return u.body}));case"text":return l.pipe(ue(u=>{if(u.body!==null&&typeof u.body!="string")throw new Error("Response is not a string.");return u.body}));case"json":default:return l.pipe(ue(u=>u.body))}case"response":return l;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(t,n={}){return this.request("DELETE",t,n)}get(t,n={}){return this.request("GET",t,n)}head(t,n={}){return this.request("HEAD",t,n)}jsonp(t,n){return this.request("JSONP",t,{params:new da().append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,n={}){return this.request("OPTIONS",t,n)}patch(t,n,o={}){return this.request("PATCH",t,Vb(o,n))}post(t,n,o={}){return this.request("POST",t,Vb(o,n))}put(t,n,o={}){return this.request("PUT",t,Vb(o,n))}};e.\u0275fac=function(n){return new(n||e)(M(jc))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),S3=/^\)\]\}',?\n/,E3="X-Request-URL";function RI(i){if(i.url)return i.url;let e=E3.toLocaleLowerCase();return i.headers.get(e)}var I3=(()=>{let e=class e{constructor(){this.fetchImpl=k(zb,{optional:!0})?.fetch??((...t)=>globalThis.fetch(...t)),this.ngZone=k(Z)}handle(t){return new Re(n=>{let o=new AbortController;return this.doRequest(t,o.signal,n).then(Ub,a=>n.error(new ca({error:a}))),()=>o.abort()})}doRequest(t,n,o){return W(this,null,function*(){let a=this.createRequestInit(t),s;try{let S=this.ngZone.runOutsideAngular(()=>this.fetchImpl(t.urlWithParams,j({signal:n},a)));M3(S),o.next({type:ua.Sent}),s=yield S}catch(S){o.error(new ca({error:S,status:S.status??0,statusText:S.statusText,url:t.urlWithParams,headers:S.headers}));return}let l=new Eo(s.headers),u=s.statusText,f=RI(s)??t.urlWithParams,v=s.status,C=null;if(t.reportProgress&&o.next(new Dm({headers:l,status:v,statusText:u,url:f})),s.body){let S=s.headers.get("content-length"),P=[],z=s.body.getReader(),O=0,de,ht,it=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>W(this,null,function*(){for(;;){let{done:Ft,value:Wt}=yield z.read();if(Ft)break;if(P.push(Wt),O+=Wt.length,t.reportProgress){ht=t.responseType==="text"?(ht??"")+(de??=new TextDecoder).decode(Wt,{stream:!0}):void 0;let wi=()=>o.next({type:ua.DownloadProgress,total:S?+S:void 0,loaded:O,partialText:ht});it?it.run(wi):wi()}}}));let Ti=this.concatChunks(P,O);try{let Ft=s.headers.get("Content-Type")??"";C=this.parseBody(t,Ti,Ft)}catch(Ft){o.error(new ca({error:Ft,headers:new Eo(s.headers),status:s.status,statusText:s.statusText,url:RI(s)??t.urlWithParams}));return}}v===0&&(v=C?LI:0),v>=200&&v<300?(o.next(new zc({body:C,headers:l,status:v,statusText:u,url:f})),o.complete()):o.error(new ca({error:C,headers:l,status:v,statusText:u,url:f}))})}parseBody(t,n,o){switch(t.responseType){case"json":let a=new TextDecoder().decode(n).replace(S3,"");return a===""?null:JSON.parse(a);case"text":return new TextDecoder().decode(n);case"blob":return new Blob([n],{type:o});case"arraybuffer":return n.buffer}}createRequestInit(t){let n={},o=t.withCredentials?"include":void 0;if(t.headers.forEach((a,s)=>n[a]=s.join(",")),t.headers.has("Accept")||(n.Accept="application/json, text/plain, */*"),!t.headers.has("Content-Type")){let a=t.detectContentTypeHeader();a!==null&&(n["Content-Type"]=a)}return{body:t.serializeBody(),method:t.method,headers:n,credentials:o}}concatChunks(t,n){let o=new Uint8Array(n),a=0;for(let s of t)o.set(s,a),a+=s.length;return o}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),zb=class{};function Ub(){}function M3(i){i.then(Ub,Ub)}function VI(i,e){return e(i)}function T3(i,e){return(r,t)=>e.intercept(r,{handle:n=>i(n,t)})}function k3(i,e,r){return(t,n)=>io(r,()=>e(t,o=>i(o,n)))}var A3=new R(""),Hb=new R(""),O3=new R(""),jI=new R("",{providedIn:"root",factory:()=>!0});function R3(){let i=null;return(e,r)=>{i===null&&(i=(k(A3,{optional:!0})??[]).reduceRight(T3,VI));let t=k(Zo);if(k(jI)){let o=t.add();return i(e,r).pipe(zo(()=>t.remove(o)))}else return i(e,r)}}var PI=(()=>{let e=class e extends jc{constructor(t,n){super(),this.backend=t,this.injector=n,this.chain=null,this.pendingTasks=k(Zo),this.contributeToStability=k(jI)}handle(t){if(this.chain===null){let n=Array.from(new Set([...this.injector.get(Hb),...this.injector.get(O3,[])]));this.chain=n.reduceRight((o,a)=>k3(o,a,this.injector),VI)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(t,o=>this.backend.handle(o)).pipe(zo(()=>this.pendingTasks.remove(n)))}else return this.chain(t,n=>this.backend.handle(n))}};e.\u0275fac=function(n){return new(n||e)(M(xm),M(qi))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();var P3=/^\)\]\}',?\n/;function F3(i){return"responseURL"in i&&i.responseURL?i.responseURL:/^X-Request-URL:/m.test(i.getAllResponseHeaders())?i.getResponseHeader("X-Request-URL"):null}var FI=(()=>{let e=class e{constructor(t){this.xhrFactory=t}handle(t){if(t.method==="JSONP")throw new J(-2800,!1);let n=this.xhrFactory;return(n.\u0275loadImpl?Kt(n.\u0275loadImpl()):oe(null)).pipe(Tt(()=>new Re(a=>{let s=n.build();if(s.open(t.method,t.urlWithParams),t.withCredentials&&(s.withCredentials=!0),t.headers.forEach((z,O)=>s.setRequestHeader(z,O.join(","))),t.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){let z=t.detectContentTypeHeader();z!==null&&s.setRequestHeader("Content-Type",z)}if(t.responseType){let z=t.responseType.toLowerCase();s.responseType=z!=="json"?z:"text"}let l=t.serializeBody(),u=null,f=()=>{if(u!==null)return u;let z=s.statusText||"OK",O=new Eo(s.getAllResponseHeaders()),de=F3(s)||t.url;return u=new Dm({headers:O,status:s.status,statusText:z,url:de}),u},v=()=>{let{headers:z,status:O,statusText:de,url:ht}=f(),it=null;O!==D3&&(it=typeof s.response>"u"?s.responseText:s.response),O===0&&(O=it?LI:0);let Ti=O>=200&&O<300;if(t.responseType==="json"&&typeof it=="string"){let Ft=it;it=it.replace(P3,"");try{it=it!==""?JSON.parse(it):null}catch(Wt){it=Ft,Ti&&(Ti=!1,it={error:Wt,text:it})}}Ti?(a.next(new zc({body:it,headers:z,status:O,statusText:de,url:ht||void 0})),a.complete()):a.error(new ca({error:it,headers:z,status:O,statusText:de,url:ht||void 0}))},C=z=>{let{url:O}=f(),de=new ca({error:z,status:s.status||0,statusText:s.statusText||"Unknown Error",url:O||void 0});a.error(de)},D=!1,S=z=>{D||(a.next(f()),D=!0);let O={type:ua.DownloadProgress,loaded:z.loaded};z.lengthComputable&&(O.total=z.total),t.responseType==="text"&&s.responseText&&(O.partialText=s.responseText),a.next(O)},P=z=>{let O={type:ua.UploadProgress,loaded:z.loaded};z.lengthComputable&&(O.total=z.total),a.next(O)};return s.addEventListener("load",v),s.addEventListener("error",C),s.addEventListener("timeout",C),s.addEventListener("abort",C),t.reportProgress&&(s.addEventListener("progress",S),l!==null&&s.upload&&s.upload.addEventListener("progress",P)),s.send(l),a.next({type:ua.Sent}),()=>{s.removeEventListener("error",C),s.removeEventListener("abort",C),s.removeEventListener("load",v),s.removeEventListener("timeout",C),t.reportProgress&&(s.removeEventListener("progress",S),l!==null&&s.upload&&s.upload.removeEventListener("progress",P)),s.readyState!==s.DONE&&s.abort()}})))}};e.\u0275fac=function(n){return new(n||e)(M(dl))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),BI=new R(""),N3="XSRF-TOKEN",L3=new R("",{providedIn:"root",factory:()=>N3}),V3="X-XSRF-TOKEN",j3=new R("",{providedIn:"root",factory:()=>V3}),Sm=class{},B3=(()=>{let e=class e{constructor(t,n,o){this.doc=t,this.platform=n,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=vm(t,this.cookieName),this.lastCookieString=t),this.lastToken}};e.\u0275fac=function(n){return new(n||e)(M(se),M(oo),M(L3))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();function z3(i,e){let r=i.url.toLowerCase();if(!k(BI)||i.method==="GET"||i.method==="HEAD"||r.startsWith("http://")||r.startsWith("https://"))return e(i);let t=k(Sm).getToken(),n=k(j3);return t!=null&&!i.headers.has(n)&&(i=i.clone({headers:i.headers.set(n,t)})),e(i)}var zI=function(i){return i[i.Interceptors=0]="Interceptors",i[i.LegacyInterceptors=1]="LegacyInterceptors",i[i.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",i[i.NoXsrfProtection=3]="NoXsrfProtection",i[i.JsonpSupport=4]="JsonpSupport",i[i.RequestsMadeViaParent=5]="RequestsMadeViaParent",i[i.Fetch=6]="Fetch",i}(zI||{});function U3(i,e){return{\u0275kind:i,\u0275providers:e}}function UI(...i){let e=[Uc,FI,PI,{provide:jc,useExisting:PI},{provide:xm,useFactory:()=>k(I3,{optional:!0})??k(FI)},{provide:Hb,useValue:z3,multi:!0},{provide:BI,useValue:!0},{provide:Sm,useClass:B3}];for(let r of i)e.push(...r.\u0275providers);return jh(e)}var NI=new R("");function HI(){return U3(zI.LegacyInterceptors,[{provide:NI,useFactory:R3},{provide:Hb,useExisting:NI,multi:!0}])}var Gb=class extends fm{constructor(){super(...arguments),this.supportsDOMEvents=!0}},qb=class i extends Gb{static makeCurrent(){yI(new i)}onAndCancel(e,r,t){return e.addEventListener(r,t),()=>{e.removeEventListener(r,t)}}dispatchEvent(e,r){e.dispatchEvent(r)}remove(e){e.remove()}createElement(e,r){return r=r||this.getDefaultDocument(),r.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,r){return r==="window"?window:r==="document"?e:r==="body"?e.body:null}getBaseHref(e){let r=H3();return r==null?null:$3(r)}resetBaseElement(){Hc=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return vm(document.cookie,e)}},Hc=null;function H3(){return Hc=Hc||document.querySelector("base"),Hc?Hc.getAttribute("href"):null}function $3(i){return new URL(i,document.baseURI).pathname}var Yb=class{addToWindow(e){Pn.getAngularTestability=(t,n=!0)=>{let o=e.findTestabilityInTree(t,n);if(o==null)throw new J(5103,!1);return o},Pn.getAllAngularTestabilities=()=>e.getAllTestabilities(),Pn.getAllAngularRootElements=()=>e.getAllRootElements();let r=t=>{let n=Pn.getAllAngularTestabilities(),o=n.length,a=function(){o--,o==0&&t()};n.forEach(s=>{s.whenStable(a)})};Pn.frameworkStabilizers||(Pn.frameworkStabilizers=[]),Pn.frameworkStabilizers.push(r)}findTestabilityInTree(e,r,t){if(r==null)return null;let n=e.getTestability(r);return n??(t?Jo().isShadowRoot(r)?this.findTestabilityInTree(e,r.host,!0):this.findTestabilityInTree(e,r.parentElement,!0):null)}},W3=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),Qb=new R(""),qI=(()=>{let e=class e{constructor(t,n){this._zone=n,this._eventNameToPlugin=new Map,t.forEach(o=>{o.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,n,o){return this._findPluginFor(n).addEventListener(t,n,o)}getZone(){return this._zone}_findPluginFor(t){let n=this._eventNameToPlugin.get(t);if(n)return n;if(n=this._plugins.find(a=>a.supports(t)),!n)throw new J(5101,!1);return this._eventNameToPlugin.set(t,n),n}};e.\u0275fac=function(n){return new(n||e)(M(Qb),M(Z))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),Em=class{constructor(e){this._doc=e}},$b="ng-app-id",YI=(()=>{let e=class e{constructor(t,n,o,a={}){this.doc=t,this.appId=n,this.nonce=o,this.platformId=a,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=wm(a),this.resetHostNodes()}addStyles(t){for(let n of t)this.changeUsageCount(n,1)===1&&this.onStyleAdded(n)}removeStyles(t){for(let n of t)this.changeUsageCount(n,-1)<=0&&this.onStyleRemoved(n)}ngOnDestroy(){let t=this.styleNodesInDOM;t&&(t.forEach(n=>n.remove()),t.clear());for(let n of this.getAllStyles())this.onStyleRemoved(n);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(let n of this.getAllStyles())this.addStyleToHost(t,n)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(let n of this.hostNodes)this.addStyleToHost(n,t)}onStyleRemoved(t){let n=this.styleRef;n.get(t)?.elements?.forEach(o=>o.remove()),n.delete(t)}collectServerRenderedStyles(){let t=this.doc.head?.querySelectorAll(`style[${$b}="${this.appId}"]`);if(t?.length){let n=new Map;return t.forEach(o=>{o.textContent!=null&&n.set(o.textContent,o)}),n}return null}changeUsageCount(t,n){let o=this.styleRef;if(o.has(t)){let a=o.get(t);return a.usage+=n,a.usage}return o.set(t,{usage:n,elements:[]}),n}getStyleElement(t,n){let o=this.styleNodesInDOM,a=o?.get(n);if(a?.parentNode===t)return o.delete(n),a.removeAttribute($b),a;{let s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=n,this.platformIsServer&&s.setAttribute($b,this.appId),t.appendChild(s),s}}addStyleToHost(t,n){let o=this.getStyleElement(t,n),a=this.styleRef,s=a.get(n)?.elements;s?s.push(o):a.set(n,{elements:[o],usage:1})}resetHostNodes(){let t=this.hostNodes;t.clear(),t.add(this.doc.head)}};e.\u0275fac=function(n){return new(n||e)(M(se),M(al),M(Ic,8),M(oo))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),Wb={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Zb=/%COMP%/g,QI="%COMP%",G3=`_nghost-${QI}`,q3=`_ngcontent-${QI}`,Y3=!0,Q3=new R("",{providedIn:"root",factory:()=>Y3});function K3(i){return q3.replace(Zb,i)}function Z3(i){return G3.replace(Zb,i)}function KI(i,e){return e.map(r=>r.replace(Zb,i))}var Im=(()=>{let e=class e{constructor(t,n,o,a,s,l,u,f=null){this.eventManager=t,this.sharedStylesHost=n,this.appId=o,this.removeStylesOnCompDestroy=a,this.doc=s,this.platformId=l,this.ngZone=u,this.nonce=f,this.rendererByCompId=new Map,this.platformIsServer=wm(l),this.defaultRenderer=new $c(t,s,u,this.platformIsServer)}createRenderer(t,n){if(!t||!n)return this.defaultRenderer;this.platformIsServer&&n.encapsulation===Wo.ShadowDom&&(n=rt(j({},n),{encapsulation:Wo.Emulated}));let o=this.getOrCreateRenderer(t,n);return o instanceof Mm?o.applyToHost(t):o instanceof Wc&&o.applyStyles(),o}getOrCreateRenderer(t,n){let o=this.rendererByCompId,a=o.get(n.id);if(!a){let s=this.doc,l=this.ngZone,u=this.eventManager,f=this.sharedStylesHost,v=this.removeStylesOnCompDestroy,C=this.platformIsServer;switch(n.encapsulation){case Wo.Emulated:a=new Mm(u,f,n,this.appId,v,s,l,C);break;case Wo.ShadowDom:return new Kb(u,f,t,n,s,l,this.nonce,C);default:a=new Wc(u,f,n,v,s,l,C);break}o.set(n.id,a)}return a}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(n){return new(n||e)(M(qI),M(YI),M(al),M(Q3),M(se),M(oo),M(Z),M(Ic))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),$c=class{constructor(e,r,t,n){this.eventManager=e,this.doc=r,this.ngZone=t,this.platformIsServer=n,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,r){return r?this.doc.createElementNS(Wb[r]||r,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,r){(WI(e)?e.content:e).appendChild(r)}insertBefore(e,r,t){e&&(WI(e)?e.content:e).insertBefore(r,t)}removeChild(e,r){r.remove()}selectRootElement(e,r){let t=typeof e=="string"?this.doc.querySelector(e):e;if(!t)throw new J(-5104,!1);return r||(t.textContent=""),t}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,r,t,n){if(n){r=n+":"+r;let o=Wb[n];o?e.setAttributeNS(o,r,t):e.setAttribute(r,t)}else e.setAttribute(r,t)}removeAttribute(e,r,t){if(t){let n=Wb[t];n?e.removeAttributeNS(n,r):e.removeAttribute(`${t}:${r}`)}else e.removeAttribute(r)}addClass(e,r){e.classList.add(r)}removeClass(e,r){e.classList.remove(r)}setStyle(e,r,t,n){n&(Yo.DashCase|Yo.Important)?e.style.setProperty(r,t,n&Yo.Important?"important":""):e.style[r]=t}removeStyle(e,r,t){t&Yo.DashCase?e.style.removeProperty(r):e.style[r]=""}setProperty(e,r,t){e!=null&&(e[r]=t)}setValue(e,r){e.nodeValue=r}listen(e,r,t){if(typeof e=="string"&&(e=Jo().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${r}`);return this.eventManager.addEventListener(e,r,this.decoratePreventDefault(t))}decoratePreventDefault(e){return r=>{if(r==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(r)):e(r))===!1&&r.preventDefault()}}};function WI(i){return i.tagName==="TEMPLATE"&&i.content!==void 0}var Kb=class extends $c{constructor(e,r,t,n,o,a,s,l){super(e,o,a,l),this.sharedStylesHost=r,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=KI(n.id,n.styles);for(let f of u){let v=document.createElement("style");s&&v.setAttribute("nonce",s),v.textContent=f,this.shadowRoot.appendChild(v)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,r){return super.appendChild(this.nodeOrShadowRoot(e),r)}insertBefore(e,r,t){return super.insertBefore(this.nodeOrShadowRoot(e),r,t)}removeChild(e,r){return super.removeChild(null,r)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Wc=class extends $c{constructor(e,r,t,n,o,a,s,l){super(e,o,a,s),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=n,this.styles=l?KI(l,t.styles):t.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Mm=class extends Wc{constructor(e,r,t,n,o,a,s,l){let u=n+"-"+t.id;super(e,r,t,o,a,s,l,u),this.contentAttr=K3(u),this.hostAttr=Z3(u)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,r){let t=super.createElement(e,r);return super.setAttribute(t,this.contentAttr,""),t}},X3=(()=>{let e=class e extends Em{constructor(t){super(t)}supports(t){return!0}addEventListener(t,n,o){return t.addEventListener(n,o,!1),()=>this.removeEventListener(t,n,o)}removeEventListener(t,n,o){return t.removeEventListener(n,o)}};e.\u0275fac=function(n){return new(n||e)(M(se))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),GI=["alt","control","meta","shift"],J3={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},eB={alt:i=>i.altKey,control:i=>i.ctrlKey,meta:i=>i.metaKey,shift:i=>i.shiftKey},tB=(()=>{let e=class e extends Em{constructor(t){super(t)}supports(t){return e.parseEventName(t)!=null}addEventListener(t,n,o){let a=e.parseEventName(n),s=e.eventCallback(a.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Jo().onAndCancel(t,a.domEventName,s))}static parseEventName(t){let n=t.toLowerCase().split("."),o=n.shift();if(n.length===0||!(o==="keydown"||o==="keyup"))return null;let a=e._normalizeKey(n.pop()),s="",l=n.indexOf("code");if(l>-1&&(n.splice(l,1),s="code."),GI.forEach(f=>{let v=n.indexOf(f);v>-1&&(n.splice(v,1),s+=f+".")}),s+=a,n.length!=0||a.length===0)return null;let u={};return u.domEventName=o,u.fullKey=s,u}static matchEventFullKeyCode(t,n){let o=J3[t.key]||t.key,a="";return n.indexOf("code.")>-1&&(o=t.code,a="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),GI.forEach(s=>{if(s!==o){let l=eB[s];l(t)&&(a+=s+".")}}),a+=o,a===n)}static eventCallback(t,n,o){return a=>{e.matchEventFullKeyCode(a,t)&&o.runGuarded(()=>n(a))}}static _normalizeKey(t){return t==="esc"?"escape":t}};e.\u0275fac=function(n){return new(n||e)(M(se))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();function iB(){qb.makeCurrent()}function nB(){return new yn}function oB(){return xS(document),document}var rB=[{provide:oo,useValue:Nb},{provide:Zv,useValue:iB,multi:!0},{provide:se,useFactory:oB,deps:[]}],ZI=xb(dI,"browser",rB),aB=new R(""),sB=[{provide:Nc,useClass:Yb,deps:[]},{provide:yb,useClass:cm,deps:[Z,dm,Nc]},{provide:cm,useClass:cm,deps:[Z,dm,Nc]}],lB=[{provide:Bh,useValue:"root"},{provide:yn,useFactory:nB,deps:[]},{provide:Qb,useClass:X3,multi:!0,deps:[se,Z,oo]},{provide:Qb,useClass:tB,multi:!0,deps:[se]},Im,YI,qI,{provide:na,useExisting:Im},{provide:dl,useClass:W3,deps:[]},[]],Tm=(()=>{let e=class e{constructor(t){}static withServerTransition(t){return{ngModule:e,providers:[{provide:al,useValue:t.appId}]}}};e.\u0275fac=function(n){return new(n||e)(M(aB,12))},e.\u0275mod=te({type:e}),e.\u0275inj=ee({providers:[...lB,...sB],imports:[Ei,uI]});let i=e;return i})();var XI=(()=>{let e=class e{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}};e.\u0275fac=function(n){return new(n||e)(M(se))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var is=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:function(n){let o=null;return n?o=new(n||e):o=M(cB),o},providedIn:"root"});let i=e;return i})(),cB=(()=>{let e=class e extends is{constructor(t){super(),this._doc=t}sanitize(t,n){if(n==null)return null;switch(t){case Yi.NONE:return n;case Yi.HTML:return wr(n,"HTML")?ro(n):Jv(this._doc,String(n)).toString();case Yi.STYLE:return wr(n,"Style")?ro(n):n;case Yi.SCRIPT:if(wr(n,"Script"))return ro(n);throw new J(5200,!1);case Yi.URL:return wr(n,"URL")?ro(n):Xh(String(n));case Yi.RESOURCE_URL:if(wr(n,"ResourceURL"))return ro(n);throw new J(5201,!1);default:throw new J(5202,!1)}}bypassSecurityTrustHtml(t){return IS(t)}bypassSecurityTrustStyle(t){return MS(t)}bypassSecurityTrustScript(t){return TS(t)}bypassSecurityTrustUrl(t){return kS(t)}bypassSecurityTrustResourceUrl(t){return AS(t)}};e.\u0275fac=function(n){return new(n||e)(M(se))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var ut="primary",ad=Symbol("RouteTitle"),i0=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r[0]:r}return null}getAll(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r:[r]}return[]}get keys(){return Object.keys(this.params)}};function _l(i){return new i0(i)}function dB(i,e,r){let t=r.path.split("/");if(t.length>i.length||r.pathMatch==="full"&&(e.hasChildren()||t.lengtht[o]===n)}else return i===e}function dM(i){return i.length>0?i[i.length-1]:null}function ma(i){return Gr(i)?i:la(i)?Kt(Promise.resolve(i)):oe(i)}var hB={exact:hM,subset:mM},uM={exact:mB,subset:pB,ignored:()=>!0};function JI(i,e,r){return hB[r.paths](i.root,e.root,r.matrixParams)&&uM[r.queryParams](i.queryParams,e.queryParams)&&!(r.fragment==="exact"&&i.fragment!==e.fragment)}function mB(i,e){return tr(i,e)}function hM(i,e,r){if(!os(i.segments,e.segments)||!Om(i.segments,e.segments,r)||i.numberOfChildren!==e.numberOfChildren)return!1;for(let t in e.children)if(!i.children[t]||!hM(i.children[t],e.children[t],r))return!1;return!0}function pB(i,e){return Object.keys(e).length<=Object.keys(i).length&&Object.keys(e).every(r=>cM(i[r],e[r]))}function mM(i,e,r){return pM(i,e,e.segments,r)}function pM(i,e,r,t){if(i.segments.length>r.length){let n=i.segments.slice(0,r.length);return!(!os(n,r)||e.hasChildren()||!Om(n,r,t))}else if(i.segments.length===r.length){if(!os(i.segments,r)||!Om(i.segments,r,t))return!1;for(let n in e.children)if(!i.children[n]||!mM(i.children[n],e.children[n],t))return!1;return!0}else{let n=r.slice(0,i.segments.length),o=r.slice(i.segments.length);return!os(i.segments,n)||!Om(i.segments,n,t)||!i.children[ut]?!1:pM(i.children[ut],e,o,t)}}function Om(i,e,r){return e.every((t,n)=>uM[r](i[n].parameters,t.parameters))}var Or=class{constructor(e=new Bt([],{}),r={},t=null){this.root=e,this.queryParams=r,this.fragment=t}get queryParamMap(){return this._queryParamMap??=_l(this.queryParams),this._queryParamMap}toString(){return _B.serialize(this)}},Bt=class{constructor(e,r){this.segments=e,this.children=r,this.parent=null,Object.values(r).forEach(t=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Rm(this)}},ns=class{constructor(e,r){this.path=e,this.parameters=r}get parameterMap(){return this._parameterMap??=_l(this.parameters),this._parameterMap}toString(){return gM(this)}};function fB(i,e){return os(i,e)&&i.every((r,t)=>tr(r.parameters,e[t].parameters))}function os(i,e){return i.length!==e.length?!1:i.every((r,t)=>r.path===e[t].path)}function gB(i,e){let r=[];return Object.entries(i.children).forEach(([t,n])=>{t===ut&&(r=r.concat(e(n,t)))}),Object.entries(i.children).forEach(([t,n])=>{t!==ut&&(r=r.concat(e(n,t)))}),r}var sd=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:()=>new vl,providedIn:"root"});let i=e;return i})(),vl=class{parse(e){let r=new r0(e);return new Or(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(e){let r=`/${qc(e.root,!0)}`,t=yB(e.queryParams),n=typeof e.fragment=="string"?`#${vB(e.fragment)}`:"";return`${r}${t}${n}`}},_B=new vl;function Rm(i){return i.segments.map(e=>gM(e)).join("/")}function qc(i,e){if(!i.hasChildren())return Rm(i);if(e){let r=i.children[ut]?qc(i.children[ut],!1):"",t=[];return Object.entries(i.children).forEach(([n,o])=>{n!==ut&&t.push(`${n}:${qc(o,!1)}`)}),t.length>0?`${r}(${t.join("//")})`:r}else{let r=gB(i,(t,n)=>n===ut?[qc(i.children[ut],!1)]:[`${n}:${qc(t,!1)}`]);return Object.keys(i.children).length===1&&i.children[ut]!=null?`${Rm(i)}/${r[0]}`:`${Rm(i)}/(${r.join("//")})`}}function fM(i){return encodeURIComponent(i).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function km(i){return fM(i).replace(/%3B/gi,";")}function vB(i){return encodeURI(i)}function o0(i){return fM(i).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Pm(i){return decodeURIComponent(i)}function eM(i){return Pm(i.replace(/\+/g,"%20"))}function gM(i){return`${o0(i.path)}${bB(i.parameters)}`}function bB(i){return Object.entries(i).map(([e,r])=>`;${o0(e)}=${o0(r)}`).join("")}function yB(i){let e=Object.entries(i).map(([r,t])=>Array.isArray(t)?t.map(n=>`${km(r)}=${km(n)}`).join("&"):`${km(r)}=${km(t)}`).filter(r=>r);return e.length?`?${e.join("&")}`:""}var wB=/^[^\/()?;#]+/;function Xb(i){let e=i.match(wB);return e?e[0]:""}var CB=/^[^\/()?;=#]+/;function xB(i){let e=i.match(CB);return e?e[0]:""}var DB=/^[^=?&#]+/;function SB(i){let e=i.match(DB);return e?e[0]:""}var EB=/^[^&#]+/;function IB(i){let e=i.match(EB);return e?e[0]:""}var r0=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Bt([],{}):new Bt([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(e.length>0||Object.keys(r).length>0)&&(t[ut]=new Bt(e,r)),t}parseSegment(){let e=Xb(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new J(4009,!1);return this.capture(e),new ns(Pm(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let r=xB(this.remaining);if(!r)return;this.capture(r);let t="";if(this.consumeOptional("=")){let n=Xb(this.remaining);n&&(t=n,this.capture(t))}e[Pm(r)]=Pm(t)}parseQueryParam(e){let r=SB(this.remaining);if(!r)return;this.capture(r);let t="";if(this.consumeOptional("=")){let a=IB(this.remaining);a&&(t=a,this.capture(t))}let n=eM(r),o=eM(t);if(e.hasOwnProperty(n)){let a=e[n];Array.isArray(a)||(a=[a],e[n]=a),a.push(o)}else e[n]=o}parseParens(e){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let t=Xb(this.remaining),n=this.remaining[t.length];if(n!=="/"&&n!==")"&&n!==";")throw new J(4010,!1);let o;t.indexOf(":")>-1?(o=t.slice(0,t.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=ut);let a=this.parseChildren();r[o]=Object.keys(a).length===1?a[ut]:new Bt([],a),this.consumeOptional("//")}return r}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new J(4011,!1)}};function _M(i){return i.segments.length>0?new Bt([],{[ut]:i}):i}function vM(i){let e={};for(let[t,n]of Object.entries(i.children)){let o=vM(n);if(t===ut&&o.segments.length===0&&o.hasChildren())for(let[a,s]of Object.entries(o.children))e[a]=s;else(o.segments.length>0||o.hasChildren())&&(e[t]=o)}let r=new Bt(i.segments,e);return MB(r)}function MB(i){if(i.numberOfChildren===1&&i.children[ut]){let e=i.children[ut];return new Bt(i.segments.concat(e.segments),e.children)}return i}function rs(i){return i instanceof Or}function TB(i,e,r=null,t=null){let n=bM(i);return yM(n,e,r,t)}function bM(i){let e;function r(o){let a={};for(let l of o.children){let u=r(l);a[l.outlet]=u}let s=new Bt(o.url,a);return o===i&&(e=s),s}let t=r(i.root),n=_M(t);return e??n}function yM(i,e,r,t){let n=i;for(;n.parent;)n=n.parent;if(e.length===0)return Jb(n,n,n,r,t);let o=kB(e);if(o.toRoot())return Jb(n,n,new Bt([],{}),r,t);let a=AB(o,n,i),s=a.processChildren?Kc(a.segmentGroup,a.index,o.commands):CM(a.segmentGroup,a.index,o.commands);return Jb(n,a.segmentGroup,s,r,t)}function Fm(i){return typeof i=="object"&&i!=null&&!i.outlets&&!i.segmentPath}function Jc(i){return typeof i=="object"&&i!=null&&i.outlets}function Jb(i,e,r,t,n){let o={};t&&Object.entries(t).forEach(([l,u])=>{o[l]=Array.isArray(u)?u.map(f=>`${f}`):`${u}`});let a;i===e?a=r:a=wM(i,e,r);let s=_M(vM(a));return new Or(s,o,n)}function wM(i,e,r){let t={};return Object.entries(i.children).forEach(([n,o])=>{o===e?t[n]=r:t[n]=wM(o,e,r)}),new Bt(i.segments,t)}var Nm=class{constructor(e,r,t){if(this.isAbsolute=e,this.numberOfDoubleDots=r,this.commands=t,e&&t.length>0&&Fm(t[0]))throw new J(4003,!1);let n=t.find(Jc);if(n&&n!==dM(t))throw new J(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function kB(i){if(typeof i[0]=="string"&&i.length===1&&i[0]==="/")return new Nm(!0,0,i);let e=0,r=!1,t=i.reduce((n,o,a)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let s={};return Object.entries(o.outlets).forEach(([l,u])=>{s[l]=typeof u=="string"?u.split("/"):u}),[...n,{outlets:s}]}if(o.segmentPath)return[...n,o.segmentPath]}return typeof o!="string"?[...n,o]:a===0?(o.split("/").forEach((s,l)=>{l==0&&s==="."||(l==0&&s===""?r=!0:s===".."?e++:s!=""&&n.push(s))}),n):[...n,o]},[]);return new Nm(r,e,t)}var pl=class{constructor(e,r,t){this.segmentGroup=e,this.processChildren=r,this.index=t}};function AB(i,e,r){if(i.isAbsolute)return new pl(e,!0,0);if(!r)return new pl(e,!1,NaN);if(r.parent===null)return new pl(r,!0,0);let t=Fm(i.commands[0])?0:1,n=r.segments.length-1+t;return OB(r,n,i.numberOfDoubleDots)}function OB(i,e,r){let t=i,n=e,o=r;for(;o>n;){if(o-=n,t=t.parent,!t)throw new J(4005,!1);n=t.segments.length}return new pl(t,!1,n-o)}function RB(i){return Jc(i[0])?i[0].outlets:{[ut]:i}}function CM(i,e,r){if(i??=new Bt([],{}),i.segments.length===0&&i.hasChildren())return Kc(i,e,r);let t=PB(i,e,r),n=r.slice(t.commandIndex);if(t.match&&t.pathIndexo!==ut)&&i.children[ut]&&i.numberOfChildren===1&&i.children[ut].segments.length===0){let o=Kc(i.children[ut],e,r);return new Bt(i.segments,o.children)}return Object.entries(t).forEach(([o,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(n[o]=CM(i.children[o],e,a))}),Object.entries(i.children).forEach(([o,a])=>{t[o]===void 0&&(n[o]=a)}),new Bt(i.segments,n)}}function PB(i,e,r){let t=0,n=e,o={match:!1,pathIndex:0,commandIndex:0};for(;n=r.length)return o;let a=i.segments[n],s=r[t];if(Jc(s))break;let l=`${s}`,u=t0&&l===void 0)break;if(l&&u&&typeof u=="object"&&u.outlets===void 0){if(!iM(l,u,a))return o;t+=2}else{if(!iM(l,{},a))return o;t++}n++}return{match:!0,pathIndex:n,commandIndex:t}}function a0(i,e,r){let t=i.segments.slice(0,e),n=0;for(;n{typeof t=="string"&&(t=[t]),t!==null&&(e[r]=a0(new Bt([],{}),0,t))}),e}function tM(i){let e={};return Object.entries(i).forEach(([r,t])=>e[r]=`${t}`),e}function iM(i,e,r){return i==r.path&&tr(e,r.parameters)}var Zc="imperative",zi=function(i){return i[i.NavigationStart=0]="NavigationStart",i[i.NavigationEnd=1]="NavigationEnd",i[i.NavigationCancel=2]="NavigationCancel",i[i.NavigationError=3]="NavigationError",i[i.RoutesRecognized=4]="RoutesRecognized",i[i.ResolveStart=5]="ResolveStart",i[i.ResolveEnd=6]="ResolveEnd",i[i.GuardsCheckStart=7]="GuardsCheckStart",i[i.GuardsCheckEnd=8]="GuardsCheckEnd",i[i.RouteConfigLoadStart=9]="RouteConfigLoadStart",i[i.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",i[i.ChildActivationStart=11]="ChildActivationStart",i[i.ChildActivationEnd=12]="ChildActivationEnd",i[i.ActivationStart=13]="ActivationStart",i[i.ActivationEnd=14]="ActivationEnd",i[i.Scroll=15]="Scroll",i[i.NavigationSkipped=16]="NavigationSkipped",i}(zi||{}),ao=class{constructor(e,r){this.id=e,this.url=r}},bl=class extends ao{constructor(e,r,t="imperative",n=null){super(e,r),this.type=zi.NavigationStart,this.navigationTrigger=t,this.restoredState=n}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},ir=class extends ao{constructor(e,r,t){super(e,r),this.urlAfterRedirects=t,this.type=zi.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},jn=function(i){return i[i.Redirect=0]="Redirect",i[i.SupersededByNewNavigation=1]="SupersededByNewNavigation",i[i.NoDataFromResolver=2]="NoDataFromResolver",i[i.GuardRejected=3]="GuardRejected",i}(jn||{}),Lm=function(i){return i[i.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",i[i.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",i}(Lm||{}),Ar=class extends ao{constructor(e,r,t,n){super(e,r),this.reason=t,this.code=n,this.type=zi.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},ha=class extends ao{constructor(e,r,t,n){super(e,r),this.reason=t,this.code=n,this.type=zi.NavigationSkipped}},ed=class extends ao{constructor(e,r,t,n){super(e,r),this.error=t,this.target=n,this.type=zi.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Vm=class extends ao{constructor(e,r,t,n){super(e,r),this.urlAfterRedirects=t,this.state=n,this.type=zi.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},s0=class extends ao{constructor(e,r,t,n){super(e,r),this.urlAfterRedirects=t,this.state=n,this.type=zi.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},l0=class extends ao{constructor(e,r,t,n,o){super(e,r),this.urlAfterRedirects=t,this.state=n,this.shouldActivate=o,this.type=zi.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},c0=class extends ao{constructor(e,r,t,n){super(e,r),this.urlAfterRedirects=t,this.state=n,this.type=zi.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},d0=class extends ao{constructor(e,r,t,n){super(e,r),this.urlAfterRedirects=t,this.state=n,this.type=zi.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},u0=class{constructor(e){this.route=e,this.type=zi.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},h0=class{constructor(e){this.route=e,this.type=zi.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},m0=class{constructor(e){this.snapshot=e,this.type=zi.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},p0=class{constructor(e){this.snapshot=e,this.type=zi.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},f0=class{constructor(e){this.snapshot=e,this.type=zi.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},g0=class{constructor(e){this.snapshot=e,this.type=zi.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},jm=class{constructor(e,r,t){this.routerEvent=e,this.position=r,this.anchor=t,this.type=zi.Scroll}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},td=class{},yl=class{constructor(e,r){this.url=e,this.navigationBehaviorOptions=r}};function NB(i,e){return i.providers&&!i._injector&&(i._injector=sm(i.providers,e,`Route: ${i.path}`)),i._injector??e}function Io(i){return i.outlet||ut}function LB(i,e){let r=i.filter(t=>Io(t)===e);return r.push(...i.filter(t=>Io(t)!==e)),r}function ld(i){if(!i)return null;if(i.routeConfig?._injector)return i.routeConfig._injector;for(let e=i.parent;e;e=e.parent){let r=e.routeConfig;if(r?._loadedInjector)return r._loadedInjector;if(r?._injector)return r._injector}return null}var _0=class{get injector(){return ld(this.route?.snapshot)??this.rootInjector}set injector(e){}constructor(e){this.rootInjector=e,this.outlet=null,this.route=null,this.children=new cd(this.rootInjector),this.attachRef=null}},cd=(()=>{let e=class e{constructor(t){this.rootInjector=t,this.contexts=new Map}onChildOutletCreated(t,n){let o=this.getOrCreateContext(t);o.outlet=n,this.contexts.set(t,o)}onChildOutletDestroyed(t){let n=this.getContext(t);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let n=this.getContext(t);return n||(n=new _0(this.rootInjector),this.contexts.set(t,n)),n}getContext(t){return this.contexts.get(t)||null}};e.\u0275fac=function(n){return new(n||e)(M(qi))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),Bm=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let r=this.pathFromRoot(e);return r.length>1?r[r.length-2]:null}children(e){let r=v0(e,this._root);return r?r.children.map(t=>t.value):[]}firstChild(e){let r=v0(e,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(e){let r=b0(e,this._root);return r.length<2?[]:r[r.length-2].children.map(n=>n.value).filter(n=>n!==e)}pathFromRoot(e){return b0(e,this._root).map(r=>r.value)}};function v0(i,e){if(i===e.value)return e;for(let r of e.children){let t=v0(i,r);if(t)return t}return null}function b0(i,e){if(i===e.value)return[e];for(let r of e.children){let t=b0(i,r);if(t.length)return t.unshift(e),t}return[]}var Vn=class{constructor(e,r){this.value=e,this.children=r}toString(){return`TreeNode(${this.value})`}};function ml(i){let e={};return i&&i.children.forEach(r=>e[r.value.outlet]=r),e}var zm=class extends Bm{constructor(e,r){super(e),this.snapshot=r,M0(this,e)}toString(){return this.snapshot.toString()}};function xM(i){let e=VB(i),r=new Gt([new ns("",{})]),t=new Gt({}),n=new Gt({}),o=new Gt({}),a=new Gt(""),s=new Oe(r,t,o,a,n,ut,i,e.root);return s.snapshot=e.root,new zm(new Vn(s,[]),e)}function VB(i){let e={},r={},t={},n="",o=new fl([],e,t,n,r,ut,i,null,{});return new Hm("",new Vn(o,[]))}var Oe=class{constructor(e,r,t,n,o,a,s,l){this.urlSubject=e,this.paramsSubject=r,this.queryParamsSubject=t,this.fragmentSubject=n,this.dataSubject=o,this.outlet=a,this.component=s,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(ue(u=>u[ad]))??oe(void 0),this.url=e,this.params=r,this.queryParams=t,this.fragment=n,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(ue(e=>_l(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(ue(e=>_l(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Um(i,e,r="emptyOnly"){let t,{routeConfig:n}=i;return e!==null&&(r==="always"||n?.path===""||!e.component&&!e.routeConfig?.loadComponent)?t={params:j(j({},e.params),i.params),data:j(j({},e.data),i.data),resolve:j(j(j(j({},i.data),e.data),n?.data),i._resolvedData)}:t={params:j({},i.params),data:j({},i.data),resolve:j(j({},i.data),i._resolvedData??{})},n&&SM(n)&&(t.resolve[ad]=n.title),t}var fl=class{get title(){return this.data?.[ad]}constructor(e,r,t,n,o,a,s,l,u){this.url=e,this.params=r,this.queryParams=t,this.fragment=n,this.data=o,this.outlet=a,this.component=s,this.routeConfig=l,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=_l(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=_l(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(t=>t.toString()).join("/"),r=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${r}')`}},Hm=class extends Bm{constructor(e,r){super(r),this.url=e,M0(this,r)}toString(){return DM(this._root)}};function M0(i,e){e.value._routerState=i,e.children.forEach(r=>M0(i,r))}function DM(i){let e=i.children.length>0?` { ${i.children.map(DM).join(", ")} } `:"";return`${i.value}${e}`}function e0(i){if(i.snapshot){let e=i.snapshot,r=i._futureSnapshot;i.snapshot=r,tr(e.queryParams,r.queryParams)||i.queryParamsSubject.next(r.queryParams),e.fragment!==r.fragment&&i.fragmentSubject.next(r.fragment),tr(e.params,r.params)||i.paramsSubject.next(r.params),uB(e.url,r.url)||i.urlSubject.next(r.url),tr(e.data,r.data)||i.dataSubject.next(r.data)}else i.snapshot=i._futureSnapshot,i.dataSubject.next(i._futureSnapshot.data)}function y0(i,e){let r=tr(i.params,e.params)&&fB(i.url,e.url),t=!i.parent!=!e.parent;return r&&!t&&(!i.parent||y0(i.parent,e.parent))}function SM(i){return typeof i.title=="string"||i.title===null}var T0=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=ut,this.activateEvents=new T,this.deactivateEvents=new T,this.attachEvents=new T,this.detachEvents=new T,this.parentContexts=k(cd),this.location=k(Ct),this.changeDetector=k(he),this.inputBinder=k(Ym,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(t){if(t.name){let{firstChange:n,previousValue:o}=t.name;if(n)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new J(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new J(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new J(4012,!1);this.location.detach();let t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,n){this.activated=t,this._activatedRoute=n,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){let t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,n){if(this.isActivated)throw new J(4013,!1);this._activatedRoute=t;let o=this.location,s=t.snapshot.component,l=this.parentContexts.getOrCreateContext(this.name).children,u=new w0(t,l,o.injector);this.activated=o.createComponent(s,{index:o.length,injector:u,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Qe]});let i=e;return i})(),w0=class i{__ngOutletInjector(e){return new i(this.route,this.childContexts,e)}constructor(e,r,t){this.route=e,this.childContexts=r,this.parent=t}get(e,r){return e===Oe?this.route:e===cd?this.childContexts:this.parent.get(e,r)}},Ym=new R(""),nM=(()=>{let e=class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){let{activatedRoute:n}=t,o=Rn([n.queryParams,n.params,n.data]).pipe(Tt(([a,s,l],u)=>(l=j(j(j({},a),s),l),u===0?oe(l):Promise.resolve(l)))).subscribe(a=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(t);return}let s=hI(n.component);if(!s){this.unsubscribeFromRouteData(t);return}for(let{templateName:l}of s.inputs)t.activatedComponentRef.setInput(l,a[l])});this.outletDataSubscriptions.set(t,o)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();function jB(i,e,r){let t=id(i,e._root,r?r._root:void 0);return new zm(t,e)}function id(i,e,r){if(r&&i.shouldReuseRoute(e.value,r.value.snapshot)){let t=r.value;t._futureSnapshot=e.value;let n=BB(i,e,r);return new Vn(t,n)}else{if(i.shouldAttach(e.value)){let o=i.retrieve(e.value);if(o!==null){let a=o.route;return a.value._futureSnapshot=e.value,a.children=e.children.map(s=>id(i,s)),a}}let t=zB(e.value),n=e.children.map(o=>id(i,o));return new Vn(t,n)}}function BB(i,e,r){return e.children.map(t=>{for(let n of r.children)if(i.shouldReuseRoute(t.value,n.value.snapshot))return id(i,t,n);return id(i,t)})}function zB(i){return new Oe(new Gt(i.url),new Gt(i.params),new Gt(i.queryParams),new Gt(i.fragment),new Gt(i.data),i.outlet,i.component,i)}var nd=class{constructor(e,r){this.redirectTo=e,this.navigationBehaviorOptions=r}},EM="ngNavigationCancelingError";function $m(i,e){let{redirectTo:r,navigationBehaviorOptions:t}=rs(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,n=IM(!1,jn.Redirect);return n.url=r,n.navigationBehaviorOptions=t,n}function IM(i,e){let r=new Error(`NavigationCancelingError: ${i||""}`);return r[EM]=!0,r.cancellationCode=e,r}function UB(i){return MM(i)&&rs(i.url)}function MM(i){return!!i&&i[EM]}var HB=(i,e,r,t)=>ue(n=>(new C0(e,n.targetRouterState,n.currentRouterState,r,t).activate(i),n)),C0=class{constructor(e,r,t,n,o){this.routeReuseStrategy=e,this.futureState=r,this.currState=t,this.forwardEvent=n,this.inputBindingEnabled=o}activate(e){let r=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(r,t,e),e0(this.futureState.root),this.activateChildRoutes(r,t,e)}deactivateChildRoutes(e,r,t){let n=ml(r);e.children.forEach(o=>{let a=o.value.outlet;this.deactivateRoutes(o,n[a],t),delete n[a]}),Object.values(n).forEach(o=>{this.deactivateRouteAndItsChildren(o,t)})}deactivateRoutes(e,r,t){let n=e.value,o=r?r.value:null;if(n===o)if(n.component){let a=t.getContext(n.outlet);a&&this.deactivateChildRoutes(e,r,a.children)}else this.deactivateChildRoutes(e,r,t);else o&&this.deactivateRouteAndItsChildren(r,t)}deactivateRouteAndItsChildren(e,r){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,r):this.deactivateRouteAndOutlet(e,r)}detachAndStoreRouteSubtree(e,r){let t=r.getContext(e.value.outlet),n=t&&e.value.component?t.children:r,o=ml(e);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,n);if(t&&t.outlet){let a=t.outlet.detach(),s=t.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:a,route:e,contexts:s})}}deactivateRouteAndOutlet(e,r){let t=r.getContext(e.value.outlet),n=t&&e.value.component?t.children:r,o=ml(e);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,n);t&&(t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated()),t.attachRef=null,t.route=null)}activateChildRoutes(e,r,t){let n=ml(r);e.children.forEach(o=>{this.activateRoutes(o,n[o.value.outlet],t),this.forwardEvent(new g0(o.value.snapshot))}),e.children.length&&this.forwardEvent(new p0(e.value.snapshot))}activateRoutes(e,r,t){let n=e.value,o=r?r.value:null;if(e0(n),n===o)if(n.component){let a=t.getOrCreateContext(n.outlet);this.activateChildRoutes(e,r,a.children)}else this.activateChildRoutes(e,r,t);else if(n.component){let a=t.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){let s=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),e0(s.route.value),this.activateChildRoutes(e,null,a.children)}else a.attachRef=null,a.route=n,a.outlet&&a.outlet.activateWith(n,a.injector),this.activateChildRoutes(e,null,a.children)}else this.activateChildRoutes(e,null,t)}},Wm=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},gl=class{constructor(e,r){this.component=e,this.route=r}};function $B(i,e,r){let t=i._root,n=e?e._root:null;return Yc(t,n,r,[t.value])}function WB(i){let e=i.routeConfig?i.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:i,guards:e}}function Cl(i,e){let r=Symbol(),t=e.get(i,r);return t===r?typeof i=="function"&&!hD(i)?i:e.get(i):t}function Yc(i,e,r,t,n={canDeactivateChecks:[],canActivateChecks:[]}){let o=ml(e);return i.children.forEach(a=>{GB(a,o[a.value.outlet],r,t.concat([a.value]),n),delete o[a.value.outlet]}),Object.entries(o).forEach(([a,s])=>Xc(s,r.getContext(a),n)),n}function GB(i,e,r,t,n={canDeactivateChecks:[],canActivateChecks:[]}){let o=i.value,a=e?e.value:null,s=r?r.getContext(i.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){let l=qB(a,o,o.routeConfig.runGuardsAndResolvers);l?n.canActivateChecks.push(new Wm(t)):(o.data=a.data,o._resolvedData=a._resolvedData),o.component?Yc(i,e,s?s.children:null,t,n):Yc(i,e,r,t,n),l&&s&&s.outlet&&s.outlet.isActivated&&n.canDeactivateChecks.push(new gl(s.outlet.component,a))}else a&&Xc(e,s,n),n.canActivateChecks.push(new Wm(t)),o.component?Yc(i,null,s?s.children:null,t,n):Yc(i,null,r,t,n);return n}function qB(i,e,r){if(typeof r=="function")return r(i,e);switch(r){case"pathParamsChange":return!os(i.url,e.url);case"pathParamsOrQueryParamsChange":return!os(i.url,e.url)||!tr(i.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!y0(i,e)||!tr(i.queryParams,e.queryParams);case"paramsChange":default:return!y0(i,e)}}function Xc(i,e,r){let t=ml(i),n=i.value;Object.entries(t).forEach(([o,a])=>{n.component?e?Xc(a,e.children.getContext(o),r):Xc(a,null,r):Xc(a,e,r)}),n.component?e&&e.outlet&&e.outlet.isActivated?r.canDeactivateChecks.push(new gl(e.outlet.component,n)):r.canDeactivateChecks.push(new gl(null,n)):r.canDeactivateChecks.push(new gl(null,n))}function dd(i){return typeof i=="function"}function YB(i){return typeof i=="boolean"}function QB(i){return i&&dd(i.canLoad)}function KB(i){return i&&dd(i.canActivate)}function ZB(i){return i&&dd(i.canActivateChild)}function XB(i){return i&&dd(i.canDeactivate)}function JB(i){return i&&dd(i.canMatch)}function TM(i){return i instanceof bo||i?.name==="EmptyError"}var Am=Symbol("INITIAL_VALUE");function wl(){return Tt(i=>Rn(i.map(e=>e.pipe(Ot(1),Rt(Am)))).pipe(ue(e=>{for(let r of e)if(r!==!0){if(r===Am)return Am;if(r===!1||ez(r))return r}return!0}),Ye(e=>e!==Am),Ot(1)))}function ez(i){return rs(i)||i instanceof nd}function tz(i,e){return ci(r=>{let{targetSnapshot:t,currentSnapshot:n,guards:{canActivateChecks:o,canDeactivateChecks:a}}=r;return a.length===0&&o.length===0?oe(rt(j({},r),{guardsResult:!0})):iz(a,t,n,i).pipe(ci(s=>s&&YB(s)?nz(t,o,i,e):oe(s)),ue(s=>rt(j({},r),{guardsResult:s})))})}function iz(i,e,r,t){return Kt(i).pipe(ci(n=>lz(n.component,n.route,r,e,t)),Uo(n=>n!==!0,!0))}function nz(i,e,r,t){return Kt(e).pipe(hr(n=>Bo(rz(n.route.parent,t),oz(n.route,t),sz(i,n.path,r),az(i,n.route,r))),Uo(n=>n!==!0,!0))}function oz(i,e){return i!==null&&e&&e(new f0(i)),oe(!0)}function rz(i,e){return i!==null&&e&&e(new m0(i)),oe(!0)}function az(i,e,r){let t=e.routeConfig?e.routeConfig.canActivate:null;if(!t||t.length===0)return oe(!0);let n=t.map(o=>Xn(()=>{let a=ld(e)??r,s=Cl(o,a),l=KB(s)?s.canActivate(e,i):io(a,()=>s(e,i));return ma(l).pipe(Uo())}));return oe(n).pipe(wl())}function sz(i,e,r){let t=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(a=>WB(a)).filter(a=>a!==null).map(a=>Xn(()=>{let s=a.guards.map(l=>{let u=ld(a.node)??r,f=Cl(l,u),v=ZB(f)?f.canActivateChild(t,i):io(u,()=>f(t,i));return ma(v).pipe(Uo())});return oe(s).pipe(wl())}));return oe(o).pipe(wl())}function lz(i,e,r,t,n){let o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||o.length===0)return oe(!0);let a=o.map(s=>{let l=ld(e)??n,u=Cl(s,l),f=XB(u)?u.canDeactivate(i,e,r,t):io(l,()=>u(i,e,r,t));return ma(f).pipe(Uo())});return oe(a).pipe(wl())}function cz(i,e,r,t){let n=e.canLoad;if(n===void 0||n.length===0)return oe(!0);let o=n.map(a=>{let s=Cl(a,i),l=QB(s)?s.canLoad(e,r):io(i,()=>s(e,r));return ma(l)});return oe(o).pipe(wl(),kM(t))}function kM(i){return Ug(Ht(e=>{if(typeof e!="boolean")throw $m(i,e)}),ue(e=>e===!0))}function dz(i,e,r,t){let n=e.canMatch;if(!n||n.length===0)return oe(!0);let o=n.map(a=>{let s=Cl(a,i),l=JB(s)?s.canMatch(e,r):io(i,()=>s(e,r));return ma(l)});return oe(o).pipe(wl(),kM(t))}var od=class{constructor(e){this.segmentGroup=e||null}},rd=class extends Error{constructor(e){super(),this.urlTree=e}};function hl(i){return jo(new od(i))}function uz(i){return jo(new J(4e3,!1))}function hz(i){return jo(IM(!1,jn.GuardRejected))}var x0=class{constructor(e,r){this.urlSerializer=e,this.urlTree=r}lineralizeSegments(e,r){let t=[],n=r.root;for(;;){if(t=t.concat(n.segments),n.numberOfChildren===0)return oe(t);if(n.numberOfChildren>1||!n.children[ut])return uz(`${e.redirectTo}`);n=n.children[ut]}}applyRedirectCommands(e,r,t,n,o){if(typeof r!="string"){let s=r,{queryParams:l,fragment:u,routeConfig:f,url:v,outlet:C,params:D,data:S,title:P}=n,z=io(o,()=>s({params:D,data:S,queryParams:l,fragment:u,routeConfig:f,url:v,outlet:C,title:P}));if(z instanceof Or)throw new rd(z);r=z}let a=this.applyRedirectCreateUrlTree(r,this.urlSerializer.parse(r),e,t);if(r[0]==="/")throw new rd(a);return a}applyRedirectCreateUrlTree(e,r,t,n){let o=this.createSegmentGroup(e,r.root,t,n);return new Or(o,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)}createQueryParams(e,r){let t={};return Object.entries(e).forEach(([n,o])=>{if(typeof o=="string"&&o[0]===":"){let s=o.substring(1);t[n]=r[s]}else t[n]=o}),t}createSegmentGroup(e,r,t,n){let o=this.createSegments(e,r.segments,t,n),a={};return Object.entries(r.children).forEach(([s,l])=>{a[s]=this.createSegmentGroup(e,l,t,n)}),new Bt(o,a)}createSegments(e,r,t,n){return r.map(o=>o.path[0]===":"?this.findPosParam(e,o,n):this.findOrReturn(o,t))}findPosParam(e,r,t){let n=t[r.path.substring(1)];if(!n)throw new J(4001,!1);return n}findOrReturn(e,r){let t=0;for(let n of r){if(n.path===e.path)return r.splice(t),n;t++}return e}},D0={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function mz(i,e,r,t,n){let o=AM(i,e,r);return o.matched?(t=NB(e,t),dz(t,e,r,n).pipe(ue(a=>a===!0?o:j({},D0)))):oe(o)}function AM(i,e,r){if(e.path==="**")return pz(r);if(e.path==="")return e.pathMatch==="full"&&(i.hasChildren()||r.length>0)?j({},D0):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};let n=(e.matcher||dB)(r,i,e);if(!n)return j({},D0);let o={};Object.entries(n.posParams??{}).forEach(([s,l])=>{o[s]=l.path});let a=n.consumed.length>0?j(j({},o),n.consumed[n.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:n.consumed,remainingSegments:r.slice(n.consumed.length),parameters:a,positionalParamSegments:n.posParams??{}}}function pz(i){return{matched:!0,parameters:i.length>0?dM(i).parameters:{},consumedSegments:i,remainingSegments:[],positionalParamSegments:{}}}function oM(i,e,r,t){return r.length>0&&_z(i,r,t)?{segmentGroup:new Bt(e,gz(t,new Bt(r,i.children))),slicedSegments:[]}:r.length===0&&vz(i,r,t)?{segmentGroup:new Bt(i.segments,fz(i,r,t,i.children)),slicedSegments:r}:{segmentGroup:new Bt(i.segments,i.children),slicedSegments:r}}function fz(i,e,r,t){let n={};for(let o of r)if(Qm(i,e,o)&&!t[Io(o)]){let a=new Bt([],{});n[Io(o)]=a}return j(j({},t),n)}function gz(i,e){let r={};r[ut]=e;for(let t of i)if(t.path===""&&Io(t)!==ut){let n=new Bt([],{});r[Io(t)]=n}return r}function _z(i,e,r){return r.some(t=>Qm(i,e,t)&&Io(t)!==ut)}function vz(i,e,r){return r.some(t=>Qm(i,e,t))}function Qm(i,e,r){return(i.hasChildren()||e.length>0)&&r.pathMatch==="full"?!1:r.path===""}function bz(i,e,r){return e.length===0&&!i.children[r]}var S0=class{};function yz(i,e,r,t,n,o,a="emptyOnly"){return new E0(i,e,r,t,n,a,o).recognize()}var wz=31,E0=class{constructor(e,r,t,n,o,a,s){this.injector=e,this.configLoader=r,this.rootComponentType=t,this.config=n,this.urlTree=o,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.applyRedirects=new x0(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new J(4002,`'${e.segmentGroup}'`)}recognize(){let e=oM(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(ue(({children:r,rootSnapshot:t})=>{let n=new Vn(t,r),o=new Hm("",n),a=TB(t,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(a),{state:o,tree:a}}))}match(e){let r=new fl([],Object.freeze({}),Object.freeze(j({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),ut,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,ut,r).pipe(ue(t=>({children:t,rootSnapshot:r})),Wi(t=>{if(t instanceof rd)return this.urlTree=t.urlTree,this.match(t.urlTree.root);throw t instanceof od?this.noMatchError(t):t}))}processSegmentGroup(e,r,t,n,o){return t.segments.length===0&&t.hasChildren()?this.processChildren(e,r,t,o):this.processSegment(e,r,t,t.segments,n,!0,o).pipe(ue(a=>a instanceof Vn?[a]:[]))}processChildren(e,r,t,n){let o=[];for(let a of Object.keys(t.children))a==="primary"?o.unshift(a):o.push(a);return Kt(o).pipe(hr(a=>{let s=t.children[a],l=LB(r,a);return this.processSegmentGroup(e,l,s,a,n)}),e_((a,s)=>(a.push(...s),a)),Yr(null),Jg(),ci(a=>{if(a===null)return hl(t);let s=OM(a);return Cz(s),oe(s)}))}processSegment(e,r,t,n,o,a,s){return Kt(r).pipe(hr(l=>this.processSegmentAgainstRoute(l._injector??e,r,l,t,n,o,a,s).pipe(Wi(u=>{if(u instanceof od)return oe(null);throw u}))),Uo(l=>!!l),Wi(l=>{if(TM(l))return bz(t,n,o)?oe(new S0):hl(t);throw l}))}processSegmentAgainstRoute(e,r,t,n,o,a,s,l){return Io(t)!==a&&(a===ut||!Qm(n,o,t))?hl(n):t.redirectTo===void 0?this.matchSegmentAgainstRoute(e,n,t,o,a,l):this.allowRedirects&&s?this.expandSegmentAgainstRouteUsingRedirect(e,n,r,t,o,a,l):hl(n)}expandSegmentAgainstRouteUsingRedirect(e,r,t,n,o,a,s){let{matched:l,parameters:u,consumedSegments:f,positionalParamSegments:v,remainingSegments:C}=AM(r,n,o);if(!l)return hl(r);typeof n.redirectTo=="string"&&n.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>wz&&(this.allowRedirects=!1));let D=new fl(o,u,Object.freeze(j({},this.urlTree.queryParams)),this.urlTree.fragment,rM(n),Io(n),n.component??n._loadedComponent??null,n,aM(n)),S=Um(D,s,this.paramsInheritanceStrategy);D.params=Object.freeze(S.params),D.data=Object.freeze(S.data);let P=this.applyRedirects.applyRedirectCommands(f,n.redirectTo,v,D,e);return this.applyRedirects.lineralizeSegments(n,P).pipe(ci(z=>this.processSegment(e,t,r,z.concat(C),a,!1,s)))}matchSegmentAgainstRoute(e,r,t,n,o,a){let s=mz(r,t,n,e,this.urlSerializer);return t.path==="**"&&(r.children={}),s.pipe(Tt(l=>l.matched?(e=t._injector??e,this.getChildConfig(e,t,n).pipe(Tt(({routes:u})=>{let f=t._loadedInjector??e,{parameters:v,consumedSegments:C,remainingSegments:D}=l,S=new fl(C,v,Object.freeze(j({},this.urlTree.queryParams)),this.urlTree.fragment,rM(t),Io(t),t.component??t._loadedComponent??null,t,aM(t)),P=Um(S,a,this.paramsInheritanceStrategy);S.params=Object.freeze(P.params),S.data=Object.freeze(P.data);let{segmentGroup:z,slicedSegments:O}=oM(r,C,D,u);if(O.length===0&&z.hasChildren())return this.processChildren(f,u,z,S).pipe(ue(ht=>new Vn(S,ht)));if(u.length===0&&O.length===0)return oe(new Vn(S,[]));let de=Io(t)===o;return this.processSegment(f,u,z,O,de?ut:o,!0,S).pipe(ue(ht=>new Vn(S,ht instanceof Vn?[ht]:[])))}))):hl(r)))}getChildConfig(e,r,t){return r.children?oe({routes:r.children,injector:e}):r.loadChildren?r._loadedRoutes!==void 0?oe({routes:r._loadedRoutes,injector:r._loadedInjector}):cz(e,r,t,this.urlSerializer).pipe(ci(n=>n?this.configLoader.loadChildren(e,r).pipe(Ht(o=>{r._loadedRoutes=o.routes,r._loadedInjector=o.injector})):hz(r))):oe({routes:[],injector:e})}};function Cz(i){i.sort((e,r)=>e.value.outlet===ut?-1:r.value.outlet===ut?1:e.value.outlet.localeCompare(r.value.outlet))}function xz(i){let e=i.value.routeConfig;return e&&e.path===""}function OM(i){let e=[],r=new Set;for(let t of i){if(!xz(t)){e.push(t);continue}let n=e.find(o=>t.value.routeConfig===o.value.routeConfig);n!==void 0?(n.children.push(...t.children),r.add(n)):e.push(t)}for(let t of r){let n=OM(t.children);e.push(new Vn(t.value,n))}return e.filter(t=>!r.has(t))}function rM(i){return i.data||{}}function aM(i){return i.resolve||{}}function Dz(i,e,r,t,n,o){return ci(a=>yz(i,e,r,t,a.extractedUrl,n,o).pipe(ue(({state:s,tree:l})=>rt(j({},a),{targetSnapshot:s,urlAfterRedirects:l}))))}function Sz(i,e){return ci(r=>{let{targetSnapshot:t,guards:{canActivateChecks:n}}=r;if(!n.length)return oe(r);let o=new Set(n.map(l=>l.route)),a=new Set;for(let l of o)if(!a.has(l))for(let u of RM(l))a.add(u);let s=0;return Kt(a).pipe(hr(l=>o.has(l)?Ez(l,t,i,e):(l.data=Um(l,l.parent,i).resolve,oe(void 0))),Ht(()=>s++),Bs(1),ci(l=>s===a.size?oe(r):Ai))})}function RM(i){let e=i.children.map(r=>RM(r)).flat();return[i,...e]}function Ez(i,e,r,t){let n=i.routeConfig,o=i._resolve;return n?.title!==void 0&&!SM(n)&&(o[ad]=n.title),Iz(o,i,e,t).pipe(ue(a=>(i._resolvedData=a,i.data=Um(i,i.parent,r).resolve,null)))}function Iz(i,e,r,t){let n=n0(i);if(n.length===0)return oe({});let o={};return Kt(n).pipe(ci(a=>Mz(i[a],e,r,t).pipe(Uo(),Ht(s=>{if(s instanceof nd)throw $m(new vl,s);o[a]=s}))),Bs(1),hc(o),Wi(a=>TM(a)?Ai:jo(a)))}function Mz(i,e,r,t){let n=ld(e)??t,o=Cl(i,n),a=o.resolve?o.resolve(e,r):io(n,()=>o(e,r));return ma(a)}function t0(i){return Tt(e=>{let r=i(e);return r?Kt(r).pipe(ue(()=>e)):oe(e)})}var PM=(()=>{let e=class e{buildTitle(t){let n,o=t.root;for(;o!==void 0;)n=this.getResolvedTitleForRoute(o)??n,o=o.children.find(a=>a.outlet===ut);return n}getResolvedTitleForRoute(t){return t.data[ad]}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:()=>k(Tz),providedIn:"root"});let i=e;return i})(),Tz=(()=>{let e=class e extends PM{constructor(t){super(),this.title=t}updateTitle(t){let n=this.buildTitle(t);n!==void 0&&this.title.setTitle(n)}};e.\u0275fac=function(n){return new(n||e)(M(XI))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),ud=new R("",{providedIn:"root",factory:()=>({})}),kz=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=E({type:e,selectors:[["ng-component"]],standalone:!0,features:[re],decls:1,vars:0,template:function(n,o){n&1&&I(0,"router-outlet")},dependencies:[T0],encapsulation:2});let i=e;return i})();function k0(i){let e=i.children&&i.children.map(k0),r=e?rt(j({},i),{children:e}):j({},i);return!r.component&&!r.loadComponent&&(e||r.loadChildren)&&r.outlet&&r.outlet!==ut&&(r.component=kz),r}var Gm=new R(""),A0=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=k(mm)}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return oe(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);let n=ma(t.loadComponent()).pipe(ue(FM),Ht(a=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=a}),zo(()=>{this.componentLoaders.delete(t)})),o=new Wr(n,()=>new G).pipe(Rs());return this.componentLoaders.set(t,o),o}loadChildren(t,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return oe({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let a=Az(n,this.compiler,t,this.onLoadEndListener).pipe(zo(()=>{this.childrenLoaders.delete(n)})),s=new Wr(a,()=>new G).pipe(Rs());return this.childrenLoaders.set(n,s),s}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function Az(i,e,r,t){return ma(i.loadChildren()).pipe(ue(FM),ci(n=>n instanceof Cc||Array.isArray(n)?oe(n):Kt(e.compileModuleAsync(n))),ue(n=>{t&&t(i);let o,a,s=!1;return Array.isArray(n)?(a=n,s=!0):(o=n.create(r).injector,a=o.get(Gm,[],{optional:!0,self:!0}).flat()),{routes:a.map(k0),injector:o}}))}function Oz(i){return i&&typeof i=="object"&&"default"in i}function FM(i){return Oz(i)?i.default:i}var O0=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:()=>k(Rz),providedIn:"root"});let i=e;return i})(),Rz=(()=>{let e=class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,n){return t}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),NM=new R(""),LM=new R("");function Pz(i,e,r){let t=i.get(LM),n=i.get(se);return i.get(Z).runOutsideAngular(()=>{if(!n.startViewTransition||t.skipNextTransition)return t.skipNextTransition=!1,new Promise(u=>setTimeout(u));let o,a=new Promise(u=>{o=u}),s=n.startViewTransition(()=>(o(),Fz(i))),{onViewTransitionCreated:l}=t;return l&&io(i,()=>l({transition:s,from:e,to:r})),a})}function Fz(i){return new Promise(e=>{ai({read:()=>setTimeout(e)},{injector:i})})}var Nz=new R(""),R0=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new G,this.transitionAbortSubject=new G,this.configLoader=k(A0),this.environmentInjector=k(qi),this.urlSerializer=k(sd),this.rootContexts=k(cd),this.location=k(er),this.inputBindingEnabled=k(Ym,{optional:!0})!==null,this.titleStrategy=k(PM),this.options=k(ud,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=k(O0),this.createViewTransition=k(NM,{optional:!0}),this.navigationErrorHandler=k(Nz,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>oe(void 0),this.rootComponentType=null;let t=o=>this.events.next(new u0(o)),n=o=>this.events.next(new h0(o));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=t}complete(){this.transitions?.complete()}handleNavigationRequest(t){let n=++this.navigationId;this.transitions?.next(rt(j(j({},this.transitions.value),t),{id:n}))}setupNavigations(t,n,o){return this.transitions=new Gt({id:0,currentUrlTree:n,currentRawUrl:n,extractedUrl:this.urlHandlingStrategy.extract(n),urlAfterRedirects:this.urlHandlingStrategy.extract(n),rawUrl:n,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Zc,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Ye(a=>a.id!==0),ue(a=>rt(j({},a),{extractedUrl:this.urlHandlingStrategy.extract(a.rawUrl)})),Tt(a=>{let s=!1,l=!1;return oe(a).pipe(Tt(u=>{if(this.navigationId>a.id)return this.cancelNavigationTransition(a,"",jn.SupersededByNewNavigation),Ai;this.currentTransition=a,this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,targetBrowserUrl:typeof u.extras.browserUrl=="string"?this.urlSerializer.parse(u.extras.browserUrl):u.extras.browserUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?rt(j({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let f=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),v=u.extras.onSameUrlNavigation??t.onSameUrlNavigation;if(!f&&v!=="reload"){let C="";return this.events.next(new ha(u.id,this.urlSerializer.serialize(u.rawUrl),C,Lm.IgnoredSameUrlNavigation)),u.resolve(!1),Ai}if(this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return oe(u).pipe(Tt(C=>{let D=this.transitions?.getValue();return this.events.next(new bl(C.id,this.urlSerializer.serialize(C.extractedUrl),C.source,C.restoredState)),D!==this.transitions?.getValue()?Ai:Promise.resolve(C)}),Dz(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy),Ht(C=>{a.targetSnapshot=C.targetSnapshot,a.urlAfterRedirects=C.urlAfterRedirects,this.currentNavigation=rt(j({},this.currentNavigation),{finalUrl:C.urlAfterRedirects});let D=new Vm(C.id,this.urlSerializer.serialize(C.extractedUrl),this.urlSerializer.serialize(C.urlAfterRedirects),C.targetSnapshot);this.events.next(D)}));if(f&&this.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){let{id:C,extractedUrl:D,source:S,restoredState:P,extras:z}=u,O=new bl(C,this.urlSerializer.serialize(D),S,P);this.events.next(O);let de=xM(this.rootComponentType).snapshot;return this.currentTransition=a=rt(j({},u),{targetSnapshot:de,urlAfterRedirects:D,extras:rt(j({},z),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=D,oe(a)}else{let C="";return this.events.next(new ha(u.id,this.urlSerializer.serialize(u.extractedUrl),C,Lm.IgnoredByUrlHandlingStrategy)),u.resolve(!1),Ai}}),Ht(u=>{let f=new s0(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(f)}),ue(u=>(this.currentTransition=a=rt(j({},u),{guards:$B(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),a)),tz(this.environmentInjector,u=>this.events.next(u)),Ht(u=>{if(a.guardsResult=u.guardsResult,u.guardsResult&&typeof u.guardsResult!="boolean")throw $m(this.urlSerializer,u.guardsResult);let f=new l0(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(f)}),Ye(u=>u.guardsResult?!0:(this.cancelNavigationTransition(u,"",jn.GuardRejected),!1)),t0(u=>{if(u.guards.canActivateChecks.length)return oe(u).pipe(Ht(f=>{let v=new c0(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(v)}),Tt(f=>{let v=!1;return oe(f).pipe(Sz(this.paramsInheritanceStrategy,this.environmentInjector),Ht({next:()=>v=!0,complete:()=>{v||this.cancelNavigationTransition(f,"",jn.NoDataFromResolver)}}))}),Ht(f=>{let v=new d0(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(v)}))}),t0(u=>{let f=v=>{let C=[];v.routeConfig?.loadComponent&&!v.routeConfig._loadedComponent&&C.push(this.configLoader.loadComponent(v.routeConfig).pipe(Ht(D=>{v.component=D}),ue(()=>{})));for(let D of v.children)C.push(...f(D));return C};return Rn(f(u.targetSnapshot.root)).pipe(Yr(null),Ot(1))}),t0(()=>this.afterPreactivation()),Tt(()=>{let{currentSnapshot:u,targetSnapshot:f}=a,v=this.createViewTransition?.(this.environmentInjector,u.root,f.root);return v?Kt(v).pipe(ue(()=>a)):oe(a)}),ue(u=>{let f=jB(t.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=a=rt(j({},u),{targetRouterState:f}),this.currentNavigation.targetRouterState=f,a}),Ht(()=>{this.events.next(new td)}),HB(this.rootContexts,t.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),Ot(1),Ht({next:u=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new ir(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),this.titleStrategy?.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{s=!0}}),fe(this.transitionAbortSubject.pipe(Ht(u=>{throw u}))),zo(()=>{!s&&!l&&this.cancelNavigationTransition(a,"",jn.SupersededByNewNavigation),this.currentTransition?.id===a.id&&(this.currentNavigation=null,this.currentTransition=null)}),Wi(u=>{if(l=!0,MM(u))this.events.next(new Ar(a.id,this.urlSerializer.serialize(a.extractedUrl),u.message,u.cancellationCode)),UB(u)?this.events.next(new yl(u.url,u.navigationBehaviorOptions)):a.resolve(!1);else{let f=new ed(a.id,this.urlSerializer.serialize(a.extractedUrl),u,a.targetSnapshot??void 0);try{let v=io(this.environmentInjector,()=>this.navigationErrorHandler?.(f));if(v instanceof nd){let{message:C,cancellationCode:D}=$m(this.urlSerializer,v);this.events.next(new Ar(a.id,this.urlSerializer.serialize(a.extractedUrl),C,D)),this.events.next(new yl(v.redirectTo,v.navigationBehaviorOptions))}else{this.events.next(f);let C=t.errorHandler(u);a.resolve(!!C)}}catch(v){this.options.resolveNavigationPromiseOnError?a.resolve(!1):a.reject(v)}}return Ai}))}))}cancelNavigationTransition(t,n,o){let a=new Ar(t.id,this.urlSerializer.serialize(t.extractedUrl),n,o);this.events.next(a),t.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let t=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return t.toString()!==n?.toString()&&!this.currentNavigation?.extras.skipLocationChange}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function Lz(i){return i!==Zc}var Vz=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:()=>k(jz),providedIn:"root"});let i=e;return i})(),I0=class{shouldDetach(e){return!1}store(e,r){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,r){return e.routeConfig===r.routeConfig}},jz=(()=>{let e=class e extends I0{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=jt(e)))(o||e)}})(),e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),VM=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:()=>k(Bz),providedIn:"root"});let i=e;return i})(),Bz=(()=>{let e=class e extends VM{constructor(){super(...arguments),this.location=k(er),this.urlSerializer=k(sd),this.options=k(ud,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=k(O0),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Or,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=xM(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(n=>{n.type==="popstate"&&t(n.url,n.state)})}handleRouterEvent(t,n){if(t instanceof bl)this.stateMemento=this.createStateMemento();else if(t instanceof ha)this.rawUrlTree=n.initialUrl;else if(t instanceof Vm){if(this.urlUpdateStrategy==="eager"&&!n.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl);this.setBrowserUrl(n.targetBrowserUrl??o,n)}}else t instanceof td?(this.currentUrlTree=n.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl),this.routerState=n.targetRouterState,this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(n.targetBrowserUrl??this.rawUrlTree,n)):t instanceof Ar&&(t.code===jn.GuardRejected||t.code===jn.NoDataFromResolver)?this.restoreHistory(n):t instanceof ed?this.restoreHistory(n,!0):t instanceof ir&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,n){let o=t instanceof Or?this.urlSerializer.serialize(t):t;if(this.location.isCurrentPathEqualTo(o)||n.extras.replaceUrl){let a=this.browserPageId,s=j(j({},n.extras.state),this.generateNgRouterState(n.id,a));this.location.replaceState(o,"",s)}else{let a=j(j({},n.extras.state),this.generateNgRouterState(n.id,this.browserPageId+1));this.location.go(o,"",a)}}restoreHistory(t,n=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,a=this.currentPageId-o;a!==0?this.location.historyGo(a):this.currentUrlTree===t.finalUrl&&a===0&&(this.resetState(t),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,n){return this.canceledNavigationResolution==="computed"?{navigationId:t,\u0275routerPageId:n}:{navigationId:t}}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=jt(e)))(o||e)}})(),e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),Qc=function(i){return i[i.COMPLETE=0]="COMPLETE",i[i.FAILED=1]="FAILED",i[i.REDIRECTING=2]="REDIRECTING",i}(Qc||{});function jM(i,e){i.events.pipe(Ye(r=>r instanceof ir||r instanceof Ar||r instanceof ed||r instanceof ha),ue(r=>r instanceof ir||r instanceof ha?Qc.COMPLETE:(r instanceof Ar?r.code===jn.Redirect||r.code===jn.SupersededByNewNavigation:!1)?Qc.REDIRECTING:Qc.FAILED),Ye(r=>r!==Qc.REDIRECTING),Ot(1)).subscribe(()=>{e()})}function zz(i){throw i}var Uz={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Hz={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},nr=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=k(lm),this.stateManager=k(VM),this.options=k(ud,{optional:!0})||{},this.pendingTasks=k(Zo),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=k(R0),this.urlSerializer=k(sd),this.location=k(er),this.urlHandlingStrategy=k(O0),this._events=new G,this.errorHandler=this.options.errorHandler||zz,this.navigated=!1,this.routeReuseStrategy=k(Vz),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=k(Gm,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!k(Ym,{optional:!0}),this.eventsSubscription=new ve,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:t=>{this.console.warn(t)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let t=this.navigationTransitions.events.subscribe(n=>{try{let o=this.navigationTransitions.currentTransition,a=this.navigationTransitions.currentNavigation;if(o!==null&&a!==null){if(this.stateManager.handleRouterEvent(n,a),n instanceof Ar&&n.code!==jn.Redirect&&n.code!==jn.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof ir)this.navigated=!0;else if(n instanceof yl){let s=n.navigationBehaviorOptions,l=this.urlHandlingStrategy.merge(n.url,o.currentRawUrl),u=j({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Lz(o.source)},s);this.scheduleNavigation(l,Zc,null,u,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}Wz(n)&&this._events.next(n)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Zc,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,n)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(t,"popstate",n)},0)})}navigateToSyncWithBrowser(t,n,o){let a={replaceUrl:!0},s=o?.navigationId?o:null;if(o){let u=j({},o);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(a.state=u)}let l=this.parseUrl(t);this.scheduleNavigation(l,n,s,a)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(k0),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(t,n={}){let{relativeTo:o,queryParams:a,fragment:s,queryParamsHandling:l,preserveFragment:u}=n,f=u?this.currentUrlTree.fragment:s,v=null;switch(l??this.options.defaultQueryParamsHandling){case"merge":v=j(j({},this.currentUrlTree.queryParams),a);break;case"preserve":v=this.currentUrlTree.queryParams;break;default:v=a||null}v!==null&&(v=this.removeEmptyProps(v));let C;try{let D=o?o.snapshot:this.routerState.snapshot.root;C=bM(D)}catch{(typeof t[0]!="string"||t[0][0]!=="/")&&(t=[]),C=this.currentUrlTree.root}return yM(C,t,v,f??null)}navigateByUrl(t,n={skipLocationChange:!1}){let o=rs(t)?t:this.parseUrl(t),a=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(a,Zc,null,n)}navigate(t,n={skipLocationChange:!1}){return $z(t),this.navigateByUrl(this.createUrlTree(t,n),n)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){try{return this.urlSerializer.parse(t)}catch{return this.urlSerializer.parse("/")}}isActive(t,n){let o;if(n===!0?o=j({},Uz):n===!1?o=j({},Hz):o=n,rs(t))return JI(this.currentUrlTree,t,o);let a=this.parseUrl(t);return JI(this.currentUrlTree,a,o)}removeEmptyProps(t){return Object.entries(t).reduce((n,[o,a])=>(a!=null&&(n[o]=a),n),{})}scheduleNavigation(t,n,o,a,s){if(this.disposed)return Promise.resolve(!1);let l,u,f;s?(l=s.resolve,u=s.reject,f=s.promise):f=new Promise((C,D)=>{l=C,u=D});let v=this.pendingTasks.add();return jM(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(v))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:a,resolve:l,reject:u,promise:f,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),f.catch(C=>Promise.reject(C))}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function $z(i){for(let e=0;e{let e=class e{constructor(t,n,o,a,s,l){this.router=t,this.route=n,this.tabIndexAttribute=o,this.renderer=a,this.el=s,this.locationStrategy=l,this.href=null,this.onChanges=new G,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let u=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=u==="a"||u==="area",this.isAnchorElement?this.subscription=t.events.subscribe(f=>{f instanceof ir&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(t){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(t){t==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(rs(t)?this.routerLinkInput=t:this.routerLinkInput=Array.isArray(t)?t:[t],this.setTabIndexIfNotOnNativeEl("0"))}onClick(t,n,o,a,s){let l=this.urlTree;if(l===null||this.isAnchorElement&&(t!==0||n||o||a||s||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(l,u),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let t=this.urlTree;this.href=t!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(t)):null;let n=this.href===null?null:LS(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(t,n){let o=this.renderer,a=this.el.nativeElement;n!==null?o.setAttribute(a,t,n):o.removeAttribute(a,t)}get urlTree(){return this.routerLinkInput===null?null:rs(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(n){return new(n||e)(m(nr),m(Oe),vi("tabindex"),m(xr),m(q),m(kr))},e.\u0275dir=L({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,o){n&1&&b("click",function(s){return o.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),n&2&&ie("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Y],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Y],replaceUrl:[2,"replaceUrl","replaceUrl",Y],routerLink:"routerLink"},standalone:!0,features:[ge,Qe]});let i=e;return i})();var qm=class{};var Gz=(()=>{let e=class e{constructor(t,n,o,a,s){this.router=t,this.injector=o,this.preloadingStrategy=a,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(Ye(t=>t instanceof ir),hr(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,n){let o=[];for(let a of n){a.providers&&!a._injector&&(a._injector=sm(a.providers,t,`Route: ${a.path}`));let s=a._injector??t,l=a._loadedInjector??s;(a.loadChildren&&!a._loadedRoutes&&a.canLoad===void 0||a.loadComponent&&!a._loadedComponent)&&o.push(this.preloadConfig(s,a)),(a.children||a._loadedRoutes)&&o.push(this.processRoutes(l,a.children??a._loadedRoutes))}return Kt(o).pipe(qr())}preloadConfig(t,n){return this.preloadingStrategy.preload(n,()=>{let o;n.loadChildren&&n.canLoad===void 0?o=this.loader.loadChildren(t,n):o=oe(null);let a=o.pipe(ci(s=>s===null?oe(void 0):(n._loadedRoutes=s.routes,n._loadedInjector=s.injector,this.processRoutes(s.injector??t,s.routes))));if(n.loadComponent&&!n._loadedComponent){let s=this.loader.loadComponent(n);return Kt([a,s]).pipe(qr())}else return a})}};e.\u0275fac=function(n){return new(n||e)(M(nr),M(mm),M(qi),M(qm),M(A0))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),BM=new R(""),qz=(()=>{let e=class e{constructor(t,n,o,a,s={}){this.urlSerializer=t,this.transitions=n,this.viewportScroller=o,this.zone=a,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration||="disabled",s.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof bl?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof ir?(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment)):t instanceof ha&&t.code===Lm.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof jm&&(t.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(t.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,n){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new jm(t,this.lastSource==="popstate"?this.store[this.restoredId]:null,n))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(n){ts()},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();function Yz(i){return i.routerState.root}function hd(i,e){return{\u0275kind:i,\u0275providers:e}}function Qz(){let i=k(Pe);return e=>{let r=i.get(Ln);if(e!==r.components[0])return;let t=i.get(nr),n=i.get(zM);i.get(P0)===1&&t.initialNavigation(),i.get(UM,null,gt.Optional)?.setUpPreloading(),i.get(BM,null,gt.Optional)?.init(),t.resetRootComponentType(r.componentTypes[0]),n.closed||(n.next(),n.complete(),n.unsubscribe())}}var zM=new R("",{factory:()=>new G}),P0=new R("",{providedIn:"root",factory:()=>1});function Kz(){return hd(2,[{provide:P0,useValue:0},{provide:um,multi:!0,deps:[Pe],useFactory:e=>{let r=e.get(wI,Promise.resolve());return()=>r.then(()=>new Promise(t=>{let n=e.get(nr),o=e.get(zM);jM(n,()=>{t(!0)}),e.get(R0).afterPreactivation=()=>(t(!0),o.closed?oe(void 0):o),n.initialNavigation()}))}}])}function Zz(){return hd(3,[{provide:um,multi:!0,useFactory:()=>{let e=k(nr);return()=>{e.setUpLocationChangeListener()}}},{provide:P0,useValue:2}])}var UM=new R("");function Xz(i){return hd(0,[{provide:UM,useExisting:Gz},{provide:qm,useExisting:i}])}function Jz(){return hd(8,[nM,{provide:Ym,useExisting:nM}])}function e4(i){let e=[{provide:NM,useValue:Pz},{provide:LM,useValue:j({skipNextTransition:!!i?.skipInitialTransition},i)}];return hd(9,e)}var sM=new R("ROUTER_FORROOT_GUARD"),t4=[er,{provide:sd,useClass:vl},nr,cd,{provide:Oe,useFactory:Yz,deps:[nr]},A0,[]],F0=(()=>{let e=class e{constructor(t){}static forRoot(t,n){return{ngModule:e,providers:[t4,[],{provide:Gm,multi:!0,useValue:t},{provide:sM,useFactory:r4,deps:[[nr,new to,new Do]]},{provide:ud,useValue:n||{}},n?.useHash?n4():o4(),i4(),n?.preloadingStrategy?Xz(n.preloadingStrategy).\u0275providers:[],n?.initialNavigation?a4(n):[],n?.bindToComponentInputs?Jz().\u0275providers:[],n?.enableViewTransitions?e4().\u0275providers:[],s4()]}}static forChild(t){return{ngModule:e,providers:[{provide:Gm,multi:!0,useValue:t}]}}};e.\u0275fac=function(n){return new(n||e)(M(sM,8))},e.\u0275mod=te({type:e}),e.\u0275inj=ee({});let i=e;return i})();function i4(){return{provide:BM,useFactory:()=>{let i=k(MI),e=k(Z),r=k(ud),t=k(R0),n=k(sd);return r.scrollOffset&&i.setOffset(r.scrollOffset),new qz(n,t,i,e,r)}}}function n4(){return{provide:kr,useClass:xI}}function o4(){return{provide:kr,useClass:Fb}}function r4(i){return"guarded"}function a4(i){return[i.initialNavigation==="disabled"?Zz().\u0275providers:[],i.initialNavigation==="enabledBlocking"?Kz().\u0275providers:[]]}var lM=new R("");function s4(){return[{provide:lM,useFactory:Qz},{provide:hm,multi:!0,useExisting:lM}]}var Km=class{constructor(e){this.user=e.user,this.role=e.role,this.admin=e.admin}get isStaff(){return this.role==="staff"||this.role==="admin"}get isAdmin(){return this.role==="admin"}get isLogged(){return this.user!=null}};function Bn(i){return i!=null&&`${i}`!="false"}function Mo(i,e=0){return N0(i)?Number(i):arguments.length===2?e:0}function N0(i){return!isNaN(parseFloat(i))&&!isNaN(Number(i))}function xl(i){return Array.isArray(i)?i:[i]}function xi(i){return i==null?"":typeof i=="string"?i:`${i}px`}function En(i){return i instanceof q?i.nativeElement:i}function HM(i,e=/\s+/){let r=[];if(i!=null){let t=Array.isArray(i)?i:`${i}`.split(e);for(let n of t){let o=`${n}`.trim();o&&r.push(o)}}return r}var V0;try{V0=typeof Intl<"u"&&Intl.v8BreakIterator}catch{V0=!1}var Ve=(()=>{let e=class e{constructor(t){this._platformId=t,this.isBrowser=this._platformId?Lb(this._platformId):typeof document=="object"&&!!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||V0)&&typeof CSS<"u"&&!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}};e.\u0275fac=function(n){return new(n||e)(M(oo))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var Dl,$M=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function j0(){if(Dl)return Dl;if(typeof document!="object"||!document)return Dl=new Set($M),Dl;let i=document.createElement("input");return Dl=new Set($M.filter(e=>(i.setAttribute("type",e),i.type===e))),Dl}var md;function l4(){if(md==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>md=!0}))}finally{md=md||!1}return md}function Ui(i){return l4()?i:!!i.capture}var To=function(i){return i[i.NORMAL=0]="NORMAL",i[i.NEGATED=1]="NEGATED",i[i.INVERTED=2]="INVERTED",i}(To||{}),Zm,as;function Xm(){if(as==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return as=!1,as;if("scrollBehavior"in document.documentElement.style)as=!0;else{let i=Element.prototype.scrollTo;i?as=!/\{\s*\[native code\]\s*\}/.test(i.toString()):as=!1}}return as}function Sl(){if(typeof document!="object"||!document)return To.NORMAL;if(Zm==null){let i=document.createElement("div"),e=i.style;i.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";let r=document.createElement("div"),t=r.style;t.width="2px",t.height="1px",i.appendChild(r),document.body.appendChild(i),Zm=To.NORMAL,i.scrollLeft===0&&(i.scrollLeft=1,Zm=i.scrollLeft===0?To.NEGATED:To.INVERTED),i.remove()}return Zm}var L0;function c4(){if(L0==null){let i=typeof document<"u"?document.head:null;L0=!!(i&&(i.createShadowRoot||i.attachShadow))}return L0}function WM(i){if(c4()){let e=i.getRootNode?i.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function pa(){let i=typeof document<"u"&&document?document.activeElement:null;for(;i&&i.shadowRoot;){let e=i.shadowRoot.activeElement;if(e===i)break;i=e}return i}function mn(i){return i.composedPath?i.composedPath()[0]:i.target}function pd(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var d4=new R("cdk-dir-doc",{providedIn:"root",factory:u4});function u4(){return k(se)}var h4=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function m4(i){let e=i?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?h4.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var Nt=(()=>{let e=class e{constructor(t){if(this.value="ltr",this.change=new T,t){let n=t.body?t.body.dir:null,o=t.documentElement?t.documentElement.dir:null;this.value=m4(n||o||"ltr")}}ngOnDestroy(){this.change.complete()}};e.\u0275fac=function(n){return new(n||e)(M(d4,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var fa=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({});let i=e;return i})();var Jm=class{};function ep(i){return i&&typeof i.connect=="function"&&!(i instanceof Wr)}var El=function(i){return i[i.REPLACED=0]="REPLACED",i[i.INSERTED=1]="INSERTED",i[i.MOVED=2]="MOVED",i[i.REMOVED=3]="REMOVED",i}(El||{}),fd=new R("_ViewRepeater"),Il=class{applyChanges(e,r,t,n,o){e.forEachOperation((a,s,l)=>{let u,f;if(a.previousIndex==null){let v=t(a,s,l);u=r.createEmbeddedView(v.templateRef,v.context,v.index),f=El.INSERTED}else l==null?(r.remove(s),f=El.REMOVED):(u=r.get(s),r.move(u,l),f=El.MOVED);o&&o({context:u?.context,operation:f,record:a})})}detach(){}};var Rr=class{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(e=!1,r,t=!0,n){this._multiple=e,this._emitChanges=t,this.compareWith=n,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new G,r&&r.length&&(e?r.forEach(o=>this._markSelected(o)):this._markSelected(r[0]),this._selectedToEmit.length=0)}select(...e){this._verifyValueAssignment(e),e.forEach(t=>this._markSelected(t));let r=this._hasQueuedChanges();return this._emitChangeEvent(),r}deselect(...e){this._verifyValueAssignment(e),e.forEach(t=>this._unmarkSelected(t));let r=this._hasQueuedChanges();return this._emitChangeEvent(),r}setSelection(...e){this._verifyValueAssignment(e);let r=this.selected,t=new Set(e);e.forEach(o=>this._markSelected(o)),r.filter(o=>!t.has(this._getConcreteValue(o,t))).forEach(o=>this._unmarkSelected(o));let n=this._hasQueuedChanges();return this._emitChangeEvent(),n}toggle(e){return this.isSelected(e)?this.deselect(e):this.select(e)}clear(e=!0){this._unmarkAll();let r=this._hasQueuedChanges();return e&&this._emitChangeEvent(),r}isSelected(e){return this._selection.has(this._getConcreteValue(e))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(e){this._multiple&&this.selected&&this._selected.sort(e)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(e){e=this._getConcreteValue(e),this.isSelected(e)||(this._multiple||this._unmarkAll(),this.isSelected(e)||this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}_unmarkSelected(e){e=this._getConcreteValue(e),this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}_unmarkAll(){this.isEmpty()||this._selection.forEach(e=>this._unmarkSelected(e))}_verifyValueAssignment(e){e.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(e,r){if(this.compareWith){r=r??this._selection;for(let t of r)if(this.compareWith(e,t))return t;return e}else return e}};var p4=20,Ml=(()=>{let e=class e{constructor(t,n,o){this._ngZone=t,this._platform=n,this._scrolled=new G,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=o}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){let n=this.scrollContainers.get(t);n&&(n.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=p4){return this._platform.isBrowser?new Re(n=>{this._globalSubscription||this._addGlobalListener();let o=t>0?this._scrolled.pipe(zu(t)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):oe()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,n)=>this.deregister(n)),this._scrolled.complete()}ancestorScrolled(t,n){let o=this.getAncestorScrollContainers(t);return this.scrolled(n).pipe(Ye(a=>!a||o.indexOf(a)>-1))}getAncestorScrollContainers(t){let n=[];return this.scrollContainers.forEach((o,a)=>{this._scrollableContainsElement(a,t)&&n.push(a)}),n}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,n){let o=En(n),a=t.getElementRef().nativeElement;do if(o==a)return!0;while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let t=this._getWindow();return dn(t.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}};e.\u0275fac=function(n){return new(n||e)(M(Z),M(Ve),M(se,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),gd=(()=>{let e=class e{constructor(t,n,o,a){this.elementRef=t,this.scrollDispatcher=n,this.ngZone=o,this.dir=a,this._destroyed=new G,this._elementScrolled=new Re(s=>this.ngZone.runOutsideAngular(()=>dn(this.elementRef.nativeElement,"scroll").pipe(fe(this._destroyed)).subscribe(s)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){let n=this.elementRef.nativeElement,o=this.dir&&this.dir.value=="rtl";t.left==null&&(t.left=o?t.end:t.start),t.right==null&&(t.right=o?t.start:t.end),t.bottom!=null&&(t.top=n.scrollHeight-n.clientHeight-t.bottom),o&&Sl()!=To.NORMAL?(t.left!=null&&(t.right=n.scrollWidth-n.clientWidth-t.left),Sl()==To.INVERTED?t.left=t.right:Sl()==To.NEGATED&&(t.left=t.right?-t.right:t.right)):t.right!=null&&(t.left=n.scrollWidth-n.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){let n=this.elementRef.nativeElement;Xm()?n.scrollTo(t):(t.top!=null&&(n.scrollTop=t.top),t.left!=null&&(n.scrollLeft=t.left))}measureScrollOffset(t){let n="left",o="right",a=this.elementRef.nativeElement;if(t=="top")return a.scrollTop;if(t=="bottom")return a.scrollHeight-a.clientHeight-a.scrollTop;let s=this.dir&&this.dir.value=="rtl";return t=="start"?t=s?o:n:t=="end"&&(t=s?n:o),s&&Sl()==To.INVERTED?t==n?a.scrollWidth-a.clientWidth-a.scrollLeft:a.scrollLeft:s&&Sl()==To.NEGATED?t==n?a.scrollLeft+a.scrollWidth-a.clientWidth:-a.scrollLeft:t==n?a.scrollLeft:a.scrollWidth-a.clientWidth-a.scrollLeft}};e.\u0275fac=function(n){return new(n||e)(m(q),m(Ml),m(Z),m(Nt,8))},e.\u0275dir=L({type:e,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0});let i=e;return i})(),f4=20,fn=(()=>{let e=class e{constructor(t,n,o){this._platform=t,this._change=new G,this._changeListener=a=>{this._change.next(a)},this._document=o,n.runOutsideAngular(()=>{if(t.isBrowser){let a=this._getWindow();a.addEventListener("resize",this._changeListener),a.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){let t=this.getViewportScrollPosition(),{width:n,height:o}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+o,right:t.left+n,height:o,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let t=this._document,n=this._getWindow(),o=t.documentElement,a=o.getBoundingClientRect(),s=-a.top||t.body.scrollTop||n.scrollY||o.scrollTop||0,l=-a.left||t.body.scrollLeft||n.scrollX||o.scrollLeft||0;return{top:s,left:l}}change(t=f4){return t>0?this._change.pipe(zu(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}};e.\u0275fac=function(n){return new(n||e)(M(Ve),M(Z),M(se,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var so=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({});let i=e;return i})(),_d=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({imports:[fa,so,fa,so]});let i=e;return i})();var vd=class{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;e!=null&&(this._attachedHost=null,e.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(e){this._attachedHost=e}},In=class extends vd{constructor(e,r,t,n,o){super(),this.component=e,this.viewContainerRef=r,this.injector=t,this.componentFactoryResolver=n,this.projectableNodes=o}},Oi=class extends vd{constructor(e,r,t,n){super(),this.templateRef=e,this.viewContainerRef=r,this.context=t,this.injector=n}get origin(){return this.templateRef.elementRef}attach(e,r=this.context){return this.context=r,super.attach(e)}detach(){return this.context=void 0,super.detach()}},B0=class extends vd{constructor(e){super(),this.element=e instanceof q?e.nativeElement:e}},ga=class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){if(e instanceof In)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof Oi)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof B0)return this._attachedPortal=e,this.attachDomPortal(e)}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var Tl=class extends ga{constructor(e,r,t,n,o){super(),this.outletElement=e,this._componentFactoryResolver=r,this._appRef=t,this._defaultInjector=n,this.attachDomPortal=a=>{this._document;let s=a.element;s.parentNode;let l=this._document.createComment("dom-portal");s.parentNode.insertBefore(l,s),this.outletElement.appendChild(s),this._attachedPortal=a,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(s,l)})},this._document=o}attachComponentPortal(e){let t=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),n;return e.viewContainerRef?(n=e.viewContainerRef.createComponent(t,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector,e.projectableNodes||void 0),this.setDisposeFn(()=>n.destroy())):(n=t.create(e.injector||this._defaultInjector||Pe.NULL),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),this._attachedPortal=e,n}attachTemplatePortal(e){let r=e.viewContainerRef,t=r.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return t.rootNodes.forEach(n=>this.outletElement.appendChild(n)),t.detectChanges(),this.setDisposeFn(()=>{let n=r.indexOf(t);n!==-1&&r.remove(n)}),this._attachedPortal=e,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}};var GM=(()=>{let e=class e extends Oi{constructor(t,n){super(t,n)}};e.\u0275fac=function(n){return new(n||e)(m(dt),m(Ct))},e.\u0275dir=L({type:e,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],standalone:!0,features:[be]});let i=e;return i})();var rn=(()=>{let e=class e extends ga{constructor(t,n,o){super(),this._componentFactoryResolver=t,this._viewContainerRef=n,this._isInitialized=!1,this.attached=new T,this.attachDomPortal=a=>{this._document;let s=a.element;s.parentNode;let l=this._document.createComment("dom-portal");a.setAttachedHost(this),s.parentNode.insertBefore(l,s),this._getRootNode().appendChild(s),this._attachedPortal=a,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(s,l)})},this._document=o}get portal(){return this._attachedPortal}set portal(t){this.hasAttached()&&!t&&!this._isInitialized||(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(t){t.setAttachedHost(this);let n=t.viewContainerRef!=null?t.viewContainerRef:this._viewContainerRef,a=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),s=n.createComponent(a,n.length,t.injector||n.injector,t.projectableNodes||void 0);return n!==this._viewContainerRef&&this._getRootNode().appendChild(s.hostView.rootNodes[0]),super.setDisposeFn(()=>s.destroy()),this._attachedPortal=t,this._attachedRef=s,this.attached.emit(s),s}attachTemplatePortal(t){t.setAttachedHost(this);let n=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=n,this.attached.emit(n),n}_getRootNode(){let t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}};e.\u0275fac=function(n){return new(n||e)(m(wn),m(Ct),m(se))},e.\u0275dir=L({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[be]});let i=e;return i})();var zn=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({});let i=e;return i})();function Pt(i,...e){return e.length?e.some(r=>i[r]):i.altKey||i.shiftKey||i.ctrlKey||i.metaKey}var qM=Xm(),z0=class{constructor(e,r){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=r}attach(){}enable(){if(this._canBeEnabled()){let e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=xi(-this._previousScrollPosition.left),e.style.top=xi(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let e=this._document.documentElement,r=this._document.body,t=e.style,n=r.style,o=t.scrollBehavior||"",a=n.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),qM&&(t.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),qM&&(t.scrollBehavior=o,n.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let r=this._document.body,t=this._viewportRuler.getViewportSize();return r.scrollHeight>t.height||r.scrollWidth>t.width}};var U0=class{constructor(e,r,t,n){this._scrollDispatcher=e,this._ngZone=r,this._viewportRuler=t,this._config=n,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(this._scrollSubscription)return;let e=this._scrollDispatcher.scrolled(0).pipe(Ye(r=>!r||!this._overlayRef.overlayElement.contains(r.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{let r=this._viewportRuler.getViewportScrollPosition().top;Math.abs(r-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},tp=class{enable(){}disable(){}attach(){}};function H0(i,e){return e.some(r=>{let t=i.bottomr.bottom,o=i.rightr.right;return t||n||o||a})}function YM(i,e){return e.some(r=>{let t=i.topr.bottom,o=i.leftr.right;return t||n||o||a})}var $0=class{constructor(e,r,t,n){this._scrollDispatcher=e,this._viewportRuler=r,this._ngZone=t,this._config=n,this._scrollSubscription=null}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(!this._scrollSubscription){let e=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(e).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let r=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:n}=this._viewportRuler.getViewportSize();H0(r,[{width:t,height:n,bottom:n,right:t,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},g4=(()=>{let e=class e{constructor(t,n,o,a){this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=o,this.noop=()=>new tp,this.close=s=>new U0(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new z0(this._viewportRuler,this._document),this.reposition=s=>new $0(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=a}};e.\u0275fac=function(n){return new(n||e)(M(Ml),M(fn),M(Z),M(se))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),Mn=class{constructor(e){if(this.scrollStrategy=new tp,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){let r=Object.keys(e);for(let t of r)e[t]!==void 0&&(this[t]=e[t])}}};var W0=class{constructor(e,r){this.connectionPair=e,this.scrollableViewProperties=r}};var e1=(()=>{let e=class e{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){let n=this._attachedOverlays.indexOf(t);n>-1&&this._attachedOverlays.splice(n,1),this._attachedOverlays.length===0&&this.detach()}};e.\u0275fac=function(n){return new(n||e)(M(se))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),_4=(()=>{let e=class e extends e1{constructor(t,n){super(t),this._ngZone=n,this._keydownListener=o=>{let a=this._attachedOverlays;for(let s=a.length-1;s>-1;s--)if(a[s]._keydownEvents.observers.length>0){let l=a[s]._keydownEvents;this._ngZone?this._ngZone.run(()=>l.next(o)):l.next(o);break}}}add(t){super.add(t),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}};e.\u0275fac=function(n){return new(n||e)(M(se),M(Z,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),v4=(()=>{let e=class e extends e1{constructor(t,n,o){super(t),this._platform=n,this._ngZone=o,this._cursorStyleIsSet=!1,this._pointerDownListener=a=>{this._pointerDownEventTarget=mn(a)},this._clickListener=a=>{let s=mn(a),l=a.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;this._pointerDownEventTarget=null;let u=this._attachedOverlays.slice();for(let f=u.length-1;f>-1;f--){let v=u[f];if(v._outsidePointerEvents.observers.length<1||!v.hasAttached())continue;if(QM(v.overlayElement,s)||QM(v.overlayElement,l))break;let C=v._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>C.next(a)):C.next(a)}}}add(t){if(super.add(t),!this._isAttached){let n=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(n)):this._addEventListeners(n),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=n.style.cursor,n.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){let t=this._document.body;t.removeEventListener("pointerdown",this._pointerDownListener,!0),t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(t){t.addEventListener("pointerdown",this._pointerDownListener,!0),t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0)}};e.\u0275fac=function(n){return new(n||e)(M(se),M(Ve),M(Z,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function QM(i,e){let r=typeof ShadowRoot<"u"&&ShadowRoot,t=e;for(;t;){if(t===i)return!0;t=r&&t instanceof ShadowRoot?t.host:t.parentNode}return!1}var kl=(()=>{let e=class e{constructor(t,n){this._platform=n,this._document=t}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let t="cdk-overlay-container";if(this._platform.isBrowser||pd()){let o=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let a=0;athis._backdropClick.next(C),this._backdropTransitionendHandler=C=>{this._disposeBackdrop(C.target)},this._keydownEvents=new G,this._outsidePointerEvents=new G,this._renders=new G,n.scrollStrategy&&(this._scrollStrategy=n.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=n.positionStrategy,this._afterRenderRef=Dn(()=>Oc(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let r=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=ai(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof r?.onDestroy=="function"&&r.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),r}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){let e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=null,e&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=j(j({},this._config),e),this._updateElementSize()}setDirection(e){this._config=rt(j({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){let e=this._config.direction;return e?typeof e=="string"?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let e=this._pane.style;e.width=xi(this._config.width),e.height=xi(this._config.height),e.minWidth=xi(this._config.minWidth),e.minHeight=xi(this._config.minHeight),e.maxWidth=xi(this._config.maxWidth),e.maxHeight=xi(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){let e="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(e)})}):this._backdropElement.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let e=this._backdropElement;if(e){if(this._animationsDisabled){this._disposeBackdrop(e);return}e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",this._backdropTransitionendHandler)}),e.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(e)},500))}}_toggleClasses(e,r,t){let n=xl(r||[]).filter(o=>!!o);n.length&&(t?e.classList.add(...n):e.classList.remove(...n))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let e=this._renders.pipe(fe(wt(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),e.unsubscribe())})})}_disposeScrollStrategy(){let e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}_disposeBackdrop(e){e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",this._backdropTransitionendHandler),e.remove(),this._backdropElement===e&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}},KM="cdk-overlay-connected-position-bounding-box",b4=/([A-Za-z%]+)$/,bd=class{get positions(){return this._preferredPositions}constructor(e,r,t,n,o){this._viewportRuler=r,this._document=t,this._platform=n,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new G,this._resizeSubscription=ve.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}attach(e){this._overlayRef&&this._overlayRef,this._validatePositions(),e.hostElement.classList.add(KM),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._originRect,r=this._overlayRect,t=this._viewportRect,n=this._containerRect,o=[],a;for(let s of this._preferredPositions){let l=this._getOriginPoint(e,n,s),u=this._getOverlayPoint(l,r,s),f=this._getOverlayFit(u,r,t,s);if(f.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(s,l);return}if(this._canFitWithFlexibleDimensions(f,u,t)){o.push({position:s,origin:l,overlayRect:r,boundingBoxRect:this._calculateBoundingBoxRect(l,s)});continue}(!a||a.overlayFit.visibleAreal&&(l=f,s=u)}this._isPushed=!1,this._applyPosition(s.position,s.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(a.position,a.originPoint);return}this._applyPosition(a.position,a.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ls(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(KM),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let e=this._lastPosition;if(e){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let r=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,r)}else this.apply()}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,e.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,r,t){let n;if(t.originX=="center")n=e.left+e.width/2;else{let a=this._isRtl()?e.right:e.left,s=this._isRtl()?e.left:e.right;n=t.originX=="start"?a:s}r.left<0&&(n-=r.left);let o;return t.originY=="center"?o=e.top+e.height/2:o=t.originY=="top"?e.top:e.bottom,r.top<0&&(o-=r.top),{x:n,y:o}}_getOverlayPoint(e,r,t){let n;t.overlayX=="center"?n=-r.width/2:t.overlayX==="start"?n=this._isRtl()?-r.width:0:n=this._isRtl()?0:-r.width;let o;return t.overlayY=="center"?o=-r.height/2:o=t.overlayY=="top"?0:-r.height,{x:e.x+n,y:e.y+o}}_getOverlayFit(e,r,t,n){let o=XM(r),{x:a,y:s}=e,l=this._getOffset(n,"x"),u=this._getOffset(n,"y");l&&(a+=l),u&&(s+=u);let f=0-a,v=a+o.width-t.width,C=0-s,D=s+o.height-t.height,S=this._subtractOverflows(o.width,f,v),P=this._subtractOverflows(o.height,C,D),z=S*P;return{visibleArea:z,isCompletelyWithinViewport:o.width*o.height===z,fitsInViewportVertically:P===o.height,fitsInViewportHorizontally:S==o.width}}_canFitWithFlexibleDimensions(e,r,t){if(this._hasFlexibleDimensions){let n=t.bottom-r.y,o=t.right-r.x,a=ZM(this._overlayRef.getConfig().minHeight),s=ZM(this._overlayRef.getConfig().minWidth),l=e.fitsInViewportVertically||a!=null&&a<=n,u=e.fitsInViewportHorizontally||s!=null&&s<=o;return l&&u}return!1}_pushOverlayOnScreen(e,r,t){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};let n=XM(r),o=this._viewportRect,a=Math.max(e.x+n.width-o.width,0),s=Math.max(e.y+n.height-o.height,0),l=Math.max(o.top-t.top-e.y,0),u=Math.max(o.left-t.left-e.x,0),f=0,v=0;return n.width<=o.width?f=u||-a:f=e.xS&&!this._isInitialRender&&!this._growAfterOpen&&(a=e.y-S/2)}let l=r.overlayX==="start"&&!n||r.overlayX==="end"&&n,u=r.overlayX==="end"&&!n||r.overlayX==="start"&&n,f,v,C;if(u)C=t.width-e.x+this._viewportMargin*2,f=e.x-this._viewportMargin;else if(l)v=e.x,f=t.right-e.x;else{let D=Math.min(t.right-e.x+t.left,e.x),S=this._lastBoundingBoxSize.width;f=D*2,v=e.x-D,f>S&&!this._isInitialRender&&!this._growAfterOpen&&(v=e.x-S/2)}return{top:a,left:v,bottom:s,right:C,width:f,height:o}}_setBoundingBoxStyles(e,r){let t=this._calculateBoundingBoxRect(e,r);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));let n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{let o=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;n.height=xi(t.height),n.top=xi(t.top),n.bottom=xi(t.bottom),n.width=xi(t.width),n.left=xi(t.left),n.right=xi(t.right),r.overlayX==="center"?n.alignItems="center":n.alignItems=r.overlayX==="end"?"flex-end":"flex-start",r.overlayY==="center"?n.justifyContent="center":n.justifyContent=r.overlayY==="bottom"?"flex-end":"flex-start",o&&(n.maxHeight=xi(o)),a&&(n.maxWidth=xi(a))}this._lastBoundingBoxSize=t,ls(this._boundingBox.style,n)}_resetBoundingBoxStyles(){ls(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ls(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,r){let t={},n=this._hasExactPosition(),o=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(n){let f=this._viewportRuler.getViewportScrollPosition();ls(t,this._getExactOverlayY(r,e,f)),ls(t,this._getExactOverlayX(r,e,f))}else t.position="static";let s="",l=this._getOffset(r,"x"),u=this._getOffset(r,"y");l&&(s+=`translateX(${l}px) `),u&&(s+=`translateY(${u}px)`),t.transform=s.trim(),a.maxHeight&&(n?t.maxHeight=xi(a.maxHeight):o&&(t.maxHeight="")),a.maxWidth&&(n?t.maxWidth=xi(a.maxWidth):o&&(t.maxWidth="")),ls(this._pane.style,t)}_getExactOverlayY(e,r,t){let n={top:"",bottom:""},o=this._getOverlayPoint(r,this._overlayRect,e);if(this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,t)),e.overlayY==="bottom"){let a=this._document.documentElement.clientHeight;n.bottom=`${a-(o.y+this._overlayRect.height)}px`}else n.top=xi(o.y);return n}_getExactOverlayX(e,r,t){let n={left:"",right:""},o=this._getOverlayPoint(r,this._overlayRect,e);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,t));let a;if(this._isRtl()?a=e.overlayX==="end"?"left":"right":a=e.overlayX==="end"?"right":"left",a==="right"){let s=this._document.documentElement.clientWidth;n.right=`${s-(o.x+this._overlayRect.width)}px`}else n.left=xi(o.x);return n}_getScrollVisibility(){let e=this._getOriginRect(),r=this._pane.getBoundingClientRect(),t=this._scrollables.map(n=>n.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:YM(e,t),isOriginOutsideView:H0(e,t),isOverlayClipped:YM(r,t),isOverlayOutsideView:H0(r,t)}}_subtractOverflows(e,...r){return r.reduce((t,n)=>t-Math.max(n,0),e)}_getNarrowedViewportRect(){let e=this._document.documentElement.clientWidth,r=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+e-this._viewportMargin,bottom:t.top+r-this._viewportMargin,width:e-2*this._viewportMargin,height:r-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,r){return r==="x"?e.offsetX==null?this._offsetX:e.offsetX:e.offsetY==null?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&xl(e).forEach(r=>{r!==""&&this._appliedPanelClasses.indexOf(r)===-1&&(this._appliedPanelClasses.push(r),this._pane.classList.add(r))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){let e=this._origin;if(e instanceof q)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();let r=e.width||0,t=e.height||0;return{top:e.y,bottom:e.y+t,left:e.x,right:e.x+r,height:t,width:r}}};function ls(i,e){for(let r in e)e.hasOwnProperty(r)&&(i[r]=e[r]);return i}function ZM(i){if(typeof i!="number"&&i!=null){let[e,r]=i.split(b4);return!r||r==="px"?parseFloat(e):null}return i||null}function XM(i){return{top:Math.floor(i.top),right:Math.floor(i.right),bottom:Math.floor(i.bottom),left:Math.floor(i.left),width:Math.floor(i.width),height:Math.floor(i.height)}}function y4(i,e){return i===e?!0:i.isOriginClipped===e.isOriginClipped&&i.isOriginOutsideView===e.isOriginOutsideView&&i.isOverlayClipped===e.isOverlayClipped&&i.isOverlayOutsideView===e.isOverlayOutsideView}var JM="cdk-global-overlay-wrapper",G0=class{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(e){let r=e.getConfig();this._overlayRef=e,this._width&&!r.width&&e.updateSize({width:this._width}),this._height&&!r.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(JM),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let e=this._overlayRef.overlayElement.style,r=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:n,height:o,maxWidth:a,maxHeight:s}=t,l=(n==="100%"||n==="100vw")&&(!a||a==="100%"||a==="100vw"),u=(o==="100%"||o==="100vh")&&(!s||s==="100%"||s==="100vh"),f=this._xPosition,v=this._xOffset,C=this._overlayRef.getConfig().direction==="rtl",D="",S="",P="";l?P="flex-start":f==="center"?(P="center",C?S=v:D=v):C?f==="left"||f==="end"?(P="flex-end",D=v):(f==="right"||f==="start")&&(P="flex-start",S=v):f==="left"||f==="start"?(P="flex-start",D=v):(f==="right"||f==="end")&&(P="flex-end",S=v),e.position=this._cssPosition,e.marginLeft=l?"0":D,e.marginTop=u?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=l?"0":S,r.justifyContent=P,r.alignItems=u?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let e=this._overlayRef.overlayElement.style,r=this._overlayRef.hostElement,t=r.style;r.classList.remove(JM),t.justifyContent=t.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}},w4=(()=>{let e=class e{constructor(t,n,o,a){this._viewportRuler=t,this._document=n,this._platform=o,this._overlayContainer=a}global(){return new G0}flexibleConnectedTo(t){return new bd(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}};e.\u0275fac=function(n){return new(n||e)(M(fn),M(se),M(Ve),M(kl))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),C4=0,xt=(()=>{let e=class e{constructor(t,n,o,a,s,l,u,f,v,C,D,S){this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=o,this._positionBuilder=a,this._keyboardDispatcher=s,this._injector=l,this._ngZone=u,this._document=f,this._directionality=v,this._location=C,this._outsideClickDispatcher=D,this._animationsModuleType=S}create(t){let n=this._createHostElement(),o=this._createPaneElement(n),a=this._createPortalOutlet(o),s=new Mn(t);return s.direction=s.direction||this._directionality.value,new Pr(a,n,o,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(qi))}position(){return this._positionBuilder}_createPaneElement(t){let n=this._document.createElement("div");return n.id=`cdk-overlay-${C4++}`,n.classList.add("cdk-overlay-pane"),t.appendChild(n),n}_createHostElement(){let t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(Ln)),new Tl(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}};e.\u0275fac=function(n){return new(n||e)(M(g4),M(kl),M(wn),M(w4),M(_4),M(Pe),M(Z),M(se),M(Nt),M(er),M(v4),M(kt,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),x4=[{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"}],t1=new R("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let i=k(xt);return()=>i.scrollStrategies.reposition()}}),yd=(()=>{let e=class e{constructor(t){this.elementRef=t}};e.\u0275fac=function(n){return new(n||e)(m(q))},e.\u0275dir=L({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0});let i=e;return i})(),q0=(()=>{let e=class e{get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(t){this._disposeOnNavigation=t}constructor(t,n,o,a,s){this._overlay=t,this._dir=s,this._backdropSubscription=ve.EMPTY,this._attachSubscription=ve.EMPTY,this._detachSubscription=ve.EMPTY,this._positionSubscription=ve.EMPTY,this._disposeOnNavigation=!1,this._ngZone=k(Z),this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.hasBackdrop=!1,this.lockPosition=!1,this.flexibleDimensions=!1,this.growAfterOpen=!1,this.push=!1,this.backdropClick=new T,this.positionChange=new T,this.attach=new T,this.detach=new T,this.overlayKeydown=new T,this.overlayOutsideClick=new T,this._templatePortal=new Oi(n,o),this._scrollStrategyFactory=a,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(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())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=x4);let t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(n=>{this.overlayKeydown.next(n),n.keyCode===27&&!this.disableClose&&!Pt(n)&&(n.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(n=>{let o=this._getOriginElement(),a=mn(n);(!o||o!==a&&!o.contains(a))&&this.overlayOutsideClick.next(n)})}_buildConfig(){let t=this._position=this.positionStrategy||this._createPositionStrategy(),n=new Mn({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(n.width=this.width),(this.height||this.height===0)&&(n.height=this.height),(this.minWidth||this.minWidth===0)&&(n.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(n.minHeight=this.minHeight),this.backdropClass&&(n.backdropClass=this.backdropClass),this.panelClass&&(n.panelClass=this.panelClass),n}_updatePositionStrategy(t){let n=this.positions.map(o=>({originX:o.originX,originY:o.originY,overlayX:o.overlayX,overlayY:o.overlayY,offsetX:o.offsetX||this.offsetX,offsetY:o.offsetY||this.offsetY,panelClass:o.panelClass||void 0}));return t.setOrigin(this._getOrigin()).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let t=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(t),t}_getOrigin(){return this.origin instanceof yd?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof yd?this.origin.elementRef.nativeElement:this.origin instanceof q?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_attachOverlay(){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(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(i_(()=>this.positionChange.observers.length>0)).subscribe(t=>{this._ngZone.run(()=>this.positionChange.emit(t)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}};e.\u0275fac=function(n){return new(n||e)(m(xt),m(dt),m(Ct),m(t1),m(Nt,8))},e.\u0275dir=L({type:e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",Y],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",Y],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",Y],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",Y],push:[2,"cdkConnectedOverlayPush","push",Y],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",Y]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[ge,Qe]});let i=e;return i})();function D4(i){return()=>i.scrollStrategies.reposition()}var S4={provide:t1,deps:[xt],useFactory:D4},an=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({providers:[xt,S4],imports:[fa,zn,_d,_d]});let i=e;return i})();function E4(i){if(i.type==="characterData"&&i.target instanceof Comment)return!0;if(i.type==="childList"){for(let e=0;e{let e=class e{create(t){return typeof MutationObserver>"u"?null:new MutationObserver(t)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),I4=(()=>{let e=class e{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map,this._ngZone=k(Z)}ngOnDestroy(){this._observedElements.forEach((t,n)=>this._cleanupObserver(n))}observe(t){let n=En(t);return new Re(o=>{let s=this._observeElement(n).pipe(ue(l=>l.filter(u=>!E4(u))),Ye(l=>!!l.length)).subscribe(l=>{this._ngZone.run(()=>{o.next(l)})});return()=>{s.unsubscribe(),this._unobserveElement(n)}})}_observeElement(t){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(t))this._observedElements.get(t).count++;else{let n=new G,o=this._mutationObserverFactory.create(a=>n.next(a));o&&o.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:o,stream:n,count:1})}return this._observedElements.get(t).stream})}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){let{observer:n,stream:o}=this._observedElements.get(t);n&&n.disconnect(),o.complete(),this._observedElements.delete(t)}}};e.\u0275fac=function(n){return new(n||e)(M(i1))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),n1=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=Mo(t),this._subscribe()}constructor(t,n){this._contentObserver=t,this._elementRef=n,this.event=new T,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let t=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?t.pipe(mr(this.debounce)):t).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}};e.\u0275fac=function(n){return new(n||e)(m(I4),m(q))},e.\u0275dir=L({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",Y],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"],standalone:!0,features:[ge]});let i=e;return i})(),ip=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({providers:[i1]});let i=e;return i})();var o1=new Set,ds,M4=(()=>{let e=class e{constructor(t,n){this._platform=t,this._nonce=n,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):k4}matchMedia(t){return(this._platform.WEBKIT||this._platform.BLINK)&&T4(t,this._nonce),this._matchMedia(t)}};e.\u0275fac=function(n){return new(n||e)(M(Ve),M(Ic,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function T4(i,e){if(!o1.has(i))try{ds||(ds=document.createElement("style"),e&&ds.setAttribute("nonce",e),ds.setAttribute("type","text/css"),document.head.appendChild(ds)),ds.sheet&&(ds.sheet.insertRule(`@media ${i} {body{ }}`,0),o1.add(i))}catch(r){console.error(r)}}function k4(i){return{matches:i==="all"||i==="",media:i,addListener:()=>{},removeListener:()=>{}}}var Al=(()=>{let e=class e{constructor(t,n){this._mediaMatcher=t,this._zone=n,this._queries=new Map,this._destroySubject=new G}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return r1(xl(t)).some(o=>this._registerQuery(o).mql.matches)}observe(t){let o=r1(xl(t)).map(s=>this._registerQuery(s).observable),a=Rn(o);return a=Bo(a.pipe(Ot(1)),a.pipe(Ba(1),mr(0))),a.pipe(ue(s=>{let l={matches:!1,breakpoints:{}};return s.forEach(({matches:u,query:f})=>{l.matches=l.matches||u,l.breakpoints[f]=u}),l}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);let n=this._mediaMatcher.matchMedia(t),a={observable:new Re(s=>{let l=u=>this._zone.run(()=>s.next(u));return n.addListener(l),()=>{n.removeListener(l)}}).pipe(Rt(n),ue(({matches:s})=>({query:t,matches:s})),fe(this._destroySubject)),mql:n};return this._queries.set(t,a),a}};e.\u0275fac=function(n){return new(n||e)(M(M4),M(Z))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function r1(i){return i.map(e=>e.split(",")).reduce((e,r)=>e.concat(r)).map(e=>e.trim())}var np={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"};var d1=" ";function Nl(i,e,r){let t=sp(i,e);r=r.trim(),!t.some(n=>n.trim()===r)&&(t.push(r),i.setAttribute(e,t.join(d1)))}function va(i,e,r){let t=sp(i,e);r=r.trim();let n=t.filter(o=>o!==r);n.length?i.setAttribute(e,n.join(d1)):i.removeAttribute(e)}function sp(i,e){return i.getAttribute(e)?.match(/\S+/g)??[]}var u1="cdk-describedby-message",op="cdk-describedby-host",K0=0,cp=(()=>{let e=class e{constructor(t,n){this._platform=n,this._messageRegistry=new Map,this._messagesContainer=null,this._id=`${K0++}`,this._document=t,this._id=k(al)+"-"+K0++}describe(t,n,o){if(!this._canBeDescribed(t,n))return;let a=Y0(n,o);typeof n!="string"?(a1(n,this._id),this._messageRegistry.set(a,{messageElement:n,referenceCount:0})):this._messageRegistry.has(a)||this._createMessageElement(n,o),this._isElementDescribedByMessage(t,a)||this._addMessageReference(t,a)}removeDescription(t,n,o){if(!n||!this._isElementNode(t))return;let a=Y0(n,o);if(this._isElementDescribedByMessage(t,a)&&this._removeMessageReference(t,a),typeof n=="string"){let s=this._messageRegistry.get(a);s&&s.referenceCount===0&&this._deleteMessageElement(a)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let t=this._document.querySelectorAll(`[${op}="${this._id}"]`);for(let n=0;no.indexOf(u1)!=0);t.setAttribute("aria-describedby",n.join(" "))}_addMessageReference(t,n){let o=this._messageRegistry.get(n);Nl(t,"aria-describedby",o.messageElement.id),t.setAttribute(op,this._id),o.referenceCount++}_removeMessageReference(t,n){let o=this._messageRegistry.get(n);o.referenceCount--,va(t,"aria-describedby",o.messageElement.id),t.removeAttribute(op)}_isElementDescribedByMessage(t,n){let o=sp(t,"aria-describedby"),a=this._messageRegistry.get(n),s=a&&a.messageElement.id;return!!s&&o.indexOf(s)!=-1}_canBeDescribed(t,n){if(!this._isElementNode(t))return!1;if(n&&typeof n=="object")return!0;let o=n==null?"":`${n}`.trim(),a=t.getAttribute("aria-label");return o?!a||a.trim()!==o:!1}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}};e.\u0275fac=function(n){return new(n||e)(M(se),M(Ve))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function Y0(i,e){return typeof i=="string"?`${e||""}/${i}`:i}function a1(i,e){i.id||(i.id=`${u1}-${e}-${K0++}`)}var B4=200,Z0=class{constructor(e,r){this._letterKeyStream=new G,this._items=[],this._selectedItemIndex=-1,this._pressedLetters=[],this._selectedItem=new G,this.selectedItem=this._selectedItem;let t=typeof r?.debounceInterval=="number"?r.debounceInterval:B4;r?.skipPredicate&&(this._skipPredicateFn=r.skipPredicate),this.setItems(e),this._setupKeyHandler(t)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(e){this._selectedItemIndex=e}setItems(e){this._items=e}handleKey(e){let r=e.keyCode;e.key&&e.key.length===1?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(r>=65&&r<=90||r>=48&&r<=57)&&this._letterKeyStream.next(String.fromCharCode(r))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(e){this._letterKeyStream.pipe(Ht(r=>this._pressedLetters.push(r)),mr(e),Ye(()=>this._pressedLetters.length>0),ue(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(r=>{for(let t=1;tt.disabled,this.tabOut=new G,this.change=new G,e instanceof eo?this._itemChangesSubscription=e.changes.subscribe(t=>this._itemsChanged(t.toArray())):am(e)&&(this._effectRef=Db(()=>this._itemsChanged(e()),{injector:r}))}skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){this._typeaheadSubscription.unsubscribe();let r=this._getItemsArray();return this._typeahead=new Z0(r,{debounceInterval:typeof e=="number"?e:void 0,skipPredicate:t=>this._skipPredicateFn(t)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(t=>{this.setActiveItem(t)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(e=!0){return this._homeAndEnd=e,this}withPageUpDown(e=!0,r=10){return this._pageUpAndDown={enabled:e,delta:r},this}setActiveItem(e){let r=this._activeItem;this.updateActiveItem(e),this._activeItem!==r&&this.change.next(this._activeItemIndex)}onKeydown(e){let r=e.keyCode,n=["altKey","ctrlKey","metaKey","shiftKey"].every(o=>!e[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(r){case 9:this.tabOut.next();return;case 40:if(this._vertical&&n){this.setNextItemActive();break}else return;case 38:if(this._vertical&&n){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&n){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&n){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&n){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&n){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&n){let o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&n){let o=this._activeItemIndex+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(o-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r,this._typeahead?.setCurrentSelectedItemIndex(r))}}},Rl=class extends lp{setActiveItem(e){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(e),this.activeItem&&this.activeItem.setActiveStyles()}},_a=class extends lp{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin)}};var Cd=(()=>{let e=class e{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return U4(t)&&getComputedStyle(t).visibility==="visible"}isTabbable(t){if(!this._platform.isBrowser)return!1;let n=z4(K4(t));if(n&&(s1(n)===-1||!this.isVisible(n)))return!1;let o=t.nodeName.toLowerCase(),a=s1(t);return t.hasAttribute("contenteditable")?a!==-1:o==="iframe"||o==="object"||this._platform.WEBKIT&&this._platform.IOS&&!Y4(t)?!1:o==="audio"?t.hasAttribute("controls")?a!==-1:!1:o==="video"?a===-1?!1:a!==null?!0:this._platform.FIREFOX||t.hasAttribute("controls"):t.tabIndex>=0}isFocusable(t,n){return Q4(t)&&!this.isDisabled(t)&&(n?.ignoreVisibility||this.isVisible(t))}};e.\u0275fac=function(n){return new(n||e)(M(Ve))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function z4(i){try{return i.frameElement}catch{return null}}function U4(i){return!!(i.offsetWidth||i.offsetHeight||typeof i.getClientRects=="function"&&i.getClientRects().length)}function H4(i){let e=i.nodeName.toLowerCase();return e==="input"||e==="select"||e==="button"||e==="textarea"}function $4(i){return G4(i)&&i.type=="hidden"}function W4(i){return q4(i)&&i.hasAttribute("href")}function G4(i){return i.nodeName.toLowerCase()=="input"}function q4(i){return i.nodeName.toLowerCase()=="a"}function h1(i){if(!i.hasAttribute("tabindex")||i.tabIndex===void 0)return!1;let e=i.getAttribute("tabindex");return!!(e&&!isNaN(parseInt(e,10)))}function s1(i){if(!h1(i))return null;let e=parseInt(i.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}function Y4(i){let e=i.nodeName.toLowerCase(),r=e==="input"&&i.type;return r==="text"||r==="password"||e==="select"||e==="textarea"}function Q4(i){return $4(i)?!1:H4(i)||W4(i)||i.hasAttribute("contenteditable")||h1(i)}function K4(i){return i.ownerDocument&&i.ownerDocument.defaultView||window}var X0=class{get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}constructor(e,r,t,n,o=!1,a){this._element=e,this._checker=r,this._ngZone=t,this._document=n,this._injector=a,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}destroy(){let e=this._startAnchor,r=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.remove()),r&&(r.removeEventListener("focus",this.endAnchorListener),r.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.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)}focusInitialElementWhenReady(e){return new Promise(r=>{this._executeOnStable(()=>r(this.focusInitialElement(e)))})}focusFirstTabbableElementWhenReady(e){return new Promise(r=>{this._executeOnStable(()=>r(this.focusFirstTabbableElement(e)))})}focusLastTabbableElementWhenReady(e){return new Promise(r=>{this._executeOnStable(()=>r(this.focusLastTabbableElement(e)))})}_getRegionBoundary(e){let r=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);return e=="start"?r.length?r[0]:this._getFirstTabbableElement(this._element):r.length?r[r.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(e){let r=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(r){if(!this._checker.isFocusable(r)){let t=this._getFirstTabbableElement(r);return t?.focus(e),!!t}return r.focus(e),!0}return this.focusFirstTabbableElement(e)}focusFirstTabbableElement(e){let r=this._getRegionBoundary("start");return r&&r.focus(e),!!r}focusLastTabbableElement(e){let r=this._getRegionBoundary("end");return r&&r.focus(e),!!r}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let r=e.children;for(let t=0;t=0;t--){let n=r[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(r[t]):null;if(n)return n}return null}_createAnchor(){let e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,r){e?r.setAttribute("tabindex","0"):r.removeAttribute("tabindex")}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_executeOnStable(e){this._injector?ai(e,{injector:this._injector}):setTimeout(e)}},xd=(()=>{let e=class e{constructor(t,n,o){this._checker=t,this._ngZone=n,this._injector=k(Pe),this._document=o}create(t,n=!1){return new X0(t,this._checker,this._ngZone,this._document,n,this._injector)}};e.\u0275fac=function(n){return new(n||e)(M(Cd),M(Z),M(se))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),m1=(()=>{let e=class e{get enabled(){return this.focusTrap?.enabled||!1}set enabled(t){this.focusTrap&&(this.focusTrap.enabled=t)}constructor(t,n,o){this._elementRef=t,this._focusTrapFactory=n,this._previouslyFocusedElement=null,k(Ve).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(t){let n=t.autoCapture;n&&!n.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=pa(),this.focusTrap?.focusInitialElementWhenReady()}};e.\u0275fac=function(n){return new(n||e)(m(q),m(xd),m(se))},e.\u0275dir=L({type:e,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",Y],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",Y]},exportAs:["cdkTrapFocus"],standalone:!0,features:[ge,Qe]});let i=e;return i})();function Dd(i){return i.buttons===0||i.detail===0}function Sd(i){let e=i.touches&&i.touches[0]||i.changedTouches&&i.changedTouches[0];return!!e&&e.identifier===-1&&(e.radiusX==null||e.radiusX===1)&&(e.radiusY==null||e.radiusY===1)}var Z4=new R("cdk-input-modality-detector-options"),X4={ignoreKeys:[18,17,224,91,16]},p1=650,Ol=Ui({passive:!0,capture:!0}),J4=(()=>{let e=class e{get mostRecentModality(){return this._modality.value}constructor(t,n,o,a){this._platform=t,this._mostRecentTarget=null,this._modality=new Gt(null),this._lastTouchMs=0,this._onKeydown=s=>{this._options?.ignoreKeys?.some(l=>l===s.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=mn(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs{if(Sd(s)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=mn(s)},this._options=j(j({},X4),a),this.modalityDetected=this._modality.pipe(Ba(1)),this.modalityChanged=this.modalityDetected.pipe(js()),t.isBrowser&&n.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,Ol),o.addEventListener("mousedown",this._onMousedown,Ol),o.addEventListener("touchstart",this._onTouchstart,Ol)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Ol),document.removeEventListener("mousedown",this._onMousedown,Ol),document.removeEventListener("touchstart",this._onTouchstart,Ol))}};e.\u0275fac=function(n){return new(n||e)(M(Ve),M(Z),M(se),M(Z4,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),eU=new R("liveAnnouncerElement",{providedIn:"root",factory:tU});function tU(){return null}var iU=new R("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),nU=0,dp=(()=>{let e=class e{constructor(t,n,o,a){this._ngZone=n,this._defaultOptions=a,this._document=o,this._liveElement=t||this._createLiveElement()}announce(t,...n){let o=this._defaultOptions,a,s;return n.length===1&&typeof n[0]=="number"?s=n[0]:[a,s]=n,this.clear(),clearTimeout(this._previousTimeout),a||(a=o&&o.politeness?o.politeness:"polite"),s==null&&o&&(s=o.duration),this._liveElement.setAttribute("aria-live",a),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(l=>this._currentResolve=l)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,typeof s=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),s)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let t="cdk-live-announcer-element",n=this._document.getElementsByClassName(t),o=this._document.createElement("div");for(let a=0;a .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{let e=class e{constructor(t,n,o,a,s){this._ngZone=t,this._platform=n,this._inputModalityDetector=o,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new G,this._rootNodeFocusAndBlurListener=l=>{let u=mn(l);for(let f=u;f;f=f.parentElement)l.type==="focus"?this._onFocus(l,f):this._onBlur(l,f)},this._document=a,this._detectionMode=s?.detectionMode||ap.IMMEDIATE}monitor(t,n=!1){let o=En(t);if(!this._platform.isBrowser||o.nodeType!==1)return oe();let a=WM(o)||this._getDocument(),s=this._elementInfo.get(o);if(s)return n&&(s.checkChildren=!0),s.subject;let l={checkChildren:n,subject:new G,rootNode:a};return this._elementInfo.set(o,l),this._registerGlobalListeners(l),l.subject}stopMonitoring(t){let n=En(t),o=this._elementInfo.get(n);o&&(o.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(o))}focusVia(t,n,o){let a=En(t),s=this._getDocument().activeElement;a===s?this._getClosestElementsInfo(a).forEach(([l,u])=>this._originChanged(l,n,u)):(this._setOrigin(n),typeof a.focus=="function"&&a.focus(o))}ngOnDestroy(){this._elementInfo.forEach((t,n)=>this.stopMonitoring(n))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:t&&this._isLastInteractionFromInputLabel(t)?"mouse":"program"}_shouldBeAttributedToTouch(t){return this._detectionMode===ap.EVENTUAL||!!t?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(t,n){t.classList.toggle("cdk-focused",!!n),t.classList.toggle("cdk-touch-focused",n==="touch"),t.classList.toggle("cdk-keyboard-focused",n==="keyboard"),t.classList.toggle("cdk-mouse-focused",n==="mouse"),t.classList.toggle("cdk-program-focused",n==="program")}_setOrigin(t,n=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=t,this._originFromTouchInteraction=t==="touch"&&n,this._detectionMode===ap.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?p1:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o)}})}_onFocus(t,n){let o=this._elementInfo.get(n),a=mn(t);!o||!o.checkChildren&&n!==a||this._originChanged(n,this._getFocusOrigin(a),o)}_onBlur(t,n){let o=this._elementInfo.get(n);!o||o.checkChildren&&t.relatedTarget instanceof Node&&n.contains(t.relatedTarget)||(this._setClasses(n),this._emitOrigin(o,null))}_emitOrigin(t,n){t.subject.observers.length&&this._ngZone.run(()=>t.subject.next(n))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;let n=t.rootNode,o=this._rootNodeFocusListenerCount.get(n)||0;o||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,rp),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,rp)}),this._rootNodeFocusListenerCount.set(n,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(fe(this._stopInputModalityDetector)).subscribe(a=>{this._setOrigin(a,!0)}))}_removeGlobalListeners(t){let n=t.rootNode;if(this._rootNodeFocusListenerCount.has(n)){let o=this._rootNodeFocusListenerCount.get(n);o>1?this._rootNodeFocusListenerCount.set(n,o-1):(n.removeEventListener("focus",this._rootNodeFocusAndBlurListener,rp),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,rp),this._rootNodeFocusListenerCount.delete(n))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,n,o){this._setClasses(t,n),this._emitOrigin(o,n),this._lastFocusOrigin=n}_getClosestElementsInfo(t){let n=[];return this._elementInfo.forEach((o,a)=>{(a===t||o.checkChildren&&a.contains(t))&&n.push([a,o])}),n}_isLastInteractionFromInputLabel(t){let{_mostRecentTarget:n,mostRecentModality:o}=this._inputModalityDetector;if(o!=="mouse"||!n||n===t||t.nodeName!=="INPUT"&&t.nodeName!=="TEXTAREA"||t.disabled)return!1;let a=t.labels;if(a){for(let s=0;s{let e=class e{constructor(t,n){this._elementRef=t,this._focusMonitor=n,this._focusOrigin=null,this.cdkFocusChange=new T}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,t.nodeType===1&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(n=>{this._focusOrigin=n,this.cdkFocusChange.emit(n)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}};e.\u0275fac=function(n){return new(n||e)(m(q),m(Di))},e.\u0275dir=L({type:e,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"],standalone:!0});let i=e;return i})(),us=function(i){return i[i.NONE=0]="NONE",i[i.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",i[i.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",i}(us||{}),l1="cdk-high-contrast-black-on-white",c1="cdk-high-contrast-white-on-black",Q0="cdk-high-contrast-active",ey=(()=>{let e=class e{constructor(t,n){this._platform=t,this._document=n,this._breakpointSubscription=k(Al).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return us.NONE;let t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);let n=this._document.defaultView||window,o=n&&n.getComputedStyle?n.getComputedStyle(t):null,a=(o&&o.backgroundColor||"").replace(/ /g,"");switch(t.remove(),a){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return us.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return us.BLACK_ON_WHITE}return us.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let t=this._document.body.classList;t.remove(Q0,l1,c1),this._hasCheckedHighContrastMode=!0;let n=this.getHighContrastMode();n===us.BLACK_ON_WHITE?t.add(Q0,l1):n===us.WHITE_ON_BLACK&&t.add(Q0,c1)}}};e.\u0275fac=function(n){return new(n||e)(M(Ve),M(se))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),Ll=(()=>{let e=class e{constructor(t){t._applyBodyHighContrastModeCssClasses()}};e.\u0275fac=function(n){return new(n||e)(M(ey))},e.\u0275mod=te({type:e}),e.\u0275inj=ee({imports:[ip]});let i=e;return i})();function rU(i,e){}var ps=class{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}};var iy=(()=>{let e=class e extends ga{constructor(t,n,o,a,s,l,u,f){super(),this._elementRef=t,this._focusTrapFactory=n,this._config=a,this._interactivityChecker=s,this._ngZone=l,this._overlayRef=u,this._focusMonitor=f,this._platform=k(Ve),this._focusTrap=null,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this._changeDetectorRef=k(he),this._injector=k(Pe),this._isDestroyed=!1,this.attachDomPortal=v=>{this._portalOutlet.hasAttached();let C=this._portalOutlet.attachDomPortal(v);return this._contentAttached(),C},this._document=o,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(t){this._ariaLabelledByQueue.push(t),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(t){let n=this._ariaLabelledByQueue.indexOf(t);n>-1&&(this._ariaLabelledByQueue.splice(n,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(t){this._portalOutlet.hasAttached();let n=this._portalOutlet.attachComponentPortal(t);return this._contentAttached(),n}attachTemplatePortal(t){this._portalOutlet.hasAttached();let n=this._portalOutlet.attachTemplatePortal(t);return this._contentAttached(),n}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(t,n){this._interactivityChecker.isFocusable(t)||(t.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let o=()=>{t.removeEventListener("blur",o),t.removeEventListener("mousedown",o),t.removeAttribute("tabindex")};t.addEventListener("blur",o),t.addEventListener("mousedown",o)})),t.focus(n)}_focusByCssSelector(t,n){let o=this._elementRef.nativeElement.querySelector(t);o&&this._forceFocus(o,n)}_trapFocus(){this._isDestroyed||ai(()=>{let t=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||t.focus();break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement()||this._focusDialogContainer();break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus);break}},{injector:this._injector})}_restoreFocus(){let t=this._config.restoreFocus,n=null;if(typeof t=="string"?n=this._document.querySelector(t):typeof t=="boolean"?n=t?this._elementFocusedBeforeDialogWasOpened:null:t&&(n=t),this._config.restoreFocus&&n&&typeof n.focus=="function"){let o=pa(),a=this._elementRef.nativeElement;(!o||o===this._document.body||o===a||a.contains(o))&&(this._focusMonitor?(this._focusMonitor.focusVia(n,this._closeInteractionType),this._closeInteractionType=null):n.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){let t=this._elementRef.nativeElement,n=pa();return t===n||t.contains(n)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=pa()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}};e.\u0275fac=function(n){return new(n||e)(m(q),m(xd),m(se,8),m(ps),m(Cd),m(Z),m(Pr),m(Di))},e.\u0275cmp=E({type:e,selectors:[["cdk-dialog-container"]],viewQuery:function(n,o){if(n&1&&ce(rn,7),n&2){let a;Q(a=K())&&(o._portalOutlet=a.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(n,o){n&2&&ie("id",o._config.id||null)("role",o._config.role)("aria-modal",o._config.ariaModal)("aria-labelledby",o._config.ariaLabel?null:o._ariaLabelledByQueue[0])("aria-label",o._config.ariaLabel)("aria-describedby",o._config.ariaDescribedBy||null)},standalone:!0,features:[be,re],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(n,o){n&1&&x(0,rU,0,0,"ng-template",0)},dependencies:[rn],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2});let i=e;return i})(),Ed=class{constructor(e,r){this.overlayRef=e,this.config=r,this.closed=new G,this.disableClose=r.disableClose,this.backdropClick=e.backdropClick(),this.keydownEvents=e.keydownEvents(),this.outsidePointerEvents=e.outsidePointerEvents(),this.id=r.id,this.keydownEvents.subscribe(t=>{t.keyCode===27&&!this.disableClose&&!Pt(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=e.detachments().subscribe(()=>{r.closeOnOverlayDetachments!==!1&&this.close()})}close(e,r){if(this.containerInstance){let t=this.closed;this.containerInstance._closeInteractionType=r?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),t.next(e),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(e="",r=""){return this.overlayRef.updateSize({width:e,height:r}),this}addPanelClass(e){return this.overlayRef.addPanelClass(e),this}removePanelClass(e){return this.overlayRef.removePanelClass(e),this}},aU=new R("DialogScrollStrategy",{providedIn:"root",factory:()=>{let i=k(xt);return()=>i.scrollStrategies.block()}}),sU=new R("DialogData"),lU=new R("DefaultDialogConfig");var cU=0,ny=(()=>{let e=class e{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(t,n,o,a,s,l){this._overlay=t,this._injector=n,this._defaultOptions=o,this._parentDialog=a,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new G,this._afterOpenedAtThisLevel=new G,this._ariaHiddenElements=new Map,this.afterAllClosed=Xn(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Rt(void 0))),this._scrollStrategy=l}open(t,n){let o=this._defaultOptions||new ps;n=j(j({},o),n),n.id=n.id||`cdk-dialog-${cU++}`,n.id&&this.getDialogById(n.id);let a=this._getOverlayConfig(n),s=this._overlay.create(a),l=new Ed(s,n),u=this._attachContainer(s,l,n);return l.containerInstance=u,this._attachDialogContent(t,l,u,n),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(l),l.closed.subscribe(()=>this._removeOpenDialog(l,!0)),this.afterOpened.next(l),l}closeAll(){ty(this.openDialogs,t=>t.close())}getDialogById(t){return this.openDialogs.find(n=>n.id===t)}ngOnDestroy(){ty(this._openDialogsAtThisLevel,t=>{t.config.closeOnDestroy===!1&&this._removeOpenDialog(t,!1)}),ty(this._openDialogsAtThisLevel,t=>t.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(t){let n=new Mn({positionStrategy:t.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),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,width:t.width,height:t.height,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(n.backdropClass=t.backdropClass),n}_attachContainer(t,n,o){let a=o.injector||o.viewContainerRef?.injector,s=[{provide:ps,useValue:o},{provide:Ed,useValue:n},{provide:Pr,useValue:t}],l;o.container?typeof o.container=="function"?l=o.container:(l=o.container.type,s.push(...o.container.providers(o))):l=iy;let u=new In(l,o.viewContainerRef,Pe.create({parent:a||this._injector,providers:s}),o.componentFactoryResolver);return t.attach(u).instance}_attachDialogContent(t,n,o,a){if(t instanceof dt){let s=this._createInjector(a,n,o,void 0),l={$implicit:a.data,dialogRef:n};a.templateContext&&(l=j(j({},l),typeof a.templateContext=="function"?a.templateContext():a.templateContext)),o.attachTemplatePortal(new Oi(t,null,l,s))}else{let s=this._createInjector(a,n,o,this._injector),l=o.attachComponentPortal(new In(t,a.viewContainerRef,s,a.componentFactoryResolver));n.componentRef=l,n.componentInstance=l.instance}}_createInjector(t,n,o,a){let s=t.injector||t.viewContainerRef?.injector,l=[{provide:sU,useValue:t.data},{provide:Ed,useValue:n}];return t.providers&&(typeof t.providers=="function"?l.push(...t.providers(n,t,o)):l.push(...t.providers)),t.direction&&(!s||!s.get(Nt,null,{optional:!0}))&&l.push({provide:Nt,useValue:{value:t.direction,change:oe()}}),Pe.create({parent:s||a,providers:l})}_removeOpenDialog(t,n){let o=this.openDialogs.indexOf(t);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((a,s)=>{a?s.setAttribute("aria-hidden",a):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),n&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){let t=this._overlayContainer.getContainerElement();if(t.parentElement){let n=t.parentElement.children;for(let o=n.length-1;o>-1;o--){let a=n[o];a!==t&&a.nodeName!=="SCRIPT"&&a.nodeName!=="STYLE"&&!a.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(a,a.getAttribute("aria-hidden")),a.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}};e.\u0275fac=function(n){return new(n||e)(M(xt),M(Pe),M(lU,8),M(e,12),M(kl),M(aU))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function ty(i,e){let r=i.length;for(;r--;)e(i[r])}var f1=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({providers:[ny],imports:[an,zn,Ll,zn]});let i=e;return i})();var dU=["text"],uU=[[["mat-icon"]],"*"],hU=["mat-icon","*"];function mU(i,e){if(i&1&&I(0,"mat-pseudo-checkbox",1),i&2){let r=_();p("disabled",r.disabled)("state",r.selected?"checked":"unchecked")}}function pU(i,e){if(i&1&&I(0,"mat-pseudo-checkbox",3),i&2){let r=_();p("disabled",r.disabled)}}function fU(i,e){if(i&1&&(c(0,"span",4),g(1),d()),i&2){let r=_();h(),F("(",r.group.label,")")}}var gU=["mat-internal-form-field",""],_U=["*"];var D1=(()=>{let e=class e{};e.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",e.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",e.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",e.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)";let i=e;return i})(),S1=(()=>{let e=class e{};e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms";let i=e;return i})();function vU(){return!0}var bU=new R("mat-sanity-checks",{providedIn:"root",factory:vU}),pe=(()=>{let e=class e{constructor(t,n,o){this._sanityChecks=n,this._document=o,this._hasDoneGlobalChecks=!1,t._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(t){return pd()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[t]}};e.\u0275fac=function(n){return new(n||e)(M(ey),M(bU,8),M(se))},e.\u0275mod=te({type:e}),e.\u0275inj=ee({imports:[fa,fa]});let i=e;return i})();var Fr=class{constructor(e,r,t,n,o){this._defaultMatcher=e,this.ngControl=r,this._parentFormGroup=t,this._parentForm=n,this._stateChanges=o,this.errorState=!1}updateErrorState(){let e=this.errorState,r=this._parentFormGroup||this._parentForm,t=this.matcher||this._defaultMatcher,n=this.ngControl?this.ngControl.control:null,o=t?.isErrorState(n,r)??!1;o!==e&&(this.errorState=o,this._stateChanges.next())}};var mp=new R("MAT_DATE_LOCALE",{providedIn:"root",factory:yU});function yU(){return k(Lc)}var Ri=class{constructor(){this._localeChanges=new G,this.localeChanges=this._localeChanges}getValidDateOrNull(e){return this.isDateInstance(e)&&this.isValid(e)?e:null}deserialize(e){return e==null||this.isDateInstance(e)&&this.isValid(e)?e:this.invalid()}setLocale(e){this.locale=e,this._localeChanges.next()}compareDate(e,r){return this.getYear(e)-this.getYear(r)||this.getMonth(e)-this.getMonth(r)||this.getDate(e)-this.getDate(r)}sameDate(e,r){if(e&&r){let t=this.isValid(e),n=this.isValid(r);return t&&n?!this.compareDate(e,r):t==n}return e==r}clampDate(e,r,t){return r&&this.compareDate(e,r)<0?r:t&&this.compareDate(e,t)>0?t:e}},ba=new R("mat-date-formats"),wU=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function oy(i,e){let r=Array(i);for(let t=0;t{let e=class e extends Ri{constructor(t){super(),this.useUtcForDisplay=!1,this._matDateLocale=k(mp,{optional:!0}),t!==void 0&&(this._matDateLocale=t),super.setLocale(this._matDateLocale)}getYear(t){return t.getFullYear()}getMonth(t){return t.getMonth()}getDate(t){return t.getDate()}getDayOfWeek(t){return t.getDay()}getMonthNames(t){let n=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return oy(12,o=>this._format(n,new Date(2017,o,1)))}getDateNames(){let t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return oy(31,n=>this._format(t,new Date(2017,0,n+1)))}getDayOfWeekNames(t){let n=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return oy(7,o=>this._format(n,new Date(2017,0,o+1)))}getYearName(t){let n=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(n,t)}getFirstDayOfWeek(){if(typeof Intl<"u"&&Intl.Locale){let t=new Intl.Locale(this.locale),n=(t.getWeekInfo?.()||t.weekInfo)?.firstDay??0;return n===7?0:n}return 0}getNumDaysInMonth(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))}clone(t){return new Date(t.getTime())}createDate(t,n,o){let a=this._createDateWithOverflow(t,n,o);return a.getMonth()!=n,a}today(){return new Date}parse(t,n){return typeof t=="number"?new Date(t):t?new Date(Date.parse(t)):null}format(t,n){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");let o=new Intl.DateTimeFormat(this.locale,rt(j({},n),{timeZone:"utc"}));return this._format(o,t)}addCalendarYears(t,n){return this.addCalendarMonths(t,n*12)}addCalendarMonths(t,n){let o=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+n,this.getDate(t));return this.getMonth(o)!=((this.getMonth(t)+n)%12+12)%12&&(o=this._createDateWithOverflow(this.getYear(o),this.getMonth(o),0)),o}addCalendarDays(t,n){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+n)}toIso8601(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}deserialize(t){if(typeof t=="string"){if(!t)return null;if(wU.test(t)){let n=new Date(t);if(this.isValid(n))return n}}return super.deserialize(t)}isDateInstance(t){return t instanceof Date}isValid(t){return!isNaN(t.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(t,n,o){let a=new Date;return a.setFullYear(t,n,o),a.setHours(0,0,0,0),a}_2digit(t){return("00"+t).slice(-2)}_format(t,n){let o=new Date;return o.setUTCFullYear(n.getFullYear(),n.getMonth(),n.getDate()),o.setUTCHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),t.format(o)}};e.\u0275fac=function(n){return new(n||e)(M(mp,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),xU={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"}}};var E1=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({providers:[DU()]});let i=e;return i})();function DU(i=xU){return[{provide:Ri,useClass:CU},{provide:ba,useValue:i}]}var Nr=(()=>{let e=class e{isErrorState(t,n){return!!(t&&t.invalid&&(t.touched||n&&n.submitted))}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var lo=function(i){return i[i.FADING_IN=0]="FADING_IN",i[i.VISIBLE=1]="VISIBLE",i[i.FADING_OUT=2]="FADING_OUT",i[i.HIDDEN=3]="HIDDEN",i}(lo||{}),sy=class{constructor(e,r,t,n=!1){this._renderer=e,this.element=r,this.config=t,this._animationForciblyDisabledThroughCss=n,this.state=lo.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}},g1=Ui({passive:!0,capture:!0}),ly=class{constructor(){this._events=new Map,this._delegateEventHandler=e=>{let r=mn(e);r&&this._events.get(e.type)?.forEach((t,n)=>{(n===r||n.contains(r))&&t.forEach(o=>o.handleEvent(e))})}}addHandler(e,r,t,n){let o=this._events.get(r);if(o){let a=o.get(t);a?a.add(n):o.set(t,new Set([n]))}else this._events.set(r,new Map([[t,new Set([n])]])),e.runOutsideAngular(()=>{document.addEventListener(r,this._delegateEventHandler,g1)})}removeHandler(e,r,t){let n=this._events.get(e);if(!n)return;let o=n.get(r);o&&(o.delete(t),o.size===0&&n.delete(r),n.size===0&&(this._events.delete(e),document.removeEventListener(e,this._delegateEventHandler,g1)))}},_1={enterDuration:225,exitDuration:150},SU=800,v1=Ui({passive:!0,capture:!0}),b1=["mousedown","touchstart"],y1=["mouseup","mouseleave","touchend","touchcancel"],Id=class Id{constructor(e,r,t,n){this._target=e,this._ngZone=r,this._platform=n,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,n.isBrowser&&(this._containerElement=En(t))}fadeInRipple(e,r,t={}){let n=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=j(j({},_1),t.animation);t.centered&&(e=n.left+n.width/2,r=n.top+n.height/2);let a=t.radius||EU(e,r,n),s=e-n.left,l=r-n.top,u=o.enterDuration,f=document.createElement("div");f.classList.add("mat-ripple-element"),f.style.left=`${s-a}px`,f.style.top=`${l-a}px`,f.style.height=`${a*2}px`,f.style.width=`${a*2}px`,t.color!=null&&(f.style.backgroundColor=t.color),f.style.transitionDuration=`${u}ms`,this._containerElement.appendChild(f);let v=window.getComputedStyle(f),C=v.transitionProperty,D=v.transitionDuration,S=C==="none"||D==="0s"||D==="0s, 0s"||n.width===0&&n.height===0,P=new sy(this,f,t,S);f.style.transform="scale3d(1, 1, 1)",P.state=lo.FADING_IN,t.persistent||(this._mostRecentTransientRipple=P);let z=null;return!S&&(u||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let O=()=>{z&&(z.fallbackTimer=null),clearTimeout(ht),this._finishRippleTransition(P)},de=()=>this._destroyRipple(P),ht=setTimeout(de,u+100);f.addEventListener("transitionend",O),f.addEventListener("transitioncancel",de),z={onTransitionEnd:O,onTransitionCancel:de,fallbackTimer:ht}}),this._activeRipples.set(P,z),(S||!u)&&this._finishRippleTransition(P),P}fadeOutRipple(e){if(e.state===lo.FADING_OUT||e.state===lo.HIDDEN)return;let r=e.element,t=j(j({},_1),e.config.animation);r.style.transitionDuration=`${t.exitDuration}ms`,r.style.opacity="0",e.state=lo.FADING_OUT,(e._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(e)}fadeOutAll(){this._getActiveRipples().forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){let r=En(e);!this._platform.isBrowser||!r||r===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=r,b1.forEach(t=>{Id._eventManager.addHandler(this._ngZone,t,r,this)}))}handleEvent(e){e.type==="mousedown"?this._onMousedown(e):e.type==="touchstart"?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{y1.forEach(r=>{this._triggerElement.addEventListener(r,this,v1)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(e){e.state===lo.FADING_IN?this._startFadeOutTransition(e):e.state===lo.FADING_OUT&&this._destroyRipple(e)}_startFadeOutTransition(e){let r=e===this._mostRecentTransientRipple,{persistent:t}=e.config;e.state=lo.VISIBLE,!t&&(!r||!this._isPointerDown)&&e.fadeOut()}_destroyRipple(e){let r=this._activeRipples.get(e)??null;this._activeRipples.delete(e),this._activeRipples.size||(this._containerRect=null),e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),e.state=lo.HIDDEN,r!==null&&(e.element.removeEventListener("transitionend",r.onTransitionEnd),e.element.removeEventListener("transitioncancel",r.onTransitionCancel),r.fallbackTimer!==null&&clearTimeout(r.fallbackTimer)),e.element.remove()}_onMousedown(e){let r=Dd(e),t=this._lastTouchStartEvent&&Date.now(){let r=e.state===lo.VISIBLE||e.config.terminateOnPointerUp&&e.state===lo.FADING_IN;!e.config.persistent&&r&&e.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let e=this._triggerElement;e&&(b1.forEach(r=>Id._eventManager.removeHandler(r,e,this)),this._pointerUpEventsRegistered&&(y1.forEach(r=>e.removeEventListener(r,this,v1)),this._pointerUpEventsRegistered=!1))}};Id._eventManager=new ly;var cy=Id;function EU(i,e,r){let t=Math.max(Math.abs(i-r.left),Math.abs(i-r.right)),n=Math.max(Math.abs(e-r.top),Math.abs(e-r.bottom));return Math.sqrt(t*t+n*n)}var Vl=new R("mat-ripple-global-options"),Tn=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}constructor(t,n,o,a,s){this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=a||{},this._rippleRenderer=new cy(this,n,t,o)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:j(j(j({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,n=0,o){return typeof t=="number"?this._rippleRenderer.fadeInRipple(t,n,j(j({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,j(j({},this.rippleConfig),t))}};e.\u0275fac=function(n){return new(n||e)(m(q),m(Z),m(Ve),m(Vl,8),m(kt,8))},e.\u0275dir=L({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(n,o){n&2&&ne("mat-ripple-unbounded",o.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0});let i=e;return i})(),Lr=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({imports:[pe,pe]});let i=e;return i})(),dy=(()=>{let e=class e{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1,this.appearance="full"}};e.\u0275fac=function(n){return new(n||e)(m(kt,8))},e.\u0275cmp=E({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(n,o){n&2&&ne("mat-pseudo-checkbox-indeterminate",o.state==="indeterminate")("mat-pseudo-checkbox-checked",o.state==="checked")("mat-pseudo-checkbox-disabled",o.disabled)("mat-pseudo-checkbox-minimal",o.appearance==="minimal")("mat-pseudo-checkbox-full",o.appearance==="full")("_mat-animation-noopable",o._animationMode==="NoopAnimations")},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},standalone:!0,features:[re],decls:0,vars:0,template:function(n,o){},styles:['.mat-pseudo-checkbox{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-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color, var(--mat-app-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color, var(--mat-app-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color, var(--mat-app-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color, var(--mat-app-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color, var(--mat-app-surface))}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0});let i=e;return i})(),IU=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({imports:[pe]});let i=e;return i})(),Td=new R("MAT_OPTION_PARENT_COMPONENT");var kd=new R("MatOptgroup");var MU=0,Md=class{constructor(e,r=!1){this.source=e,this.isUserInput=r}},nt=(()=>{let e=class e{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=t}get disableRipple(){return!!(this._parent&&this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}constructor(t,n,o,a){this._element=t,this._changeDetectorRef=n,this._parent=o,this.group=a,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id=`mat-option-${MU++}`,this.onSelectionChange=new T,this._stateChanges=new G}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(t=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),t&&this._emitSelectionChangeEvent())}deselect(t=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),t&&this._emitSelectionChangeEvent())}focus(t,n){let o=this._getHostElement();typeof o.focus=="function"&&o.focus(n)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){(t.keyCode===13||t.keyCode===32)&&!Pt(t)&&(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=t)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new Md(this,t))}};e.\u0275fac=function(n){return new(n||e)(m(q),m(he),m(Td,8),m(kd,8))},e.\u0275cmp=E({type:e,selectors:[["mat-option"]],viewQuery:function(n,o){if(n&1&&ce(dU,7),n&2){let a;Q(a=K())&&(o._text=a.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(n,o){n&1&&b("click",function(){return o._selectViaInteraction()})("keydown",function(s){return o._handleKeydown(s)}),n&2&&(Si("id",o.id),ie("aria-selected",o.selected)("aria-disabled",o.disabled.toString()),ne("mdc-list-item--selected",o.selected)("mat-mdc-option-multiple",o.multiple)("mat-mdc-option-active",o.active)("mdc-list-item--disabled",o.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",Y]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],standalone:!0,features:[ge,re],ngContentSelectors:hU,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(n,o){n&1&&(He(uU),x(0,mU,1,2,"mat-pseudo-checkbox",1),ae(1),c(2,"span",2,0),ae(4,1),d(),x(5,pU,1,1,"mat-pseudo-checkbox",3)(6,fU,2,1,"span",4),I(7,"div",5)),n&2&&(De(o.multiple?0:-1),h(5),De(!o.multiple&&o.selected&&!o.hideSingleSelectionIndicator?5:-1),h(),De(o.group&&o.group._inert?6:-1),h(),p("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disabled||o.disableRipple))},dependencies:[dy,Tn],styles:['.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-app-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-app-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-app-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-app-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-app-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-app-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color);outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-app-on-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color, var(--mat-app-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-app-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let i=e;return i})();function pp(i,e,r){if(r.length){let t=e.toArray(),n=r.toArray(),o=0;for(let a=0;ar+t?Math.max(0,i-t+e):r}var jl=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({imports:[Lr,pe,IU]});let i=e;return i})(),w1={capture:!0},C1=["focus","mousedown","mouseenter","touchstart"],ry="mat-ripple-loader-uninitialized",ay="mat-ripple-loader-class-name",x1="mat-ripple-loader-centered",hp="mat-ripple-loader-disabled",gp=(()=>{let e=class e{constructor(){this._document=k(se,{optional:!0}),this._animationMode=k(kt,{optional:!0}),this._globalRippleOptions=k(Vl,{optional:!0}),this._platform=k(Ve),this._ngZone=k(Z),this._hosts=new Map,this._onInteraction=t=>{let n=mn(t);if(n instanceof HTMLElement){let o=n.closest(`[${ry}="${this._globalRippleOptions?.namespace??""}"]`);o&&this._createRipple(o)}},this._ngZone.runOutsideAngular(()=>{for(let t of C1)this._document?.addEventListener(t,this._onInteraction,w1)})}ngOnDestroy(){let t=this._hosts.keys();for(let n of t)this.destroyRipple(n);for(let n of C1)this._document?.removeEventListener(n,this._onInteraction,w1)}configureRipple(t,n){t.setAttribute(ry,this._globalRippleOptions?.namespace??""),(n.className||!t.hasAttribute(ay))&&t.setAttribute(ay,n.className||""),n.centered&&t.setAttribute(x1,""),n.disabled&&t.setAttribute(hp,"")}getRipple(t){return this._hosts.get(t)||this._createRipple(t)}setDisabled(t,n){let o=this._hosts.get(t);if(o){o.disabled=n;return}n?t.setAttribute(hp,""):t.removeAttribute(hp)}_createRipple(t){if(!this._document)return;let n=this._hosts.get(t);if(n)return n;t.querySelector(".mat-ripple")?.remove();let o=this._document.createElement("span");o.classList.add("mat-ripple",t.getAttribute(ay)),t.append(o);let a=new Tn(new q(o),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return a._isInitialized=!0,a.trigger=t,a.centered=t.hasAttribute(x1),a.disabled=t.hasAttribute(hp),this.attachRipple(t,a),a}attachRipple(t,n){t.removeAttribute(ry),this._hosts.set(t,n)}destroyRipple(t){let n=this._hosts.get(t);n&&(n.ngOnDestroy(),this._hosts.delete(t))}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),_p=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=E({type:e,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(n,o){n&2&&ne("mdc-form-field--align-end",o.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},standalone:!0,features:[re],attrs:gU,ngContentSelectors:_U,decls:1,vars:0,template:function(n,o){n&1&&(He(),ae(0))},styles:[".mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0}"],encapsulation:2,changeDetection:0});let i=e;return i})();var ot=function(i){return i[i.State=0]="State",i[i.Transition=1]="Transition",i[i.Sequence=2]="Sequence",i[i.Group=3]="Group",i[i.Animate=4]="Animate",i[i.Keyframes=5]="Keyframes",i[i.Style=6]="Style",i[i.Trigger=7]="Trigger",i[i.Reference=8]="Reference",i[i.AnimateChild=9]="AnimateChild",i[i.AnimateRef=10]="AnimateRef",i[i.Query=11]="Query",i[i.Stagger=12]="Stagger",i}(ot||{}),or="*";function ui(i,e){return{type:ot.Trigger,name:i,definitions:e,options:{}}}function Mt(i,e=null){return{type:ot.Animate,styles:e,timings:i}}function I1(i,e=null){return{type:ot.Group,steps:i,options:e}}function M1(i,e=null){return{type:ot.Sequence,steps:i,options:e}}function Me(i){return{type:ot.Style,styles:i,offset:null}}function Lt(i,e,r){return{type:ot.State,name:i,styles:e,options:r}}function wa(i){return{type:ot.Keyframes,steps:i}}function St(i,e,r=null){return{type:ot.Transition,expr:i,animation:e,options:r}}function vp(i=null){return{type:ot.AnimateChild,options:i}}function bp(i,e,r=null){return{type:ot.Query,selector:i,animation:e,options:r}}var ya=class{constructor(e=0,r=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+r}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let r=e=="start"?this._onStartFns:this._onDoneFns;r.forEach(t=>t()),r.length=0}},Ad=class{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let r=0,t=0,n=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++r==o&&this._onFinish()}),a.onDestroy(()=>{++t==o&&this._onDestroy()}),a.onStart(()=>{++n==o&&this._onStart()})}),this.totalTime=this.players.reduce((a,s)=>Math.max(a,s.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let r=e*this.totalTime;this.players.forEach(t=>{let n=t.totalTime?Math.min(1,r/t.totalTime):1;t.setPosition(n)})}getPosition(){let e=this.players.reduce((r,t)=>r===null||t.totalTime>r.totalTime?t:r,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let r=e=="start"?this._onStartFns:this._onDoneFns;r.forEach(t=>t()),r.length=0}},yp="!";function TU(i,e){}var Od=class{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}},uy="mdc-dialog--open",T1="mdc-dialog--opening",k1="mdc-dialog--closing",kU=150,AU=75,OU=(()=>{let e=class e extends iy{constructor(t,n,o,a,s,l,u,f,v){super(t,n,o,a,s,l,u,v),this._animationMode=f,this._animationStateChanged=new T,this._animationsEnabled=this._animationMode!=="NoopAnimations",this._actionSectionCount=0,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?O1(this._config.enterAnimationDuration)??kU:0,this._exitAnimationDuration=this._animationsEnabled?O1(this._config.exitAnimationDuration)??AU:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(A1,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(T1,uy)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(uy),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(uy),this._animationsEnabled?(this._hostElement.style.setProperty(A1,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(k1)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(t){this._actionSectionCount+=t,this._changeDetectorRef.markForCheck()}_clearAnimationClasses(){this._hostElement.classList.remove(T1,k1)}_waitForAnimationToComplete(t,n){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(n,t)}_requestAnimationFrame(t){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(t):t()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(t){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:t})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(t){let n=super.attachComponentPortal(t);return n.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),n}};e.\u0275fac=function(n){return new(n||e)(m(q),m(xd),m(se,8),m(Od),m(Cd),m(Z),m(Pr),m(kt,8),m(Di))},e.\u0275cmp=E({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(n,o){n&2&&(Si("id",o._config.id),ie("aria-modal",o._config.ariaModal)("role",o._config.role)("aria-labelledby",o._config.ariaLabel?null:o._ariaLabelledByQueue[0])("aria-label",o._config.ariaLabel)("aria-describedby",o._config.ariaDescribedBy||null),ne("_mat-animation-noopable",!o._animationsEnabled)("mat-mdc-dialog-container-with-actions",o._actionSectionCount>0))},standalone:!0,features:[be,re],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1),x(2,TU,0,0,"ng-template",2),d()())},dependencies:[rn],styles:['.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 80vw);min-width:var(--mat-dialog-container-min-width, 0)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, 80vw)}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12));border-radius:var(--mdc-dialog-container-shape, var(--mat-app-corner-extra-large, 4px));background-color:var(--mdc-dialog-container-color, var(--mat-app-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 0 24px 9px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mdc-dialog-subhead-color, var(--mat-app-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mdc-dialog-subhead-font, var(--mat-app-headline-small-font, inherit));line-height:var(--mdc-dialog-subhead-line-height, var(--mat-app-headline-small-line-height, 1.5rem));font-size:var(--mdc-dialog-subhead-size, var(--mat-app-headline-small-size, 1rem));font-weight:var(--mdc-dialog-subhead-weight, var(--mat-app-headline-small-weight, 400));letter-spacing:var(--mdc-dialog-subhead-tracking, var(--mat-app-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mdc-dialog-supporting-text-color, var(--mat-app-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mdc-dialog-supporting-text-font, var(--mat-app-body-medium-font, inherit));line-height:var(--mdc-dialog-supporting-text-line-height, var(--mat-app-body-medium-line-height, 1.5rem));font-size:var(--mdc-dialog-supporting-text-size, var(--mat-app-body-medium-size, 1rem));font-weight:var(--mdc-dialog-supporting-text-weight, var(--mat-app-body-medium-weight, 400));letter-spacing:var(--mdc-dialog-supporting-text-tracking, var(--mat-app-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 8px);justify-content:var(--mat-dialog-actions-alignment, start)}.cdk-high-contrast-active .mat-mdc-dialog-actions{border-top-color:CanvasText}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents}'],encapsulation:2});let i=e;return i})(),A1="--mat-dialog-transition-duration";function O1(i){return i==null?null:typeof i=="number"?i:i.endsWith("ms")?Mo(i.substring(0,i.length-2)):i.endsWith("s")?Mo(i.substring(0,i.length-1))*1e3:i==="0"?0:null}var wp=function(i){return i[i.OPEN=0]="OPEN",i[i.CLOSING=1]="CLOSING",i[i.CLOSED=2]="CLOSED",i}(wp||{}),Ne=class{constructor(e,r,t){this._ref=e,this._containerInstance=t,this._afterOpened=new G,this._beforeClosed=new G,this._state=wp.OPEN,this.disableClose=r.disableClose,this.id=e.id,e.addPanelClass("mat-mdc-dialog-panel"),t._animationStateChanged.pipe(Ye(n=>n.state==="opened"),Ot(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe(Ye(n=>n.state==="closed"),Ot(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),e.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),wt(this.backdropClick(),this.keydownEvents().pipe(Ye(n=>n.keyCode===27&&!this.disableClose&&!Pt(n)))).subscribe(n=>{this.disableClose||(n.preventDefault(),R1(this,n.type==="keydown"?"keyboard":"mouse"))})}close(e){this._result=e,this._containerInstance._animationStateChanged.pipe(Ye(r=>r.state==="closing"),Ot(1)).subscribe(r=>{this._beforeClosed.next(e),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),r.totalTime+100)}),this._state=wp.CLOSING,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(e){let r=this._ref.config.positionStrategy;return e&&(e.left||e.right)?e.left?r.left(e.left):r.right(e.right):r.centerHorizontally(),e&&(e.top||e.bottom)?e.top?r.top(e.top):r.bottom(e.bottom):r.centerVertically(),this._ref.updatePosition(),this}updateSize(e="",r=""){return this._ref.updateSize(e,r),this}addPanelClass(e){return this._ref.addPanelClass(e),this}removePanelClass(e){return this._ref.removePanelClass(e),this}getState(){return this._state}_finishDialogClose(){this._state=wp.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function R1(i,e,r){return i._closeInteractionType=e,i.close(r)}var Ke=new R("MatMdcDialogData"),RU=new R("mat-mdc-dialog-default-options"),PU=new R("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let i=k(xt);return()=>i.scrollStrategies.block()}});var FU=0,Rd=(()=>{let e=class e{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(t,n,o,a,s,l,u,f){this._overlay=t,this._defaultOptions=a,this._scrollStrategy=s,this._parentDialog=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new G,this._afterOpenedAtThisLevel=new G,this.dialogConfigClass=Od,this.afterAllClosed=Xn(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Rt(void 0))),this._dialog=n.get(ny),this._dialogRefConstructor=Ne,this._dialogContainerType=OU,this._dialogDataToken=Ke}open(t,n){let o;n=j(j({},this._defaultOptions||new Od),n),n.id=n.id||`mat-mdc-dialog-${FU++}`,n.scrollStrategy=n.scrollStrategy||this._scrollStrategy();let a=this._dialog.open(t,rt(j({},n),{positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:n},{provide:ps,useValue:n}]},templateContext:()=>({dialogRef:o}),providers:(s,l,u)=>(o=new this._dialogRefConstructor(s,n,u),o.updatePosition(n?.position),[{provide:this._dialogContainerType,useValue:u},{provide:this._dialogDataToken,useValue:l.data},{provide:this._dialogRefConstructor,useValue:o}])}));return o.componentRef=a.componentRef,o.componentInstance=a.componentInstance,this.openDialogs.push(o),this.afterOpened.next(o),o.afterClosed().subscribe(()=>{let s=this.openDialogs.indexOf(o);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||this._getAfterAllClosed().next())}),o}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(n=>n.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(t){let n=t.length;for(;n--;)t[n].close()}};e.\u0275fac=function(n){return new(n||e)(M(xt),M(Pe),M(er,8),M(RU,8),M(PU),M(e,12),M(kl),M(kt,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),NU=0,Qt=(()=>{let e=class e{constructor(t,n,o){this.dialogRef=t,this._elementRef=n,this._dialog=o,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=F1(this._elementRef,this._dialog.openDialogs))}ngOnChanges(t){let n=t._matDialogClose||t._matDialogCloseResult;n&&(this.dialogResult=n.currentValue)}_onButtonClick(t){R1(this.dialogRef,t.screenX===0&&t.screenY===0?"keyboard":"mouse",this.dialogResult)}};e.\u0275fac=function(n){return new(n||e)(m(Ne,8),m(q),m(Rd))},e.\u0275dir=L({type:e,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(n,o){n&1&&b("click",function(s){return o._onButtonClick(s)}),n&2&&ie("aria-label",o.ariaLabel||null)("type",o.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],standalone:!0,features:[Qe]});let i=e;return i})(),P1=(()=>{let e=class e{constructor(t,n,o){this._dialogRef=t,this._elementRef=n,this._dialog=o}ngOnInit(){this._dialogRef||(this._dialogRef=F1(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}};e.\u0275fac=function(n){return new(n||e)(m(Ne,8),m(q),m(Rd))},e.\u0275dir=L({type:e,standalone:!0});let i=e;return i})(),Je=(()=>{let e=class e extends P1{constructor(){super(...arguments),this.id=`mat-mdc-dialog-title-${NU++}`}_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=jt(e)))(o||e)}})(),e.\u0275dir=L({type:e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(n,o){n&2&&Si("id",o.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],standalone:!0,features:[be]});let i=e;return i})(),et=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],standalone:!0,features:[OE([gd])]});let i=e;return i})(),tt=(()=>{let e=class e extends P1{_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=jt(e)))(o||e)}})(),e.\u0275dir=L({type:e,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(n,o){n&2&&ne("mat-mdc-dialog-actions-align-start",o.align==="start")("mat-mdc-dialog-actions-align-center",o.align==="center")("mat-mdc-dialog-actions-align-end",o.align==="end")},inputs:{align:"align"},standalone:!0,features:[be]});let i=e;return i})();function F1(i,e){let r=i.nativeElement.parentElement;for(;r&&!r.classList.contains("mat-mdc-dialog-container");)r=r.parentElement;return r?e.find(t=>t.id===r.id):null}var N1=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({providers:[Rd],imports:[f1,an,zn,pe,pe]});let i=e;return i})();var L1,V1=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],j1=[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")];var B1=i=>{let e=[];return i.forEach(r=>{e.push(r.substring(0,3))}),e},Ca=(i,e,r)=>(typeof e>"u"&&(e=new Date),fs(i,e,r));var fs=(i,e,r,t)=>{t=t||{},e=e||new Date;let n=r||jU;n.formats=n.formats||{};let o=e.getTime();return(t.utc||typeof t.timezone=="number")&&(e=LU(e)),typeof t.timezone=="number"&&(e=new Date(e.getTime()+t.timezone*6e4)),i.replace(/%([-_0]?.)/g,(a,s)=>{let l,u,f,v,C,D,S,P;if(f=null,C=null,s.length===2){if(f=s[0],f==="-")C="";else if(f==="_")C=" ";else if(f==="0")C="0";else return a;s=s[1]}switch(s){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 _n(Math.floor(e.getFullYear()/100),C);case"D":return fs(n.formats.D||"%m/%d/%y",e,n);case"d":return _n(e.getDate(),C);case"e":return e.getDate();case"F":return fs(n.formats.F||"%Y-%m-%d",e,n);case"H":return _n(e.getHours(),C);case"h":return n.shortMonths[e.getMonth()];case"I":return _n(z1(e),C);case"j":return S=new Date(e.getFullYear(),0,1),l=Math.ceil((e.getTime()-S.getTime())/(1e3*60*60*24)),_n(l,3);case"k":return _n(e.getHours(),C===void 0?" ":C);case"L":return _n(Math.floor(o%1e3),3);case"l":return _n(z1(e),C===void 0?" ":C);case"M":return _n(e.getMinutes(),C);case"m":return _n(e.getMonth()+1,C);case"n":return` +`;case"o":return String(e.getDate())+VU(e.getDate());case"P":return"";case"p":return"";case"R":return fs(n.formats.R||"%H:%M",e,n);case"r":return fs(n.formats.r||"%I:%M:%S %p",e,n);case"S":return _n(e.getSeconds(),C);case"s":return Math.floor(o/1e3);case"T":return fs(n.formats.T||"%H:%M:%S",e,n);case"t":return" ";case"U":return _n(U1(e,"sunday"),C);case"u":return u=e.getDay(),u===0?7:u;case"v":return fs(n.formats.v||"%e-%b-%Y",e,n);case"W":return _n(U1(e,"monday"),C);case"w":return e.getDay();case"Y":return e.getFullYear();case"y":return P=String(e.getFullYear()),P.slice(P.length-2);case"Z":return t.utc?"GMT":(D=e.toString().match(/\((\w+)\)/),D&&D[1]||"");case"z":return t.utc?"+0000":(v=typeof t.timezone=="number"?t.timezone:-e.getTimezoneOffset(),(v<0?"-":"+")+_n(Math.abs(v/60))+_n(v%60));default:return s}})},LU=i=>{let e=(i.getTimezoneOffset()||0)*6e4;return new Date(i.getTime()+e)},_n=(i,e,r)=>{typeof e=="number"&&(r=e,e="0"),e=e??"0",r=r??2;let t=String(i);if(e)for(;t.length{let e;return e=i.getHours(),e===0?e=12:e>12&&(e-=12),e},VU=i=>{let e=i%10,r=i%100;if(r>=11&&r<=13||e===0||e>=4)return"th";switch(e){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"},U1=(i,e)=>{e=e||"sunday";let r=i.getDay();e==="monday"&&(r===0?r=6:r--);let t=new Date(i.getFullYear(),0,1),n=Math.floor((i.getTime()-t.getTime())/864e5);return Math.floor((n+7-r)/7)},hy=i=>i.replace(/./g,e=>{switch(e){case"a":case"A":return"%p";case"b":case"d":case"m":case"w":case"W":case"y":case"Y":return"%"+e;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":return"";case"t":return"";case"T":return"%Z";case"u":return"0";case"U":return"";case"z":return"%j";case"Z":return"z";default:return e}}),$i=(i,e,r=null)=>{let t;if(e==="None"||e===null||e===void 0)e=7226578800,t=django.gettext("Never");else{let n=django.get_format(i);r&&(n+=r),t=Ca(hy(n),new Date(e*1e3))}return t},H1=i=>({1e4:"OTHER",2e4:"DEBUG",3e4:"INFO",4e4:"WARN",5e4:"ERROR",6e4:"FATAL"})[i]||"OTHER",my=i=>!!(i==null||typeof i=="object"&&Object.keys(i).length===0&&i.constructor===Object||Array.isArray(i)&&i.length===0||typeof i=="string"&&i.trim()===""),$1=i=>i===""||i===null||i===void 0,Cp=i=>i==="yes"||i===!0||i==="true"||i===1,jU={days:V1,shortDays:B1(V1),months:j1,shortMonths:B1(j1),AM:"AM",PM:"PM",am:"am",pm:"pm"},rr=(i,e)=>{let r;if(i instanceof Promise)r=i;else if(i instanceof Jt)r=i;else{if(e)return Lu(i.pipe(Kg(e)));r=Lu(i)}return r},Jt=class{constructor(){this[L1]="Future",this.resolve=()=>{},this.reject=()=>{},this.promise=new Promise((e,r)=>{this.resolve=e,this.reject=r})}then(e,r){return this.promise.then(e,r)}catch(e){return this.promise.catch(e)}finally(e){return this.promise.finally(e)}};L1=Symbol.toStringTag;var W1=["mat-button",""],G1=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],q1=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],BU='.mat-mdc-button-base{text-decoration:none}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-text-button-horizontal-padding, 8px);height:var(--mdc-text-button-container-height);font-family:var(--mdc-text-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, var(--mat-app-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-filled-button-horizontal-padding, 16px);height:var(--mdc-filled-button-container-height);font-family:var(--mdc-filled-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color, var(--mat-app-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-app-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-app-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow, var(--mat-app-level1));height:var(--mdc-protected-button-container-height);font-family:var(--mdc-protected-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-app-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-app-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-app-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-app-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow, var(--mat-app-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow, var(--mat-app-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-outlined-button-horizontal-padding, 15px);height:var(--mdc-outlined-button-container-height);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-app-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-app-corner-full));border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-app-primary));border-color:var(--mdc-outlined-button-outline-color, var(--mat-app-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button .mdc-button__ripple{border-width:var(--mdc-outlined-button-outline-width);border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',py=".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}";var Y1=["mat-icon-button",""],Q1=["*"],zU='.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);color:var(--mdc-icon-button-icon-color, var(--mat-app-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',UU=new R("MAT_BUTTON_CONFIG");var HU=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],fy=(()=>{let e=class e{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(t){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,t)}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=t,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._updateRippleDisabled()}constructor(t,n,o,a){this._elementRef=t,this._platform=n,this._ngZone=o,this._animationMode=a,this._focusMonitor=k(Di),this._rippleLoader=k(gp),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;let s=k(UU,{optional:!0}),l=t.nativeElement,u=l.classList;this.disabledInteractive=s?.disabledInteractive??!1,this.color=s?.color??null,this._rippleLoader?.configureRipple(l,{className:"mat-mdc-button-ripple"});for(let{attribute:f,mdcClasses:v}of HU)l.hasAttribute(f)&&u.add(...v)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(t="program",n){t?this._focusMonitor.focusVia(this._elementRef.nativeElement,t,n):this._elementRef.nativeElement.focus(n)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}};e.\u0275fac=function(n){ts()},e.\u0275dir=L({type:e,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",Y],disabled:[2,"disabled","disabled",Y],ariaDisabled:[2,"aria-disabled","ariaDisabled",Y],disabledInteractive:[2,"disabledInteractive","disabledInteractive",Y]},features:[ge]});let i=e;return i})();var K1=(()=>{let e=class e extends fy{constructor(t,n,o,a){super(t,n,o,a),this._haltDisabledEvents=s=>{this.disabled&&(s.preventDefault(),s.stopImmediatePropagation())}}ngOnInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)})}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled||null}};e.\u0275fac=function(n){ts()},e.\u0275dir=L({type:e,inputs:{tabIndex:[2,"tabIndex","tabIndex",t=>t==null?void 0:ni(t)]},features:[ge,be]});let i=e;return i})(),ke=(()=>{let e=class e extends fy{constructor(t,n,o,a){super(t,n,o,a)}};e.\u0275fac=function(n){return new(n||e)(m(q),m(Ve),m(Z),m(kt,8))},e.\u0275cmp=E({type:e,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(n,o){n&2&&(ie("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),Yt(o.color?"mat-"+o.color:""),ne("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[be,re],attrs:W1,ngContentSelectors:q1,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(He(G1),I(0,"span",0),ae(1),c(2,"span",1),ae(3,1),d(),ae(4,2),I(5,"span",2)(6,"span",3)),n&2&&ne("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:['.mat-mdc-button-base{text-decoration:none}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-text-button-horizontal-padding, 8px);height:var(--mdc-text-button-container-height);font-family:var(--mdc-text-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, var(--mat-app-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-filled-button-horizontal-padding, 16px);height:var(--mdc-filled-button-container-height);font-family:var(--mdc-filled-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color, var(--mat-app-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-app-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-app-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow, var(--mat-app-level1));height:var(--mdc-protected-button-container-height);font-family:var(--mdc-protected-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-app-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-app-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-app-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-app-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow, var(--mat-app-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow, var(--mat-app-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-outlined-button-horizontal-padding, 15px);height:var(--mdc-outlined-button-container-height);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-app-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-app-corner-full));border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-app-primary));border-color:var(--mdc-outlined-button-outline-color, var(--mat-app-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button .mdc-button__ripple{border-width:var(--mdc-outlined-button-outline-width);border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0});let i=e;return i})(),xa=(()=>{let e=class e extends K1{constructor(t,n,o,a){super(t,n,o,a)}};e.\u0275fac=function(n){return new(n||e)(m(q),m(Ve),m(Z),m(kt,8))},e.\u0275cmp=E({type:e,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostVars:15,hostBindings:function(n,o){n&2&&(ie("disabled",o._getDisabledAttribute())("tabindex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex)("aria-disabled",o._getAriaDisabled()),Yt(o.color?"mat-"+o.color:""),ne("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],standalone:!0,features:[be,re],attrs:W1,ngContentSelectors:q1,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(He(G1),I(0,"span",0),ae(1),c(2,"span",1),ae(3,1),d(),ae(4,2),I(5,"span",2)(6,"span",3)),n&2&&ne("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:[BU,py],encapsulation:2,changeDetection:0});let i=e;return i})();var Qi=(()=>{let e=class e extends fy{constructor(t,n,o,a){super(t,n,o,a),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}};e.\u0275fac=function(n){return new(n||e)(m(q),m(Ve),m(Z),m(kt,8))},e.\u0275cmp=E({type:e,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(n,o){n&2&&(ie("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),Yt(o.color?"mat-"+o.color:""),ne("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[be,re],attrs:Y1,ngContentSelectors:Q1,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(He(),I(0,"span",0),ae(1),I(2,"span",1)(3,"span",2))},styles:['.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);color:var(--mdc-icon-button-icon-color, var(--mat-app-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',py],encapsulation:2,changeDetection:0});let i=e;return i})(),xp=(()=>{let e=class e extends K1{constructor(t,n,o,a){super(t,n,o,a)}};e.\u0275fac=function(n){return new(n||e)(m(q),m(Ve),m(Z),m(kt,8))},e.\u0275cmp=E({type:e,selectors:[["a","mat-icon-button",""]],hostVars:15,hostBindings:function(n,o){n&2&&(ie("disabled",o._getDisabledAttribute())("tabindex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex)("aria-disabled",o._getAriaDisabled()),Yt(o.color?"mat-"+o.color:""),ne("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],standalone:!0,features:[be,re],attrs:Y1,ngContentSelectors:Q1,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(He(),I(0,"span",0),ae(1),I(2,"span",1)(3,"span",2))},styles:[zU,py],encapsulation:2,changeDetection:0});let i=e;return i})(),ar=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({imports:[pe,Lr,pe]});let i=e;return i})();var le=(()=>{let e=class e{constructor(t){this.el=t}ngOnInit(){this.el.nativeElement.innerHTML=django.gettext(this.el.nativeElement.innerHTML.trim().replaceAll("&","&"))}};e.\u0275fac=function(n){return new(n||e)(m(q))},e.\u0275dir=L({type:e,selectors:[["uds-translate"]]});let i=e;return i})();var Dp=(()=>{let e=class e{constructor(t){this.sanitizer=t}transform(t,n){return t=t.replace(/<\s*script\s*/gi,""),t=t.replace(/onclick|onmouseover|onmouseout|onmousemove|onmouseenter|onmouseleave|onmouseup|onmousedown|onkeyup|onkeydown|onkeypress|onkeydown|onkeypress|onkeyup|onchange|onfocus|onblur|onload|onunload|onabort|onerror|onresize|onscroll/gi,""),t=t.replace(/javascript\s*\:/gi,""),this.sanitizer.bypassSecurityTrustHtml(t)}};e.\u0275fac=function(n){return new(n||e)(m(is,16))},e.\u0275pipe=Qo({name:"safeHtml",type:e,pure:!0});let i=e;return i})();function $U(i,e){if(i&1){let r=A();c(0,"button",4),b("click",function(){y(r);let n=_();return w(n.resolveAndClose(!1))}),c(1,"uds-translate"),g(2,"Close"),d(),g(3),d()}if(i&2){let r=_();h(3),$e(r.extra)}}function WU(i,e){if(i&1){let r=A();c(0,"button",5),b("click",function(){y(r);let n=_();return w(n.resolveAndClose(!0))}),c(1,"uds-translate"),g(2,"Yes"),d()()}if(i&2){let r=_();p("color",r.yesColor)}}function GU(i,e){if(i&1){let r=A();c(0,"button",5),b("click",function(){y(r);let n=_();return w(n.resolveAndClose(!1))}),c(1,"uds-translate"),g(2,"No"),d()()}if(i&2){let r=_();p("color",r.noColor)}}var Pd=function(i){return i[i.alert=0]="alert",i[i.question=1]="question",i}(Pd||{}),gy=(()=>{let e=class e{constructor(t,n){this.dialogRef=t,this.data=n,this.yesColor="primary",this.noColor="warn",this.extra="",this.subscription={},this.acceptance=new Jt}resolveAndClose(t){this.acceptance.resolve(t),this.close()}close(){this.dialogRef.close()}closed(){this.subscription!==null&&this.subscription.unsubscribe()}setExtra(t){this.extra=" ("+Math.floor(t/1e3)+" "+django.gettext("seconds")+") "}initAlert(){return W(this,null,function*(){let t=this.data.autoclose||0;t>0&&(this.dialogRef.afterClosed().subscribe(n=>{this.closed()}),this.setExtra(t),this.subscription=Zg(1e3).subscribe(n=>{let o=t-(n+1)*1e3;this.setExtra(o),o<=0&&this.close()}))})}ngOnInit(){this.data.warnOnYes===!0&&(this.yesColor="warn",this.noColor="primary"),this.data.type===Pd.alert&&this.initAlert()}};e.\u0275fac=function(n){return new(n||e)(m(Ne),m(Ke))},e.\u0275cmp=E({type:e,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,"click","color"]],template:function(n,o){n&1&&(I(0,"h4",0),_t(1,"safeHtml"),I(2,"mat-dialog-content",1),_t(3,"safeHtml"),c(4,"mat-dialog-actions"),x(5,$U,4,1,"button",2)(6,WU,3,1,"button",3)(7,GU,3,1,"button",3),d()),n&2&&(p("innerHtml",Dt(1,5,o.data.title),qt),h(2),p("innerHTML",Dt(3,7,o.data.body),qt),h(3),p("ngIf",o.data.type===0),h(),p("ngIf",o.data.type===1),h(),p("ngIf",o.data.type===1))},dependencies:[me,ke,Qt,Je,tt,et,le,Dp],styles:[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]});let i=e;return i})();var Ki=function(i){return i.TEXT="text",i.TEXT_AUTOCOMPLETE="text-autocomplete",i.TEXTBOX="textbox",i.NUMERIC="numeric",i.PASSWORD="password",i.HIDDEN="hidden",i.CHOICE="choice",i.MULTI_CHOICE="multichoice",i.EDITLIST="editlist",i.CHECKBOX="checkbox",i.IMAGECHOICE="imgchoice",i.DATE="date",i.DATETIME="datetime",i.TAGLIST="taglist",i.INFO="internal-info",i}(Ki||{}),Fd=class{static locateChoice(e,r){let t=r.gui.choices;if(t===void 0)return{id:"",img:"",text:""};let n=t.find(o=>o.id===e);if(n===void 0)try{n=t[0]}catch{n={id:"",img:"",text:""}}return n}};var oT=(()=>{let e=class e{constructor(t,n){this._renderer=t,this._elementRef=n,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(t,n){this._renderer.setProperty(this._elementRef.nativeElement,t,n)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}};e.\u0275fac=function(n){return new(n||e)(m(xr),m(q))},e.\u0275dir=L({type:e});let i=e;return i})(),rT=(()=>{let e=class e extends oT{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=jt(e)))(o||e)}})(),e.\u0275dir=L({type:e,features:[be]});let i=e;return i})(),vn=new R("");var qU={provide:vn,useExisting:Xt(()=>lt),multi:!0};function YU(){let i=Jo()?Jo().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}var QU=new R(""),lt=(()=>{let e=class e extends oT{constructor(t,n,o){super(t,n),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!YU())}writeValue(t){let n=t??"";this.setProperty("value",n)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}};e.\u0275fac=function(n){return new(n||e)(m(xr),m(q),m(QU,8))},e.\u0275dir=L({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,o){n&1&&b("input",function(s){return o._handleInput(s.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(s){return o._compositionEnd(s.target.value)})},features:[Ce([qU]),be]});let i=e;return i})();function Da(i){return i==null||(typeof i=="string"||Array.isArray(i))&&i.length===0}function aT(i){return i!=null&&typeof i.length=="number"}var co=new R(""),Np=new R(""),KU=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,sr=class{static min(e){return ZU(e)}static max(e){return XU(e)}static required(e){return sT(e)}static requiredTrue(e){return JU(e)}static email(e){return e5(e)}static minLength(e){return t5(e)}static maxLength(e){return lT(e)}static pattern(e){return i5(e)}static nullValidator(e){return Ep(e)}static compose(e){return pT(e)}static composeAsync(e){return fT(e)}};function ZU(i){return e=>{if(Da(e.value)||Da(i))return null;let r=parseFloat(e.value);return!isNaN(r)&&r{if(Da(e.value)||Da(i))return null;let r=parseFloat(e.value);return!isNaN(r)&&r>i?{max:{max:i,actual:e.value}}:null}}function sT(i){return Da(i.value)?{required:!0}:null}function JU(i){return i.value===!0?null:{required:!0}}function e5(i){return Da(i.value)||KU.test(i.value)?null:{email:!0}}function t5(i){return e=>Da(e.value)||!aT(e.value)?null:e.value.lengthaT(e.value)&&e.value.length>i?{maxlength:{requiredLength:i,actualLength:e.value.length}}:null}function i5(i){if(!i)return Ep;let e,r;return typeof i=="string"?(r="",i.charAt(0)!=="^"&&(r+="^"),r+=i,i.charAt(i.length-1)!=="$"&&(r+="$"),e=new RegExp(r)):(r=i.toString(),e=i),t=>{if(Da(t.value))return null;let n=t.value;return e.test(n)?null:{pattern:{requiredPattern:r,actualValue:n}}}}function Ep(i){return null}function cT(i){return i!=null}function dT(i){return la(i)?Kt(i):i}function uT(i){let e={};return i.forEach(r=>{e=r!=null?j(j({},e),r):e}),Object.keys(e).length===0?null:e}function hT(i,e){return e.map(r=>r(i))}function n5(i){return!i.validate}function mT(i){return i.map(e=>n5(e)?e:r=>e.validate(r))}function pT(i){if(!i)return null;let e=i.filter(cT);return e.length==0?null:function(r){return uT(hT(r,e))}}function yy(i){return i!=null?pT(mT(i)):null}function fT(i){if(!i)return null;let e=i.filter(cT);return e.length==0?null:function(r){let t=hT(r,e).map(dT);return uc(t).pipe(ue(uT))}}function wy(i){return i!=null?fT(mT(i)):null}function X1(i,e){return i===null?[e]:Array.isArray(i)?[...i,e]:[i,e]}function gT(i){return i._rawValidators}function _T(i){return i._rawAsyncValidators}function _y(i){return i?Array.isArray(i)?i:[i]:[]}function Ip(i,e){return Array.isArray(i)?i.includes(e):i===e}function J1(i,e){let r=_y(e);return _y(i).forEach(n=>{Ip(r,n)||r.push(n)}),r}function eT(i,e){return _y(e).filter(r=>!Ip(i,r))}var Mp=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=yy(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=wy(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,r){return this.control?this.control.hasError(e,r):!1}getError(e,r){return this.control?this.control.getError(e,r):null}},Sa=class extends Mp{get formDirective(){return null}get path(){return null}},kn=class extends Mp{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Tp=class{constructor(e){this._cd=e}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},o5={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},nce=rt(j({},o5),{"[class.ng-submitted]":"isSubmitted"}),xe=(()=>{let e=class e extends Tp{constructor(t){super(t)}};e.\u0275fac=function(n){return new(n||e)(m(kn,2))},e.\u0275dir=L({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,o){n&2&&ne("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[be]});let i=e;return i})(),Lp=(()=>{let e=class e extends Tp{constructor(t){super(t)}};e.\u0275fac=function(n){return new(n||e)(m(Sa,10))},e.\u0275dir=L({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,o){n&2&&ne("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[be]});let i=e;return i})();var Nd="VALID",Sp="INVALID",Bl="PENDING",Ld="DISABLED",Ea=class{},kp=class extends Ea{constructor(e,r){super(),this.value=e,this.source=r}},jd=class extends Ea{constructor(e,r){super(),this.pristine=e,this.source=r}},Bd=class extends Ea{constructor(e,r){super(),this.touched=e,this.source=r}},zl=class extends Ea{constructor(e,r){super(),this.status=e,this.source=r}},vy=class extends Ea{constructor(e){super(),this.source=e}},by=class extends Ea{constructor(e){super(),this.source=e}};function vT(i){return(Vp(i)?i.validators:i)||null}function r5(i){return Array.isArray(i)?yy(i):i||null}function bT(i,e){return(Vp(e)?e.asyncValidators:i)||null}function a5(i){return Array.isArray(i)?wy(i):i||null}function Vp(i){return i!=null&&!Array.isArray(i)&&typeof i=="object"}function s5(i,e,r){let t=i.controls;if(!(e?Object.keys(t):t).length)throw new J(1e3,"");if(!t[r])throw new J(1001,"")}function l5(i,e,r){i._forEachChild((t,n)=>{if(r[n]===void 0)throw new J(1002,"")})}var Ap=class{constructor(e,r){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=Mr(()=>this.statusReactive()),this.statusReactive=Dr(void 0),this._pristine=Mr(()=>this.pristineReactive()),this.pristineReactive=Dr(!0),this._touched=Mr(()=>this.touchedReactive()),this.touchedReactive=Dr(!1),this._events=new G,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(r)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return Dn(this.statusReactive)}set status(e){Dn(()=>this.statusReactive.set(e))}get valid(){return this.status===Nd}get invalid(){return this.status===Sp}get pending(){return this.status==Bl}get disabled(){return this.status===Ld}get enabled(){return this.status!==Ld}get pristine(){return Dn(this.pristineReactive)}set pristine(e){Dn(()=>this.pristineReactive.set(e))}get dirty(){return!this.pristine}get touched(){return Dn(this.touchedReactive)}set touched(e){Dn(()=>this.touchedReactive.set(e))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(J1(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(J1(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(eT(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(eT(e,this._rawAsyncValidators))}hasValidator(e){return Ip(this._rawValidators,e)}hasAsyncValidator(e){return Ip(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let r=this.touched===!1;this.touched=!0;let t=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(rt(j({},e),{sourceControl:t})),r&&e.emitEvent!==!1&&this._events.next(new Bd(!0,t))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(r=>r.markAllAsTouched(e))}markAsUntouched(e={}){let r=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let t=e.sourceControl??this;this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:t})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,t),r&&e.emitEvent!==!1&&this._events.next(new Bd(!1,t))}markAsDirty(e={}){let r=this.pristine===!0;this.pristine=!1;let t=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(rt(j({},e),{sourceControl:t})),r&&e.emitEvent!==!1&&this._events.next(new jd(!1,t))}markAsPristine(e={}){let r=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let t=e.sourceControl??this;this._forEachChild(n=>{n.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,t),r&&e.emitEvent!==!1&&this._events.next(new jd(!0,t))}markAsPending(e={}){this.status=Bl;let r=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new zl(this.status,r)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(rt(j({},e),{sourceControl:r}))}disable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=Ld,this.errors=null,this._forEachChild(n=>{n.disable(rt(j({},e),{onlySelf:!0}))}),this._updateValue();let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new kp(this.value,t)),this._events.next(new zl(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(rt(j({},e),{skipPristineCheck:r}),this),this._onDisabledChange.forEach(n=>n(!0))}enable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=Nd,this._forEachChild(t=>{t.enable(rt(j({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(rt(j({},e),{skipPristineCheck:r}),this),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(e,r){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},r),this._parent._updateTouched({},r))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let t=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Nd||this.status===Bl)&&this._runAsyncValidator(t,e.emitEvent)}let r=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new kp(this.value,r)),this._events.next(new zl(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(rt(j({},e),{sourceControl:r}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(r=>r._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ld:Nd}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,r){if(this.asyncValidator){this.status=Bl,this._hasOwnPendingAsyncValidator={emitEvent:r!==!1};let t=dT(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(n=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(n,{emitEvent:r,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,r={}){this.errors=e,this._updateControlsErrors(r.emitEvent!==!1,this,r.shouldHaveEmitted)}get(e){let r=e;return r==null||(Array.isArray(r)||(r=r.split(".")),r.length===0)?null:r.reduce((t,n)=>t&&t._find(n),this)}getError(e,r){let t=r?this.get(r):this;return t&&t.errors?t.errors[e]:null}hasError(e,r){return!!this.getError(e,r)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,r,t){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||t)&&this._events.next(new zl(this.status,r)),this._parent&&this._parent._updateControlsErrors(e,r,t)}_initObservables(){this.valueChanges=new T,this.statusChanges=new T}_calculateStatus(){return this._allControlsDisabled()?Ld:this.errors?Sp:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Bl)?Bl:this._anyControlsHaveStatus(Sp)?Sp:Nd}_anyControlsHaveStatus(e){return this._anyControls(r=>r.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,r){let t=!this._anyControlsDirty(),n=this.pristine!==t;this.pristine=t,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,r),n&&this._events.next(new jd(this.pristine,r))}_updateTouched(e={},r){this.touched=this._anyControlsTouched(),this._events.next(new Bd(this.touched,r)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,r)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Vp(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let r=this._parent&&this._parent.dirty;return!e&&!!r&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=r5(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=a5(this._rawAsyncValidators)}},Op=class extends Ap{constructor(e,r,t){super(vT(r),bT(t,r)),this.controls=e,this._initObservables(),this._setUpdateStrategy(r),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,r){return this.controls[e]?this.controls[e]:(this.controls[e]=r,r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange),r)}addControl(e,r,t={}){this.registerControl(e,r),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(e,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}setControl(e,r,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],r&&this.registerControl(e,r),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,r={}){l5(this,!0,e),Object.keys(e).forEach(t=>{s5(this,!0,t),this.controls[t].setValue(e[t],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(e,r={}){e!=null&&(Object.keys(e).forEach(t=>{let n=this.controls[t];n&&n.patchValue(e[t],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(e={},r={}){this._forEachChild((t,n)=>{t.reset(e?e[n]:null,{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r,this),this._updateTouched(r,this),this.updateValueAndValidity(r)}getRawValue(){return this._reduceChildren({},(e,r,t)=>(e[t]=r.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(r,t)=>t._syncPendingControls()?!0:r);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(r=>{let t=this.controls[r];t&&e(t,r)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[r,t]of Object.entries(this.controls))if(this.contains(r)&&e(t))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(r,t,n)=>((t.enabled||this.disabled)&&(r[n]=t.value),r))}_reduceChildren(e,r){let t=e;return this._forEachChild((n,o)=>{t=r(t,n,o)}),t}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var Ul=new R("CallSetDisabledState",{providedIn:"root",factory:()=>jp}),jp="always";function c5(i,e){return[...e.path,i]}function zd(i,e,r=jp){Cy(i,e),e.valueAccessor.writeValue(i.value),(i.disabled||r==="always")&&e.valueAccessor.setDisabledState?.(i.disabled),u5(i,e),m5(i,e),h5(i,e),d5(i,e)}function Rp(i,e,r=!0){let t=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(t),e.valueAccessor.registerOnTouched(t)),Fp(i,e),i&&(e._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function Pp(i,e){i.forEach(r=>{r.registerOnValidatorChange&&r.registerOnValidatorChange(e)})}function d5(i,e){if(e.valueAccessor.setDisabledState){let r=t=>{e.valueAccessor.setDisabledState(t)};i.registerOnDisabledChange(r),e._registerOnDestroy(()=>{i._unregisterOnDisabledChange(r)})}}function Cy(i,e){let r=gT(i);e.validator!==null?i.setValidators(X1(r,e.validator)):typeof r=="function"&&i.setValidators([r]);let t=_T(i);e.asyncValidator!==null?i.setAsyncValidators(X1(t,e.asyncValidator)):typeof t=="function"&&i.setAsyncValidators([t]);let n=()=>i.updateValueAndValidity();Pp(e._rawValidators,n),Pp(e._rawAsyncValidators,n)}function Fp(i,e){let r=!1;if(i!==null){if(e.validator!==null){let n=gT(i);if(Array.isArray(n)&&n.length>0){let o=n.filter(a=>a!==e.validator);o.length!==n.length&&(r=!0,i.setValidators(o))}}if(e.asyncValidator!==null){let n=_T(i);if(Array.isArray(n)&&n.length>0){let o=n.filter(a=>a!==e.asyncValidator);o.length!==n.length&&(r=!0,i.setAsyncValidators(o))}}}let t=()=>{};return Pp(e._rawValidators,t),Pp(e._rawAsyncValidators,t),r}function u5(i,e){e.valueAccessor.registerOnChange(r=>{i._pendingValue=r,i._pendingChange=!0,i._pendingDirty=!0,i.updateOn==="change"&&yT(i,e)})}function h5(i,e){e.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,i.updateOn==="blur"&&i._pendingChange&&yT(i,e),i.updateOn!=="submit"&&i.markAsTouched()})}function yT(i,e){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function m5(i,e){let r=(t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)};i.registerOnChange(r),e._registerOnDestroy(()=>{i._unregisterOnChange(r)})}function wT(i,e){i==null,Cy(i,e)}function p5(i,e){return Fp(i,e)}function CT(i,e){if(!i.hasOwnProperty("model"))return!1;let r=i.model;return r.isFirstChange()?!0:!Object.is(e,r.currentValue)}function f5(i){return Object.getPrototypeOf(i.constructor)===rT}function xT(i,e){i._syncPendingControls(),e.forEach(r=>{let t=r.control;t.updateOn==="submit"&&t._pendingChange&&(r.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function DT(i,e){if(!e)return null;Array.isArray(e);let r,t,n;return e.forEach(o=>{o.constructor===lt?r=o:f5(o)?t=o:n=o}),n||t||r||null}function g5(i,e){let r=i.indexOf(e);r>-1&&i.splice(r,1)}var _5={provide:Sa,useExisting:Xt(()=>Oo)},Vd=Promise.resolve(),Oo=(()=>{let e=class e extends Sa{get submitted(){return Dn(this.submittedReactive)}constructor(t,n,o){super(),this.callSetDisabledState=o,this._submitted=Mr(()=>this.submittedReactive()),this.submittedReactive=Dr(!1),this._directives=new Set,this.ngSubmit=new T,this.form=new Op({},yy(t),wy(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Vd.then(()=>{let n=this._findContainer(t.path);t.control=n.registerControl(t.name,t.control),zd(t.control,t,this.callSetDisabledState),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Vd.then(()=>{let n=this._findContainer(t.path);n&&n.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){Vd.then(()=>{let n=this._findContainer(t.path),o=new Op({});wT(o,t),n.registerControl(t.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Vd.then(()=>{let n=this._findContainer(t.path);n&&n.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,n){Vd.then(()=>{this.form.get(t.path).setValue(n)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submittedReactive.set(!0),xT(this.form,this._directives),this.ngSubmit.emit(t),t?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}};e.\u0275fac=function(n){return new(n||e)(m(co,10),m(Np,10),m(Ul,8))},e.\u0275dir=L({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,o){n&1&&b("submit",function(s){return o.onSubmit(s)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ce([_5]),be]});let i=e;return i})();function tT(i,e){let r=i.indexOf(e);r>-1&&i.splice(r,1)}function iT(i){return typeof i=="object"&&i!==null&&Object.keys(i).length===2&&"value"in i&&"disabled"in i}var Bp=class extends Ap{constructor(e=null,r,t){super(vT(r),bT(t,r)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(r),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Vp(r)&&(r.nonNullable||r.initialValueIsDefault)&&(iT(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,r={}){this.value=this._pendingValue=e,this._onChange.length&&r.emitModelToViewChange!==!1&&this._onChange.forEach(t=>t(this.value,r.emitViewToModelChange!==!1)),this.updateValueAndValidity(r)}patchValue(e,r={}){this.setValue(e,r)}reset(e=this.defaultValue,r={}){this._applyFormState(e),this.markAsPristine(r),this.markAsUntouched(r),this.setValue(this.value,r),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){tT(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){tT(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){iT(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var v5=i=>i instanceof Bp;var b5={provide:kn,useExisting:Xt(()=>Se)},nT=Promise.resolve(),Se=(()=>{let e=class e extends kn{constructor(t,n,o,a,s,l){super(),this._changeDetectorRef=s,this.callSetDisabledState=l,this.control=new Bp,this._registered=!1,this.name="",this.update=new T,this._parent=t,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=DT(this,a)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){let n=t.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),CT(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){zd(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(t){nT.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){let n=t.isDisabled.currentValue,o=n!==0&&Y(n);nT.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?c5(t,this._parent):[t]}};e.\u0275fac=function(n){return new(n||e)(m(Sa,9),m(co,10),m(Np,10),m(vn,10),m(he,8),m(Ul,8))},e.\u0275dir=L({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Ce([b5]),be,Qe]});let i=e;return i})(),zp=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let i=e;return i})(),y5={provide:vn,useExisting:Xt(()=>$n),multi:!0},$n=(()=>{let e=class e extends rT{writeValue(t){let n=t??"";this.setProperty("value",n)}registerOnChange(t){this.onChange=n=>{t(n==""?null:parseFloat(n))}}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=jt(e)))(o||e)}})(),e.\u0275dir=L({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,o){n&1&&b("input",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},features:[Ce([y5]),be]});let i=e;return i})();var ST=new R(""),w5={provide:kn,useExisting:Xt(()=>xy)},xy=(()=>{let e=class e extends kn{set isDisabled(t){}constructor(t,n,o,a,s){super(),this._ngModelWarningConfig=a,this.callSetDisabledState=s,this.update=new T,this._ngModelWarningSent=!1,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=DT(this,o)}ngOnChanges(t){if(this._isControlChanged(t)){let n=t.form.previousValue;n&&Rp(n,this,!1),zd(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}CT(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Rp(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(n){return new(n||e)(m(co,10),m(Np,10),m(vn,10),m(ST,8),m(Ul,8))},e.\u0275dir=L({type:e,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Ce([w5]),be,Qe]});let i=e;return i})(),C5={provide:Sa,useExisting:Xt(()=>gs)},gs=(()=>{let e=class e extends Sa{get submitted(){return Dn(this._submittedReactive)}set submitted(t){this._submittedReactive.set(t)}constructor(t,n,o){super(),this.callSetDisabledState=o,this._submitted=Mr(()=>this._submittedReactive()),this._submittedReactive=Dr(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new T,this._setValidators(t),this._setAsyncValidators(n)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Fp(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){let n=this.form.get(t.path);return zd(n,t,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),n}getControl(t){return this.form.get(t.path)}removeControl(t){Rp(t.control||null,t,!1),g5(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,n){this.form.get(t.path).setValue(n)}onSubmit(t){return this._submittedReactive.set(!0),xT(this.form,this.directives),this.ngSubmit.emit(t),this.form._events.next(new vy(this.control)),t?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this._submittedReactive.set(!1),this.form._events.next(new by(this.form))}_updateDomValue(){this.directives.forEach(t=>{let n=t.control,o=this.form.get(t.path);n!==o&&(Rp(n||null,t),v5(o)&&(zd(o,t,this.callSetDisabledState),t.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){let n=this.form.get(t.path);wT(n,t),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){let n=this.form.get(t.path);n&&p5(n,t)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Cy(this.form,this),this._oldForm&&Fp(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(n){return new(n||e)(m(co,10),m(Np,10),m(Ul,8))},e.\u0275dir=L({type:e,selectors:[["","formGroup",""]],hostBindings:function(n,o){n&1&&b("submit",function(s){return o.onSubmit(s)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ce([C5]),be,Qe]});let i=e;return i})();function x5(i){return typeof i=="number"?i:parseInt(i,10)}var ET=(()=>{let e=class e{constructor(){this._validator=Ep}ngOnChanges(t){if(this.inputName in t){let n=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(n),this._validator=this._enabled?this.createValidator(n):Ep,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return t!=null}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e,features:[Qe]});let i=e;return i})();var D5={provide:co,useExisting:Xt(()=>Fi),multi:!0};var Fi=(()=>{let e=class e extends ET{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Y,this.createValidator=t=>sT}enabled(t){return t}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=jt(e)))(o||e)}})(),e.\u0275dir=L({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(n,o){n&2&&ie("required",o._enabled?"":null)},inputs:{required:"required"},features:[Ce([D5]),be]});let i=e;return i})();var S5={provide:co,useExisting:Xt(()=>_s),multi:!0},_s=(()=>{let e=class e extends ET{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=t=>x5(t),this.createValidator=t=>lT(t)}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=jt(e)))(o||e)}})(),e.\u0275dir=L({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(n,o){n&2&&ie("maxlength",o._enabled?o.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Ce([S5]),be]});let i=e;return i})();var IT=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({});let i=e;return i})();var MT=(()=>{let e=class e{static withConfig(t){return{ngModule:e,providers:[{provide:Ul,useValue:t.callSetDisabledState??jp}]}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({imports:[IT]});let i=e;return i})(),Up=(()=>{let e=class e{static withConfig(t){return{ngModule:e,providers:[{provide:ST,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:Ul,useValue:t.callSetDisabledState??jp}]}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({imports:[IT]});let i=e;return i})();var Dy=class{constructor(e){this._box=e,this._destroyed=new G,this._resizeSubject=new G,this._elementObservables=new Map,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(r=>this._resizeSubject.next(r)))}observe(e){return this._elementObservables.has(e)||this._elementObservables.set(e,new Re(r=>{let t=this._resizeSubject.subscribe(r);return this._resizeObserver?.observe(e,{box:this._box}),()=>{this._resizeObserver?.unobserve(e),t.unsubscribe(),this._elementObservables.delete(e)}}).pipe(Ye(r=>r.some(t=>t.target===e)),Hu({bufferSize:1,refCount:!0}),fe(this._destroyed))),this._elementObservables.get(e)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},Hp=(()=>{let e=class e{constructor(){this._observers=new Map,this._ngZone=k(Z),typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,t]of this._observers)t.destroy();this._observers.clear(),typeof ResizeObserver<"u"}observe(t,n){let o=n?.box||"content-box";return this._observers.has(o)||this._observers.set(o,new Dy(o)),this._observers.get(o).observe(t)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var My=["*"];function E5(i,e){i&1&&ae(0)}var I5=["tabListContainer"],M5=["tabList"],T5=["tabListInner"],k5=["nextPaginator"],A5=["previousPaginator"],O5=i=>({animationDuration:i}),R5=(i,e)=>({value:i,params:e});function P5(i,e){}var F5=["tabBodyWrapper"],N5=["tabHeader"];function L5(i,e){}function V5(i,e){if(i&1&&x(0,L5,0,0,"ng-template",12),i&2){let r=_().$implicit;p("cdkPortalOutlet",r.templateLabel)}}function j5(i,e){if(i&1&&g(0),i&2){let r=_().$implicit;$e(r.textLabel)}}function B5(i,e){if(i&1){let r=A();c(0,"div",7,2),b("click",function(){let n=y(r),o=n.$implicit,a=n.$index,s=_(),l=we(1);return w(s._handleClick(o,l,a))})("cdkFocusChange",function(n){let o=y(r).$index,a=_();return w(a._tabFocusChanged(n,o))}),I(2,"span",8)(3,"div",9),c(4,"span",10)(5,"span",11),x(6,V5,1,1,null,12)(7,j5,1,1),d()()()}if(i&2){let r=e.$implicit,t=e.$index,n=we(1),o=_();Yt(r.labelClass),ne("mdc-tab--active",o.selectedIndex===t),p("id",o._getTabLabelId(t))("disabled",r.disabled)("fitInkBarToContent",o.fitInkBarToContent),ie("tabIndex",o._getTabIndex(t))("aria-posinset",t+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(t))("aria-selected",o.selectedIndex===t)("aria-label",r.ariaLabel||null)("aria-labelledby",!r.ariaLabel&&r.ariaLabelledby?r.ariaLabelledby:null),h(3),p("matRippleTrigger",n)("matRippleDisabled",r.disabled||o.disableRipple),h(3),De(r.templateLabel?6:7)}}function z5(i,e){i&1&&ae(0)}function U5(i,e){if(i&1){let r=A();c(0,"mat-tab-body",13),b("_onCentered",function(){y(r);let n=_();return w(n._removeTabBodyWrapperHeight())})("_onCentering",function(n){y(r);let o=_();return w(o._setTabBodyWrapperHeight(n))}),d()}if(i&2){let r=e.$implicit,t=e.$index,n=_();Yt(r.bodyClass),ne("mat-mdc-tab-body-active",n.selectedIndex===t),p("id",n._getTabContentId(t))("content",r.content)("position",r.position)("origin",r.origin)("animationDuration",n.animationDuration)("preserveContent",n.preserveContent),ie("tabindex",n.contentTabIndex!=null&&n.selectedIndex===t?n.contentTabIndex:null)("aria-labelledby",n._getTabLabelId(t))("aria-hidden",n.selectedIndex!==t)}}var H5=new R("MatTabContent"),$5=(()=>{let e=class e{constructor(t){this.template=t}};e.\u0275fac=function(n){return new(n||e)(m(dt))},e.\u0275dir=L({type:e,selectors:[["","matTabContent",""]],standalone:!0,features:[Ce([{provide:H5,useExisting:e}])]});let i=e;return i})(),W5=new R("MatTabLabel"),AT=new R("MAT_TAB"),ei=(()=>{let e=class e extends GM{constructor(t,n,o){super(t,n),this._closestTab=o}};e.\u0275fac=function(n){return new(n||e)(m(dt),m(Ct),m(AT,8))},e.\u0275dir=L({type:e,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],standalone:!0,features:[Ce([{provide:W5,useExisting:e}]),be]});let i=e;return i})(),OT=new R("MAT_TAB_GROUP"),ti=(()=>{let e=class e{get templateLabel(){return this._templateLabel}set templateLabel(t){this._setTemplateLabelInput(t)}get content(){return this._contentPortal}constructor(t,n){this._viewContainerRef=t,this._closestTabGroup=n,this.disabled=!1,this._explicitContent=void 0,this.textLabel="",this._contentPortal=null,this._stateChanges=new G,this.position=null,this.origin=null,this.isActive=!1}ngOnChanges(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Oi(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(t){t&&t._closestTab===this&&(this._templateLabel=t)}};e.\u0275fac=function(n){return new(n||e)(m(Ct),m(OT,8))},e.\u0275cmp=E({type:e,selectors:[["mat-tab"]],contentQueries:function(n,o,a){if(n&1&&(Be(a,ei,5),Be(a,$5,7,dt)),n&2){let s;Q(s=K())&&(o.templateLabel=s.first),Q(s=K())&&(o._explicitContent=s.first)}},viewQuery:function(n,o){if(n&1&&ce(dt,7),n&2){let a;Q(a=K())&&(o._implicitContent=a.first)}},hostAttrs:["hidden",""],inputs:{disabled:[2,"disabled","disabled",Y],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],standalone:!0,features:[Ce([{provide:AT,useExisting:e}]),ge,Qe,re],ngContentSelectors:My,decls:1,vars:0,template:function(n,o){n&1&&(He(),x(0,E5,1,0,"ng-template"))},encapsulation:2});let i=e;return i})(),Sy="mdc-tab-indicator--active",TT="mdc-tab-indicator--no-transition",Ey=class{constructor(e){this._items=e}hide(){this._items.forEach(e=>e.deactivateInkBar())}alignToElement(e){let r=this._items.find(n=>n.elementRef.nativeElement===e),t=this._currentItem;if(r!==t&&(t?.deactivateInkBar(),r)){let n=t?.elementRef.nativeElement.getBoundingClientRect?.();r.activateInkBar(n),this._currentItem=r}}},G5=(()=>{let e=class e{constructor(){this._elementRef=k(q),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(t){this._fitToContent!==t&&(this._fitToContent=t,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(t){let n=this._elementRef.nativeElement;if(!t||!n.getBoundingClientRect||!this._inkBarContentElement){n.classList.add(Sy);return}let o=n.getBoundingClientRect(),a=t.width/o.width,s=t.left-o.left;n.classList.add(TT),this._inkBarContentElement.style.setProperty("transform",`translateX(${s}px) scaleX(${a})`),n.getBoundingClientRect(),n.classList.remove(TT),n.classList.add(Sy),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(Sy)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){let t=this._elementRef.nativeElement.ownerDocument||document,n=this._inkBarElement=t.createElement("span"),o=this._inkBarContentElement=t.createElement("span");n.className="mdc-tab-indicator",o.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",n.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){this._inkBarElement;let t=this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement;t.appendChild(this._inkBarElement)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",Y]},features:[ge]});let i=e;return i})();var RT=(()=>{let e=class e extends G5{constructor(t){super(),this.elementRef=t,this.disabled=!1}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}};e.\u0275fac=function(n){return new(n||e)(m(q))},e.\u0275dir=L({type:e,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(n,o){n&2&&(ie("aria-disabled",!!o.disabled),ne("mat-mdc-tab-disabled",o.disabled))},inputs:{disabled:[2,"disabled","disabled",Y]},standalone:!0,features:[ge,be]});let i=e;return i})(),kT=Ui({passive:!0}),q5=650,Y5=100,Q5=(()=>{let e=class e{get selectedIndex(){return this._selectedIndex}set selectedIndex(t){let n=isNaN(t)?0:t;this._selectedIndex!=n&&(this._selectedIndexChanged=!0,this._selectedIndex=n,this._keyManager&&this._keyManager.updateActiveItem(n))}constructor(t,n,o,a,s,l,u){this._elementRef=t,this._changeDetectorRef=n,this._viewportRuler=o,this._dir=a,this._ngZone=s,this._platform=l,this._animationMode=u,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new G,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new G,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new T,this.indexFocused=new T,this._sharedResizeObserver=k(Hp),this._injector=k(Pe),s.runOutsideAngular(()=>{dn(t.nativeElement,"mouseleave").pipe(fe(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){dn(this._previousPaginator.nativeElement,"touchstart",kT).pipe(fe(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),dn(this._nextPaginator.nativeElement,"touchstart",kT).pipe(fe(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){let t=this._dir?this._dir.change:oe("ltr"),n=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(mr(32),fe(this._destroyed)),o=this._viewportRuler.change(150).pipe(fe(this._destroyed)),a=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new _a(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),ai(a,{injector:this._injector}),wt(t,o,n,this._items.changes,this._itemsResized()).pipe(fe(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),a()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(s=>{this.indexFocused.emit(s),this._setTabFocus(s)})}_itemsResized(){return typeof ResizeObserver!="function"?Ai:this._items.changes.pipe(Rt(this._items),Tt(t=>new Re(n=>this._ngZone.runOutsideAngular(()=>{let o=new ResizeObserver(a=>n.next(a));return t.forEach(a=>o.observe(a.elementRef.nativeElement)),()=>{o.disconnect()}}))),Ba(1),Ye(t=>t.some(n=>n.contentRect.width>0&&n.contentRect.height>0)))}ngAfterContentChecked(){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())}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(t){if(!Pt(t))switch(t.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){let n=this._items.get(this.focusIndex);n&&!n.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t))}break;default:this._keyManager.onKeydown(t)}}_onContentChanges(){let t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(t){!this._isValidIndex(t)||this.focusIndex===t||!this._keyManager||this._keyManager.setActiveItem(t)}_isValidIndex(t){return this._items?!!this._items.toArray()[t]:!0}_setTabFocus(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();let n=this._tabListContainer.nativeElement;this._getLayoutDirection()=="ltr"?n.scrollLeft=0:n.scrollLeft=n.scrollWidth-n.offsetWidth}}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;let t=this.scrollDistance,n=this._getLayoutDirection()==="ltr"?-t:t;this._tabList.nativeElement.style.transform=`translateX(${Math.round(n)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(t){this._scrollTo(t)}_scrollHeader(t){let n=this._tabListContainer.nativeElement.offsetWidth,o=(t=="before"?-1:1)*n/3;return this._scrollTo(this._scrollDistance+o)}_handlePaginatorClick(t){this._stopInterval(),this._scrollHeader(t)}_scrollToLabel(t){if(this.disablePagination)return;let n=this._items?this._items.toArray()[t]:null;if(!n)return;let o=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:a,offsetWidth:s}=n.elementRef.nativeElement,l,u;this._getLayoutDirection()=="ltr"?(l=a,u=l+s):(u=this._tabListInner.nativeElement.offsetWidth-a,l=u-s);let f=this.scrollDistance,v=this.scrollDistance+o;lv&&(this.scrollDistance+=Math.min(u-v,l-f))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let t=this._tabListInner.nativeElement.scrollWidth,n=this._elementRef.nativeElement.offsetWidth,o=t-n>=5;o||(this.scrollDistance=0),o!==this._showPaginationControls&&(this._showPaginationControls=o,this._changeDetectorRef.markForCheck())}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=this.scrollDistance==0,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){let t=this._tabListInner.nativeElement.scrollWidth,n=this._tabListContainer.nativeElement.offsetWidth;return t-n||0}_alignInkBarToSelectedTab(){let t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,n=t?t.elementRef.nativeElement:null;n?this._inkBar.alignToElement(n):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(t,n){n&&n.button!=null&&n.button!==0||(this._stopInterval(),yo(q5,Y5).pipe(fe(wt(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:o,distance:a}=this._scrollHeader(t);(a===0||a>=o)&&this._stopInterval()}))}_scrollTo(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let n=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(n,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:n,distance:this._scrollDistance}}};e.\u0275fac=function(n){return new(n||e)(m(q),m(he),m(fn),m(Nt,8),m(Z),m(Ve),m(kt,8))},e.\u0275dir=L({type:e,inputs:{disablePagination:[2,"disablePagination","disablePagination",Y],selectedIndex:[2,"selectedIndex","selectedIndex",ni]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[ge]});let i=e;return i})(),K5=(()=>{let e=class e extends Q5{constructor(t,n,o,a,s,l,u){super(t,n,o,a,s,l,u),this.disableRipple=!1}ngAfterContentInit(){this._inkBar=new Ey(this._items),super.ngAfterContentInit()}_itemSelected(t){t.preventDefault()}};e.\u0275fac=function(n){return new(n||e)(m(q),m(he),m(fn),m(Nt,8),m(Z),m(Ve),m(kt,8))},e.\u0275cmp=E({type:e,selectors:[["mat-tab-header"]],contentQueries:function(n,o,a){if(n&1&&Be(a,RT,4),n&2){let s;Q(s=K())&&(o._items=s)}},viewQuery:function(n,o){if(n&1&&(ce(I5,7),ce(M5,7),ce(T5,7),ce(k5,5),ce(A5,5)),n&2){let a;Q(a=K())&&(o._tabListContainer=a.first),Q(a=K())&&(o._tabList=a.first),Q(a=K())&&(o._tabListInner=a.first),Q(a=K())&&(o._nextPaginator=a.first),Q(a=K())&&(o._previousPaginator=a.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(n,o){n&2&&ne("mat-mdc-tab-header-pagination-controls-enabled",o._showPaginationControls)("mat-mdc-tab-header-rtl",o._getLayoutDirection()=="rtl")},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],disableRipple:[2,"disableRipple","disableRipple",Y]},standalone:!0,features:[ge,be,re],ngContentSelectors:My,decls:13,vars:10,consts:[["previousPaginator",""],["tabListContainer",""],["tabList",""],["tabListInner",""],["nextPaginator",""],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"click","mousedown","touchend","matRippleDisabled"],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],[1,"mat-mdc-tab-labels"],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"mousedown","click","touchend","matRippleDisabled"]],template:function(n,o){if(n&1){let a=A();He(),c(0,"div",5,0),b("click",function(){return y(a),w(o._handlePaginatorClick("before"))})("mousedown",function(l){return y(a),w(o._handlePaginatorPress("before",l))})("touchend",function(){return y(a),w(o._stopInterval())}),I(2,"div",6),d(),c(3,"div",7,1),b("keydown",function(l){return y(a),w(o._handleKeydown(l))}),c(5,"div",8,2),b("cdkObserveContent",function(){return y(a),w(o._onContentChanges())}),c(7,"div",9,3),ae(9),d()()(),c(10,"div",10,4),b("mousedown",function(l){return y(a),w(o._handlePaginatorPress("after",l))})("click",function(){return y(a),w(o._handlePaginatorClick("after"))})("touchend",function(){return y(a),w(o._stopInterval())}),I(12,"div",6),d()}n&2&&(ne("mat-mdc-tab-header-pagination-disabled",o._disableScrollBefore),p("matRippleDisabled",o._disableScrollBefore||o.disableRipple),h(3),ne("_mat-animation-noopable",o._animationMode==="NoopAnimations"),h(2),ie("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby||null),h(5),ne("mat-mdc-tab-header-pagination-disabled",o._disableScrollAfter),p("matRippleDisabled",o._disableScrollAfter||o.disableRipple))},dependencies:[Tn,n1],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-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:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;outline:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-app-on-surface))}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-header-pagination-icon-color, var(--mat-app-on-surface))}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-header-divider-height);border-bottom-color:var(--mat-tab-header-divider-color, var(--mat-app-surface-variant))}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-header-divider-height);border-top-color:var(--mat-tab-header-divider-color, var(--mat-app-surface-variant))}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-labels,.mat-mdc-tab-labels.cdk-drop-list{min-height:var(--mdc-secondary-navigation-tab-container-height)}.mat-mdc-tab::before{margin:5px}.cdk-high-contrast-active .mat-mdc-tab[aria-disabled=true]{color:GrayText}"],encapsulation:2});let i=e;return i})(),Z5=new R("MAT_TABS_CONFIG"),X5={translateTab:ui("translateTab",[Lt("center, void, left-origin-center, right-origin-center",Me({transform:"none",visibility:"visible"})),Lt("left",Me({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Lt("right",Me({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),St("* => left, * => right, left => center, right => center",Mt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),St("void => left-origin-center",[Me({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),Mt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),St("void => right-origin-center",[Me({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),Mt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},J5=(()=>{let e=class e extends rn{constructor(t,n,o,a){super(t,n,a),this._host=o,this._centeringSub=ve.EMPTY,this._leavingSub=ve.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Rt(this._host._isCenterPosition(this._host._position))).subscribe(t=>{this._host._content&&t&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}};e.\u0275fac=function(n){return new(n||e)(m(wn),m(Ct),m(Xt(()=>PT)),m(se))},e.\u0275dir=L({type:e,selectors:[["","matTabBodyHost",""]],standalone:!0,features:[be]});let i=e;return i})(),PT=(()=>{let e=class e{set position(t){this._positionIndex=t,this._computePositionAnimationState()}constructor(t,n,o){this._elementRef=t,this._dir=n,this._dirChangeSubscription=ve.EMPTY,this._translateTabComplete=new G,this._onCentering=new T,this._beforeCentering=new T,this._afterLeavingCenter=new T,this._onCentered=new T(!0),this.animationDuration="500ms",this.preserveContent=!1,n&&(this._dirChangeSubscription=n.change.subscribe(a=>{this._computePositionAnimationState(a),o.markForCheck()})),this._translateTabComplete.subscribe(a=>{this._isCenterPosition(a.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(a.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}ngOnInit(){this._position=="center"&&this.origin!=null&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(t){let n=this._isCenterPosition(t.toState);this._beforeCentering.emit(n),n&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_isCenterPosition(t){return t=="center"||t=="left-origin-center"||t=="right-origin-center"}_computePositionAnimationState(t=this._getLayoutDirection()){this._positionIndex<0?this._position=t=="ltr"?"left":"right":this._positionIndex>0?this._position=t=="ltr"?"right":"left":this._position="center"}_computePositionFromOrigin(t){let n=this._getLayoutDirection();return n=="ltr"&&t<=0||n=="rtl"&&t>0?"left-origin-center":"right-origin-center"}};e.\u0275fac=function(n){return new(n||e)(m(q),m(Nt,8),m(he))},e.\u0275cmp=E({type:e,selectors:[["mat-tab-body"]],viewQuery:function(n,o){if(n&1&&ce(rn,5),n&2){let a;Q(a=K())&&(o._portalHost=a.first)}},hostAttrs:[1,"mat-mdc-tab-body"],inputs:{_content:[0,"content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"},standalone:!0,features:[re],decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(n,o){if(n&1){let a=A();c(0,"div",1,0),b("@translateTab.start",function(l){return y(a),w(o._onTranslateTabStarted(l))})("@translateTab.done",function(l){return y(a),w(o._translateTabComplete.next(l))}),x(2,P5,0,0,"ng-template",2),d()}n&2&&p("@translateTab",cl(3,R5,o._position,Bi(1,O5,o.animationDuration)))},dependencies:[J5,gd],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[X5.translateTab]}});let i=e;return i})(),e8=0,t8=!0,oi=(()=>{let e=class e{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(t){this._fitInkBarToContent=t,this._changeDetectorRef.markForCheck()}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){this._indexToSelect=isNaN(t)?null:t}get animationDuration(){return this._animationDuration}set animationDuration(t){let n=t+"";this._animationDuration=/^\d+$/.test(n)?t+"ms":n}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(t){this._contentTabIndex=isNaN(t)?null:t}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){if(!t8)throw new Error("mat-tab-group background color must be set through the Sass theming API");let n=this._elementRef.nativeElement.classList;n.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),t&&n.add("mat-tabs-with-background",`mat-background-${t}`),this._backgroundColor=t}constructor(t,n,o,a){this._elementRef=t,this._changeDetectorRef=n,this._animationMode=a,this._tabs=new eo,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=ve.EMPTY,this._tabLabelSubscription=ve.EMPTY,this._fitInkBarToContent=!1,this.stretchTabs=!0,this.dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this.disablePagination=!1,this.disableRipple=!1,this.preserveContent=!1,this.selectedIndexChange=new T,this.focusChange=new T,this.animationDone=new T,this.selectedTabChange=new T(!0),this._isServer=!k(Ve).isBrowser,this._groupId=e8++,this.animationDuration=o&&o.animationDuration?o.animationDuration:"500ms",this.disablePagination=o&&o.disablePagination!=null?o.disablePagination:!1,this.dynamicHeight=o&&o.dynamicHeight!=null?o.dynamicHeight:!1,o?.contentTabIndex!=null&&(this.contentTabIndex=o.contentTabIndex),this.preserveContent=!!o?.preserveContent,this.fitInkBarToContent=o&&o.fitInkBarToContent!=null?o.fitInkBarToContent:!1,this.stretchTabs=o&&o.stretchTabs!=null?o.stretchTabs:!0}ngAfterContentChecked(){let t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){let n=this._selectedIndex==null;if(!n){this.selectedTabChange.emit(this._createChangeEvent(t));let o=this._tabBodyWrapper.nativeElement;o.style.minHeight=o.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((o,a)=>o.isActive=a===t),n||(this.selectedIndexChange.emit(t),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((n,o)=>{n.position=o-t,this._selectedIndex!=null&&n.position==0&&!n.origin&&(n.origin=t-this._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{let t=this._clampTabIndex(this._indexToSelect);if(t===this._selectedIndex){let n=this._tabs.toArray(),o;for(let a=0;a{n[t].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(t))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(Rt(this._allTabs)).subscribe(t=>{this._tabs.reset(t.filter(n=>n._closestTabGroup===this||!n._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(t){let n=this._tabHeader;n&&(n.focusIndex=t)}_focusChanged(t){this._lastFocusedTabIndex=t,this.focusChange.emit(this._createChangeEvent(t))}_createChangeEvent(t){let n=new Iy;return n.index=t,this._tabs&&this._tabs.length&&(n.tab=this._tabs.toArray()[t]),n}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=wt(...this._tabs.map(t=>t._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(t){return Math.min(this._tabs.length-1,Math.max(t||0,0))}_getTabLabelId(t){return`mat-tab-label-${this._groupId}-${t}`}_getTabContentId(t){return`mat-tab-content-${this._groupId}-${t}`}_setTabBodyWrapperHeight(t){if(!this.dynamicHeight||!this._tabBodyWrapperHeight)return;let n=this._tabBodyWrapper.nativeElement;n.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(n.style.height=t+"px")}_removeTabBodyWrapperHeight(){let t=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=t.clientHeight,t.style.height="",this.animationDone.emit()}_handleClick(t,n,o){n.focusIndex=o,t.disabled||(this.selectedIndex=o)}_getTabIndex(t){let n=this._lastFocusedTabIndex??this.selectedIndex;return t===n?0:-1}_tabFocusChanged(t,n){t&&t!=="mouse"&&t!=="touch"&&(this._tabHeader.focusIndex=n)}};e.\u0275fac=function(n){return new(n||e)(m(q),m(he),m(Z5,8),m(kt,8))},e.\u0275cmp=E({type:e,selectors:[["mat-tab-group"]],contentQueries:function(n,o,a){if(n&1&&Be(a,ti,5),n&2){let s;Q(s=K())&&(o._allTabs=s)}},viewQuery:function(n,o){if(n&1&&(ce(F5,5),ce(N5,5)),n&2){let a;Q(a=K())&&(o._tabBodyWrapper=a.first),Q(a=K())&&(o._tabHeader=a.first)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:10,hostBindings:function(n,o){n&2&&(Yt("mat-"+(o.color||"primary")),ji("--mat-tab-animation-duration",o.animationDuration),ne("mat-mdc-tab-group-dynamic-height",o.dynamicHeight)("mat-mdc-tab-group-inverted-header",o.headerPosition==="below")("mat-mdc-tab-group-stretch-tabs",o.stretchTabs))},inputs:{color:"color",fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",Y],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",Y],dynamicHeight:[2,"dynamicHeight","dynamicHeight",Y],selectedIndex:[2,"selectedIndex","selectedIndex",ni],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",ni],disablePagination:[2,"disablePagination","disablePagination",Y],disableRipple:[2,"disableRipple","disableRipple",Y],preserveContent:[2,"preserveContent","preserveContent",Y],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],standalone:!0,features:[Ce([{provide:OT,useExisting:e}]),ge,re],ngContentSelectors:My,decls:9,vars:8,consts:[["tabHeader",""],["tabBodyWrapper",""],["tabNode",""],[3,"indexFocused","selectFocusedIndex","selectedIndex","disableRipple","disablePagination","aria-label","aria-labelledby"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"id","mdc-tab--active","class","disabled","fitInkBarToContent"],[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","mat-mdc-tab-body-active","class","content","position","origin","animationDuration","preserveContent"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"click","cdkFocusChange","id","disabled","fitInkBarToContent"],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"_onCentered","_onCentering","id","content","position","origin","animationDuration","preserveContent"]],template:function(n,o){if(n&1){let a=A();He(),c(0,"mat-tab-header",3,0),b("indexFocused",function(l){return y(a),w(o._focusChanged(l))})("selectFocusedIndex",function(l){return y(a),w(o.selectedIndex=l)}),Sr(2,B5,8,17,"div",4,Rc),d(),x(4,z5,1,0),c(5,"div",5,1),Sr(7,U5,1,13,"mat-tab-body",6,Rc),d()}n&2&&(p("selectedIndex",o.selectedIndex||0)("disableRipple",o.disableRipple)("disablePagination",o.disablePagination)("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledby),h(2),Er(o._tabs),h(2),De(o._isServer?4:-1),h(),ne("_mat-animation-noopable",o._animationMode==="NoopAnimations"),h(2),Er(o._tabs))},dependencies:[K5,RT,up,Tn,rn,PT],styles:['.mdc-tab{min-width:90px;padding:0 24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;z-index:1}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab--active .mdc-tab__text-label{transition-delay:100ms}._mat-animation-noopable .mdc-tab__text-label{transition:none}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transition:var(--mat-tab-animation-duration, 250ms) transform cubic-bezier(0.4, 0, 0.2, 1);transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}._mat-animation-noopable .mdc-tab-indicator__content,.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mdc-secondary-navigation-tab-container-height);font-family:var(--mat-tab-header-label-text-font, var(--mat-app-title-small-font));font-size:var(--mat-tab-header-label-text-size, var(--mat-app-title-small-size));letter-spacing:var(--mat-tab-header-label-text-tracking, var(--mat-app-title-small-tracking));line-height:var(--mat-tab-header-label-text-line-height, var(--mat-app-title-small-line-height));font-weight:var(--mat-tab-header-label-text-weight, var(--mat-app-title-small-weight))}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color, var(--mat-app-primary));border-top-width:var(--mdc-tab-indicator-active-indicator-height);border-radius:var(--mdc-tab-indicator-active-indicator-shape)}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-header-active-ripple-color, var(--mat-app-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color, var(--mat-app-primary))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color, var(--mat-app-primary))}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-header-disabled-ripple-color)}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-app-on-surface))}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color, var(--mat-app-on-surface));display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-app-on-surface))}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-header-with-background-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-focus-indicator::before{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}'],encapsulation:2});let i=e;return i})(),Iy=class{};var FT=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({imports:[pe,pe]});let i=e;return i})();function i8(i,e){if(i&1){let r=A();c(0,"uds-field-text",2),b("changed",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()}if(i&2){let r=_();p("field",r.field)}}function n8(i,e){if(i&1){let r=A();c(0,"uds-field-autocomplete",2),b("changed",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()}if(i&2){let r=_();p("field",r.field)}}function o8(i,e){if(i&1){let r=A();c(0,"uds-field-textbox",2),b("changed",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()}if(i&2){let r=_();p("field",r.field)}}function r8(i,e){if(i&1){let r=A();c(0,"uds-field-numeric",2),b("changed",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()}if(i&2){let r=_();p("field",r.field)}}function a8(i,e){if(i&1){let r=A();c(0,"uds-field-password",2),b("changed",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()}if(i&2){let r=_();p("field",r.field)}}function s8(i,e){if(i&1){let r=A();c(0,"uds-field-hidden",2),b("changed",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()}if(i&2){let r=_();p("field",r.field)}}function l8(i,e){if(i&1){let r=A();c(0,"uds-field-choice",2),b("changed",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()}if(i&2){let r=_();p("field",r.field)}}function c8(i,e){if(i&1){let r=A();c(0,"uds-field-multichoice",2),b("changed",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()}if(i&2){let r=_();p("field",r.field)}}function d8(i,e){if(i&1){let r=A();c(0,"uds-field-editlist",2),b("changed",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()}if(i&2){let r=_();p("field",r.field)}}function u8(i,e){if(i&1){let r=A();c(0,"uds-field-checkbox",2),b("changed",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()}if(i&2){let r=_();p("field",r.field)}}function h8(i,e){if(i&1){let r=A();c(0,"uds-field-imgchoice",2),b("changed",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()}if(i&2){let r=_();p("field",r.field)}}function m8(i,e){if(i&1){let r=A();c(0,"uds-field-date",2),b("changed",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()}if(i&2){let r=_();p("field",r.field)}}function p8(i,e){if(i&1){let r=A();c(0,"uds-field-tags",2),b("changed",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()}if(i&2){let r=_();p("field",r.field)}}var $p=(()=>{let e=class e{constructor(){this.field={},this.changed=new T,this.udsGuiFieldType=Ki}ngOnInit(){}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=E({type:e,selectors:[["uds-field"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:14,vars:15,consts:[["matTooltipShowDelay","1000",1,"field",3,"ngSwitch","matTooltip"],[3,"field","changed",4,"ngSwitchCase"],[3,"changed","field"]],template:function(n,o){n&1&&(c(0,"div",0),x(1,i8,1,1,"uds-field-text",1)(2,n8,1,1,"uds-field-autocomplete",1)(3,o8,1,1,"uds-field-textbox",1)(4,r8,1,1,"uds-field-numeric",1)(5,a8,1,1,"uds-field-password",1)(6,s8,1,1,"uds-field-hidden",1)(7,l8,1,1,"uds-field-choice",1)(8,c8,1,1,"uds-field-multichoice",1)(9,d8,1,1,"uds-field-editlist",1)(10,u8,1,1,"uds-field-checkbox",1)(11,h8,1,1,"uds-field-imgchoice",1)(12,m8,1,1,"uds-field-date",1)(13,p8,1,1,"uds-field-tags",1),d()),n&2&&(p("ngSwitch",o.field.gui.type)("matTooltip",o.field.gui.tooltip),h(),p("ngSwitchCase",o.udsGuiFieldType.TEXT),h(),p("ngSwitchCase",o.udsGuiFieldType.TEXT_AUTOCOMPLETE),h(),p("ngSwitchCase",o.udsGuiFieldType.TEXTBOX),h(),p("ngSwitchCase",o.udsGuiFieldType.NUMERIC),h(),p("ngSwitchCase",o.udsGuiFieldType.PASSWORD),h(),p("ngSwitchCase",o.udsGuiFieldType.HIDDEN),h(),p("ngSwitchCase",o.udsGuiFieldType.CHOICE),h(),p("ngSwitchCase",o.udsGuiFieldType.MULTI_CHOICE),h(),p("ngSwitchCase",o.udsGuiFieldType.EDITLIST),h(),p("ngSwitchCase",o.udsGuiFieldType.CHECKBOX),h(),p("ngSwitchCase",o.udsGuiFieldType.IMAGECHOICE),h(),p("ngSwitchCase",o.udsGuiFieldType.DATE),h(),p("ngSwitchCase",o.udsGuiFieldType.TAGLIST))},styles:["uds-field[_ngcontent-%COMP%]{flex:1 50%} .mat-mdc-form-field{width:calc(100% - 1px)} .mat-form-field-flex{padding-top:0!important} .mat-mdc-tooltip{font-size:.9rem!important;margin:0!important;max-width:26em!important}"]});let i=e;return i})();function g8(i,e){if(i&1&&g(0),i&2){let r=_().$implicit;F(" ",r," ")}}function _8(i,e){if(i&1){let r=A();c(0,"uds-field",9),b("changed",function(n){y(r);let o=_(3);return w(o.changed.emit(n))}),d()}if(i&2){let r=e.$implicit;p("field",r)}}function v8(i,e){if(i&1&&(c(0,"mat-tab",4),x(1,g8,1,1,"ng-template",5),c(2,"div",6)(3,"div",7),x(4,_8,1,1,"uds-field",8),d()()()),i&2){let r=e.$implicit,t=_(2);h(4),p("ngForOf",t.fieldsByTab[r])}}function b8(i,e){if(i&1&&(c(0,"mat-tab-group",2),x(1,v8,5,1,"mat-tab",3),d()),i&2){let r=_();p("disableRipple",!1)("@.disabled",!0),h(),p("ngForOf",r.tabs)}}function y8(i,e){if(i&1){let r=A();c(0,"div")(1,"uds-field",9),b("changed",function(n){y(r);let o=_(2);return w(o.changed.emit(n))}),d()()}if(i&2){let r=e.$implicit;h(),p("field",r)}}function w8(i,e){if(i&1&&(c(0,"div",6),x(1,y8,2,1,"div",10),d()),i&2){let r=_();h(),p("ngForOf",r.fields)}}var C8=django.gettext("Main"),NT=(()=>{let e=class e{constructor(){this.fields=[],this.changed=new T,this.tabs=new Array,this.fieldsByTab={}}ngOnInit(){this.fieldsByTab={};for(let t of this.fields){let n=t.gui.tab===void 0?C8:t.gui.tab;this.tabs.includes(n)||(this.tabs.push(n),this.fieldsByTab[n]=new Array),this.fieldsByTab[n].push(t)}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=E({type:e,selectors:[["uds-form"]],inputs:{fields:"fields"},outputs:{changed:"changed"},decls:3,vars:2,consts:[["onlyone",""],["backgroundColor","primary",3,"disableRipple",4,"ngIf","ngIfElse"],["backgroundColor","primary",3,"disableRipple"],["class","noOverflow",4,"ngFor","ngForOf"],[1,"noOverflow"],["mat-tab-label",""],[1,"form-content"],[1,"content"],[3,"field","changed",4,"ngFor","ngForOf"],[3,"changed","field"],[4,"ngFor","ngForOf"]],template:function(n,o){if(n&1&&x(0,b8,2,3,"mat-tab-group",1)(1,w8,2,1,"ng-template",null,0,fi),n&2){let a=we(2);p("ngIf",o.tabs.length>1)("ngIfElse",a)}},dependencies:[We,me,ei,ti,oi,$p],styles:[".content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.form-content[_ngcontent-%COMP%]{padding-top:1rem} .mat-mdc-tab-body-content{overflow:hidden!important} .mat-mdc-form-field-infix{min-height:3rem} .mat-mdc-tab-header{position:sticky;top:0;z-index:1000}"]});let i=e;return i})();function D8(i,e){if(i&1){let r=A();c(0,"button",10),b("click",function(){y(r);let n=_();return w(n.customButtonClicked())}),g(1),d()}if(i&2){let r=_();h(),$e(r.data.customButton)}}var LT=(()=>{let e=class e{constructor(t,n){this.dialogRef=t,this.data=n,this.onEvent=new T(!0),this.saving=!1}ngOnInit(){this.onEvent.emit({type:"init",data:null,dialog:this.dialogRef})}changed(t){this.onEvent.emit({type:"changed",data:t,dialog:this.dialogRef})}getFields(){let t={},n=[];return this.data.guiFields.forEach(o=>{let a=o.value;if(o.gui.required&&a!==0&&a!==!1&&(!a||a instanceof Array&&a.length===0)&&n.push(o.gui.label),typeof a=="number"){let s=parseInt((o.gui.minValue||987654321).toString(),10),l=parseInt((o.gui.maxValue||987654321).toString(),10);s!==987654321&&a= "+o.gui.minValue),l!==987654321&&a>l&&n.push(o.gui.label+" <= "+o.gui.maxValue),a=a.toString()}t[o.name]=a}),{data:t,errors:n}}save(){let t=this.getFields();if(t.errors.length>0){this.data.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+t.errors.join(", "));return}this.onEvent.emit({data:t.data,type:"save",dialog:this.dialogRef})}cancel(){this.onEvent.emit({data:null,type:"cancel",dialog:this.dialogRef})}customButtonClicked(){let t=this.getFields();this.onEvent.emit({data:t.data,type:this.data.customButton||"",errors:t.errors,dialog:this.dialogRef})}};e.\u0275fac=function(n){return new(n||e)(m(Ne),m(Ke))},e.\u0275cmp=E({type:e,selectors:[["uds-modal-form"]],decls:17,vars:7,consts:[["vc",""],["mat-dialog-title","",3,"innerHtml"],["autocomplete","off"],[3,"changed","fields"],[1,"buttons"],[1,"group1"],["ngClass","custom","mat-raised-button","",3,"click",4,"ngIf"],[1,"group2"],["mat-raised-button","",3,"click","disabled"],["mat-raised-button","","color","primary",3,"click","disabled"],["ngClass","custom","mat-raised-button","",3,"click"]],template:function(n,o){if(n&1){let a=A();I(0,"h4",1),_t(1,"safeHtml"),c(2,"mat-dialog-content",null,0)(4,"form",2)(5,"uds-form",3),b("changed",function(l){return y(a),w(o.changed(l))}),d()()(),c(6,"mat-dialog-actions")(7,"div",4)(8,"div",5),x(9,D8,2,1,"button",6),d(),c(10,"div",7)(11,"button",8),b("click",function(){return y(a),w(o.dialogRef.close())})("click",function(){return y(a),w(o.cancel())}),c(12,"uds-translate"),g(13,"Discard & close"),d()(),c(14,"button",9),b("click",function(){return y(a),w(o.save())}),c(15,"uds-translate"),g(16,"Save"),d()()()()()}n&2&&(p("innerHtml",Dt(1,5,o.data.title),qt),h(5),p("fields",o.data.guiFields),h(4),p("ngIf",o.data.customButton!==void 0),h(2),p("disabled",o.saving),h(3),p("disabled",o.saving))},dependencies:[Sn,me,zp,Lp,Oo,ke,Je,tt,et,le,NT,Dp],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}.modal-form[_ngcontent-%COMP%]{padding-top:1.5rem}"]});let i=e;return i})();var Wp=class{constructor(e){this.gui=e}modalForm(e,r,t=null,n){r.sort((l,u)=>l.gui.order>u.gui.order?1:-1);let o=t!=null;t=o?t:{},r.forEach(l=>{(o===!1||l.gui.readonly===void 0)&&(l.gui.readonly=!1),l.gui.type===Ki.TEXT&&l.gui.lines&&(l.gui.type=Ki.TEXTBOX);let u=t[l.name];if(u!==void 0)if(u instanceof Array){let f=new Array;u.forEach(v=>f.push(v)),l.value=f}else l.value=u});let a=window.innerWidth<800?"80%":"50%";return this.gui.dialog.open(LT,{position:{top:"64px"},width:a,data:{title:e,guiFields:r,customButton:n,gui:this.gui},disableClose:!0}).componentInstance.onEvent}typedForm(e,r,t,n,o,a,s){return W(this,null,function*(){let l=s||{},u=l.callback||(()=>{}),f=n||[],v=t?django.gettext("Test"):void 0,C={},D={},S=O=>{if(D.hasOwnProperty(O.name)){let de=D[O.name];O.value!==""&&O.value!==void 0&&this.executeCallback(e,O,C)}},P=l.snack||this.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss")),z=yield e.table.rest.gui(a);if(P.dismiss(),f!==void 0)for(let O of f)z.push(O);for(let O of z){if(O.gui.type===Ki.INFO){O.name==="title"&&(r+=" "+(O.value||O.gui.default||""));continue}C[O.name]=O,O.gui.fills!==void 0&&(D[O.name]=O.gui.fills)}this.modalForm(r,z,o,v).subscribe(O=>W(this,null,function*(){switch(O.data&&(O.data.data_type=a),O.type){case v:if(O.errors&&O.errors.length>0){this.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+O.errors.join(", "));return}this.gui.snackbar.open(django.gettext("Testing..."),django.gettext("dismiss")),e.table.rest.test(a,O.data).then(de=>{de!=="ok"?this.gui.snackbar.open(django.gettext("Test failed:")+" "+de,django.gettext("dismiss")):this.gui.snackbar.open(django.gettext("Test passed successfully"),django.gettext("dismiss"),{duration:2e3})});break;case"changed":case"init":if(O.data===null)for(let de of z)S(de);else S(O.data.field);u({on:O.data,all:C});break;case"save":if(l.save===void 0){O.dialog.componentInstance.saving=!0;try{o?yield e.table.rest.save(O.data,o.id):yield e.table.rest.create(O.data),this.gui.snackbar.open(django.gettext("Successfully saved"),django.gettext("dismiss"),{duration:2e3}),O.dialog.close(),e.table.overview()}finally{O.dialog.componentInstance.saving=!1}}else O.dialog.close(),l.save.resolve(O.data);break;case"cancel":O.dialog.close();break}}))})}typedEditForm(e,r,t=!1,n,o=()=>{}){return W(this,null,function*(){let a=e.table.selection.selected[0],s=a.type,l=new T,u=this.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss")),f=yield e.table.rest.get(a.id);return this.typedForm(e,r,t,n,f,s,{snack:u,callback:o})})}typedNewForm(e,r,t=!1,n,o=()=>{}){return W(this,null,function*(){let a=e.param?e.param.type:void 0;return this.typedForm(e,r,t,n,null,a,{callback:o})})}deleteForm(e,r,t){return W(this,null,function*(){let n=new Array,o=new Array;for(let l of e.table.selection.selected){let u=l.name||l.friendly_name||l[t||"name"]||l.id;u&&u.changingThisBreaksApplicationSecurity&&(u=u.changingThisBreaksApplicationSecurity),n.push(u),o.push(l.id)}let a=django.gettext("Are you sure do you want to delete the following items?")+"
"+n.join(", ")+"";if(yield this.gui.questionDialog(r,a,!0)){for(let u of o)try{yield e.table.rest.delete(u)}catch(f){console.warn("Error deleting item",u,f)}let l=o.length;this.gui.snackbar.open(django.gettext("Deletion finished"),django.gettext("dismiss"),{duration:2e3}),e.table.overview()}})}executeCallback(o,a,s){return W(this,arguments,function*(e,r,t,n={}){let l=new Array;if(!r.gui.fills)return;for(let v of r.gui.fills.parameters)l.push(v+"="+encodeURIComponent(t[v].value));let u=yield e.table.rest.callback(r.gui.fills.callback_name,l.join("&")),f=new Array;for(let v of u){let C=t[v.name];if(C!==void 0){C.gui.fills!==void 0&&f.push(C);let D=new Array;for(let S of v.choices)D.push({id:S.id,text:S.text,img:S.img});if(C.gui.choices=D,C.value instanceof Array){let S=new Array;for(let P of C.gui.choices)C.value.indexOf(P.id)>=0&&S.push(P.id);C.value=S}else(!C.value||C.value instanceof Array&&C.value.length===0)&&(C.value=v.choices.length>0?v.choices[0].id:"")}}for(let v of f)n[v.name]===void 0&&(n[v.name]=!0,this.executeCallback(e,v,t,n))})}};var S8="display:inline-block; background-size: SIZE SIZE; background-repeat: no-repeat; width: SIZE; height: SIZE; vertical-align: middle; margin: 4px 8px 4px 0px;",Gp=class{constructor(e,r){this.dialog=e,this.snackbar=r,this.forms=new Wp(this)}alert(e,r,t=0,n){return W(this,null,function*(){let o=n||(window.innerWidth<800?"80%":"40%");return this.dialog.open(gy,{width:o,data:{title:e,body:r,autoclose:t,type:Pd.alert},disableClose:!0}).componentInstance.acceptance})}questionDialog(e,r,t=!1){return W(this,null,function*(){let n=window.innerWidth<800?"80%":"40%",o=this.dialog.open(gy,{width:n,data:{title:e,body:r,type:Pd.question,warnOnYes:t},disableClose:!0});return rr(o.componentInstance.acceptance)})}icon(e,r="24px"){return''}};var qp={production:!0};var gi=function(i){return i.NUMERIC="numeric",i.ALPHANUMERIC="alphanumeric",i.DATETIME="datetime",i.DATETIMESEC="datetimesec",i.DATE="date",i.TIME="time",i.ICON="iconType",i.CALLBACK="callback",i.DICTIONARY="dict",i.IMAGE="image",i}(gi||{}),ct=function(i){return i[i.ALWAYS=0]="ALWAYS",i[i.SINGLE_SELECT=1]="SINGLE_SELECT",i[i.MULTI_SELECT=2]="MULTI_SELECT",i[i.ONLY_MENU=3]="ONLY_MENU",i[i.ACCELERATOR=4]="ACCELERATOR",i}(ct||{});var Ty="provider",ky="service",Ud="pool",E8="authenticator",Hd="user",Ay="group",Oy="transport",Ry="osmanager",Yp="calendar",Py="poolgroup",I8={provider:django.gettext("provider"),service:django.gettext("service"),pool:django.gettext("service pool"),authenticator:django.gettext("authenticator"),mfa:django.gettext("MFA"),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")},Ii=class{constructor(e){this.router=e}static getGotoButton(e,r,t){return{id:e,html:'link'+django.gettext("Go to")+" "+I8[e]+"",type:ct.ACCELERATOR,acceleratorProperties:[r,t||""]}}gotoProvider(e){e!==void 0?this.router.navigate(["services","providers",e]):this.router.navigate(["services","providers"])}gotoService(e,r){r!==void 0?this.router.navigate(["services","providers",e,"detail",r]):this.router.navigate(["services","providers",e,"detail"])}gotoServer(e){this.router.navigate(["services","servers",e])}gotoServerDetail(e){this.router.navigate(["services","servers",e,"detail"])}gotoServicePool(e){this.router.navigate(["pools","service-pools",e])}gotoServicePoolDetail(e){this.router.navigate(["pools","service-pools",e,"detail"])}gotoMetapool(e){this.router.navigate(["pools","meta-pools",e])}gotoMetapoolDetail(e){this.router.navigate(["pools","meta-pools",e,"detail"])}gotoCalendar(e){this.router.navigate(["pools","calendars",e])}gotoCalendarDetail(e){this.router.navigate(["pools","calendars",e,"detail"])}gotoAccount(e){this.router.navigate(["pools","accounts",e])}gotoAccountDetail(e){this.router.navigate(["pools","accounts",e,"detail"])}gotoPoolGroup(e){e=e||"",this.router.navigate(["pools","pool-groups",e])}gotoAuthenticator(e){this.router.navigate(["authenticators",e])}gotoAuthenticatorDetail(e){this.router.navigate(["authenticators",e,"detail"])}gotoMFA(e){this.router.navigate(["mfas",e])}gotoUser(e,r){this.router.navigate(["authenticators",e,"detail","users",r])}gotoGroup(e,r){this.router.navigate(["authenticators",e,"detail","groups",r])}gotoTransport(e){this.router.navigate(["connectivity/transports",e])}gotoTunnel(e){this.router.navigate(["connectivity/tunnels",e])}gotoTunnelDetail(e){this.router.navigate(["connectivity/tunnels",e,"detail"])}gotoOSManager(e){this.router.navigate(["osmanagers",e])}goto(e,r,t){let n=o=>{let a=r;if(t[o].split(".").forEach(s=>a=a[s]),!a)throw new Error("not going :)");return a};try{switch(e){case Ty:this.gotoProvider(n(0));break;case ky:this.gotoService(n(0),n(1));break;case Ud:this.gotoServicePool(n(0));break;case E8:this.gotoAuthenticator(n(0));break;case Hd:this.gotoUser(n(0),n(1));break;case Ay:this.gotoGroup(n(0),n(1));break;case Oy:this.gotoTransport(n(0));break;case Ry:this.gotoOSManager(n(0));break;case Yp:this.gotoCalendar(n(0));break;case Py:this.gotoPoolGroup(n(0));break}}catch{}}};function M8(i,e){if(i&1){let r=A();c(0,"div",1)(1,"button",2),b("click",function(){y(r);let n=_();return w(n.action())}),g(2),d()()}if(i&2){let r=_();h(2),F(" ",r.data.action," ")}}var T8=["label"];function k8(i,e){}var A8=Math.pow(2,31)-1,$d=class{constructor(e,r){this._overlayRef=r,this._afterDismissed=new G,this._afterOpened=new G,this._onAction=new G,this._dismissedByAction=!1,this.containerInstance=e,e._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(e){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(e,A8))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}},VT=new R("MatSnackBarData"),Hl=class{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}},O8=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"],standalone:!0});let i=e;return i})(),R8=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"],standalone:!0});let i=e;return i})(),P8=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"],standalone:!0});let i=e;return i})(),jT=(()=>{let e=class e{constructor(t,n){this.snackBarRef=t,this.data=n}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}};e.\u0275fac=function(n){return new(n||e)(m($d),m(VT))},e.\u0275cmp=E({type:e,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],standalone:!0,features:[re],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(n,o){n&1&&(c(0,"div",0),g(1),d(),x(2,M8,3,1,"div",1)),n&2&&(h(),F(" ",o.data.message,` +`),h(),De(o.hasAction?2:-1))},dependencies:[ke,O8,R8,P8],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0});let i=e;return i})(),F8={snackBarState:ui("state",[Lt("void, hidden",Me({transform:"scale(0.8)",opacity:0})),Lt("visible",Me({transform:"scale(1)",opacity:1})),St("* => visible",Mt("150ms cubic-bezier(0, 0, 0.2, 1)")),St("* => void, * => hidden",Mt("75ms cubic-bezier(0.4, 0.0, 1, 1)",Me({opacity:0})))])},N8=0,L8=(()=>{let e=class e extends ga{constructor(t,n,o,a,s){super(),this._ngZone=t,this._elementRef=n,this._changeDetectorRef=o,this._platform=a,this.snackBarConfig=s,this._document=k(se),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new G,this._onExit=new G,this._onEnter=new G,this._animationState="void",this._liveElementId=`mat-snack-bar-container-live-${N8++}`,this.attachDomPortal=l=>{this._assertNotAttached();let u=this._portalOutlet.attachDomPortal(l);return this._afterPortalAttached(),u},s.politeness==="assertive"&&!s.announcementMessage?this._live="assertive":s.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"))}attachComponentPortal(t){this._assertNotAttached();let n=this._portalOutlet.attachComponentPortal(t);return this._afterPortalAttached(),n}attachTemplatePortal(t){this._assertNotAttached();let n=this._portalOutlet.attachTemplatePortal(t);return this._afterPortalAttached(),n}onAnimationEnd(t){let{fromState:n,toState:o}=t;if((o==="void"&&n!=="void"||o==="hidden")&&this._completeExit(),o==="visible"){let a=this._onEnter;this._ngZone.run(()=>{a.next(),a.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){let t=this._elementRef.nativeElement,n=this.snackBarConfig.panelClass;n&&(Array.isArray(n)?n.forEach(s=>t.classList.add(s)):t.classList.add(n)),this._exposeToModals();let o=this._label.nativeElement,a="mdc-snackbar__label";o.classList.toggle(a,!o.querySelector(`.${a}`))}_exposeToModals(){let t=this._liveElementId,n=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{let n=t.getAttribute("aria-owns");if(n){let o=n.replace(this._liveElementId,"").trim();o.length>0?t.setAttribute("aria-owns",o):t.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{let t=this._elementRef.nativeElement.querySelector("[aria-hidden]"),n=this._elementRef.nativeElement.querySelector("[aria-live]");if(t&&n){let o=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&t.contains(document.activeElement)&&(o=document.activeElement),t.removeAttribute("aria-hidden"),n.appendChild(t),o?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}};e.\u0275fac=function(n){return new(n||e)(m(Z),m(q),m(he),m(Ve),m(Hl))},e.\u0275cmp=E({type:e,selectors:[["mat-snack-bar-container"]],viewQuery:function(n,o){if(n&1&&(ce(rn,7),ce(T8,7)),n&2){let a;Q(a=K())&&(o._portalOutlet=a.first),Q(a=K())&&(o._label=a.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:1,hostBindings:function(n,o){n&1&&Fc("@state.done",function(s){return o.onAnimationEnd(s)}),n&2&&Pc("@state",o._animationState)},standalone:!0,features:[be,re],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface","mat-mdc-snackbar-surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(n,o){n&1&&(c(0,"div",1)(1,"div",2,0)(3,"div",3),x(4,k8,0,0,"ng-template",4),d(),I(5,"div"),d()()),n&2&&(h(5),ie("aria-live",o._live)("role",o._role)("id",o._liveElementId))},dependencies:[rn],styles:[".mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-mdc-snackbar-surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}.cdk-high-contrast-active .mat-mdc-snackbar-surface{outline:solid 1px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mdc-snackbar-supporting-text-color, var(--mat-app-inverse-on-surface));border-radius:var(--mdc-snackbar-container-shape, var(--mat-app-corner-extra-small));background-color:var(--mdc-snackbar-container-color, var(--mat-app-inverse-surface))}.mdc-snackbar__label{width:100%;flex-grow:1;box-sizing:border-box;margin:0;padding:14px 8px 14px 16px}[dir=rtl] .mdc-snackbar__label{padding-left:8px;padding-right:16px}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-family:var(--mdc-snackbar-supporting-text-font, var(--mat-app-body-medium-font));font-size:var(--mdc-snackbar-supporting-text-size, var(--mat-app-body-medium-size));font-weight:var(--mdc-snackbar-supporting-text-weight, var(--mat-app-body-medium-weight));line-height:var(--mdc-snackbar-supporting-text-line-height, var(--mat-app-body-medium-line-height))}.mat-mdc-snack-bar-actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:var(--mat-snack-bar-button-color, var(--mat-app-inverse-primary));--mat-text-button-state-layer-color:currentColor;--mat-text-button-ripple-color:currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1}"],encapsulation:2,data:{animation:[F8.snackBarState]}});let i=e;return i})();function V8(){return new Hl}var j8=new R("mat-snack-bar-default-options",{providedIn:"root",factory:V8}),Fy=(()=>{let e=class e{get _openedSnackBarRef(){let t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t}constructor(t,n,o,a,s,l){this._overlay=t,this._live=n,this._injector=o,this._breakpointObserver=a,this._parentSnackBar=s,this._defaultConfig=l,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=jT,this.snackBarContainerComponent=L8,this.handsetCssClass="mat-mdc-snack-bar-handset"}openFromComponent(t,n){return this._attach(t,n)}openFromTemplate(t,n){return this._attach(t,n)}open(t,n="",o){let a=j(j({},this._defaultConfig),o);return a.data={message:t,action:n},a.announcementMessage===t&&(a.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,a)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(t,n){let o=n&&n.viewContainerRef&&n.viewContainerRef.injector,a=Pe.create({parent:o||this._injector,providers:[{provide:Hl,useValue:n}]}),s=new In(this.snackBarContainerComponent,n.viewContainerRef,a),l=t.attach(s);return l.instance.snackBarConfig=n,l.instance}_attach(t,n){let o=j(j(j({},new Hl),this._defaultConfig),n),a=this._createOverlay(o),s=this._attachSnackBarContainer(a,o),l=new $d(s,a);if(t instanceof dt){let u=new Oi(t,null,{$implicit:o.data,snackBarRef:l});l.instance=s.attachTemplatePortal(u)}else{let u=this._createInjector(o,l),f=new In(t,void 0,u),v=s.attachComponentPortal(f);l.instance=v.instance}return this._breakpointObserver.observe(np.HandsetPortrait).pipe(fe(a.detachments())).subscribe(u=>{a.overlayElement.classList.toggle(this.handsetCssClass,u.matches)}),o.announcementMessage&&s._onAnnounce.subscribe(()=>{this._live.announce(o.announcementMessage,o.politeness)}),this._animateSnackBar(l,o),this._openedSnackBarRef=l,this._openedSnackBarRef}_animateSnackBar(t,n){t.afterDismissed().subscribe(()=>{this._openedSnackBarRef==t&&(this._openedSnackBarRef=null),n.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{t.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):t.containerInstance.enter(),n.duration&&n.duration>0&&t.afterOpened().subscribe(()=>t._dismissAfter(n.duration))}_createOverlay(t){let n=new Mn;n.direction=t.direction;let o=this._overlay.position().global(),a=t.direction==="rtl",s=t.horizontalPosition==="left"||t.horizontalPosition==="start"&&!a||t.horizontalPosition==="end"&&a,l=!s&&t.horizontalPosition!=="center";return s?o.left("0"):l?o.right("0"):o.centerHorizontally(),t.verticalPosition==="top"?o.top("0"):o.bottom("0"),n.positionStrategy=o,this._overlay.create(n)}_createInjector(t,n){let o=t&&t.viewContainerRef&&t.viewContainerRef.injector;return Pe.create({parent:o||this._injector,providers:[{provide:$d,useValue:n},{provide:VT,useValue:t.data}]})}};e.\u0275fac=function(n){return new(n||e)(M(xt),M(dp),M(Pe),M(Al),M(e,12),M(j8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var BT=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({providers:[Fy],imports:[an,zn,ar,pe,jT,pe]});let i=e;return i})();var zT="dark-theme",UT="light-theme",B=(()=>{let e=class e{constructor(t,n,o,a,s,l){this.http=t,this.router=n,this.dialog=o,this.snackbar=a,this.sanitizer=s,this.dateAdapter=l,this.user=new Km(udsData.profile),this.navigation=new Ii(this.router),this.gui=new Gp(this.dialog,this.snackbar),this.dateAdapter.setLocale(this.config.language)}get config(){return udsData.config}get csrfField(){return csrf.csrfField}get csrfToken(){return csrf.csrfToken}get notices(){return udsData.errors}restPath(t){return this.config.urls.rest+t}staticURL(t){return qp.production?this.config.urls.static+t:"/static/"+t}logout(){window.location.href=this.config.urls.logout}gotoUser(){window.location.href=this.config.urls.user}putOnStorage(t,n){typeof Storage!==void 0&&sessionStorage.setItem(t,n)}getFromStorage(t){return typeof Storage!==void 0?sessionStorage.getItem(t):null}safeString(t){return this.sanitizer.bypassSecurityTrustHtml(t)}boolAsHumanString(t){return t?django.gettext("yes"):django.gettext("no")}switchTheme(t){let n=document.getElementsByTagName("html")[0];[zT,UT].forEach(o=>{n.classList.contains(o)&&n.classList.remove(o)}),n.classList.add(t?zT:UT)}};e.\u0275fac=function(n){return new(n||e)(M(Uc),M(nr),M(Rd),M(Fy),M(is),M(Ri))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var HT=(()=>{let e=class e{constructor(t){this.api=t}canActivate(t,n){return this.api.user.isStaff?!0:(window.location.href=this.api.config.urls.user,!1)}};e.\u0275fac=function(n){return new(n||e)(M(B))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var $l=3e4,Vr=function(i){return i[i.NONE=0]="NONE",i[i.READ=32]="READ",i[i.MANAGEMENT=64]="MANAGEMENT",i[i.ALL=96]="ALL",i}(Vr||{}),_i=class{constructor(e,r,t){this.api=e,t===void 0&&(t={}),t.base===void 0&&(t.base=r);let n=(o,a)=>o===void 0?a:o;this.id=r,this.paths={base:t.base,get:n(t.get,t.base),log:n(t.log,t.base),put:n(t.put,t.base),test:n(t.test,t.base+"/test"),delete:n(t.delete,t.base),types:n(t.types,t.base+"/types"),gui:n(t.gui,t.base+"/gui"),tableInfo:n(t.tableInfo,t.base+"/tableinfo")},this.headers=new Eo().set("Content-Type","application/json; charset=utf8").set(this.api.config.auth_header,this.api.config.auth_token)}get(e){return this.typedGet(e)}getLogs(e){return this.doGet(this.getPath(this.paths.log,e)+"/log")}overview(e){return this.typedGet("overview"+(e!==void 0?"?filter="+e:""))}summary(e){return this.typedGet("overview?summarize"+(e!==void 0?"&filter="+e:""))}put(e,r){return this.typedPut(e,r)}create(e){return this.typedPut(e)}save(e,r){return r=r!==void 0?r:e.id,this.typedPut(e,r)}test(e,r){return rr(this.api.http.post(this.getPath(this.paths.test,e),r,{headers:this.headers}).pipe(Wi(t=>this.handleError(t))),$l)}delete(e){return rr(this.api.http.delete(this.getPath(this.paths.delete,e),{headers:this.headers}).pipe(Wi(r=>this.handleError(r))),$l)}permision(){return this.api.user.isAdmin?Vr.ALL:Vr.NONE}getPermissions(e){return this.doGet(this.getPath("permissions/"+this.paths.base+"/"+e))}addPermission(e,r,t,n){let o=this.getPath("permissions/"+this.paths.base+"/"+e+"/"+r+"/add/"+t),a={perm:n};return rr(this.api.http.put(o,a,{headers:this.headers}).pipe(Wi(s=>this.handleError(s))),$l)}revokePermission(e){let r=this.getPath("permissions/revoke"),t={items:e};return rr(this.api.http.put(r,t,{headers:this.headers}).pipe(Wi(n=>this.handleError(n))),$l)}types(){return this.doGet(this.getPath(this.paths.types))}gui(e){let r=this.getPath(this.paths.gui+(e!==void 0?"/"+e:""));return this.doGet(r)}callback(e,r){let t=this.getPath("gui/callback/"+e+"?"+r);return this.doGet(t)}tableInfo(){return this.doGet(this.getPath(this.paths.tableInfo))}detail(e,r){return new Ny(this,e,r)}invoke(e,r){let t=e+(r?"?"+r:"");return this.typedGet(t)}getPath(e,r){if(e===void 0)throw new Error("Path is undefined");return this.api.restPath(e+(r!==void 0?"/"+r:""))}doGet(e){return rr(this.api.http.get(e,{headers:this.headers}).pipe(Wi(r=>this.handleError(r))),$l)}typedGet(e){return this.doGet(this.getPath(this.paths.get,e))}typedPut(e,r){return rr(this.api.http.put(this.getPath(this.paths.put,r),e,{headers:this.headers}).pipe(Wi(t=>this.handleError(t,!0))),$l)}handleError(e,r=!1){let t="";return e.error instanceof ErrorEvent?t=e.error.message:r?t=django.gettext("Error saving: ")+e.error:t=`Error ${e.status}: ${e.error}`,this.api.gui.alert(r?django.gettext("Error saving element"):django.gettext("Error handling your request"),t),jo(()=>new Error(t))}},Ny=class extends _i{constructor(e,r,t,n){super(e.api,[e.paths.base,r,t].join("/")),this.parentModel=e,this.parentId=r,this.model=t,this.perm=n}permision(){return this.perm||Vr.ALL}},Qp=class extends _i{constructor(e){super(e,"providers"),this.api=e}allServices(){return this.get("allservices")}service(e){return this.get("service/"+e)}maintenance(e){return this.get(e+"/maintenance")}},Kp=class extends _i{constructor(e){super(e,"authenticators"),this.api=e}search(e,r,t,n=12){return this.get(e+"/search?type="+encodeURIComponent(r)+"&term="+encodeURIComponent(t)+"&limit="+n)}},Zp=class extends _i{constructor(e){super(e,"osmanagers"),this.api=e}},Xp=class extends _i{constructor(e){super(e,"transports"),this.api=e}},Jp=class extends _i{constructor(e){super(e,"networks"),this.api=e}},ef=class extends _i{constructor(e){super(e,"tunnels/tunnels"),this.api=e}maintenance(e){return this.get(e+"/maintenance")}tunnels(e){return this.get(e+"/tunnels")}assign(e,r){return this.get(e+"/assign/"+r)}},tf=class extends _i{constructor(e){super(e,"servers/groups"),this.api=e}maintenance(e){return this.get(e+"/maintenance")}},nf=class extends _i{constructor(e){super(e,"servicespools"),this.api=e}setFallbackAccess(e,r){return this.get(e+"/setFallbackAccess?fallbackAccess="+r)}getFallbackAccess(e){return this.get(e+"/getFallbackAccess")}actionsList(e){return this.get(e+"/actionsList")}listAssignables(e){return this.get(e+"/listAssignables")}createFromAssignable(e,r,t){return this.get(e+"/createFromAssignable?user_id="+encodeURIComponent(r)+"&assignable_id="+encodeURIComponent(t))}},of=class extends _i{constructor(e){super(e,"metapools"),this.api=e}setFallbackAccess(e,r){return this.get(e+"/setFallbackAccess?fallbackAccess="+r)}getFallbackAccess(e){return this.get(e+"/getFallbackAccess")}},rf=class extends _i{constructor(e){super(e,"config"),this.api=e}},af=class extends _i{constructor(e){super(e,"gallery/images"),this.api=e}},sf=class extends _i{constructor(e){super(e,"gallery/servicespoolgroups"),this.api=e}},lf=class extends _i{constructor(e){super(e,"system"),this.api=e}information(){return this.get("overview")}stats(e,r){let t="stats/"+e;return r&&(t+="/"+r),this.get(t)}flushCache(){return this.doGet(this.getPath("cache","flush"))}},cf=class extends _i{constructor(e){super(e,"reports"),this.api=e}types(){return rr(oe([]))}},df=class extends _i{constructor(e){super(e,"calendars"),this.api=e}},uf=class extends _i{constructor(e){super(e,"accounts"),this.api=e}timemark(e){return this.get(e+"/timemark")}},hf=class extends _i{constructor(e){super(e,"actortokens"),this.api=e}},mf=class extends _i{constructor(e){super(e,"servers/tokens"),this.api=e}},pf=class extends _i{constructor(e){super(e,"mfa"),this.api=e}},ff=class extends _i{constructor(e){super(e,"messaging/notifiers"),this.api=e}};var X=(()=>{let e=class e{constructor(t){this.api=t,this.providers=new Qp(t),this.serverGroups=new tf(t),this.authenticators=new Kp(t),this.mfas=new pf(t),this.osManagers=new Zp(t),this.transports=new Xp(t),this.networks=new Jp(t),this.tunnels=new ef(t),this.servicesPools=new nf(t),this.metaPools=new of(t),this.gallery=new af(t),this.servicesPoolGroups=new sf(t),this.calendars=new df(t),this.accounts=new uf(t),this.system=new lf(t),this.configuration=new rf(t),this.actorToken=new hf(t),this.serversTokens=new mf(t),this.reports=new cf(t),this.notifiers=new ff(t)}};e.\u0275fac=function(n){return new(n||e)(M(B))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var Ly=class{constructor(){this.subject=new Zn(1),this.subscriptions=new ve}doFilter(e){this.subject.next(e)}dispose(){this.subscriptions.unsubscribe()}notEmpty(e,r){this.subscriptions.add(this.subject.subscribe(t=>{if(t[e]){let n=t[e].currentValue;n!=null&&r(n)}}))}has(e,r){this.subscriptions.add(this.subject.subscribe(t=>{if(t[e]){let n=t[e].currentValue;r(n)}}))}notFirst(e,r){this.subscriptions.add(this.subject.subscribe(t=>{if(t[e]&&!t[e].isFirstChange()){let n=t[e].currentValue;r(n)}}))}notFirstAndEmpty(e,r){this.subscriptions.add(this.subject.subscribe(t=>{if(t[e]&&!t[e].isFirstChange()){let n=t[e].currentValue;n!=null&&r(n)}}))}},$T=new R("NGX_ECHARTS_CONFIG"),gf=(()=>{let e=class e{constructor(t,n,o){this.el=n,this.ngZone=o,this.options=null,this.theme=null,this.initOpts=null,this.merge=null,this.autoResize=!0,this.loading=!1,this.loadingType="default",this.loadingOpts=null,this.chartInit=new T,this.optionsError=new T,this.chartClick=this.createLazyEvent("click"),this.chartDblClick=this.createLazyEvent("dblclick"),this.chartMouseDown=this.createLazyEvent("mousedown"),this.chartMouseMove=this.createLazyEvent("mousemove"),this.chartMouseUp=this.createLazyEvent("mouseup"),this.chartMouseOver=this.createLazyEvent("mouseover"),this.chartMouseOut=this.createLazyEvent("mouseout"),this.chartGlobalOut=this.createLazyEvent("globalout"),this.chartContextMenu=this.createLazyEvent("contextmenu"),this.chartHighlight=this.createLazyEvent("highlight"),this.chartDownplay=this.createLazyEvent("downplay"),this.chartSelectChanged=this.createLazyEvent("selectchanged"),this.chartLegendSelectChanged=this.createLazyEvent("legendselectchanged"),this.chartLegendSelected=this.createLazyEvent("legendselected"),this.chartLegendUnselected=this.createLazyEvent("legendunselected"),this.chartLegendLegendSelectAll=this.createLazyEvent("legendselectall"),this.chartLegendLegendInverseSelect=this.createLazyEvent("legendinverseselect"),this.chartLegendScroll=this.createLazyEvent("legendscroll"),this.chartDataZoom=this.createLazyEvent("datazoom"),this.chartDataRangeSelected=this.createLazyEvent("datarangeselected"),this.chartGraphRoam=this.createLazyEvent("graphroam"),this.chartGeoRoam=this.createLazyEvent("georoam"),this.chartTreeRoam=this.createLazyEvent("treeroam"),this.chartTimelineChanged=this.createLazyEvent("timelinechanged"),this.chartTimelinePlayChanged=this.createLazyEvent("timelineplaychanged"),this.chartRestore=this.createLazyEvent("restore"),this.chartDataViewChanged=this.createLazyEvent("dataviewchanged"),this.chartMagicTypeChanged=this.createLazyEvent("magictypechanged"),this.chartGeoSelectChanged=this.createLazyEvent("geoselectchanged"),this.chartGeoSelected=this.createLazyEvent("geoselected"),this.chartGeoUnselected=this.createLazyEvent("geounselected"),this.chartAxisAreaSelected=this.createLazyEvent("axisareaselected"),this.chartBrush=this.createLazyEvent("brush"),this.chartBrushEnd=this.createLazyEvent("brushend"),this.chartBrushSelected=this.createLazyEvent("brushselected"),this.chartGlobalCursorTaken=this.createLazyEvent("globalcursortaken"),this.chartRendered=this.createLazyEvent("rendered"),this.chartFinished=this.createLazyEvent("finished"),this.animationFrameID=null,this.chart$=new Zn(1),this.resize$=new G,this.changeFilter=new Ly,this.resizeObFired=!1,this.echarts=t.echarts,this.theme=t.theme||null}ngOnChanges(t){this.changeFilter.doFilter(t)}ngOnInit(){if(!window.ResizeObserver)throw new Error("please install a polyfill for ResizeObserver");this.resizeSub=this.resize$.pipe(n_(100,Ji,{leading:!1,trailing:!0})).subscribe(()=>this.resize()),this.autoResize&&(this.resizeOb=this.ngZone.runOutsideAngular(()=>new window.ResizeObserver(t=>{for(let n of t)n.target===this.el.nativeElement&&(this.resizeObFired?this.animationFrameID=window.requestAnimationFrame(()=>{this.resize$.next()}):this.resizeObFired=!0)})),this.resizeOb.observe(this.el.nativeElement)),this.changeFilter.notFirstAndEmpty("options",t=>this.onOptionsChange(t)),this.changeFilter.notFirstAndEmpty("merge",t=>this.setOption(t)),this.changeFilter.has("loading",t=>this.toggleLoading(!!t)),this.changeFilter.notFirst("theme",()=>this.refreshChart())}ngOnDestroy(){window.clearTimeout(this.initChartTimer),this.resizeSub&&this.resizeSub.unsubscribe(),this.animationFrameID&&window.cancelAnimationFrame(this.animationFrameID),this.resizeOb&&this.resizeOb.unobserve(this.el.nativeElement),this.loadingSub&&this.loadingSub.unsubscribe(),this.changeFilter.dispose(),this.dispose()}ngAfterViewInit(){this.initChartTimer=window.setTimeout(()=>this.initChart())}dispose(){this.chart&&(this.chart.isDisposed()||this.chart.dispose(),this.chart=null)}resize(){this.chart&&this.chart.resize()}toggleLoading(t){this.chart?t?this.chart.showLoading(this.loadingType,this.loadingOpts):this.chart.hideLoading():this.loadingSub=this.chart$.subscribe(n=>t?n.showLoading(this.loadingType,this.loadingOpts):n.hideLoading())}setOption(t,n){if(this.chart)try{this.chart.setOption(t,n)}catch(o){console.error(o),this.optionsError.emit(o)}}refreshChart(){return W(this,null,function*(){this.dispose(),yield this.initChart()})}createChart(){let t=this.el.nativeElement;if(window&&window.getComputedStyle){let n=window.getComputedStyle(t,null).getPropertyValue("height");(!n||n==="0px")&&(!t.style.height||t.style.height==="0px")&&(t.style.height="400px")}return this.ngZone.runOutsideAngular(()=>(typeof this.echarts=="function"?this.echarts:()=>Promise.resolve(this.echarts))().then(({init:o})=>o(t,this.theme,this.initOpts)))}initChart(){return W(this,null,function*(){yield this.onOptionsChange(this.options),this.merge&&this.chart&&this.setOption(this.merge)})}onOptionsChange(t){return W(this,null,function*(){t&&(this.chart?this.setOption(this.options,!0):(this.chart=yield this.createChart(),this.chart$.next(this.chart),this.chartInit.emit(this.chart),this.setOption(this.options,!0)))})}createLazyEvent(t){return this.chartInit.pipe(Tt(n=>new Re(o=>(n.on(t,a=>this.ngZone.run(()=>o.next(a))),()=>{this.chart&&(this.chart.isDisposed()||n.off(t))}))))}};e.\u0275fac=function(n){return new(n||e)(m($T),m(q),m(Z))},e.\u0275dir=L({type:e,selectors:[["echarts"],["","echarts",""]],inputs:{options:"options",theme:"theme",initOpts:"initOpts",merge:"merge",autoResize:"autoResize",loading:"loading",loadingType:"loadingType",loadingOpts:"loadingOpts"},outputs:{chartInit:"chartInit",optionsError:"optionsError",chartClick:"chartClick",chartDblClick:"chartDblClick",chartMouseDown:"chartMouseDown",chartMouseMove:"chartMouseMove",chartMouseUp:"chartMouseUp",chartMouseOver:"chartMouseOver",chartMouseOut:"chartMouseOut",chartGlobalOut:"chartGlobalOut",chartContextMenu:"chartContextMenu",chartHighlight:"chartHighlight",chartDownplay:"chartDownplay",chartSelectChanged:"chartSelectChanged",chartLegendSelectChanged:"chartLegendSelectChanged",chartLegendSelected:"chartLegendSelected",chartLegendUnselected:"chartLegendUnselected",chartLegendLegendSelectAll:"chartLegendLegendSelectAll",chartLegendLegendInverseSelect:"chartLegendLegendInverseSelect",chartLegendScroll:"chartLegendScroll",chartDataZoom:"chartDataZoom",chartDataRangeSelected:"chartDataRangeSelected",chartGraphRoam:"chartGraphRoam",chartGeoRoam:"chartGeoRoam",chartTreeRoam:"chartTreeRoam",chartTimelineChanged:"chartTimelineChanged",chartTimelinePlayChanged:"chartTimelinePlayChanged",chartRestore:"chartRestore",chartDataViewChanged:"chartDataViewChanged",chartMagicTypeChanged:"chartMagicTypeChanged",chartGeoSelectChanged:"chartGeoSelectChanged",chartGeoSelected:"chartGeoSelected",chartGeoUnselected:"chartGeoUnselected",chartAxisAreaSelected:"chartAxisAreaSelected",chartBrush:"chartBrush",chartBrushEnd:"chartBrushEnd",chartBrushSelected:"chartBrushSelected",chartGlobalCursorTaken:"chartGlobalCursorTaken",chartRendered:"chartRendered",chartFinished:"chartFinished"},exportAs:["echarts"],standalone:!0,features:[Qe]});let i=e;return i})();var z8=i=>({provide:$T,useValue:i}),WT=(()=>{let e=class e{static forRoot(t){return{ngModule:e,providers:[z8(t)]}}static forChild(){return{ngModule:e}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({});let i=e;return i})();function U8(i,e){if(i&1&&(c(0,"div",21)(1,"div",11),I(2,"img",4),c(3,"div",12),g(4),d()(),c(5,"div",13)(6,"a",15)(7,"uds-translate"),g(8,"View service pools"),d()()()()),i&2){let r=_(2);h(2),p("src",r.api.staticURL("admin/img/icons/logs.png"),Ie),h(2),F(" ",r.data.restrained," ")}}function H8(i,e){if(i&1){let r=A();c(0,"div")(1,"div",8)(2,"div",9)(3,"div",10)(4,"div",11),I(5,"img",4),c(6,"div",12),g(7),d()(),c(8,"div",13)(9,"a",14)(10,"uds-translate"),g(11,"View authenticators"),d()()()(),c(12,"div",10)(13,"div",11),I(14,"img",4),c(15,"div",12),g(16),d()(),c(17,"div",13)(18,"a",15)(19,"uds-translate"),g(20,"View service pools"),d()()()(),c(21,"div",10)(22,"div",11),I(23,"img",4),c(24,"div",12),g(25),d()(),c(26,"div",13)(27,"a",15)(28,"uds-translate"),g(29,"View service pools"),d()()()(),x(30,U8,9,2,"div",16),d(),c(31,"div",17)(32,"div",18)(33,"div",19)(34,"uds-translate"),g(35,"Assigned services chart"),d()(),c(36,"div",20),b("chartInit",function(n){y(r);let o=_();return w(o.chartInit("assigned",n))}),d()(),c(37,"div",18)(38,"div",19)(39,"uds-translate"),g(40,"In use services chart"),d()(),c(41,"div",20),b("chartInit",function(n){y(r);let o=_();return w(o.chartInit("inuse",n))}),d()()()()()}if(i&2){let r=_();h(5),p("src",r.api.staticURL("admin/img/icons/authenticators.png"),Ie),h(2),F(" ",r.data.users," "),h(7),p("src",r.api.staticURL("admin/img/icons/pools.png"),Ie),h(2),F(" ",r.data.pools," "),h(7),p("src",r.api.staticURL("admin/img/icons/services.png"),Ie),h(2),F(" ",r.data.user_services," "),h(5),p("ngIf",r.data.restrained),h(6),p("options",r.assignedChartOpts),h(5),p("options",r.inuseChartOpts)}}function $8(i,e){i&1&&(c(0,"div",22)(1,"div",23)(2,"div",24)(3,"uds-translate"),g(4,"UDS Administration"),d()(),c(5,"div",25)(6,"p")(7,"uds-translate"),g(8,"You are accessing UDS Administration as staff member."),d()(),c(9,"p")(10,"uds-translate"),g(11,"This means that you have restricted access to elements."),d()(),c(12,"p")(13,"uds-translate"),g(14,"In order to increase your access privileges, please contact your local UDS administrator. "),d()(),I(15,"br"),c(16,"p")(17,"uds-translate"),g(18,"Thank you."),d()()()()())}var qT=(()=>{let e=class e{constructor(t,n){this.api=t,this.rest=n,this.data={},this.assignedChartInstance=null,this.assignedChartOpts={},this.inuseChartOpts={},this.inuseChartInstance=null}onResize(t){this.assignedChartInstance&&this.assignedChartInstance.resize(),this.inuseChartInstance&&this.inuseChartInstance.resize()}ngOnInit(){if(this.api.user.isAdmin){this.rest.system.information().then(t=>{this.data={users:django.gettext("#USR_NUMBER# users, #GRP_NUMBER# groups").replace("#USR_NUMBER#",t.users).replace("#GRP_NUMBER#",t.groups),pools:django.gettext("#POOLS_NUMBER# service pools").replace("#POOLS_NUMBER#",t.service_pools),user_services:django.gettext("#SERVICES_NUMBER# user services").replace("#SERVICES_NUMBER#",t.user_services)},t.restrained_services_pools>0&&(this.data.restrained=django.gettext("#RESTRAINED_NUMBER# restrained services!").replace("#RESTRAINED_NUMBER#",t.restrained_services_pools))});for(let t of["assigned","inuse"])this.rest.system.stats(t).then(n=>{let o={tooltip:{trigger:"axis"},toolbox:{feature:{dataZoom:{yAxisIndex:"none"},restore:{},saveAsImage:{}}},xAxis:{type:"category",data:n.map(a=>$i("SHORT_DATE_FORMAT",new Date(a.stamp))),boundaryGap:!1},yAxis:{type:"value"},series:[{name:t==="assigned"?django.gettext("Assigned services"):django.gettext("Services in use"),type:"line",smooth:!0,areaStyle:{},data:n.map(a=>a.value)}]};t==="assigned"?this.assignedChartOpts=o:this.inuseChartOpts=o})}}chartInit(t,n){t==="assigned"?this.assignedChartInstance=n:this.inuseChartInstance=n}};e.\u0275fac=function(n){return new(n||e)(m(B),m(X))},e.\u0275cmp=E({type:e,selectors:[["uds-summary"]],hostBindings:function(n,o){n&1&&b("resize",function(s){return o.onResize(s)},!1,Jh)},decls:11,vars:3,consts:[["noAdmin",""],[1,"card"],[1,"card-header"],[1,"card-title"],[3,"src"],[1,"card-subtitle"],[1,"card-content"],[4,"ngIf","ngIfElse"],[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,"statistics"],[1,"statistics-chart"],[1,"statistics-title"],["echarts","","theme","dark-digerati",3,"chartInit","options"],[1,"info-panel","info-danger"],[1,"staff-container"],[1,"staff","mat-elevation-z8"],[1,"staff-header"],[1,"staff-content"]],template:function(n,o){if(n&1&&(c(0,"div",1)(1,"div",2)(2,"div",3),I(3,"img",4),c(4,"uds-translate"),g(5,"Dashboard"),d()(),I(6,"div",5),d(),c(7,"div",6),x(8,H8,42,9,"div",7)(9,$8,19,0,"ng-template",null,0,fi),d()()),n&2){let a=we(10);h(3),p("src",o.api.staticURL("admin/img/icons/dashboard-monitor.png"),Ie),h(5),p("ngIf",o.api.user.isAdmin)("ngIfElse",a)}},dependencies:[me,bi,xa,gf,le],styles:['.mat-ripple[_ngcontent-%COMP%]{overflow:hidden;position:relative}.mat-ripple[_ngcontent-%COMP%]:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded[_ngcontent-%COMP%]{overflow:visible}.mat-ripple-element[_ngcontent-%COMP%]{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale3d(0,0,0);background-color:var(--mat-ripple-color, rgba(0, 0, 0, .1))}.cdk-high-contrast-active[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%], .cdk-drag-placeholder[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%]{display:none}.cdk-visually-hidden[_ngcontent-%COMP%]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl][_ngcontent-%COMP%] .cdk-visually-hidden[_ngcontent-%COMP%]{left:auto;right:0}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_ngcontent-%COMP%]{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container[_ngcontent-%COMP%]{position:fixed;z-index:1000}.cdk-overlay-container[_ngcontent-%COMP%]:empty{display:none}.cdk-global-overlay-wrapper[_ngcontent-%COMP%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:1}.cdk-high-contrast-active[_ngcontent-%COMP%] .cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:.6}.cdk-overlay-dark-backdrop[_ngcontent-%COMP%]{background:#00000052}.cdk-overlay-transparent-backdrop[_ngcontent-%COMP%]{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation[_ngcontent-%COMP%]{transition:none}.cdk-overlay-connected-position-bounding-box[_ngcontent-%COMP%]{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock[_ngcontent-%COMP%]{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize[_ngcontent-%COMP%]{resize:none}textarea.cdk-textarea-autosize-measuring[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-start{}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{animation:_ngcontent-%COMP%_cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){animation:_ngcontent-%COMP%_cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border:var(--mat-focus-indicator-border-width, 3px) var(--mat-focus-indicator-border-style, solid) var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-focus-indicator-display: block}.mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-mdc-focus-indicator-display, none);border:var(--mat-mdc-focus-indicator-border-width, 3px) var(--mat-mdc-focus-indicator-border-style, solid) var(--mat-mdc-focus-indicator-border-color, transparent);border-radius:var(--mat-mdc-focus-indicator-border-radius, 4px)}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-mdc-focus-indicator-display: block}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-app-background, transparent));color:var(--mat-app-text-color, var(--mat-app-on-background, inherit))}.mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, none)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, none)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, none)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, none)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, none)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, none)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, none)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, none)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, none)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, none)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, none)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, none)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, none)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, none)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, none)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, none)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, none)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, none)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, none)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, none)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, none)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, none)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, none)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, none)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, none)}.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;padding:.5rem 1rem}.staff-content[_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:#00000024 0 1px 4px;box-sizing:border-box;color:#333;display:flex;flex-direction:column;margin:2rem 1rem;width:100%}.info-danger[_ngcontent-%COMP%]{background-image:linear-gradient(to right,#f83600,#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:linear-gradient(60deg,#4b5266,#465d9c)}.info-panel-link[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:100%;color:#fff}.statistics[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-around;width:100%}.statistics-title[_ngcontent-%COMP%]{background:linear-gradient(60deg,#4b5266,#465d9c);width:100%;color:#fff;padding:1rem 0rem;text-align:center}.statistics-chart[_ngcontent-%COMP%]{border-color:#333;box-shadow:#00000024 0 1px 4px;box-sizing:border-box;color:#333;display:flex;flex-direction:column;margin:2rem 1rem;width:100%;height:400px} .dark-theme .staff{border:#337ab7} .dark-theme .staff-header{color:#fff} .dark-theme .info-panel{border-color:lightned(#303030,60%);background-image:linear-gradient(135deg,#fdfcfb,#e2d1c3);box-shadow:#00000024 0 1px 4px;color:#b3b3b3} .dark-theme .info-danger{background-image:linear-gradient(to right,#f83600,#f9d423);color:#fff} .dark-theme .info-panel-link{background:#4682b4} .dark-theme .info-panel-link a{color:#fff} .dark-theme .statistics-title{color:#fff} .dark-theme .statistics-chart{border-color:#333;box-shadow:#00000024 0 1px 4px;color:#333}']});let i=e;return i})();var W8=["notch"],G8=["matFormFieldNotchedOutline",""],q8=["*"],Y8=["textField"],Q8=["iconPrefixContainer"],K8=["textPrefixContainer"],Z8=["iconSuffixContainer"],X8=["textSuffixContainer"],J8=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],eH=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function tH(i,e){i&1&&I(0,"span",21)}function iH(i,e){if(i&1&&(c(0,"label",20),ae(1,1),x(2,tH,1,0,"span",21),d()),i&2){let r=_(2);p("floating",r._shouldLabelFloat())("monitorResize",r._hasOutline())("id",r._labelId),ie("for",r._control.disableAutomaticLabeling?null:r._control.id),h(2),De(!r.hideRequiredMarker&&r._control.required?2:-1)}}function nH(i,e){if(i&1&&x(0,iH,3,5,"label",20),i&2){let r=_();De(r._hasFloatingLabel()?0:-1)}}function oH(i,e){i&1&&I(0,"div",7)}function rH(i,e){}function aH(i,e){if(i&1&&x(0,rH,0,0,"ng-template",13),i&2){_(2);let r=we(1);p("ngTemplateOutlet",r)}}function sH(i,e){if(i&1&&(c(0,"div",9),x(1,aH,1,1,null,13),d()),i&2){let r=_();p("matFormFieldNotchedOutlineOpen",r._shouldLabelFloat()),h(),De(r._forceDisplayInfixLabel()?-1:1)}}function lH(i,e){i&1&&(c(0,"div",10,2),ae(2,2),d())}function cH(i,e){i&1&&(c(0,"div",11,3),ae(2,3),d())}function dH(i,e){}function uH(i,e){if(i&1&&x(0,dH,0,0,"ng-template",13),i&2){_();let r=we(1);p("ngTemplateOutlet",r)}}function hH(i,e){i&1&&(c(0,"div",14,4),ae(2,4),d())}function mH(i,e){i&1&&(c(0,"div",15,5),ae(2,5),d())}function pH(i,e){i&1&&I(0,"div",16)}function fH(i,e){if(i&1&&(c(0,"div",18),ae(1,6),d()),i&2){let r=_();p("@transitionMessages",r._subscriptAnimationState)}}function gH(i,e){if(i&1&&(c(0,"mat-hint",22),g(1),d()),i&2){let r=_(2);p("id",r._hintLabelId),h(),$e(r.hintLabel)}}function _H(i,e){if(i&1&&(c(0,"div",19),x(1,gH,2,2,"mat-hint",22),ae(2,7),I(3,"div",23),ae(4,8),d()),i&2){let r=_();p("@transitionMessages",r._subscriptAnimationState),h(),De(r.hintLabel?1:-1)}}var Ae=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e,selectors:[["mat-label"]],standalone:!0});let i=e;return i})();var vH=new R("MatError");var bH=0,YT=(()=>{let e=class e{constructor(){this.align="start",this.id=`mat-mdc-hint-${bH++}`}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(n,o){n&2&&(Si("id",o.id),ie("align",null),ne("mat-mdc-form-field-hint-end",o.align==="end"))},inputs:{align:"align",id:"id"},standalone:!0});let i=e;return i})(),yH=new R("MatPrefix");var ik=new R("MatSuffix"),uo=(()=>{let e=class e{constructor(){this._isText=!1}set _isTextSelector(t){this._isText=!0}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},standalone:!0,features:[Ce([{provide:ik,useExisting:e}])]});let i=e;return i})(),nk=new R("FloatingLabelParent"),QT=(()=>{let e=class e{get floating(){return this._floating}set floating(t){this._floating=t,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(t){this._monitorResize=t,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(t){this._elementRef=t,this._floating=!1,this._monitorResize=!1,this._resizeObserver=k(Hp),this._ngZone=k(Z),this._parent=k(nk),this._resizeSubscription=new ve}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return wH(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}};e.\u0275fac=function(n){return new(n||e)(m(q))},e.\u0275dir=L({type:e,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(n,o){n&2&&ne("mdc-floating-label--float-above",o.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"},standalone:!0});let i=e;return i})();function wH(i){let e=i;if(e.offsetParent!==null)return e.scrollWidth;let r=e.cloneNode(!0);r.style.setProperty("position","absolute"),r.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(r);let t=r.scrollWidth;return r.remove(),t}var KT="mdc-line-ripple--active",_f="mdc-line-ripple--deactivating",ZT=(()=>{let e=class e{constructor(t,n){this._elementRef=t,this._handleTransitionEnd=o=>{let a=this._elementRef.nativeElement.classList,s=a.contains(_f);o.propertyName==="opacity"&&s&&a.remove(KT,_f)},n.runOutsideAngular(()=>{t.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){let t=this._elementRef.nativeElement.classList;t.remove(_f),t.add(KT)}deactivate(){this._elementRef.nativeElement.classList.add(_f)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}};e.\u0275fac=function(n){return new(n||e)(m(q),m(Z))},e.\u0275dir=L({type:e,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"],standalone:!0});let i=e;return i})(),XT=(()=>{let e=class e{constructor(t,n){this._elementRef=t,this._ngZone=n,this.open=!1}ngAfterViewInit(){let t=this._elementRef.nativeElement.querySelector(".mdc-floating-label");t?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(t.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>t.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(t){!this.open||!t?this._notch.nativeElement.style.width="":this._notch.nativeElement.style.width=`calc(${t}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}};e.\u0275fac=function(n){return new(n||e)(m(q),m(Z))},e.\u0275cmp=E({type:e,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(n,o){if(n&1&&ce(W8,5),n&2){let a;Q(a=K())&&(o._notch=a.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(n,o){n&2&&ne("mdc-notched-outline--notched",o.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},standalone:!0,features:[re],attrs:G8,ngContentSelectors:q8,decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(n,o){n&1&&(He(),I(0,"div",1),c(1,"div",2,0),ae(3),d(),I(4,"div",3))},encapsulation:2,changeDetection:0});let i=e;return i})(),CH={transitionMessages:ui("transitionMessages",[Lt("enter",Me({opacity:1,transform:"translateY(0%)"})),St("void => enter",[Me({opacity:0,transform:"translateY(-5px)"}),Mt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Ia=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e});let i=e;return i})();var Ro=new R("MatFormField"),Vy=new R("MAT_FORM_FIELD_DEFAULT_OPTIONS"),JT=0,ek="fill",xH="auto",tk="fixed",DH="translateY(-50%)",_e=(()=>{let e=class e{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=Bn(t)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||xH}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(t){let n=this._appearance,o=t||this._defaults?.appearance||ek;this._appearance=o,this._appearance==="outline"&&this._appearance!==n&&(this._needsOutlineLabelOffsetUpdate=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||tk}set subscriptSizing(t){this._subscriptSizing=t||this._defaults?.subscriptSizing||tk}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(t){this._explicitFormFieldControl=t}constructor(t,n,o,a,s,l,u,f){this._elementRef=t,this._changeDetectorRef=n,this._dir=a,this._platform=s,this._defaults=l,this._animationMode=u,this._labelChild=AE(Ae),this._hideRequiredMarker=!1,this.color="primary",this._appearance=ek,this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId=`mat-mdc-form-field-label-${JT++}`,this._hintLabelId=`mat-mdc-hint-${JT++}`,this._subscriptAnimationState="",this._destroyed=new G,this._isFocused=null,this._needsOutlineLabelOffsetUpdate=!1,this._previousControl=null,this._injector=k(Pe),this.getLabelId=Mr(()=>this._hasFloatingLabel()?this._labelId:null),this._hasFloatingLabel=Mr(()=>!!this._labelChild()),l&&(l.appearance&&(this.appearance=l.appearance),this._hideRequiredMarker=!!l?.hideRequiredMarker,l.color&&(this.color=l.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._previousControl=this._control)}ngOnDestroy(){this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(t){let n=this._control,o="mat-mdc-form-field-type-";t&&this._elementRef.nativeElement.classList.remove(o+t.controlType),n.controlType&&this._elementRef.nativeElement.classList.add(o+n.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=n.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._valueChanges?.unsubscribe(),n.ngControl&&n.ngControl.valueChanges&&(this._valueChanges=n.ngControl.valueChanges.pipe(fe(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(t=>!t._isText),this._hasTextPrefix=!!this._prefixChildren.find(t=>t._isText),this._hasIconSuffix=!!this._suffixChildren.find(t=>!t._isText),this._hasTextSuffix=!!this._suffixChildren.find(t=>t._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),wt(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){this._control}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0),Oc(()=>{this._needsOutlineLabelOffsetUpdate&&(this._needsOutlineLabelOffsetUpdate=!1,this._updateOutlineLabelOffset())},{injector:this._injector}),this._dir.change.pipe(fe(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0)}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(t){let n=this._control?this._control.ngControl:null;return n&&n[t]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||!this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){this._hintChildren}_syncDescribedByIds(){if(this._control){let t=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&t.push(...this._control.userAriaDescribedBy.split(" ")),this._getDisplayedMessages()==="hint"){let n=this._hintChildren?this._hintChildren.find(a=>a.align==="start"):null,o=this._hintChildren?this._hintChildren.find(a=>a.align==="end"):null;n?t.push(n.id):this._hintLabel&&t.push(this._hintLabelId),o&&t.push(o.id)}else this._errorChildren&&t.push(...this._errorChildren.map(n=>n.id));this._control.setDescribedByIds(t)}}_updateOutlineLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return;let t=this._floatingLabel.element;if(!(this._iconPrefixContainer||this._textPrefixContainer)){t.style.transform="";return}if(!this._isAttachedToDom()){this._needsOutlineLabelOffsetUpdate=!0;return}let n=this._iconPrefixContainer?.nativeElement,o=this._textPrefixContainer?.nativeElement,a=this._iconSuffixContainer?.nativeElement,s=this._textSuffixContainer?.nativeElement,l=n?.getBoundingClientRect().width??0,u=o?.getBoundingClientRect().width??0,f=a?.getBoundingClientRect().width??0,v=s?.getBoundingClientRect().width??0,C=this._dir.value==="rtl"?"-1":"1",D=`${l+u}px`,P=`calc(${C} * (${D} + var(--mat-mdc-form-field-label-offset-x, 0px)))`;t.style.transform=`var( --mat-mdc-form-field-label-transform, ${DH} translateX(${P}) - )`;let z=l+u+f+v;this._elementRef.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${z}px)`)}_isAttachedToDom(){let t=this._elementRef.nativeElement;if(t.getRootNode){let n=t.getRootNode();return n&&n!==t}return document.documentElement.contains(t)}};e.\u0275fac=function(n){return new(n||e)(m(q),m(he),m(Z),m(Nt),m(Ve),m(Vy,8),m(kt,8),m(se))},e.\u0275cmp=E({type:e,selectors:[["mat-form-field"]],contentQueries:function(n,o,a){if(n&1&&(KE(a,o._labelChild,Ae,5),Be(a,Ia,5),Be(a,yH,5),Be(a,ik,5),Be(a,vH,5),Be(a,YT,5)),n&2){ZE();let s;Q(s=K())&&(o._formFieldControl=s.first),Q(s=K())&&(o._prefixChildren=s),Q(s=K())&&(o._suffixChildren=s),Q(s=K())&&(o._errorChildren=s),Q(s=K())&&(o._hintChildren=s)}},viewQuery:function(n,o){if(n&1&&(ce(Y8,5),ce(Q8,5),ce(K8,5),ce(Z8,5),ce(X8,5),ce(QT,5),ce(XT,5),ce(ZT,5)),n&2){let a;Q(a=K())&&(o._textField=a.first),Q(a=K())&&(o._iconPrefixContainer=a.first),Q(a=K())&&(o._textPrefixContainer=a.first),Q(a=K())&&(o._iconSuffixContainer=a.first),Q(a=K())&&(o._textSuffixContainer=a.first),Q(a=K())&&(o._floatingLabel=a.first),Q(a=K())&&(o._notchedOutline=a.first),Q(a=K())&&(o._lineRipple=a.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(n,o){n&2&&ne("mat-mdc-form-field-label-always-float",o._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",o._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",o._hasIconSuffix)("mat-form-field-invalid",o._control.errorState)("mat-form-field-disabled",o._control.disabled)("mat-form-field-autofilled",o._control.autofilled)("mat-form-field-no-animations",o._animationMode==="NoopAnimations")("mat-form-field-appearance-fill",o.appearance=="fill")("mat-form-field-appearance-outline",o.appearance=="outline")("mat-form-field-hide-placeholder",o._hasFloatingLabel()&&!o._shouldLabelFloat())("mat-focused",o._control.focused)("mat-primary",o.color!=="accent"&&o.color!=="warn")("mat-accent",o.color==="accent")("mat-warn",o.color==="warn")("ng-untouched",o._shouldForward("untouched"))("ng-touched",o._shouldForward("touched"))("ng-pristine",o._shouldForward("pristine"))("ng-dirty",o._shouldForward("dirty"))("ng-valid",o._shouldForward("valid"))("ng-invalid",o._shouldForward("invalid"))("ng-pending",o._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],standalone:!0,features:[Ce([{provide:Ro,useExisting:e},{provide:nk,useExisting:e}]),re],ngContentSelectors:eH,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],["textSuffixContainer",""],["iconSuffixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(n,o){if(n&1){let a=A();He(J8),x(0,nH,1,1,"ng-template",null,0,fi),c(2,"div",6,1),b("click",function(l){return y(a),w(o._control.onContainerClick(l))}),x(4,oH,1,0,"div",7),c(5,"div",8),x(6,sH,2,2,"div",9)(7,lH,3,0,"div",10)(8,cH,3,0,"div",11),c(9,"div",12),x(10,uH,1,1,null,13),ae(11),d(),x(12,hH,3,0,"div",14)(13,mH,3,0,"div",15),d(),x(14,pH,1,0,"div",16),d(),c(15,"div",17),x(16,fH,2,1,"div",18)(17,_H,5,2,"div",19),d()}if(n&2){let a;h(2),ne("mdc-text-field--filled",!o._hasOutline())("mdc-text-field--outlined",o._hasOutline())("mdc-text-field--no-label",!o._hasFloatingLabel())("mdc-text-field--disabled",o._control.disabled)("mdc-text-field--invalid",o._control.errorState),h(2),De(!o._hasOutline()&&!o._control.disabled?4:-1),h(2),De(o._hasOutline()?6:-1),h(),De(o._hasIconPrefix?7:-1),h(),De(o._hasTextPrefix?8:-1),h(2),De(!o._hasOutline()||o._forceDisplayInfixLabel()?10:-1),h(2),De(o._hasTextSuffix?12:-1),h(),De(o._hasIconSuffix?13:-1),h(),De(o._hasOutline()?-1:14),h(),ne("mat-mdc-form-field-subscript-dynamic-size",o.subscriptSizing==="dynamic"),h(),De((a=o._getDisplayedMessages())==="error"?16:a==="hint"?17:-1)}},dependencies:[QT,XT,ym,ZT,YT],styles:['.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field__input{width:100%;min-width:0;border:none;border-radius:0;background:none;padding:0;-moz-appearance:none;-webkit-appearance:none;height:28px}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}.mdc-text-field__input::placeholder{opacity:0}.mdc-text-field__input::-moz-placeholder{opacity:0}.mdc-text-field__input::-webkit-input-placeholder{opacity:0}.mdc-text-field__input:-ms-input-placeholder{opacity:0}.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}.mdc-text-field--outlined .mdc-text-field__input,.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color, var(--mat-app-on-surface));caret-color:var(--mdc-filled-text-field-caret-color, var(--mat-app-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color, var(--mat-app-on-surface));caret-color:var(--mdc-outlined-text-field-caret-color, var(--mat-app-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--disabled .cdk-high-contrast-active .mdc-text-field__input{background-color:Window}.mdc-text-field--filled{height:56px;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--mdc-filled-text-field-container-shape, var(--mat-app-corner-extra-small-top));border-top-right-radius:var(--mdc-filled-text-field-container-shape, var(--mat-app-corner-extra-small-top))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color, var(--mat-app-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--outlined{height:56px;overflow:visible;padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)));padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)) + 4px);padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)))}.mdc-floating-label{position:absolute;left:0;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label{right:0;left:auto;transform-origin:right top;text-align:right}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:auto}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label{left:auto;right:4px}.mdc-text-field--filled .mdc-floating-label{left:16px;right:auto}[dir=rtl] .mdc-text-field--filled .mdc-floating-label{left:auto;right:16px}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.cdk-high-contrast-active .mdc-text-field--disabled .mdc-floating-label{z-index:1}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-filled-text-field-label-text-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-focus-label-text-color, var(--mat-app-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-filled-text-field-hover-label-text-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-filled-text-field-error-label-text-color, var(--mat-app-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-error-focus-label-text-color, var(--mat-app-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-filled-text-field-error-hover-label-text-color, var(--mat-app-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font, var(--mat-app-body-large-font));font-size:var(--mdc-filled-text-field-label-text-size, var(--mat-app-body-large-size));font-weight:var(--mdc-filled-text-field-label-text-weight, var(--mat-app-body-large-weight));letter-spacing:var(--mdc-filled-text-field-label-text-tracking, var(--mat-app-body-large-tracking))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-outlined-text-field-label-text-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-focus-label-text-color, var(--mat-app-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-hover-label-text-color, var(--mat-app-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-outlined-text-field-error-label-text-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-error-focus-label-text-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-error-hover-label-text-color, var(--mat-app-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font, var(--mat-app-body-large-font));font-size:var(--mdc-outlined-text-field-label-text-size, var(--mat-app-body-large-size));font-weight:var(--mdc-outlined-text-field-label-text-weight, var(--mat-app-body-large-weight));letter-spacing:var(--mdc-outlined-text-field-label-text-tracking, var(--mat-app-body-large-tracking))}.mdc-floating-label--float-above{cursor:auto;transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1);font-size:.75rem}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline{text-align:right}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mat-mdc-notch-piece{box-sizing:border-box;height:100%;pointer-events:none;border-top:1px solid;border-bottom:1px solid}.mdc-text-field--focused .mat-mdc-notch-piece{border-width:2px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-outline-color, var(--mat-app-outline));border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-hover-outline-color, var(--mat-app-on-surface))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-focus-outline-color, var(--mat-app-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-outline-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-hover-outline-color, var(--mat-app-on-error-container))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-focus-outline-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)))}[dir=rtl] .mdc-notched-outline__leading{border-left:none;border-right:1px solid;border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}.mdc-notched-outline__trailing{flex-grow:1;border-left:none;border-right:1px solid;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}[dir=rtl] .mdc-notched-outline__trailing{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:min(var(--mat-form-field-notch-max-width, 100%),100% - max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)))*2)}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none;--mat-form-field-notch-max-width: 100%}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1;border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color, var(--mat-app-on-surface))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color, var(--mat-app-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color, var(--mat-app-on-error-container))}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color, var(--mat-app-primary))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color, var(--mat-app-error))}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-text-field--disabled{pointer-events:none}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height);padding-top:var(--mat-form-field-filled-with-label-container-padding-top);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding);padding-bottom:var(--mat-form-field-container-vertical-padding)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color, var(--mat-app-error))}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font, var(--mat-app-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-app-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-app-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-app-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-app-body-small-weight))}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color, var(--mat-app-on-surface))}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color)}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color, var(--mat-app-on-surface-variant))}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color, var(--mat-app-primary))}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font, var(--mat-app-body-large-font));line-height:var(--mat-form-field-container-text-line-height, var(--mat-app-body-large-line-height));font-size:var(--mat-form-field-container-text-size, var(--mat-app-body-large-size));letter-spacing:var(--mat-form-field-container-text-tracking, var(--mat-app-body-large-tracking));font-weight:var(--mat-form-field-container-text-weight, var(--mat-app-body-large-weight))}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color, var(--mat-app-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color)}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color, var(--mat-app-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color)}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color, var(--mat-app-error))}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-app-on-error-container))}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-app-error))}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field-infix:has(textarea[cols]){width:auto}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::-moz-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::-webkit-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[CH.transitionMessages]},changeDetection:0});let i=e;return i})(),vs=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({imports:[pe,Ei,ip,pe]});let i=e;return i})();var SH=["trigger"],EH=["panel"],IH=[[["mat-select-trigger"]],"*"],MH=["mat-select-trigger","*"];function TH(i,e){if(i&1&&(c(0,"span",4),g(1),d()),i&2){let r=_();h(),$e(r.placeholder)}}function kH(i,e){i&1&&ae(0)}function AH(i,e){if(i&1&&(c(0,"span",11),g(1),d()),i&2){let r=_(2);h(),$e(r.triggerValue)}}function OH(i,e){if(i&1&&(c(0,"span",5),x(1,kH,1,0)(2,AH,2,1,"span",11),d()),i&2){let r=_();h(),De(r.customTrigger?1:2)}}function RH(i,e){if(i&1){let r=A();c(0,"div",12,1),b("@transformPanel.done",function(n){y(r);let o=_();return w(o._panelDoneAnimatingStream.next(n.toState))})("keydown",function(n){y(r);let o=_();return w(o._handleKeydown(n))}),ae(2,1),d()}if(i&2){let r=_();YE("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",r._getPanelTheme(),""),p("ngClass",r.panelClass)("@transformPanel","showing"),ie("id",r.id+"-panel")("aria-multiselectable",r.multiple)("aria-label",r.ariaLabel||null)("aria-labelledby",r._getPanelAriaLabelledby())}}var PH={transformPanelWrap:ui("transformPanelWrap",[St("* => void",bp("@transformPanel",[vp()],{optional:!0}))]),transformPanel:ui("transformPanel",[Lt("void",Me({opacity:0,transform:"scale(1, 0.8)"})),St("void => showing",Mt("120ms cubic-bezier(0, 0, 0.2, 1)",Me({opacity:1,transform:"scale(1, 1)"}))),St("* => void",Mt("100ms linear",Me({opacity:0})))])};var ok=0,rk=new R("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let i=k(xt);return()=>i.scrollStrategies.reposition()}});function FH(i){return()=>i.scrollStrategies.reposition()}var NH=new R("MAT_SELECT_CONFIG"),LH={provide:rk,deps:[xt],useFactory:FH},ak=new R("MatSelectTrigger"),jy=class{constructor(e,r){this.source=e,this.value=r}},bt=(()=>{let e=class e{_scrollOptionIntoView(t){let n=this.options.toArray()[t];if(n){let o=this.panel.nativeElement,a=pp(t,this.options,this.optionGroups),s=n._getHostElement();t===0&&a===1?o.scrollTop=0:o.scrollTop=fp(s.offsetTop,s.offsetHeight,o.scrollTop,o.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(t){return new jy(this,t)}get focused(){return this._focused||this._panelOpen}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(t){this._hideSingleSelectionIndicator=t,this._syncParentProperties()}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(sr.required)??!1}set required(t){this._required=t,this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){this._selectionModel,this._multiple=t}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){this._assignValue(t)&&this._onChange(t)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(t){this._errorStateTracker.matcher=t}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}get errorState(){return this._errorStateTracker.errorState}set errorState(t){this._errorStateTracker.errorState=t}constructor(t,n,o,a,s,l,u,f,v,C,D,S,P,z){this._viewportRuler=t,this._changeDetectorRef=n,this._elementRef=s,this._dir=l,this._parentFormField=v,this.ngControl=C,this._liveAnnouncer=P,this._defaultOptions=z,this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._panelOpen=!1,this._compareWith=(O,de)=>O===de,this._uid=`mat-select-${ok++}`,this._triggerAriaLabelledBy=null,this._destroy=new G,this.stateChanges=new G,this.disableAutomaticLabeling=!0,this._onChange=()=>{},this._onTouched=()=>{},this._valueId=`mat-select-value-${ok++}`,this._panelDoneAnimatingStream=new G,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._multiple=!1,this.disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this._initialized=new G,this.optionSelectionChanges=Xn(()=>{let O=this.options;return O?O.changes.pipe(Rt(O),Tt(()=>wt(...O.map(de=>de.onSelectionChange)))):this._initialized.pipe(Tt(()=>this.optionSelectionChanges))}),this.openedChange=new T,this._openedStream=this.openedChange.pipe(Ye(O=>O),ue(()=>{})),this._closedStream=this.openedChange.pipe(Ye(O=>!O),ue(()=>{})),this.selectionChange=new T,this.valueChange=new T,this._trackedModal=null,this._skipPredicate=O=>this.panelOpen?!1:O.disabled,this.ngControl&&(this.ngControl.valueAccessor=this),z?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=z.typeaheadDebounceInterval),this._errorStateTracker=new Fr(a,C,f,u,this.stateChanges),this._scrollStrategyFactory=S,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(D)||0,this.id=this.id}ngOnInit(){this._selectionModel=new Rr(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(js(),fe(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe(fe(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(fe(this._destroy)).subscribe(t=>{t.added.forEach(n=>n.select()),t.removed.forEach(n=>n.deselect())}),this.options.changes.pipe(Rt(null),fe(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let t=this._getTriggerAriaLabelledby(),n=this.ngControl;if(t!==this._triggerAriaLabelledBy){let o=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?o.setAttribute("aria-labelledby",t):o.removeAttribute("aria-labelledby")}n&&(this._previousControl!==n.control&&(this._previousControl!==void 0&&n.disabled!==null&&n.disabled!==this.disabled&&(this.disabled=n.disabled),this._previousControl=n.control),this.updateErrorState())}ngOnChanges(t){(t.disabled||t.userAriaDescribedBy)&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_applyModalPanelOwnership(){let t=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!t)return;let n=`${this.id}-panel`;this._trackedModal&&va(this._trackedModal,"aria-owns",n),Nl(t,"aria-owns",n),this._trackedModal=t}_clearFromModal(){if(!this._trackedModal)return;let t=`${this.id}-panel`;va(this._trackedModal,"aria-owns",t),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next())}writeValue(t){this._assignValue(t)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){let t=this._selectionModel.selected.map(n=>n.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){let n=t.keyCode,o=n===40||n===38||n===37||n===39,a=n===13||n===32,s=this._keyManager;if(!s.isTyping()&&a&&!Pt(t)||(this.multiple||t.altKey)&&o)t.preventDefault(),this.open();else if(!this.multiple){let l=this.selected;s.onKeydown(t);let u=this.selected;u&&l!==u&&this._liveAnnouncer.announce(u.viewValue,1e4)}}_handleOpenKeydown(t){let n=this._keyManager,o=t.keyCode,a=o===40||o===38,s=n.isTyping();if(a&&t.altKey)t.preventDefault(),this.close();else if(!s&&(o===13||o===32)&&n.activeItem&&!Pt(t))t.preventDefault(),n.activeItem._selectViaInteraction();else if(!s&&this._multiple&&o===65&&t.ctrlKey){t.preventDefault();let l=this.options.some(u=>!u.disabled&&!u.selected);this.options.forEach(u=>{u.disabled||(l?u.select():u.deselect())})}else{let l=n.activeItemIndex;n.onKeydown(t),this._multiple&&a&&t.shiftKey&&n.activeItem&&n.activeItemIndex!==l&&n.activeItem._selectViaInteraction()}}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(Ot(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(t){if(this.options.forEach(n=>n.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(n=>this._selectOptionByValue(n)),this._sortValues();else{let n=this._selectOptionByValue(t);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(t){let n=this.options.find(o=>{if(this._selectionModel.isSelected(o))return!1;try{return o.value!=null&&this._compareWith(o.value,t)}catch{return!1}});return n&&this._selectionModel.select(n),n}_assignValue(t){return t!==this._value||this._multiple&&Array.isArray(t)?(this.options&&this._setSelectionByValue(t),this._value=t,!0):!1}_getOverlayWidth(t){return this.panelWidth==="auto"?(t instanceof yd?t.elementRef:t||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let t of this.options)t._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new Rl(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){let t=wt(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(fe(t)).subscribe(n=>{this._onSelect(n.source,n.isUserInput),n.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),wt(...this.options.map(n=>n._stateChanges)).pipe(fe(t)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(t,n){let o=this._selectionModel.isSelected(t);t.value==null&&!this._multiple?(t.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(t.value)):(o!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),n&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),n&&this.focus())),o!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let t=this.options.toArray();this._selectionModel.sort((n,o)=>this.sortComparator?this.sortComparator(n,o,t):t.indexOf(n)-t.indexOf(o)),this.stateChanges.next()}}_propagateChanges(t){let n;this.multiple?n=this.selected.map(o=>o.value):n=this.selected?this.selected.value:t,this._value=n,this.valueChange.emit(n),this._onChange(n),this.selectionChange.emit(this._getChangeEvent(n)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let t=-1;for(let n=0;n0}focus(t){this._elementRef.nativeElement.focus(t)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let t=this._parentFormField?.getLabelId(),n=t?t+" ":"";return this.ariaLabelledby?n+this.ariaLabelledby:t}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let t=this._parentFormField?.getLabelId(),n=(t?t+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}_panelDoneAnimating(t){this.openedChange.emit(t)}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}};e.\u0275fac=function(n){return new(n||e)(m(fn),m(he),m(Z),m(Nr),m(q),m(Nt,8),m(Oo,8),m(gs,8),m(Ro,8),m(kn,10),vi("tabindex"),m(rk),m(dp),m(NH,8))},e.\u0275cmp=E({type:e,selectors:[["mat-select"]],contentQueries:function(n,o,a){if(n&1&&(Be(a,ak,5),Be(a,nt,5),Be(a,kd,5)),n&2){let s;Q(s=K())&&(o.customTrigger=s.first),Q(s=K())&&(o.options=s),Q(s=K())&&(o.optionGroups=s)}},viewQuery:function(n,o){if(n&1&&(ce(SH,5),ce(EH,5),ce(q0,5)),n&2){let a;Q(a=K())&&(o.trigger=a.first),Q(a=K())&&(o.panel=a.first),Q(a=K())&&(o._overlayDir=a.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(n,o){n&1&&b("keydown",function(s){return o._handleKeydown(s)})("focus",function(){return o._onFocus()})("blur",function(){return o._onBlur()}),n&2&&(ie("id",o.id)("tabindex",o.disabled?-1:o.tabIndex)("aria-controls",o.panelOpen?o.id+"-panel":null)("aria-expanded",o.panelOpen)("aria-label",o.ariaLabel||null)("aria-required",o.required.toString())("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState)("aria-activedescendant",o._getAriaActiveDescendant()),ne("mat-mdc-select-disabled",o.disabled)("mat-mdc-select-invalid",o.errorState)("mat-mdc-select-required",o.required)("mat-mdc-select-empty",o.empty)("mat-mdc-select-multiple",o.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",Y],disableRipple:[2,"disableRipple","disableRipple",Y],tabIndex:[2,"tabIndex","tabIndex",t=>t==null?0:ni(t)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",Y],placeholder:"placeholder",required:[2,"required","required",Y],multiple:[2,"multiple","multiple",Y],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",Y],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",ni],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],standalone:!0,features:[Ce([{provide:Ia,useExisting:e},{provide:Td,useExisting:e}]),ge,Qe,re],ngContentSelectors:MH,decls:11,vars:8,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"backdropClick","attach","detach","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(n,o){if(n&1){let a=A();He(IH),c(0,"div",2,0),b("click",function(){return y(a),w(o.open())}),c(3,"div",3),x(4,TH,2,1,"span",4)(5,OH,3,1,"span",5),d(),c(6,"div",6)(7,"div",7),pi(),c(8,"svg",8),I(9,"path",9),d()()()(),x(10,RH,3,9,"ng-template",10),b("backdropClick",function(){return y(a),w(o.close())})("attach",function(){return y(a),w(o._onAttached())})("detach",function(){return y(a),w(o.close())})}if(n&2){let a=we(1);h(3),ie("id",o._valueId),h(),De(o.empty?4:5),h(6),p("cdkConnectedOverlayPanelClass",o._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",o._scrollStrategy)("cdkConnectedOverlayOrigin",o._preferredOverlayOrigin||a)("cdkConnectedOverlayOpen",o.panelOpen)("cdkConnectedOverlayPositions",o._positions)("cdkConnectedOverlayWidth",o._overlayWidth)}},dependencies:[yd,q0,Sn],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-app-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-app-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-app-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-app-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-app-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-app-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-app-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-app-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-app-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color, var(--mat-app-surface-container))}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}div.mat-mdc-select-panel .mat-mdc-option{--mdc-list-list-item-container-color: var(--mat-select-panel-background-color)}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-app-on-surface-variant))}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform)}'],encapsulation:2,data:{animation:[PH.transformPanel]},changeDetection:0});let i=e;return i})(),vf=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e,selectors:[["mat-select-trigger"]],standalone:!0,features:[Ce([{provide:ak,useExisting:e}])]});let i=e;return i})(),bf=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({providers:[LH],imports:[Ei,an,jl,pe,so,vs,jl,pe]});let i=e;return i})();var VH=["tooltip"],ck=20;var dk=new R("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let i=k(xt);return()=>i.scrollStrategies.reposition({scrollThrottle:ck})}});function jH(i){return()=>i.scrollStrategies.reposition({scrollThrottle:ck})}var BH={provide:dk,deps:[xt],useFactory:jH};function zH(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var UH=new R("mat-tooltip-default-options",{providedIn:"root",factory:zH});var sk="tooltip-panel",lk=Ui({passive:!0}),HH=8,$H=8,WH=24,GH=200,lr=(()=>{let e=class e{get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(t){this._positionAtOrigin=Bn(t),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(t){let n=Bn(t);this._disabled!==n&&(this._disabled=n,n?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(t){this._showDelay=Mo(t)}get hideDelay(){return this._hideDelay}set hideDelay(t){this._hideDelay=Mo(t),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(t){let n=this._message;this._message=t!=null?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(n)}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(t,n,o,a,s,l,u,f,v,C,D,S){this._overlay=t,this._elementRef=n,this._scrollDispatcher=o,this._viewContainerRef=a,this._ngZone=s,this._platform=l,this._ariaDescriber=u,this._focusMonitor=f,this._dir=C,this._defaultOptions=D,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=qH,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._touchstartTimeout=null,this._destroyed=new G,this._injector=k(Pe),this._scrollStrategy=v,this._document=S,D&&(this._showDelay=D.showDelay,this._hideDelay=D.hideDelay,D.position&&(this.position=D.position),D.positionAtOrigin&&(this.positionAtOrigin=D.positionAtOrigin),D.touchGestures&&(this.touchGestures=D.touchGestures),D.tooltipClass&&(this.tooltipClass=D.tooltipClass)),C.change.pipe(fe(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=HH}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(fe(this._destroyed)).subscribe(t=>{t?t==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let t=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([n,o])=>{t.removeEventListener(n,o,lk)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay,n){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let o=this._createOverlay(n);this._detach(),this._portal=this._portal||new In(this._tooltipComponent,this._viewContainerRef);let a=this._tooltipInstance=o.attach(this._portal).instance;a._triggerElement=this._elementRef.nativeElement,a._mouseLeaveHideDelay=this._hideDelay,a.afterHidden().pipe(fe(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),a.show(t)}hide(t=this.hideDelay){let n=this._tooltipInstance;n&&(n.isVisible()?n.hide(t):(n._cancelPendingAnimations(),this._detach()))}toggle(t){this._isTooltipVisible()?this.hide():this.show(void 0,t)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(t){if(this._overlayRef){let a=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!t)&&a._origin instanceof q)return this._overlayRef;this._detach()}let n=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),o=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin?t||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(n);return o.positionChanges.pipe(fe(this._destroyed)).subscribe(a=>{this._updateCurrentPositionClass(a.connectionPair),this._tooltipInstance&&a.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:o,panelClass:`${this._cssClassPrefix}-${sk}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(fe(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(fe(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(fe(this._destroyed)).subscribe(a=>{this._isTooltipVisible()&&a.keyCode===27&&!Pt(a)&&(a.preventDefault(),a.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){let n=t.getConfig().positionStrategy,o=this._getOrigin(),a=this._getOverlayPosition();n.withPositions([this._addOffset(j(j({},o.main),a.main)),this._addOffset(j(j({},o.fallback),a.fallback))])}_addOffset(t){let n=$H,o=!this._dir||this._dir.value=="ltr";return t.originY==="top"?t.offsetY=-n:t.originY==="bottom"?t.offsetY=n:t.originX==="start"?t.offsetX=o?-n:n:t.originX==="end"&&(t.offsetX=o?n:-n),t}_getOrigin(){let t=!this._dir||this._dir.value=="ltr",n=this.position,o;n=="above"||n=="below"?o={originX:"center",originY:n=="above"?"top":"bottom"}:n=="before"||n=="left"&&t||n=="right"&&!t?o={originX:"start",originY:"center"}:(n=="after"||n=="right"&&t||n=="left"&&!t)&&(o={originX:"end",originY:"center"});let{x:a,y:s}=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:a,originY:s}}}_getOverlayPosition(){let t=!this._dir||this._dir.value=="ltr",n=this.position,o;n=="above"?o={overlayX:"center",overlayY:"bottom"}:n=="below"?o={overlayX:"center",overlayY:"top"}:n=="before"||n=="left"&&t||n=="right"&&!t?o={overlayX:"end",overlayY:"center"}:(n=="after"||n=="right"&&t||n=="left"&&!t)&&(o={overlayX:"start",overlayY:"center"});let{x:a,y:s}=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:a,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),ai(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,n){return this.position==="above"||this.position==="below"?n==="top"?n="bottom":n==="bottom"&&(n="top"):t==="end"?t="start":t==="start"&&(t="end"),{x:t,y:n}}_updateCurrentPositionClass(t){let{overlayY:n,originX:o,originY:a}=t,s;if(n==="center"?this._dir&&this._dir.value==="rtl"?s=o==="end"?"left":"right":s=o==="start"?"left":"right":s=n==="bottom"&&a==="top"?"above":"below",s!==this._currentPosition){let l=this._overlayRef;if(l){let u=`${this._cssClassPrefix}-${sk}-`;l.removePanelClass(u+this._currentPosition),l.addPanelClass(u+s)}this._currentPosition=s}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",t=>{this._setupPointerExitEventsIfNeeded();let n;t.x!==void 0&&t.y!==void 0&&(n=t),this.show(void 0,n)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",t=>{let n=t.targetTouches?.[0],o=n?{x:n.clientX,y:n.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let a=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,o)},this._defaultOptions.touchLongPressShowDelay??a)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",n=>{let o=n.relatedTarget;(!o||!this._overlayRef?.overlayElement.contains(o))&&this.hide()}],["wheel",n=>this._wheelListener(n)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let n=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",n],["touchcancel",n])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([n,o])=>{this._elementRef.nativeElement.addEventListener(n,o,lk)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){let n=this._document.elementFromPoint(t.clientX,t.clientY),o=this._elementRef.nativeElement;n!==o&&!o.contains(n)&&this.hide()}}_disableNativeGesturesIfNecessary(){let t=this.touchGestures;if(t!=="off"){let n=this._elementRef.nativeElement,o=n.style;(t==="on"||n.nodeName!=="INPUT"&&n.nodeName!=="TEXTAREA")&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),(t==="on"||!n.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}_syncAriaDescription(t){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,t,"tooltip"),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}};e.\u0275fac=function(n){return new(n||e)(m(xt),m(q),m(Ml),m(Ct),m(Z),m(Ve),m(cp),m(Di),m(dk),m(Nt),m(UH,8),m(se))},e.\u0275dir=L({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(n,o){n&2&&ne("mat-mdc-tooltip-disabled",o.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"],standalone:!0});let i=e;return i})(),qH=(()=>{let e=class e{constructor(t,n,o){this._changeDetectorRef=t,this._elementRef=n,this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new G,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide",this._animationsDisabled=o==="NoopAnimations"}show(t){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},t)}hide(t){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},t)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:t}){(!t||!this._triggerElement.contains(t))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let t=this._elementRef.nativeElement.getBoundingClientRect();return t.height>WH&&t.width>=GH}_handleAnimationEnd({animationName:t}){(t===this._showAnimation||t===this._hideAnimation)&&this._finalizeAnimation(t===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(t){t?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(t){let n=this._tooltip.nativeElement,o=this._showAnimation,a=this._hideAnimation;if(n.classList.remove(t?a:o),n.classList.add(t?o:a),this._isVisible!==t&&(this._isVisible=t,this._changeDetectorRef.markForCheck()),t&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let s=getComputedStyle(n);(s.getPropertyValue("animation-duration")==="0s"||s.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}t&&this._onShow(),this._animationsDisabled&&(n.classList.add("_mat-animation-noopable"),this._finalizeAnimation(t))}};e.\u0275fac=function(n){return new(n||e)(m(he),m(q),m(kt,8))},e.\u0275cmp=E({type:e,selectors:[["mat-tooltip-component"]],viewQuery:function(n,o){if(n&1&&ce(VH,7),n&2){let a;Q(a=K())&&(o._tooltip=a.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(n,o){n&1&&b("mouseleave",function(s){return o._handleMouseLeave(s)})},standalone:!0,features:[re],decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(n,o){if(n&1){let a=A();c(0,"div",1,0),b("animationend",function(l){return y(a),w(o._handleAnimationEnd(l))}),c(2,"div",2),g(3),d()()}n&2&&(ne("mdc-tooltip--multiline",o._isMultiline),p("ngClass",o.tooltipClass),h(3),$e(o.message))},dependencies:[Sn],styles:['.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mdc-plain-tooltip-container-color, var(--mat-app-inverse-surface));color:var(--mdc-plain-tooltip-supporting-text-color, var(--mat-app-inverse-on-surface));border-radius:var(--mdc-plain-tooltip-container-shape, var(--mat-app-corner-extra-small));font-family:var(--mdc-plain-tooltip-supporting-text-font, var(--mat-app-body-small-font));font-size:var(--mdc-plain-tooltip-supporting-text-size, var(--mat-app-body-small-size));font-weight:var(--mdc-plain-tooltip-supporting-text-weight, var(--mat-app-body-small-weight));line-height:var(--mdc-plain-tooltip-supporting-text-line-height, var(--mat-app-body-small-line-height));letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, var(--mat-app-body-small-tracking))}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0});let i=e;return i})();var Wl=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({providers:[BH],imports:[Ll,Ei,an,pe,pe,so]});let i=e;return i})();function YH(i,e){if(i&1&&(c(0,"mat-option",17),g(1),d()),i&2){let r=e.$implicit;p("value",r),h(),F(" ",r," ")}}function QH(i,e){if(i&1){let r=A();c(0,"mat-form-field",14)(1,"mat-select",16,0),b("selectionChange",function(n){y(r);let o=_(2);return w(o._changePageSize(n.value))}),Sr(3,YH,2,2,"mat-option",17,Rc),d(),c(5,"div",18),b("click",function(){y(r);let n=we(2);return w(n.open())}),d()()}if(i&2){let r=_(2);p("appearance",r._formFieldAppearance)("color",r.color),h(),p("value",r.pageSize)("disabled",r.disabled)("aria-labelledby",r._pageSizeLabelId)("panelClass",r.selectConfig.panelClass||"")("disableOptionCentering",r.selectConfig.disableOptionCentering),h(2),Er(r._displayedPageSizeOptions)}}function KH(i,e){if(i&1&&(c(0,"div",15),g(1),d()),i&2){let r=_(2);h(),$e(r.pageSize)}}function ZH(i,e){if(i&1&&(c(0,"div",3)(1,"div",13),g(2),d(),x(3,QH,6,7,"mat-form-field",14)(4,KH,2,1,"div",15),d()),i&2){let r=_();h(),ie("id",r._pageSizeLabelId),h(),F(" ",r._intl.itemsPerPageLabel," "),h(),De(r._displayedPageSizeOptions.length>1?3:-1),h(),De(r._displayedPageSizeOptions.length<=1?4:-1)}}function XH(i,e){if(i&1){let r=A();c(0,"button",19),b("click",function(){y(r);let n=_();return w(n.firstPage())}),pi(),c(1,"svg",8),I(2,"path",20),d()()}if(i&2){let r=_();p("matTooltip",r._intl.firstPageLabel)("matTooltipDisabled",r._previousButtonsDisabled())("matTooltipPosition","above")("disabled",r._previousButtonsDisabled()),ie("aria-label",r._intl.firstPageLabel)}}function JH(i,e){if(i&1){let r=A();c(0,"button",21),b("click",function(){y(r);let n=_();return w(n.lastPage())}),pi(),c(1,"svg",8),I(2,"path",22),d()()}if(i&2){let r=_();p("matTooltip",r._intl.lastPageLabel)("matTooltipDisabled",r._nextButtonsDisabled())("matTooltipPosition","above")("disabled",r._nextButtonsDisabled()),ie("aria-label",r._intl.lastPageLabel)}}var Ma=(()=>{let e=class e{constructor(){this.changes=new G,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(t,n,o)=>{if(o==0||n==0)return`0 of ${o}`;o=Math.max(o,0);let a=t*n,s=a{let e=class e{get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max(t||0,0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(t){this._length=t||0,this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max(t||0,0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(n=>ni(n,0)),this._updateDisplayedPageSizeOptions()}constructor(t,n,o){if(this._intl=t,this._changeDetectorRef=n,this._pageSizeLabelId=`mat-paginator-page-size-label-${o6++}`,this._isInitialized=!1,this._initializedStream=new Zn(1),this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this.hidePageSize=!1,this.showFirstLastButtons=!1,this.selectConfig={},this.disabled=!1,this.page=new T,this.initialized=this._initializedStream,this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),o){let{pageSize:a,pageSizeOptions:s,hidePageSize:l,showFirstLastButtons:u}=o;a!=null&&(this._pageSize=a),s!=null&&(this._pageSizeOptions=s),l!=null&&(this.hidePageSize=l),u!=null&&(this.showFirstLastButtons=u)}this._formFieldAppearance=o?.formFieldAppearance||"outline"}ngOnInit(){this._isInitialized=!0,this._updateDisplayedPageSizeOptions(),this._initializedStream.next()}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;let t=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(t)}previousPage(){if(!this.hasPreviousPage())return;let t=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(t)}firstPage(){if(!this.hasPreviousPage())return;let t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}lastPage(){if(!this.hasNextPage())return;let t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}hasPreviousPage(){return this.pageIndex>=1&&this.pageSize!=0}hasNextPage(){let t=this.getNumberOfPages()-1;return this.pageIndext-n),this._changeDetectorRef.markForCheck())}_emitPageEvent(t){this.page.emit({previousPageIndex:t,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}};e.\u0275fac=function(n){return new(n||e)(m(Ma),m(he),m(n6,8))},e.\u0275cmp=E({type:e,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",ni],length:[2,"length","length",ni],pageSize:[2,"pageSize","pageSize",ni],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",Y],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",Y],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",Y]},outputs:{page:"page"},exportAs:["matPaginator"],standalone:!0,features:[ge,re],decls:14,vars:14,consts:[["selectRef",""],[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],[1,"mat-mdc-paginator-page-size-label"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],[1,"mat-mdc-paginator-page-size-value"],["hideSingleSelectionIndicator","",3,"selectionChange","value","disabled","aria-labelledby","panelClass","disableOptionCentering"],[3,"value"],[1,"mat-mdc-paginator-touch-target",3,"click"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(n,o){n&1&&(c(0,"div",1)(1,"div",2),x(2,ZH,5,4,"div",3),c(3,"div",4)(4,"div",5),g(5),d(),x(6,XH,3,5,"button",6),c(7,"button",7),b("click",function(){return o.previousPage()}),pi(),c(8,"svg",8),I(9,"path",9),d()(),yr(),c(10,"button",10),b("click",function(){return o.nextPage()}),pi(),c(11,"svg",8),I(12,"path",11),d()(),x(13,JH,3,5,"button",12),d()()()),n&2&&(h(2),De(o.hidePageSize?-1:2),h(3),F(" ",o._intl.getRangeLabel(o.pageIndex,o.pageSize,o.length)," "),h(),De(o.showFirstLastButtons?6:-1),h(),p("matTooltip",o._intl.previousPageLabel)("matTooltipDisabled",o._previousButtonsDisabled())("matTooltipPosition","above")("disabled",o._previousButtonsDisabled()),ie("aria-label",o._intl.previousPageLabel),h(3),p("matTooltip",o._intl.nextPageLabel)("matTooltipDisabled",o._nextButtonsDisabled())("matTooltipPosition","above")("disabled",o._nextButtonsDisabled()),ie("aria-label",o._intl.nextPageLabel),h(3),De(o.showFirstLastButtons?13:-1))},dependencies:[_e,bt,nt,Qi,lr],styles:[".mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color, var(--mat-app-on-surface));background-color:var(--mat-paginator-container-background-color, var(--mat-app-surface));font-family:var(--mat-paginator-container-text-font, var(--mat-app-body-small-font));line-height:var(--mat-paginator-container-text-line-height, var(--mat-app-body-small-line-height));font-size:var(--mat-paginator-container-text-size, var(--mat-app-body-small-size));font-weight:var(--mat-paginator-container-text-weight, var(--mat-app-body-small-weight));letter-spacing:var(--mat-paginator-container-text-tracking, var(--mat-app-body-small-tracking));--mat-form-field-container-height:var(--mat-paginator-form-field-container-height);--mat-form-field-container-vertical-padding:var(--mat-paginator-form-field-container-vertical-padding)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size, var(--mat-app-body-small-size))}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap;width:100%;min-height:var(--mat-paginator-container-size)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:84px}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color, var(--mat-app-on-surface-variant))}.mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color)}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon,.cdk-high-contrast-active .mat-mdc-paginator-icon{fill:currentColor;fill:CanvasText}.cdk-high-contrast-active .mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}.mat-mdc-paginator-touch-target{display:var(--mat-paginator-touch-target-display);position:absolute;top:50%;left:50%;width:84px;height:48px;background-color:rgba(0,0,0,0);transform:translate(-50%, -50%);cursor:pointer}"],encapsulation:2,changeDetection:0});let i=e;return i})(),uk=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({providers:[t6],imports:[ar,bf,Wl,jr]});let i=e;return i})();var r6=["mat-sort-header",""],a6=["*"];function s6(i,e){if(i&1){let r=A();c(0,"div",2),b("@arrowPosition.start",function(){y(r);let n=_();return w(n._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){y(r);let n=_();return w(n._disableViewStateAnimation=!1)}),I(1,"div",3),c(2,"div",4),I(3,"div",5)(4,"div",6)(5,"div",7),d()()}if(i&2){let r=_();p("@arrowOpacity",r._getArrowViewState())("@arrowPosition",r._getArrowViewState())("@allowChildren",r._getArrowDirectionState()),h(2),p("@indicator",r._getArrowDirectionState()),h(),p("@leftPointer",r._getArrowDirectionState()),h(),p("@rightPointer",r._getArrowDirectionState())}}var mk=new R("MAT_SORT_DEFAULT_OPTIONS"),Br=(()=>{let e=class e{get direction(){return this._direction}set direction(t){this._direction=t}constructor(t){this._defaultOptions=t,this._initializedStream=new Zn(1),this.sortables=new Map,this._stateChanges=new G,this.start="asc",this._direction="",this.disabled=!1,this.sortChange=new T,this.initialized=this._initializedStream}register(t){this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){if(!t)return"";let n=t?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,o=l6(t.start||this.start,n),a=o.indexOf(this.direction)+1;return a>=o.length&&(a=0),o[a]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}};e.\u0275fac=function(n){return new(n||e)(m(mk,8))},e.\u0275dir=L({type:e,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",Y],disabled:[2,"matSortDisabled","disabled",Y]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],standalone:!0,features:[ge,Qe]});let i=e;return i})();function l6(i,e){let r=["asc","desc"];return i=="desc"&&r.reverse(),e||r.push(""),r}var Ta=S1.ENTERING+" "+D1.STANDARD_CURVE,Gl={indicator:ui("indicator",[Lt("active-asc, asc",Me({transform:"translateY(0px)"})),Lt("active-desc, desc",Me({transform:"translateY(10px)"})),St("active-asc <=> active-desc",Mt(Ta))]),leftPointer:ui("leftPointer",[Lt("active-asc, asc",Me({transform:"rotate(-45deg)"})),Lt("active-desc, desc",Me({transform:"rotate(45deg)"})),St("active-asc <=> active-desc",Mt(Ta))]),rightPointer:ui("rightPointer",[Lt("active-asc, asc",Me({transform:"rotate(45deg)"})),Lt("active-desc, desc",Me({transform:"rotate(-45deg)"})),St("active-asc <=> active-desc",Mt(Ta))]),arrowOpacity:ui("arrowOpacity",[Lt("desc-to-active, asc-to-active, active",Me({opacity:1})),Lt("desc-to-hint, asc-to-hint, hint",Me({opacity:.54})),Lt("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Me({opacity:0})),St("* => asc, * => desc, * => active, * => hint, * => void",Mt("0ms")),St("* <=> *",Mt(Ta))]),arrowPosition:ui("arrowPosition",[St("* => desc-to-hint, * => desc-to-active",Mt(Ta,wa([Me({transform:"translateY(-25%)"}),Me({transform:"translateY(0)"})]))),St("* => hint-to-desc, * => active-to-desc",Mt(Ta,wa([Me({transform:"translateY(0)"}),Me({transform:"translateY(25%)"})]))),St("* => asc-to-hint, * => asc-to-active",Mt(Ta,wa([Me({transform:"translateY(25%)"}),Me({transform:"translateY(0)"})]))),St("* => hint-to-asc, * => active-to-asc",Mt(Ta,wa([Me({transform:"translateY(0)"}),Me({transform:"translateY(-25%)"})]))),Lt("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Me({transform:"translateY(0)"})),Lt("hint-to-desc, active-to-desc, desc",Me({transform:"translateY(-25%)"})),Lt("hint-to-asc, active-to-asc, asc",Me({transform:"translateY(25%)"}))]),allowChildren:ui("allowChildren",[St("* <=> *",[bp("@*",vp(),{optional:!0})])])},wf=(()=>{let e=class e{constructor(){this.changes=new G}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function c6(i){return i||new wf}var d6={provide:wf,deps:[[new to,new Do,wf]],useFactory:c6},Cf=(()=>{let e=class e{get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(t){this._updateSortActionDescription(t)}constructor(t,n,o,a,s,l,u,f){this._intl=t,this._changeDetectorRef=n,this._sort=o,this._columnDef=a,this._focusMonitor=s,this._elementRef=l,this._ariaDescriber=u,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this.disabled=!1,this._sortActionDescription="Sort",f?.arrowPosition&&(this.arrowPosition=f?.arrowPosition),this._handleStateChanges()}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{let n=!!t;n!==this._showIndicatorHint&&(this._setIndicatorHintVisible(n),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe(),this._sortButton&&this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription)}_setIndicatorHintVisible(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._showIndicatorHint?this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"hint"}):this._setAnimationTransitionState({fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(t){this._viewState=t||{},this._disableViewStateAnimation&&(this._viewState={toState:t.toState})}_toggleOnInteraction(){this._sort.sort(this),(this._viewState.toState==="hint"||this._viewState.toState==="active")&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(t){!this._isDisabled()&&(t.keyCode===32||t.keyCode===13)&&(t.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){let t=this._viewState.fromState;return(t?`${t}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?this._sort.direction=="asc"?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(t){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,t)),this._sortActionDescription=t}_handleStateChanges(){this._rerenderSubscription=wt(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),(this._viewState.toState==="hint"||this._viewState.toState==="active")&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&this._viewState.toState==="active"&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}};e.\u0275fac=function(n){return new(n||e)(m(wf),m(he),m(Br,8),m("MAT_SORT_HEADER_COLUMN_DEF",8),m(Di),m(q),m(cp,8),m(mk,8))},e.\u0275cmp=E({type:e,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(n,o){n&1&&b("click",function(){return o._handleClick()})("keydown",function(s){return o._handleKeydown(s)})("mouseenter",function(){return o._setIndicatorHintVisible(!0)})("mouseleave",function(){return o._setIndicatorHintVisible(!1)}),n&2&&(ie("aria-sort",o._getAriaSortAttribute()),ne("mat-sort-header-disabled",o._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",Y],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",Y]},exportAs:["matSortHeader"],standalone:!0,features:[ge,re],attrs:r6,ngContentSelectors:a6,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[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(n,o){n&1&&(He(),c(0,"div",0)(1,"div",1),ae(2),d(),x(3,s6,6,6,"div",2),d()),n&2&&(ne("mat-sort-header-sorted",o._isSorted())("mat-sort-header-position-before",o.arrowPosition==="before"),ie("tabindex",o._isDisabled()?null:0)("role",o._isDisabled()?null:"button"),h(3),De(o._renderArrow()?3:-1))},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-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.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;color:var(--mat-sort-arrow-color, var(--mat-app-on-surface));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}"],encapsulation:2,data:{animation:[Gl.indicator,Gl.leftPointer,Gl.rightPointer,Gl.arrowOpacity,Gl.arrowPosition,Gl.allowChildren]},changeDetection:0});let i=e;return i})(),pk=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({providers:[d6],imports:[pe]});let i=e;return i})();var h6=[[["caption"]],[["colgroup"],["col"]],"*"],m6=["caption","colgroup, col","*"];function p6(i,e){i&1&&ae(0,2)}function f6(i,e){i&1&&(c(0,"thead",0),Ci(1,1),d(),c(2,"tbody",0),Ci(3,2)(4,3),d(),c(5,"tfoot",0),Ci(6,4),d())}function g6(i,e){i&1&&Ci(0,1)(1,2)(2,3)(3,4)}var Po=new R("CDK_TABLE");var Mf=(()=>{let e=class e{constructor(t){this.template=t}};e.\u0275fac=function(n){return new(n||e)(m(ct))},e.\u0275dir=L({type:e,selectors:[["","cdkCellDef",""]],standalone:!0});let i=e;return i})(),Tf=(()=>{let e=class e{constructor(t){this.template=t}};e.\u0275fac=function(n){return new(n||e)(m(ct))},e.\u0275dir=L({type:e,selectors:[["","cdkHeaderCellDef",""]],standalone:!0});let i=e;return i})(),vk=(()=>{let e=class e{constructor(t){this.template=t}};e.\u0275fac=function(n){return new(n||e)(m(ct))},e.\u0275dir=L({type:e,selectors:[["","cdkFooterCellDef",""]],standalone:!0});let i=e;return i})(),ql=(()=>{let e=class e{get name(){return this._name}set name(t){this._setNameInput(t)}get sticky(){return this._sticky}set sticky(t){t!==this._sticky&&(this._sticky=t,this._hasStickyChanged=!0)}get stickyEnd(){return this._stickyEnd}set stickyEnd(t){t!==this._stickyEnd&&(this._stickyEnd=t,this._hasStickyChanged=!0)}constructor(t){this._table=t,this._hasStickyChanged=!1,this._sticky=!1,this._stickyEnd=!1}hasStickyChanged(){let t=this._hasStickyChanged;return this.resetStickyChanged(),t}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(t){t&&(this._name=t,this.cssClassFriendlyName=t.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}};e.\u0275fac=function(n){return new(n||e)(m(Po,8))},e.\u0275dir=L({type:e,selectors:[["","cdkColumnDef",""]],contentQueries:function(n,o,a){if(n&1&&(Be(a,Mf,5),Be(a,Tf,5),Be(a,vk,5)),n&2){let s;Q(s=K())&&(o.cell=s.first),Q(s=K())&&(o.headerCell=s.first),Q(s=K())&&(o.footerCell=s.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",Y],stickyEnd:[2,"stickyEnd","stickyEnd",Y]},standalone:!0,features:[Ce([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),ge]});let i=e;return i})(),Df=class{constructor(e,r){r.nativeElement.classList.add(...e._columnCssClassName)}},bk=(()=>{let e=class e extends Df{constructor(t,n){super(t,n)}};e.\u0275fac=function(n){return new(n||e)(m(ql),m(q))},e.\u0275dir=L({type:e,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],standalone:!0,features:[be]});let i=e;return i})();var yk=(()=>{let e=class e extends Df{constructor(t,n){super(t,n);let o=t._table?._getCellRole();o&&n.nativeElement.setAttribute("role",o)}};e.\u0275fac=function(n){return new(n||e)(m(ql),m(q))},e.\u0275dir=L({type:e,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],standalone:!0,features:[be]});let i=e;return i})(),Sf=class{constructor(){this.tasks=[],this.endTasks=[]}},Ef=new R("_COALESCED_STYLE_SCHEDULER"),zy=(()=>{let e=class e{constructor(t){this._currentSchedule=null,this._ngZone=k(Z)}schedule(t){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(t)}scheduleEnd(t){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(t)}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new Sf,this._ngZone.runOutsideAngular(()=>queueMicrotask(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){let t=this._currentSchedule;this._currentSchedule=new Sf;for(let n of t.tasks)n();for(let n of t.endTasks)n()}this._currentSchedule=null})))}};e.\u0275fac=function(n){return new(n||e)(M(Z))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();var Uy=(()=>{let e=class e{constructor(t,n){this.template=t,this._differs=n}ngOnChanges(t){if(!this._columnsDiffer){let n=t.columns&&t.columns.currentValue||[];this._columnsDiffer=this._differs.find(n).create(),this._columnsDiffer.diff(n)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(t){return this instanceof Wd?t.headerCell.template:this instanceof Hy?t.footerCell.template:t.cell.template}};e.\u0275fac=function(n){return new(n||e)(m(ct),m(Xo))},e.\u0275dir=L({type:e,features:[Qe]});let i=e;return i})(),Wd=(()=>{let e=class e extends Uy{get sticky(){return this._sticky}set sticky(t){t!==this._sticky&&(this._sticky=t,this._hasStickyChanged=!0)}constructor(t,n,o){super(t,n),this._table=o,this._hasStickyChanged=!1,this._sticky=!1}ngOnChanges(t){super.ngOnChanges(t)}hasStickyChanged(){let t=this._hasStickyChanged;return this.resetStickyChanged(),t}resetStickyChanged(){this._hasStickyChanged=!1}};e.\u0275fac=function(n){return new(n||e)(m(ct),m(Xo),m(Po,8))},e.\u0275dir=L({type:e,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",Y]},standalone:!0,features:[ge,be,Qe]});let i=e;return i})(),Hy=(()=>{let e=class e extends Uy{get sticky(){return this._sticky}set sticky(t){t!==this._sticky&&(this._sticky=t,this._hasStickyChanged=!0)}constructor(t,n,o){super(t,n),this._table=o,this._hasStickyChanged=!1,this._sticky=!1}ngOnChanges(t){super.ngOnChanges(t)}hasStickyChanged(){let t=this._hasStickyChanged;return this.resetStickyChanged(),t}resetStickyChanged(){this._hasStickyChanged=!1}};e.\u0275fac=function(n){return new(n||e)(m(ct),m(Xo),m(Po,8))},e.\u0275dir=L({type:e,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",Y]},standalone:!0,features:[ge,be,Qe]});let i=e;return i})(),kf=(()=>{let e=class e extends Uy{constructor(t,n,o){super(t,n),this._table=o}};e.\u0275fac=function(n){return new(n||e)(m(ct),m(Xo),m(Po,8))},e.\u0275dir=L({type:e,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},standalone:!0,features:[be]});let i=e;return i})(),bs=(()=>{let e=class e{constructor(t){this._viewContainer=t,e.mostRecentCellOutlet=this}ngOnDestroy(){e.mostRecentCellOutlet===this&&(e.mostRecentCellOutlet=null)}};e.mostRecentCellOutlet=null,e.\u0275fac=function(n){return new(n||e)(m(Ct))},e.\u0275dir=L({type:e,selectors:[["","cdkCellOutlet",""]],standalone:!0});let i=e;return i})(),$y=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=E({type:e,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],standalone:!0,features:[re],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Ci(0,0)},dependencies:[bs],encapsulation:2});let i=e;return i})();var Wy=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=E({type:e,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],standalone:!0,features:[re],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Ci(0,0)},dependencies:[bs],encapsulation:2});let i=e;return i})(),wk=(()=>{let e=class e{constructor(t){this.templateRef=t,this._contentClassName="cdk-no-data-row"}};e.\u0275fac=function(n){return new(n||e)(m(ct))},e.\u0275dir=L({type:e,selectors:[["ng-template","cdkNoDataRow",""]],standalone:!0});let i=e;return i})(),gk=["top","bottom","left","right"],By=class{constructor(e,r,t,n,o=!0,a=!0,s){this._isNativeHtmlTable=e,this._stickCellCss=r,this.direction=t,this._coalescedStyleScheduler=n,this._isBrowser=o,this._needsPositionStickyOnElement=a,this._positionListener=s,this._elemSizeCache=new WeakMap,this._resizeObserver=globalThis?.ResizeObserver?new globalThis.ResizeObserver(l=>this._updateCachedSizes(l)):null,this._updatedStickyColumnsParamsToReplay=[],this._stickyColumnsReplayTimeout=null,this._cachedCellWidths=[],this._borderCellCss={top:`${r}-border-elem-top`,bottom:`${r}-border-elem-bottom`,left:`${r}-border-elem-left`,right:`${r}-border-elem-right`}}clearStickyPositioning(e,r){(r.includes("left")||r.includes("right"))&&this._removeFromStickyColumnReplayQueue(e);let t=[];for(let n of e)if(n.nodeType===n.ELEMENT_NODE){t.push(n);for(let o=0;o{for(let n of t)this._removeStickyStyle(n,r)})}updateStickyColumns(e,r,t,n=!0,o=!0){if(o&&this._updateStickyColumnReplayQueue({rows:[...e],stickyStartStates:[...r],stickyEndStates:[...t]}),!e.length||!this._isBrowser||!(r.some(a=>a)||t.some(a=>a))){this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]}));return}this._coalescedStyleScheduler.schedule(()=>{let a=e[0],s=a.children.length,l=this._getCellWidths(a,n),u=this._getStickyStartColumnPositions(l,r),f=this._getStickyEndColumnPositions(l,t),v=r.lastIndexOf(!0),C=t.indexOf(!0),D=this.direction==="rtl",S=D?"right":"left",P=D?"left":"right";for(let z of e)for(let O=0;Or[O]?z:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:C===-1?[]:l.slice(C).map((z,O)=>t[O+C]?z:null).reverse()}))})}stickRows(e,r,t){this._isBrowser&&this._coalescedStyleScheduler.schedule(()=>{let n=t==="bottom"?e.slice().reverse():e,o=t==="bottom"?r.slice().reverse():r,a=[],s=[],l=[];for(let f=0,v=0;f{let t=e.querySelector("tfoot");t&&(r.some(n=>!n)?this._removeStickyStyle(t,["bottom"]):this._addStickyStyle(t,"bottom",0,!1))})}_removeStickyStyle(e,r){for(let n of r)e.style[n]="",e.classList.remove(this._borderCellCss[n]);gk.some(n=>r.indexOf(n)===-1&&e.style[n])?e.style.zIndex=this._getCalculatedZIndex(e):(e.style.zIndex="",this._needsPositionStickyOnElement&&(e.style.position=""),e.classList.remove(this._stickCellCss))}_addStickyStyle(e,r,t,n){e.classList.add(this._stickCellCss),n&&e.classList.add(this._borderCellCss[r]),e.style[r]=`${t}px`,e.style.zIndex=this._getCalculatedZIndex(e),this._needsPositionStickyOnElement&&(e.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(e){let r={top:100,bottom:10,left:1,right:1},t=0;for(let n of gk)e.style[n]&&(t+=r[n]);return t?`${t}`:""}_getCellWidths(e,r=!0){if(!r&&this._cachedCellWidths.length)return this._cachedCellWidths;let t=[],n=e.children;for(let o=0;o0;o--)r[o]&&(t[o]=n,n+=e[o]);return t}_retrieveElementSize(e){let r=this._elemSizeCache.get(e);if(r)return r;let t=e.getBoundingClientRect(),n={width:t.width,height:t.height};return this._resizeObserver&&(this._elemSizeCache.set(e,n),this._resizeObserver.observe(e,{box:"border-box"})),n}_updateStickyColumnReplayQueue(e){this._removeFromStickyColumnReplayQueue(e.rows),!this._stickyColumnsReplayTimeout&&this._updatedStickyColumnsParamsToReplay.push(e)}_removeFromStickyColumnReplayQueue(e){let r=new Set(e);for(let t of this._updatedStickyColumnsParamsToReplay)t.rows=t.rows.filter(n=>!r.has(n));this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(t=>!!t.rows.length)}_updateCachedSizes(e){let r=!1;for(let t of e){let n=t.borderBoxSize?.length?{width:t.borderBoxSize[0].inlineSize,height:t.borderBoxSize[0].blockSize}:{width:t.contentRect.width,height:t.contentRect.height};n.width!==this._elemSizeCache.get(t.target)?.width&&_6(t.target)&&(r=!0),this._elemSizeCache.set(t.target,n)}r&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(()=>{for(let t of this._updatedStickyColumnsParamsToReplay)this.updateStickyColumns(t.rows,t.stickyStartStates,t.stickyEndStates,!0,!1);this._updatedStickyColumnsParamsToReplay=[],this._stickyColumnsReplayTimeout=null},0))}};function _6(i){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(e=>i.classList.contains(e))}var If=new R("CDK_SPL");var Gy=(()=>{let e=class e{constructor(t,n){this.viewContainer=t,this.elementRef=n;let o=k(Po);o._rowOutlet=this,o._outletAssigned()}};e.\u0275fac=function(n){return new(n||e)(m(Ct),m(q))},e.\u0275dir=L({type:e,selectors:[["","rowOutlet",""]],standalone:!0});let i=e;return i})(),qy=(()=>{let e=class e{constructor(t,n){this.viewContainer=t,this.elementRef=n;let o=k(Po);o._headerRowOutlet=this,o._outletAssigned()}};e.\u0275fac=function(n){return new(n||e)(m(Ct),m(q))},e.\u0275dir=L({type:e,selectors:[["","headerRowOutlet",""]],standalone:!0});let i=e;return i})(),Yy=(()=>{let e=class e{constructor(t,n){this.viewContainer=t,this.elementRef=n;let o=k(Po);o._footerRowOutlet=this,o._outletAssigned()}};e.\u0275fac=function(n){return new(n||e)(m(Ct),m(q))},e.\u0275dir=L({type:e,selectors:[["","footerRowOutlet",""]],standalone:!0});let i=e;return i})(),Qy=(()=>{let e=class e{constructor(t,n){this.viewContainer=t,this.elementRef=n;let o=k(Po);o._noDataRowOutlet=this,o._outletAssigned()}};e.\u0275fac=function(n){return new(n||e)(m(Ct),m(q))},e.\u0275dir=L({type:e,selectors:[["","noDataRowOutlet",""]],standalone:!0});let i=e;return i})();var Ky=(()=>{let e=class e{_getCellRole(){if(this._cellRoleInternal===void 0){let t=this._elementRef.nativeElement.getAttribute("role"),n=t==="grid"||t==="treegrid"?"gridcell":"cell";this._cellRoleInternal=this._isNativeHtmlTable&&n==="cell"?null:n}return this._cellRoleInternal}get trackBy(){return this._trackByFn}set trackBy(t){this._trackByFn=t}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(t){this._multiTemplateDataRows=t,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(t){this._fixedLayout=t,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(t,n,o,a,s,l,u,f,v,C,D,S){this._differs=t,this._changeDetectorRef=n,this._elementRef=o,this._dir=s,this._platform=u,this._viewRepeater=f,this._coalescedStyleScheduler=v,this._viewportRuler=C,this._stickyPositioningListener=D,this._onDestroy=new G,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._hasAllOutlets=!1,this._hasInitialized=!1,this._cellRoleInternal=void 0,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new T,this.viewChange=new Gt({start:0,end:Number.MAX_VALUE}),this._injector=k(Pe),a||o.nativeElement.setAttribute("role","table"),this._document=l,this._isServer=!u.isBrowser,this._isNativeHtmlTable=o.nativeElement.nodeName==="TABLE"}ngOnInit(){this._setupStickyStyler(),this._dataDiffer=this._differs.find([]).create((t,n)=>this.trackBy?this.trackBy(n.dataIndex,n.data):n),this._viewportRuler.change().pipe(fe(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}ngOnDestroy(){[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(t=>{t?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),ep(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();let t=this._dataDiffer.diff(this._renderRows);if(!t){this._updateNoDataRow(),this.contentChanged.next();return}let n=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(t,n,(o,a,s)=>this._getEmbeddedViewArgs(o.item,s),o=>o.item.data,o=>{o.operation===El.INSERTED&&o.context&&this._renderCellTemplateForItem(o.record.item.rowDef,o.context)}),this._updateRowIndexContext(),t.forEachIdentityChange(o=>{let a=n.get(o.currentIndex);a.context.$implicit=o.item.data}),this._updateNoDataRow(),ai(()=>{this.updateStickyColumnStyles()},{injector:this._injector}),this.contentChanged.next()}addColumnDef(t){this._customColumnDefs.add(t)}removeColumnDef(t){this._customColumnDefs.delete(t)}addRowDef(t){this._customRowDefs.add(t)}removeRowDef(t){this._customRowDefs.delete(t)}addHeaderRowDef(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}removeHeaderRowDef(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}addFooterRowDef(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}removeFooterRowDef(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}setNoDataRow(t){this._customNoDataRow=t}updateStickyHeaderRowStyles(){let t=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){let o=_k(this._headerRowOutlet,"thead");o&&(o.style.display=t.length?"":"none")}let n=this._headerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,n,"top"),this._headerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyFooterRowStyles(){let t=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let o=_k(this._footerRowOutlet,"tfoot");o&&(o.style.display=t.length?"":"none")}let n=this._footerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyColumnStyles(){let t=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),o=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...t,...n,...o],["left","right"]),this._stickyColumnStylesNeedReset=!1),t.forEach((a,s)=>{this._addStickyColumnStyles([a],this._headerRowDefs[s])}),this._rowDefs.forEach(a=>{let s=[];for(let l=0;l{this._addStickyColumnStyles([a],this._footerRowDefs[s])}),Array.from(this._columnDefsByName.values()).forEach(a=>a.resetStickyChanged())}_outletAssigned(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=!0,this._canRender()&&this._render())}_canRender(){return this._hasAllOutlets&&this._hasInitialized}_render(){this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&this._rowDefs.length;let n=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||n,this._forceRecalculateCellWidths=n,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()}_getAllRenderRows(){let t=[],n=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let o=0;o{let l=o&&o.has(s)?o.get(s):[];if(l.length){let u=l.shift();return u.dataIndex=n,u}else return{data:t,rowDef:s,dataIndex:n}})}_cacheColumnDefs(){this._columnDefsByName.clear(),xf(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(n=>{this._columnDefsByName.has(n.name),this._columnDefsByName.set(n.name,n)})}_cacheRowDefs(){this._headerRowDefs=xf(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=xf(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=xf(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let t=this._rowDefs.filter(n=>!n.when);!this.multiTemplateDataRows&&t.length>1,this._defaultRowDef=t[0]}_renderUpdatedColumns(){let t=(s,l)=>s||!!l.getColumnsDiff(),n=this._rowDefs.reduce(t,!1);n&&this._forceRenderDataRows();let o=this._headerRowDefs.reduce(t,!1);o&&this._forceRenderHeaderRows();let a=this._footerRowDefs.reduce(t,!1);return a&&this._forceRenderFooterRows(),n||o||a}_switchDataSource(t){this._data=[],ep(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=t}_observeRenderChanges(){if(!this.dataSource)return;let t;ep(this.dataSource)?t=this.dataSource.connect(this):Gr(this.dataSource)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=oe(this.dataSource)),this._renderChangeSubscription=t.pipe(fe(this._onDestroy)).subscribe(n=>{this._data=n||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((t,n)=>this._renderRow(this._headerRowOutlet,t,n)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((t,n)=>this._renderRow(this._footerRowOutlet,t,n)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(t,n){let o=Array.from(n.columns||[]).map(l=>{let u=this._columnDefsByName.get(l);return u}),a=o.map(l=>l.sticky),s=o.map(l=>l.stickyEnd);this._stickyStyler.updateStickyColumns(t,a,s,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(t){let n=[];for(let o=0;o!a.when||a.when(n,t));else{let a=this._rowDefs.find(s=>s.when&&s.when(n,t))||this._defaultRowDef;a&&o.push(a)}return o.length,o}_getEmbeddedViewArgs(t,n){let o=t.rowDef,a={$implicit:t.data};return{templateRef:o.template,context:a,index:n}}_renderRow(t,n,o,a={}){let s=t.viewContainer.createEmbeddedView(n.template,a,o);return this._renderCellTemplateForItem(n,a),s}_renderCellTemplateForItem(t,n){for(let o of this._getCellTemplates(t))bs.mostRecentCellOutlet&&bs.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,n);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let t=this._rowOutlet.viewContainer;for(let n=0,o=t.length;n{let o=this._columnDefsByName.get(n);return t.extractCellTemplate(o)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let t=(n,o)=>n||o.hasStickyChanged();this._headerRowDefs.reduce(t,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(t,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(t,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){let t=this._dir?this._dir.value:"ltr";this._stickyStyler=new By(this._isNativeHtmlTable,this.stickyCssClass,t,this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:oe()).pipe(fe(this._onDestroy)).subscribe(n=>{this._stickyStyler.direction=n,this.updateStickyColumnStyles()})}_getOwnDefs(t){return t.filter(n=>!n._table||n._table===this)}_updateNoDataRow(){let t=this._customNoDataRow||this._noDataRow;if(!t)return;let n=this._rowOutlet.viewContainer.length===0;if(n===this._isShowingNoDataRow)return;let o=this._noDataRowOutlet.viewContainer;if(n){let a=o.createEmbeddedView(t.templateRef),s=a.rootNodes[0];a.rootNodes.length===1&&s?.nodeType===this._document.ELEMENT_NODE&&(s.setAttribute("role","row"),s.classList.add(t._contentClassName))}else o.clear();this._isShowingNoDataRow=n,this._changeDetectorRef.markForCheck()}};e.\u0275fac=function(n){return new(n||e)(m(Xo),m(he),m(q),vi("role"),m(Nt,8),m(se),m(Ve),m(fd),m(Ef),m(fn),m(If,12),m(Z,8))},e.\u0275cmp=E({type:e,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(n,o,a){if(n&1&&(Be(a,wk,5),Be(a,ql,5),Be(a,kf,5),Be(a,Wd,5),Be(a,Hy,5)),n&2){let s;Q(s=K())&&(o._noDataRow=s.first),Q(s=K())&&(o._contentColumnDefs=s),Q(s=K())&&(o._contentRowDefs=s),Q(s=K())&&(o._contentHeaderRowDefs=s),Q(s=K())&&(o._contentFooterRowDefs=s)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(n,o){n&2&&ne("cdk-table-fixed-layout",o.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",Y],fixedLayout:[2,"fixedLayout","fixedLayout",Y]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],standalone:!0,features:[Ce([{provide:Po,useExisting:e},{provide:fd,useClass:Il},{provide:Ef,useClass:zy},{provide:If,useValue:null}]),ge,re],ngContentSelectors:m6,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,o){n&1&&(He(h6),ae(0),ae(1,1),x(2,p6,1,0)(3,f6,7,0)(4,g6,4,0)),n&2&&(h(2),De(o._isServer?2:-1),h(),De(o._isNativeHtmlTable?3:4))},dependencies:[qy,Gy,Qy,Yy],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2});let i=e;return i})();function xf(i,e){return i.concat(Array.from(e))}function _k(i,e){let r=e.toUpperCase(),t=i.viewContainer.element.nativeElement;for(;t;){let n=t.nodeType===1?t.nodeName:null;if(n===r)return t;if(n==="TABLE")break;t=t.parentNode}return null}var Ck=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({imports:[_d]});let i=e;return i})();var v6=[[["caption"]],[["colgroup"],["col"]],"*"],b6=["caption","colgroup, col","*"];function y6(i,e){i&1&&ae(0,2)}function w6(i,e){i&1&&(c(0,"thead",0),Ci(1,1),d(),c(2,"tbody",2),Ci(3,3)(4,4),d(),c(5,"tfoot",0),Ci(6,5),d())}function C6(i,e){i&1&&Ci(0,1)(1,3)(2,4)(3,5)}var Af=(()=>{let e=class e extends Ky{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=jt(e)))(o||e)}})(),e.\u0275cmp=E({type:e,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(n,o){n&2&&ne("mdc-table-fixed-layout",o.fixedLayout)},exportAs:["matTable"],standalone:!0,features:[Ce([{provide:Ky,useExisting:e},{provide:Po,useExisting:e},{provide:Ef,useClass:zy},{provide:fd,useClass:Il},{provide:If,useValue:null}]),be,re],ngContentSelectors:b6,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,o){n&1&&(He(v6),ae(0),ae(1,1),x(2,y6,1,0)(3,w6,7,0)(4,C6,4,0)),n&2&&(h(2),De(o._isServer?2:-1),h(),De(o._isNativeHtmlTable?3:4))},dependencies:[qy,Gy,Qy,Yy],styles:[".mat-mdc-table-sticky{position:sticky !important}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table{min-width:100%;border:0;border-spacing:0;table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color, var(--mat-app-surface))}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell{text-align:right}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, var(--mat-app-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-table-header-headline-font, var(--mat-app-title-small-font, Roboto, sans-serif));line-height:var(--mat-table-header-headline-line-height, var(--mat-app-title-small-line-height));font-size:var(--mat-table-header-headline-size, var(--mat-app-title-small-size, 14px));font-weight:var(--mat-table-header-headline-weight, var(--mat-app-title-small-weight, 500))}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, var(--mat-app-on-surface, rgba(0, 0, 0, 0.87)))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, var(--mat-app-body-medium-font, Roboto, sans-serif));line-height:var(--mat-table-row-item-label-text-line-height, var(--mat-app-body-medium-line-height));font-size:var(--mat-table-row-item-label-text-size, var(--mat-app-body-medium-size, 14px));font-weight:var(--mat-table-row-item-label-text-weight, var(--mat-app-body-medium-weight))}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, var(--mat-app-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-table-footer-supporting-text-font, var(--mat-app-body-medium-font, Roboto, sans-serif));line-height:var(--mat-table-footer-supporting-text-line-height, var(--mat-app-body-medium-line-height));font-size:var(--mat-table-footer-supporting-text-size, var(--mat-app-body-medium-size, 14px));font-weight:var(--mat-table-footer-supporting-text-weight, var(--mat-app-body-medium-weight));letter-spacing:var(--mat-table-footer-supporting-text-tracking, var(--mat-app-body-medium-tracking))}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, var(--mat-app-outline, rgba(0, 0, 0, 0.12)));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking, var(--mat-app-title-small-tracking));font-weight:inherit;line-height:inherit;box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mat-mdc-header-cell{text-align:right}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, var(--mat-app-outline, rgba(0, 0, 0, 0.12)));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking, var(--mat-app-body-medium-tracking));line-height:inherit}.mdc-data-table__row:last-child .mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking, var(--mat-app-body-medium-tracking))}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"],encapsulation:2});let i=e;return i})(),Of=(()=>{let e=class e extends Mf{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=jt(e)))(o||e)}})(),e.\u0275dir=L({type:e,selectors:[["","matCellDef",""]],standalone:!0,features:[Ce([{provide:Mf,useExisting:e}]),be]});let i=e;return i})(),Rf=(()=>{let e=class e extends Tf{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=jt(e)))(o||e)}})(),e.\u0275dir=L({type:e,selectors:[["","matHeaderCellDef",""]],standalone:!0,features:[Ce([{provide:Tf,useExisting:e}]),be]});let i=e;return i})();var Pf=(()=>{let e=class e extends ql{get name(){return this._name}set name(t){this._setNameInput(t)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=jt(e)))(o||e)}})(),e.\u0275dir=L({type:e,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},standalone:!0,features:[Ce([{provide:ql,useExisting:e},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),be]});let i=e;return i})(),Ff=(()=>{let e=class e extends bk{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=jt(e)))(o||e)}})(),e.\u0275dir=L({type:e,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],standalone:!0,features:[be]});let i=e;return i})();var Nf=(()=>{let e=class e extends yk{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=jt(e)))(o||e)}})(),e.\u0275dir=L({type:e,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],standalone:!0,features:[be]});let i=e;return i})();var Lf=(()=>{let e=class e extends Wd{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=jt(e)))(o||e)}})(),e.\u0275dir=L({type:e,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",Y]},standalone:!0,features:[Ce([{provide:Wd,useExisting:e}]),ge,be]});let i=e;return i})();var Vf=(()=>{let e=class e extends kf{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=jt(e)))(o||e)}})(),e.\u0275dir=L({type:e,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},standalone:!0,features:[Ce([{provide:kf,useExisting:e}]),be]});let i=e;return i})(),jf=(()=>{let e=class e extends $y{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=jt(e)))(o||e)}})(),e.\u0275cmp=E({type:e,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],standalone:!0,features:[Ce([{provide:$y,useExisting:e}]),be,re],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Ci(0,0)},dependencies:[bs],encapsulation:2});let i=e;return i})();var Bf=(()=>{let e=class e extends Wy{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=jt(e)))(o||e)}})(),e.\u0275cmp=E({type:e,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],standalone:!0,features:[Ce([{provide:Wy,useExisting:e}]),be,re],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Ci(0,0)},dependencies:[bs],encapsulation:2});let i=e;return i})();var xk=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({imports:[pe,Ck,pe]});let i=e;return i})(),x6=9007199254740991,Yl=class extends Jm{get data(){return this._data.value}set data(e){e=Array.isArray(e)?e:[],this._data.next(e),this._renderChangesSubscription||this._filterData(e)}get filter(){return this._filter.value}set filter(e){this._filter.next(e),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(e){this._sort=e,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(e){this._paginator=e,this._updateChangeSubscription()}constructor(e=[]){super(),this._renderData=new Gt([]),this._filter=new Gt(""),this._internalPageChanges=new G,this._renderChangesSubscription=null,this.sortingDataAccessor=(r,t)=>{let n=r[t];if(N0(n)){let o=Number(n);return o{let n=t.active,o=t.direction;return!n||o==""?r:r.sort((a,s)=>{let l=this.sortingDataAccessor(a,n),u=this.sortingDataAccessor(s,n),f=typeof l,v=typeof u;f!==v&&(f==="number"&&(l+=""),v==="number"&&(u+=""));let C=0;return l!=null&&u!=null?l>u?C=1:l{let n=Object.keys(r).reduce((a,s)=>a+r[s]+"\u25EC","").toLowerCase(),o=t.trim().toLowerCase();return n.indexOf(o)!=-1},this._data=new Gt(e),this._updateChangeSubscription()}_updateChangeSubscription(){let e=this._sort?wt(this._sort.sortChange,this._sort.initialized):oe(null),r=this._paginator?wt(this._paginator.page,this._internalPageChanges,this._paginator.initialized):oe(null),t=this._data,n=Rn([t,this._filter]).pipe(ue(([s])=>this._filterData(s))),o=Rn([n,e]).pipe(ue(([s])=>this._orderData(s))),a=Rn([o,r]).pipe(ue(([s])=>this._pageData(s)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=a.subscribe(s=>this._renderData.next(s))}_filterData(e){return this.filteredData=this.filter==null||this.filter===""?e:e.filter(r=>this.filterPredicate(r,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(e){return this.sort?this.sortData(e.slice(),this.sort):e}_pageData(e){if(!this.paginator)return e;let r=this.paginator.pageIndex*this.paginator.pageSize;return e.slice(r,r+this.paginator.pageSize)}_updatePaginator(e){Promise.resolve().then(()=>{let r=this.paginator;if(r&&(r.length=e,r.pageIndex>0)){let t=Math.ceil(r.length/r.pageSize)-1||0,n=Math.min(r.pageIndex,t);n!==r.pageIndex&&(r.pageIndex=n,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}};var S6=["input"],E6=["label"],I6=["*"],M6=new R("mat-checkbox-default-options",{providedIn:"root",factory:Ek});function Ek(){return{color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1}}var ln=function(i){return i[i.Init=0]="Init",i[i.Checked=1]="Checked",i[i.Unchecked=2]="Unchecked",i[i.Indeterminate=3]="Indeterminate",i}(ln||{}),T6={provide:vn,useExisting:Xt(()=>zf),multi:!0},Zy=class{},k6=0,Sk=Ek(),zf=(()=>{let e=class e{focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(t){let n=new Zy;return n.source=this,n.checked=t,n}_getAnimationTargetElement(){return this._inputElement?.nativeElement}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(t,n,o,a,s,l){this._elementRef=t,this._changeDetectorRef=n,this._ngZone=o,this._animationMode=s,this._options=l,this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"},this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new T,this.indeterminateChange=new T,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=ln.Init,this._controlValueAccessorChangeFn=()=>{},this._validatorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||Sk,this.color=this._options.color||Sk.color,this.tabIndex=parseInt(a)||0,this.id=this._uniqueId=`mat-mdc-checkbox-${++k6}`,this.disabledInteractive=l?.disabledInteractive??!1}ngOnChanges(t){t.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(t){let n=t!=this._indeterminate;this._indeterminate=t,n&&(this._indeterminate?this._transitionCheckState(ln.Indeterminate):this._transitionCheckState(this.checked?ln.Checked:ln.Unchecked),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(t){this.checked=!!t}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}validate(t){return this.required&&t.value!==!0?{required:!0}:null}registerOnValidatorChange(t){this._validatorChangeFn=t}_transitionCheckState(t){let n=this._currentCheckState,o=this._getAnimationTargetElement();if(!(n===t||!o)&&(this._currentAnimationClass&&o.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(n,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){o.classList.add(this._currentAnimationClass);let a=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{o.classList.remove(a)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){let t=this._options?.clickAction;!this.disabled&&t!=="noop"?(this.indeterminate&&t!=="check"&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?ln.Checked:ln.Unchecked),this._emitChangeEvent()):(this.disabled&&this.disabledInteractive||!this.disabled&&t==="noop")&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate)}_onInteractionEvent(t){t.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(t,n){if(this._animationMode==="NoopAnimations")return"";switch(t){case ln.Init:if(n===ln.Checked)return this._animationClasses.uncheckedToChecked;if(n==ln.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case ln.Unchecked:return n===ln.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case ln.Checked:return n===ln.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case ln.Indeterminate:return n===ln.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(t){let n=this._inputElement;n&&(n.nativeElement.indeterminate=t)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(t){t.target&&this._labelElement.nativeElement.contains(t.target)&&t.stopPropagation()}};e.\u0275fac=function(n){return new(n||e)(m(q),m(he),m(Z),vi("tabindex"),m(kt,8),m(M6,8))},e.\u0275cmp=E({type:e,selectors:[["mat-checkbox"]],viewQuery:function(n,o){if(n&1&&(ce(S6,5),ce(E6,5),ce(Tn,5)),n&2){let a;Q(a=K())&&(o._inputElement=a.first),Q(a=K())&&(o._labelElement=a.first),Q(a=K())&&(o.ripple=a.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(n,o){n&2&&(Si("id",o.id),ie("tabindex",null)("aria-label",null)("aria-labelledby",null),Yt(o.color?"mat-"+o.color:"mat-accent"),ne("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mdc-checkbox--disabled",o.disabled)("mat-mdc-checkbox-disabled",o.disabled)("mat-mdc-checkbox-checked",o.checked)("mat-mdc-checkbox-disabled-interactive",o.disabledInteractive))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],id:"id",required:[2,"required","required",Y],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",Y],tabIndex:[2,"tabIndex","tabIndex",t=>t==null?void 0:ni(t)],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",Y],checked:[2,"checked","checked",Y],disabled:[2,"disabled","disabled",Y],indeterminate:[2,"indeterminate","indeterminate",Y]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],standalone:!0,features:[Ce([T6,{provide:co,useExisting:e,multi:!0}]),ge,Qe,re],ngContentSelectors:I6,decls:15,vars:20,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"blur","click","change","checked","indeterminate","disabled","id","required","tabIndex"],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(n,o){if(n&1){let a=A();He(),c(0,"div",3),b("click",function(l){return y(a),w(o._preventBubblingFromLabel(l))}),c(1,"div",4,0)(3,"div",5),b("click",function(){return y(a),w(o._onTouchTargetClick())}),d(),c(4,"input",6,1),b("blur",function(){return y(a),w(o._onBlur())})("click",function(){return y(a),w(o._onInputClick())})("change",function(l){return y(a),w(o._onInteractionEvent(l))}),d(),I(6,"div",7),c(7,"div",8),pi(),c(8,"svg",9),I(9,"path",10),d(),yr(),I(10,"div",11),d(),I(11,"div",12),d(),c(12,"label",13,2),ae(14),d()()}if(n&2){let a=we(2);p("labelPosition",o.labelPosition),h(4),ne("mdc-checkbox--selected",o.checked),p("checked",o.checked)("indeterminate",o.indeterminate)("disabled",o.disabled&&!o.disabledInteractive)("id",o.inputId)("required",o.required)("tabIndex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex),ie("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby)("aria-describedby",o.ariaDescribedby)("aria-checked",o.indeterminate?"mixed":null)("aria-disabled",o.disabled&&o.disabledInteractive?!0:null)("name",o.name)("value",o.value),h(7),p("matRippleTrigger",a)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),h(),p("for",o.inputId)}},dependencies:[Tn,_p],styles:['.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom;padding:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);margin:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox:hover .mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-app-on-surface))}.mdc-checkbox:hover .mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-app-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-focus-state-layer-color, var(--mat-app-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-focus-state-layer-color, var(--mat-app-on-surface))}.mdc-checkbox:active .mdc-checkbox__native-control~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color, var(--mat-app-primary))}.mdc-checkbox:active .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color, var(--mat-app-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity));background-color:var(--mdc-checkbox-selected-hover-state-layer-color, var(--mat-app-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-hover-state-layer-color, var(--mat-app-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity));background-color:var(--mdc-checkbox-selected-focus-state-layer-color, var(--mat-app-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-focus-state-layer-color, var(--mat-app-primary))}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity));background-color:var(--mdc-checkbox-selected-pressed-state-layer-color, var(--mat-app-on-surface))}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-pressed-state-layer-color, var(--mat-app-on-surface))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control~.mdc-checkbox__ripple{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-app-on-surface))}.mdc-checkbox .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;width:var(--mdc-checkbox-state-layer-size, 40px);height:var(--mdc-checkbox-state-layer-size, 40px);top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.cdk-high-contrast-active .mdc-checkbox--disabled{opacity:.5}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);-webkit-print-color-adjust:exact;color-adjust:exact;border-color:var(--mdc-checkbox-unselected-icon-color, var(--mat-app-on-surface-variant));top:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2)}.mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color, var(--mat-app-primary));background-color:var(--mdc-checkbox-selected-icon-color, var(--mat-app-primary))}.mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color)}.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mdc-checkbox-disabled-selected-icon-color);border-color:rgba(0,0,0,0)}.mdc-checkbox:hover .mdc-checkbox__native-control:not(:checked)~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mat-app-on-surface));background-color:rgba(0,0,0,0)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mat-app-primary));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mat-app-primary))}.mdc-checkbox__native-control:focus:focus:not(:checked)~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mat-app-on-surface))}.mdc-checkbox__native-control:focus:focus:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mat-app-primary));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mat-app-primary))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover .mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color)}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{background-color:var(--mdc-checkbox-disabled-selected-icon-color);border-color:rgba(0,0,0,0)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);color:var(--mdc-checkbox-selected-checkmark-color, var(--mat-app-on-primary))}.cdk-high-contrast-active .mdc-checkbox__checkmark{color:CanvasText}.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color, var(--mat-app-surface))}.cdk-high-contrast-active .mdc-checkbox--disabled .mdc-checkbox__checkmark,.cdk-high-contrast-active .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:CanvasText}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mdc-checkbox-selected-checkmark-color, var(--mat-app-on-primary))}.cdk-high-contrast-active .mdc-checkbox__mixedmark{margin:0 1px}.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color, var(--mat-app-surface))}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms cubic-bezier(0, 0, 0.2, 1),transform 180ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox._mat-animation-noopable .mdc-checkbox *,.mat-mdc-checkbox._mat-animation-noopable .mdc-checkbox *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox .mat-internal-form-field{color:var(--mat-checkbox-label-text-color, var(--mat-app-on-surface));font-family:var(--mat-checkbox-label-text-font, var(--mat-app-body-medium-font));line-height:var(--mat-checkbox-label-text-line-height, var(--mat-app-body-medium-line-height));font-size:var(--mat-checkbox-label-text-size, var(--mat-app-body-medium-size));letter-spacing:var(--mat-checkbox-label-text-tracking, var(--mat-app-body-medium-tracking));font-weight:var(--mat-checkbox-label-text-weight, var(--mat-app-body-medium-weight))}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive{pointer-events:auto}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive input{cursor:default}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color)}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;left:50%;height:48px;width:48px;transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let i=e;return i})();var Uf=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({imports:[zf,pe,pe]});let i=e;return i})();var O6=["*"],Hf;function R6(){if(Hf===void 0&&(Hf=null,typeof window<"u")){let i=window;i.trustedTypes!==void 0&&(Hf=i.trustedTypes.createPolicy("angular#components",{createHTML:e=>e}))}return Hf}function Gd(i){return R6()?.createHTML(i)||i}function Ik(i){return Error(`Unable to find icon with the name "${i}"`)}function P6(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function Mk(i){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${i}".`)}function Tk(i){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${i}".`)}var zr=class{constructor(e,r,t){this.url=e,this.svgText=r,this.options=t}},F6=(()=>{let e=class e{constructor(t,n,o,a){this._httpClient=t,this._sanitizer=n,this._errorHandler=a,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=o}addSvgIcon(t,n,o){return this.addSvgIconInNamespace("",t,n,o)}addSvgIconLiteral(t,n,o){return this.addSvgIconLiteralInNamespace("",t,n,o)}addSvgIconInNamespace(t,n,o,a){return this._addSvgIconConfig(t,n,new zr(o,null,a))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,n,o,a){let s=this._sanitizer.sanitize(Yi.HTML,o);if(!s)throw Tk(o);let l=Gd(s);return this._addSvgIconConfig(t,n,new zr("",l,a))}addSvgIconSet(t,n){return this.addSvgIconSetInNamespace("",t,n)}addSvgIconSetLiteral(t,n){return this.addSvgIconSetLiteralInNamespace("",t,n)}addSvgIconSetInNamespace(t,n,o){return this._addSvgIconSetConfig(t,new zr(n,null,o))}addSvgIconSetLiteralInNamespace(t,n,o){let a=this._sanitizer.sanitize(Yi.HTML,n);if(!a)throw Tk(n);let s=Gd(a);return this._addSvgIconSetConfig(t,new zr("",s,o))}registerFontClassAlias(t,n=t){return this._fontCssClassesByAlias.set(t,n),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(...t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){let n=this._sanitizer.sanitize(Yi.RESOURCE_URL,t);if(!n)throw Mk(t);let o=this._cachedIconsByUrl.get(n);return o?oe($f(o)):this._loadSvgIconFromConfig(new zr(t,null)).pipe(Ht(a=>this._cachedIconsByUrl.set(n,a)),ue(a=>$f(a)))}getNamedSvgIcon(t,n=""){let o=kk(n,t),a=this._svgIconConfigs.get(o);if(a)return this._getSvgFromConfig(a);if(a=this._getIconConfigFromResolvers(n,t),a)return this._svgIconConfigs.set(o,a),this._getSvgFromConfig(a);let s=this._iconSetConfigs.get(n);return s?this._getSvgFromIconSetConfigs(t,s):jo(Ik(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?oe($f(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(ue(n=>$f(n)))}_getSvgFromIconSetConfigs(t,n){let o=this._extractIconWithNameFromAnySet(t,n);if(o)return oe(o);let a=n.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(Wi(l=>{let f=`Loading icon set URL: ${this._sanitizer.sanitize(Yi.RESOURCE_URL,s.url)} failed: ${l.message}`;return this._errorHandler.handleError(new Error(f)),oe(null)})));return uc(a).pipe(ue(()=>{let s=this._extractIconWithNameFromAnySet(t,n);if(!s)throw Ik(t);return s}))}_extractIconWithNameFromAnySet(t,n){for(let o=n.length-1;o>=0;o--){let a=n[o];if(a.svgText&&a.svgText.toString().indexOf(t)>-1){let s=this._svgElementFromConfig(a),l=this._extractSvgIconFromSet(s,t,a.options);if(l)return l}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(Ht(n=>t.svgText=n),ue(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?oe(null):this._fetchIcon(t).pipe(Ht(n=>t.svgText=n))}_extractSvgIconFromSet(t,n,o){let a=t.querySelector(`[id="${n}"]`);if(!a)return null;let s=a.cloneNode(!0);if(s.removeAttribute("id"),s.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(s,o);if(s.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(s),o);let l=this._svgElementFromString(Gd(""));return l.appendChild(s),this._setSvgAttributes(l,o)}_svgElementFromString(t){let n=this._document.createElement("DIV");n.innerHTML=t;let o=n.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(t){let n=this._svgElementFromString(Gd("")),o=t.attributes;for(let a=0;aGd(f)),zo(()=>this._inProgressUrlFetches.delete(s)),mc());return this._inProgressUrlFetches.set(s,u),u}_addSvgIconConfig(t,n,o){return this._svgIconConfigs.set(kk(t,n),o),this}_addSvgIconSetConfig(t,n){let o=this._iconSetConfigs.get(t);return o?o.push(n):this._iconSetConfigs.set(t,[n]),this}_svgElementFromConfig(t){if(!t.svgElement){let n=this._svgElementFromString(t.svgText);this._setSvgAttributes(n,t.options),t.svgElement=n}return t.svgElement}_getIconConfigFromResolvers(t,n){for(let o=0;oe?e.pathname+e.search:""}}var Ak=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],B6=Ak.map(i=>`[${i}]`).join(", "),z6=/^url\(['"]?#(.*?)['"]?\)$/,Ok=(()=>{let e=class e{get color(){return this._color||this._defaultColor}set color(t){this._color=t}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){let n=this._cleanupFontValue(t);n!==this._fontSet&&(this._fontSet=n,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){let n=this._cleanupFontValue(t);n!==this._fontIcon&&(this._fontIcon=n,this._updateFontIconClasses())}constructor(t,n,o,a,s,l){this._elementRef=t,this._iconRegistry=n,this._location=a,this._errorHandler=s,this.inline=!1,this._previousFontSetClass=[],this._currentIconFetch=ve.EMPTY,l&&(l.color&&(this.color=this._defaultColor=l.color),l.fontSet&&(this.fontSet=l.fontSet)),o||t.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(t){if(!t)return["",""];let n=t.split(":");switch(n.length){case 1:return["",n[0]];case 2:return n;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let t=this._elementsWithExternalReferences;if(t&&t.size){let n=this._location.getPathname();n!==this._previousPath&&(this._previousPath=n,this._prependPathToReferences(n))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();let n=this._location.getPathname();this._previousPath=n,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(n),this._elementRef.nativeElement.appendChild(t)}_clearSvgElement(){let t=this._elementRef.nativeElement,n=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();n--;){let o=t.childNodes[n];(o.nodeType!==1||o.nodeName.toLowerCase()==="svg")&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let t=this._elementRef.nativeElement,n=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>t.classList.remove(o)),n.forEach(o=>t.classList.add(o)),this._previousFontSetClass=n,this.fontIcon!==this._previousFontIconClass&&!n.includes("mat-ligature-font")&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(t){return typeof t=="string"?t.trim().split(" ")[0]:t}_prependPathToReferences(t){let n=this._elementsWithExternalReferences;n&&n.forEach((o,a)=>{o.forEach(s=>{a.setAttribute(s.name,`url('${t}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(t){let n=t.querySelectorAll(B6),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let a=0;a{let l=n[a],u=l.getAttribute(s),f=u?u.match(z6):null;if(f){let v=o.get(l);v||(v=[],o.set(l,v)),v.push({name:s,value:f[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){let[n,o]=this._splitIconName(t);n&&(this._svgNamespace=n),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,n).pipe(Ot(1)).subscribe(a=>this._setSvgElement(a),a=>{let s=`Error retrieving icon ${n}:${o}! ${a.message}`;this._errorHandler.handleError(new Error(s))})}}};e.\u0275fac=function(n){return new(n||e)(m(q),m(F6),vi("aria-hidden"),m(V6),m(yn),m(L6,8))},e.\u0275cmp=E({type:e,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(n,o){n&2&&(ie("data-mat-icon-type",o._usingFontIcon()?"font":"svg")("data-mat-icon-name",o._svgName||o.fontIcon)("data-mat-icon-namespace",o._svgNamespace||o.fontSet)("fontIcon",o._usingFontIcon()?o.fontIcon:null),Yt(o.color?"mat-"+o.color:""),ne("mat-icon-inline",o.inline)("mat-icon-no-color",o.color!=="primary"&&o.color!=="accent"&&o.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",Y],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],standalone:!0,features:[ge,re],ngContentSelectors:O6,decls:1,vars:0,template:function(n,o){n&1&&(He(),ae(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0});let i=e;return i})(),Rk=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({imports:[pe,pe]});let i=e;return i})();var H6=["determinateSpinner"];function $6(i,e){if(i&1&&(pi(),c(0,"svg",11),I(1,"circle",12),d()),i&2){let r=_();ie("viewBox",r._viewBox()),h(),ji("stroke-dasharray",r._strokeCircumference(),"px")("stroke-dashoffset",r._strokeCircumference()/2,"px")("stroke-width",r._circleStrokeWidth(),"%"),ie("r",r._circleRadius())}}var W6=new R("mat-progress-spinner-default-options",{providedIn:"root",factory:G6});function G6(){return{diameter:Pk}}var Pk=100,q6=10,Wf=(()=>{let e=class e{get color(){return this._color||this._defaultColor}set color(t){this._color=t}constructor(t,n,o){this._elementRef=t,this._defaultColor="primary",this._value=0,this._diameter=Pk,this._noopAnimations=n==="NoopAnimations"&&!!o&&!o._forceAnimations,this.mode=t.nativeElement.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",o&&(o.color&&(this.color=this._defaultColor=o.color),o.diameter&&(this.diameter=o.diameter),o.strokeWidth&&(this.strokeWidth=o.strokeWidth))}get value(){return this.mode==="determinate"?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,t||0))}get diameter(){return this._diameter}set diameter(t){this._diameter=t||0}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(t){this._strokeWidth=t||0}_circleRadius(){return(this.diameter-q6)/2}_viewBox(){let t=this._circleRadius()*2+this.strokeWidth;return`0 0 ${t} ${t}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return this.mode==="determinate"?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}};e.\u0275fac=function(n){return new(n||e)(m(q),m(kt,8),m(W6))},e.\u0275cmp=E({type:e,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(n,o){if(n&1&&ce(H6,5),n&2){let a;Q(a=K())&&(o._determinateCircle=a.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(n,o){n&2&&(ie("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",o.mode==="determinate"?o.value:null)("mode",o.mode),Yt("mat-"+o.color),ji("width",o.diameter,"px")("height",o.diameter,"px")("--mdc-circular-progress-size",o.diameter+"px")("--mdc-circular-progress-active-indicator-width",o.diameter+"px"),ne("_mat-animation-noopable",o._noopAnimations)("mdc-circular-progress--indeterminate",o.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",ni],diameter:[2,"diameter","diameter",ni],strokeWidth:[2,"strokeWidth","strokeWidth",ni]},exportAs:["matProgressSpinner"],standalone:!0,features:[ge,re],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(n,o){if(n&1&&(x(0,$6,2,8,"ng-template",null,0,fi),c(2,"div",2,1),pi(),c(4,"svg",3),I(5,"circle",4),d()(),yr(),c(6,"div",5)(7,"div",6)(8,"div",7),Ci(9,8),d(),c(10,"div",9),Ci(11,8),d(),c(12,"div",10),Ci(13,8),d()()()),n&2){let a=we(1);h(4),ie("viewBox",o._viewBox()),h(),ji("stroke-dasharray",o._strokeCircumference(),"px")("stroke-dashoffset",o._strokeDashOffset(),"px")("stroke-width",o._circleStrokeWidth(),"%"),ie("r",o._circleRadius()),h(4),p("ngTemplateOutlet",a),h(2),p("ngTemplateOutlet",a),h(2),p("ngTemplateOutlet",a)}},dependencies:[ym],styles:[".mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0;position:relative;direction:ltr;transition:opacity 250ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width)}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1;animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color, var(--mat-app-primary))}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}"],encapsulation:2,changeDetection:0});let i=e;return i})();var Gf=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({imports:[Ei,pe]});let i=e;return i})();var qf=(()=>{let e=class e{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(t){this._vertical=Bn(t)}get inset(){return this._inset}set inset(t){this._inset=Bn(t)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=E({type:e,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(n,o){n&2&&(ie("aria-orientation",o.vertical?"vertical":"horizontal"),ne("mat-divider-vertical",o.vertical)("mat-divider-horizontal",!o.vertical)("mat-divider-inset",o.inset))},inputs:{vertical:"vertical",inset:"inset"},standalone:!0,features:[re],decls:0,vars:0,template:function(n,o){},styles:[".mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color, var(--mat-app-outline));border-top-width:var(--mat-divider-width)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color, var(--mat-app-outline));border-right-width:var(--mat-divider-width)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0});let i=e;return i})(),Yf=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({imports:[pe,pe]});let i=e;return i})();var Y6=["searchSelectInput"],Q6=["innerSelectSearch"],K6=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],Z6=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"],X6=(i,e)=>({"mat-select-search-inner-multiple":i,"mat-select-search-inner-toggle-all":e});function J6(i,e){if(i&1){let r=A();c(0,"mat-checkbox",12),b("change",function(n){y(r);let o=_();return w(o._emitSelectAllBooleanToParent(n.checked))}),d()}if(i&2){let r=_();p("color",r.matFormField==null?null:r.matFormField.color)("checked",r.toggleAllCheckboxChecked)("indeterminate",r.toggleAllCheckboxIndeterminate)("matTooltip",r.toggleAllCheckboxTooltipMessage)("matTooltipPosition",r.toggleAllCheckboxTooltipPosition)}}function e$(i,e){i&1&&I(0,"mat-spinner",13)}function t$(i,e){i&1&&ae(0,1,["*ngIf","clearIcon; else defaultIcon"])}function i$(i,e){if(i&1&&(c(0,"mat-icon",16),g(1),d()),i&2){let r=_(2);p("svgIcon",r.closeSvgIcon),h(),F(" ",r.closeSvgIcon?null:r.closeIcon," ")}}function n$(i,e){if(i&1){let r=A();c(0,"button",14),b("click",function(){y(r);let n=_();return w(n._reset(!0))}),x(1,t$,1,0,"ng-content",15)(2,i$,2,2,"ng-template",null,2,fi),d()}if(i&2){let r=we(3),t=_();h(),p("ngIf",t.clearIcon)("ngIfElse",r)}}function o$(i,e){i&1&&ae(0,2,["*ngIf","noEntriesFound; else defaultNoEntriesFound"])}function r$(i,e){if(i&1&&g(0),i&2){let r=_(2);$e(r.noEntriesFoundLabel)}}function a$(i,e){if(i&1&&(c(0,"div",17),x(1,o$,1,0,"ng-content",15)(2,r$,1,1,"ng-template",null,3,fi),d()),i&2){let r=we(3),t=_();h(),p("ngIf",t.noEntriesFound)("ngIfElse",r)}}var s$=(()=>{class i{}return i.\u0275fac=function(r){return new(r||i)},i.\u0275dir=L({type:i,selectors:[["","ngxMatSelectSearchClear",""]]}),i})(),l$=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],c$=new R("mat-selectsearch-default-options"),d$=(()=>{class i{}return i.\u0275fac=function(r){return new(r||i)},i.\u0275dir=L({type:i,selectors:[["","ngxMatSelectNoEntriesFound",""]]}),i})(),Lk=(()=>{class i{constructor(r,t,n,o,a,s){this.matSelect=r,this.changeDetectorRef=t,this._viewportRuler=n,this.matOption=o,this.matFormField=a,this.placeholderLabel="Suche",this.type="text",this.closeIcon="close",this.noEntriesFoundLabel="Keine Optionen gefunden",this.clearSearchInput=!0,this.searching=!1,this.disableInitialFocus=!1,this.enableClearOnEscapePressed=!1,this.preventHomeEndKeyPropagation=!1,this.disableScrollToActiveOnOptionsChanged=!1,this.ariaLabel="dropdown search",this.showToggleAllCheckbox=!1,this.toggleAllCheckboxChecked=!1,this.toggleAllCheckboxIndeterminate=!1,this.toggleAllCheckboxTooltipMessage="",this.toggleAllCheckboxTooltipPosition="below",this.hideClearSearchButton=!1,this.alwaysRestoreSelectedOptionsMulti=!1,this.recreateValuesArray=!1,this.toggleAll=new T,this.onTouched=l=>{},this._options$=new Gt(null),this.optionsList$=this._options$.pipe(Tt(l=>l?l.changes.pipe(ue(u=>u.toArray()),Rt(l.toArray())):oe(null))),this.optionsLength$=this.optionsList$.pipe(ue(l=>l?l.length:0)),this._formControl=new Bp("",{nonNullable:!0}),this._showNoEntriesFound$=Rn([this._formControl.valueChanges,this.optionsLength$]).pipe(ue(([l,u])=>!!(this.noEntriesFoundLabel&&l&&u===this.getOptionsLengthOffset()))),this._onDestroy=new G,this.applyDefaultOptions(s)}get value(){return this._formControl.value}set _options(r){this._options$.next(r)}get _options(){return this._options$.getValue()}applyDefaultOptions(r){if(r)for(let t of l$)r.hasOwnProperty(t)&&(this[t]=r[t])}ngOnInit(){this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search"),this.matOption._getHostElement().setAttribute("role","presentation")):console.error(" must be placed inside a element"),this.matSelect.openedChange.pipe(Qr(1),fe(this._onDestroy)).subscribe(r=>{r?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe(Ot(1),Tt(r=>{this._options=this.matSelect.options;let t=this._options.toArray()[this.getOptionsLengthOffset()];return this._options.changes.pipe(Ht(()=>{setTimeout(()=>{let n=this._options.toArray(),o=n[this.getOptionsLengthOffset()],a=this.matSelect._keyManager;a&&this.matSelect.panelOpen&&o&&((!t||!this.matSelect.compareWith(t.value,o.value)||!a.activeItem||!n.find(l=>this.matSelect.compareWith(l.value,a.activeItem?.value)))&&a.setActiveItem(this.getOptionsLengthOffset()),setTimeout(()=>{this.updateInputWidth()})),t=o})}))})).pipe(fe(this._onDestroy)).subscribe(),this._showNoEntriesFound$.pipe(fe(this._onDestroy)).subscribe(r=>{this.matOption&&(r?this.matOption._getHostElement().classList.add("mat-select-search-no-entries-found"):this.matOption._getHostElement().classList.remove("mat-select-search-no-entries-found"))}),this._viewportRuler.change().pipe(fe(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe(fe(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(r){this.toggleAll.emit(r)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(r){(r.key&&r.key.length===1||this.preventHomeEndKeyPropagation&&(r.key==="Home"||r.key==="End"))&&r.stopPropagation(),this.matSelect.multiple&&r.key&&r.key==="Enter"&&setTimeout(()=>this._focus()),this.enableClearOnEscapePressed&&r.key==="Escape"&&this.value&&(this._reset(!0),r.stopPropagation())}_handleKeyup(r){if(r.key==="ArrowUp"||r.key==="ArrowDown"){let t=this.matSelect._getAriaActiveDescendant(),n=this._options.toArray().findIndex(o=>o.id===t);n!==-1&&(this.unselectActiveDescendant(),this.activeDescendant=this._options.toArray()[n]._getHostElement(),this.activeDescendant.setAttribute("aria-selected","true"),this.searchSelectInput.nativeElement.setAttribute("aria-activedescendant",t))}}writeValue(r){this._lastExternalInputValue=r,this._formControl.setValue(r),this.changeDetectorRef.markForCheck()}onBlur(){this.unselectActiveDescendant(),this.onTouched()}registerOnChange(r){this._formControl.valueChanges.pipe(Ye(t=>t!==this._lastExternalInputValue),Ht(()=>this._lastExternalInputValue=void 0),fe(this._onDestroy)).subscribe(r)}registerOnTouched(r){this.onTouched=r}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;let r=this.matSelect.panel.nativeElement,t=r.scrollTop;this.searchSelectInput.nativeElement.focus(),r.scrollTop=t}_reset(r){this._formControl.setValue(""),r&&this._focus()}initMultipleHandling(){if(!this.matSelect.ngControl){this.matSelect.multiple&&console.error("the mat-select containing ngx-mat-select-search must have a ngModel or formControl directive when multiple=true");return}this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges&&this.matSelect.ngControl.valueChanges.pipe(fe(this._onDestroy)).subscribe(r=>{let t=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!r||!Array.isArray(r))&&(r=[]);let n=this.matSelect.options.map(o=>o.value);this.previousSelectedValues.forEach(o=>{!r.some(a=>this.matSelect.compareWith(a,o))&&!n.some(a=>this.matSelect.compareWith(a,o))&&(this.recreateValuesArray?r=[...r,o]:r.push(o),t=!0)})}this.previousSelectedValues=r,t&&this.matSelect._onChange(r)})}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let r=this.innerSelectSearch.nativeElement,t=null;for(;r&&r.parentElement;)if(r=r.parentElement,r.classList.contains("mat-select-panel")){t=r;break}t&&(this.innerSelectSearch.nativeElement.style.width=t.clientWidth+"px")}getOptionsLengthOffset(){return this.matOption?1:0}unselectActiveDescendant(){this.activeDescendant?.removeAttribute("aria-selected"),this.searchSelectInput.nativeElement.removeAttribute("aria-activedescendant")}}return i.\u0275fac=function(r){return new(r||i)(m(bt),m(he),m(fn),m(nt,8),m(_e,8),m(c$,8))},i.\u0275cmp=E({type:i,selectors:[["ngx-mat-select-search"]],contentQueries:function(r,t,n){if(r&1&&(Be(n,s$,5),Be(n,d$,5)),r&2){let o;Q(o=K())&&(t.clearIcon=o.first),Q(o=K())&&(t.noEntriesFound=o.first)}},viewQuery:function(r,t){if(r&1&&(ce(Y6,7,q),ce(Q6,7,q)),r&2){let n;Q(n=K())&&(t.searchSelectInput=n.first),Q(n=K())&&(t.innerSelectSearch=n.first)}},inputs:{placeholderLabel:"placeholderLabel",type:"type",closeIcon:"closeIcon",closeSvgIcon:"closeSvgIcon",noEntriesFoundLabel:"noEntriesFoundLabel",clearSearchInput:"clearSearchInput",searching:"searching",disableInitialFocus:"disableInitialFocus",enableClearOnEscapePressed:"enableClearOnEscapePressed",preventHomeEndKeyPropagation:"preventHomeEndKeyPropagation",disableScrollToActiveOnOptionsChanged:"disableScrollToActiveOnOptionsChanged",ariaLabel:"ariaLabel",showToggleAllCheckbox:"showToggleAllCheckbox",toggleAllCheckboxChecked:"toggleAllCheckboxChecked",toggleAllCheckboxIndeterminate:"toggleAllCheckboxIndeterminate",toggleAllCheckboxTooltipMessage:"toggleAllCheckboxTooltipMessage",toggleAllCheckboxTooltipPosition:"toggleAllCheckboxTooltipPosition",hideClearSearchButton:"hideClearSearchButton",alwaysRestoreSelectedOptionsMulti:"alwaysRestoreSelectedOptionsMulti",recreateValuesArray:"recreateValuesArray"},outputs:{toggleAll:"toggleAll"},features:[Ce([{provide:vn,useExisting:Xt(()=>i),multi:!0}])],ngContentSelectors:Z6,decls:13,vars:14,consts:[["innerSelectSearch",""],["searchSelectInput",""],["defaultIcon",""],["defaultNoEntriesFound",""],["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"],[1,"mat-select-search-inner-row"],["class","mat-select-search-toggle-all-checkbox","matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change",4,"ngIf"],["autocomplete","off",1,"mat-select-search-input",3,"keydown","keyup","blur","type","formControl","placeholder"],["class","mat-select-search-spinner","diameter","16",4,"ngIf"],["mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["class","mat-select-search-no-entries-found",4,"ngIf"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"change","color","checked","indeterminate","matTooltip","matTooltipPosition"],["diameter","16",1,"mat-select-search-spinner"],["mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[4,"ngIf","ngIfElse"],[3,"svgIcon"],[1,"mat-select-search-no-entries-found"]],template:function(r,t){if(r&1){let n=A();He(K6),I(0,"input",4),c(1,"div",5,0)(3,"div",6),x(4,J6,1,5,"mat-checkbox",7),c(5,"input",8,1),b("keydown",function(a){return y(n),w(t._handleKeydown(a))})("keyup",function(a){return y(n),w(t._handleKeyup(a))})("blur",function(){return y(n),w(t.onBlur())}),d(),x(7,e$,1,0,"mat-spinner",9)(8,n$,4,2,"button",10),ae(9),d(),I(10,"mat-divider"),d(),x(11,a$,4,2,"div",11),_t(12,"async")}r&2&&(h(),p("ngClass",cl(11,X6,t.matSelect.multiple,t._isToggleAllCheckboxVisible())),h(3),p("ngIf",t._isToggleAllCheckboxVisible()),h(),p("type",t.type)("formControl",t._formControl)("placeholder",t.placeholderLabel),ie("aria-label",t.ariaLabel),h(2),p("ngIf",t.searching),h(),p("ngIf",!t.hideClearSearchButton&&t.value&&!t.searching),h(3),p("ngIf",Dt(12,9,t._showNoEntriesFound$)))},dependencies:[Sn,me,lt,xe,xy,Qi,zf,Ok,Wf,lr,qf,EI],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;z-index:100;font-size:inherit;box-shadow:none;background-color:var(--mat-select-panel-background-color)}.mat-select-search-inner.mat-select-search-inner-multiple.mat-select-search-inner-toggle-all[_ngcontent-%COMP%] .mat-select-search-inner-row[_ngcontent-%COMP%]{display:flex;align-items:center}.mat-select-search-input[_ngcontent-%COMP%]{box-sizing:border-box;width:100%;border:none;font-family:inherit;font-size:inherit;color:currentColor;outline:none;background-color:var(--mat-select-panel-background-color);padding:0 44px 0 16px;height:calc(3em - 1px);line-height:calc(3em - 1px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-right:16px;padding-left:44px}.mat-select-search-inner-toggle-all[_ngcontent-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-left:5px}.mat-select-search-no-entries-found[_ngcontent-%COMP%]{padding-top:8px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:0}[dir=rtl][_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{right:auto;left:4px}.mat-select-search-spinner[_ngcontent-%COMP%]{position:absolute;right:16px;top:calc(50% - 8px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%]{right:auto;left:16px} .mat-mdc-option[aria-disabled=true].contains-mat-select-search{position:sticky;top:-8px;z-index:1;opacity:1;margin-top:-8px;pointer-events:all} .mat-mdc-option[aria-disabled=true].contains-mat-select-search .mat-icon{margin-right:0;margin-left:0} .mat-mdc-option[aria-disabled=true].contains-mat-select-search mat-pseudo-checkbox{display:none} .mat-mdc-option[aria-disabled=true].contains-mat-select-search .mdc-list-item__primary-text{opacity:1}.mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:5px}[dir=rtl][_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:0;padding-right:5px}"],changeDetection:0}),i})();var Vk=(()=>{class i{}return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=te({type:i}),i.\u0275inj=ee({imports:[Ei,Up,ar,Uf,Rk,Gf,Wl,Yf]}),i})();function h$(i,e){if(i&1){let r=A();c(0,"mat-option")(1,"ngx-mat-select-search",1),b("ngModelChange",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()()}if(i&2){let r=_();h(),p("placeholderLabel",r.placeholderLabel)("noEntriesFoundLabel",r.noEntriesFoundLabel)}}var hi=(()=>{let e=class e{constructor(){this.placeholderLabel=django.gettext("Filter"),this.noEntriesFoundLabel=django.gettext("No entries found"),this.changed=new T,this.notIfLessThan=7}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=E({type:e,selectors:[["uds-cond-select-search"]],inputs:{placeholderLabel:"placeholderLabel",noEntriesFoundLabel:"noEntriesFoundLabel",options:"options",notIfLessThan:"notIfLessThan"},outputs:{changed:"changed"},decls:1,vars:1,consts:[[4,"ngIf"],["ngModel","",3,"ngModelChange","placeholderLabel","noEntriesFoundLabel"]],template:function(n,o){n&1&&x(0,h$,2,2,"mat-option",0),n&2&&p("ngIf",o.options&&o.options.length>o.notIfLessThan)},dependencies:[me,xe,Se,nt,Lk]});let i=e;return i})();function m$(i,e){i&1&&(c(0,"uds-translate"),g(1,"New user permission for"),d())}function p$(i,e){i&1&&(c(0,"uds-translate"),g(1,"New group permission for"),d())}function f$(i,e){if(i&1&&(c(0,"mat-option",11),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),h(),$e(r.text)}}function g$(i,e){if(i&1&&(c(0,"mat-option",11),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),h(),$e(r.text)}}function _$(i,e){if(i&1&&(c(0,"mat-option",11),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),h(),$e(r.text)}}var jk=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.data=a,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.done=new Jt}static launch(t,n,o){return W(this,null,function*(){let a=window.innerWidth<800?"80%":"50%";return t.gui.dialog.open(e,{width:a,data:{type:n,item:o},disableClose:!0}).componentInstance.done})}ngOnInit(){return W(this,null,function*(){let t=yield this.rest.authenticators.summary();for(let n of t)this.authenticators.push({id:n.id,text:n.name})})}changeAuth(t){return W(this,null,function*(){this.entities.length=0,this.entity="";let n=yield this.rest.authenticators.detail(t,this.data.type+"s").summary();for(let o of n)this.entities.push({id:o.id,text:o.name})})}save(){this.done.resolve({authenticator:this.authenticator,entity:this.entity,permissision:this.permission}),this.dialogRef.close()}cancel(){this.done.resolve(null),this.dialogRef.close()}filteredEntities(){let t=new Array;return this.entities.forEach(n=>{(!this.filterUser||n.text.toLocaleLowerCase().includes(this.filterUser.toLocaleLowerCase()))&&t.push(n)}),t}getFieldLabel(t){return t==="user"?django.gettext("User"):t==="group"?django.gettext("Group"):t==="auth"?django.gettext("Authenticator"):django.gettext("Permission")}};e.\u0275fac=function(n){return new(n||e)(m(B),m(X),m(Ne),m(Ke))},e.\u0275cmp=E({type:e,selectors:[["uds-new-permission"]],decls:24,vars:13,consts:[["titleGroup",""],["mat-dialog-title",""],[4,"ngIf","ngIfElse"],[3,"innerHTML"],[1,"container"],[3,"valueChange","ngModelChange","placeholder","ngModel"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModelChange","placeholder","ngModel"],[3,"changed","options"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(n,o){if(n&1){let a=A();c(0,"h4",1),x(1,m$,2,0,"uds-translate",2),I(2,"b",3),x(3,p$,2,0,"ng-template",null,0,fi),d(),c(5,"mat-dialog-content")(6,"div",4)(7,"mat-form-field")(8,"mat-select",5),b("valueChange",function(l){return y(a),w(o.changeAuth(l))}),H("ngModelChange",function(l){return y(a),$(o.authenticator,l)||(o.authenticator=l),w(l)}),x(9,f$,2,2,"mat-option",6),d()(),c(10,"mat-form-field")(11,"mat-select",7),H("ngModelChange",function(l){return y(a),$(o.entity,l)||(o.entity=l),w(l)}),c(12,"uds-cond-select-search",8),b("changed",function(l){return y(a),w(o.filterUser=l)}),d(),x(13,g$,2,2,"mat-option",6),d()(),c(14,"mat-form-field")(15,"mat-select",7),H("ngModelChange",function(l){return y(a),$(o.permission,l)||(o.permission=l),w(l)}),x(16,_$,2,2,"mat-option",6),d()()()(),c(17,"mat-dialog-actions")(18,"button",9),b("click",function(){return y(a),w(o.cancel())}),c(19,"uds-translate"),g(20,"Cancel"),d()(),c(21,"button",10),b("click",function(){return y(a),w(o.save())}),c(22,"uds-translate"),g(23,"Ok"),d()()()}if(n&2){let a=we(4);h(),p("ngIf",o.data.type==="user")("ngIfElse",a),h(),p("innerHTML",o.data.item.name,qt),h(6),p("placeholder",o.getFieldLabel("auth")),U("ngModel",o.authenticator),h(),p("ngForOf",o.authenticators),h(2),p("placeholder",o.getFieldLabel(o.data.type)),U("ngModel",o.entity),h(),p("options",o.entities),h(),p("ngForOf",o.filteredEntities()),h(2),p("placeholder",o.getFieldLabel("perm")),U("ngModel",o.permission),h(),p("ngForOf",o.permissions)}},dependencies:[We,me,xe,Se,ke,Je,tt,et,_e,bt,nt,le,hi],styles:[".container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}.mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]});let i=e;return i})();var v$=(i,e)=>[i,e];function b$(i,e){if(i&1){let r=A();c(0,"div",11)(1,"div",12),g(2),d(),c(3,"div",13),g(4),c(5,"a",14),b("click",function(){let n=y(r).$implicit,o=_(2);return w(o.revokePermission(n))}),c(6,"i",15),g(7,"close"),d()()()()}if(i&2){let r=e.$implicit;h(2),Ir(" ",r.entity_name,"@",r.auth_name," "),h(2),F(" ",r.perm_name," \xA0")}}function y$(i,e){if(i&1){let r=A();c(0,"div",7)(1,"div",8)(2,"div",9),b("click",function(n){let o=y(r).$implicit;return _().newPermission(o),w(n.preventDefault())}),c(3,"uds-translate"),g(4,"New permission..."),d()(),x(5,b$,8,3,"div",10),d()()}if(i&2){let r=e.$implicit;h(5),p("ngForOf",r)}}var Bk=(()=>{let e=class e{constructor(t,n,o){this.api=t,this.dialogRef=n,this.data=o,this.userPermissions=[],this.groupPermissions=[]}static launch(t,n,o){let a=window.innerWidth<800?"90%":"60%",s=t.gui.dialog.open(e,{width:a,data:{rest:n,item:o},disableClose:!1})}ngOnInit(){return W(this,null,function*(){yield this.reload()})}reload(){return W(this,null,function*(){let t=yield this.data.rest.getPermissions(this.data.item.id);this.updatePermissions(t)})}updatePermissions(t){this.userPermissions.length=0,this.groupPermissions.length=0;for(let n of t)n.type==="user"?this.userPermissions.push(n):this.groupPermissions.push(n)}revokePermission(t){return W(this,null,function*(){if(yield this.api.gui.questionDialog(django.gettext("Remove"),django.gettext("Confirm revokation of permission")+" "+t.entity_name+"@"+t.auth_name+" "+t.perm_name+"")){let n=yield this.data.rest.revokePermission([t.id]);this.reload()}})}newPermission(t){return W(this,null,function*(){let n=t===this.userPermissions?"user":"group",o=yield jk.launch(this.api,n,this.data.item);o&&(yield this.data.rest.addPermission(this.data.item.id,n+"s",o.entity,o.permissision),this.reload())})}};e.\u0275fac=function(n){return new(n||e)(m(B),m(Ne),m(Ke))},e.\u0275cmp=E({type:e,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(n,o){n&1&&(c(0,"h4",0)(1,"uds-translate"),g(2,"Permissions for"),d(),g(3,"\xA0"),I(4,"b",1),d(),c(5,"mat-dialog-content")(6,"div",2)(7,"uds-translate",3),g(8,"Users"),d(),c(9,"uds-translate",3),g(10,"Groups"),d()(),c(11,"div",4),x(12,y$,6,1,"div",5),d()(),c(13,"mat-dialog-actions")(14,"button",6)(15,"uds-translate"),g(16,"Ok"),d()()()),n&2&&(h(4),p("innerHTML",o.data.item.name,qt),h(8),p("ngForOf",cl(2,v$,o.userPermissions,o.groupPermissions)))},dependencies:[We,ke,Qt,Je,tt,et,le],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:#00000024 0 1px 4px;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-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]});let i=e;return i})();var $k=su(Qf()),w$="text/csv",zk=",",Uk=`\r -`,Hk=i=>(i.changingThisBreaksApplicationSecurity!==void 0&&(i=i.changingThisBreaksApplicationSecurity.replace(/<.*>/g,"")),i=""+i,'"'+i.replace('"','""')+'"'),Kf=i=>{let e="";i.columns.forEach(n=>{e+=Hk(n.title)+zk}),e=e.slice(0,-1)+Uk;let r=i.dataSource.data;for(let n of r){for(let o of i.columns){let a=n[o.name];switch(o.type){case gi.DATE:a=$i("SHORT_DATE_FORMAT",a);break;case gi.DATETIME:a=$i("SHORT_DATETIME_FORMAT",a);break;case gi.DATETIMESEC:a=$i("SHORT_DATE_FORMAT",a," H:i:s");break;case gi.TIME:a=$i("TIME_FORMAT",a);break;default:break}e+=Hk(a)+zk}e=e.slice(0,-1)+Uk}let t=new Blob([e],{type:w$});setTimeout(()=>{(0,$k.saveAs)(t,i.title+".csv",{autoBom:!1})})};var ew=class{constructor(e,r){this._document=r;let t=this._textarea=this._document.createElement("textarea"),n=t.style;n.position="fixed",n.top=n.opacity="0",n.left="-999em",t.setAttribute("aria-hidden","true"),t.value=e,t.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(t)}copy(){let e=this._textarea,r=!1;try{if(e){let t=this._document.activeElement;e.select(),e.setSelectionRange(0,e.value.length),r=this._document.execCommand("copy"),t&&t.focus()}}catch{}return r}destroy(){let e=this._textarea;e&&(e.remove(),this._textarea=void 0)}},Wk=(()=>{let e=class e{constructor(t){this._document=t}copy(t){let n=this.beginCopy(t),o=n.copy();return n.destroy(),o}beginCopy(t){return new ew(t,this._document)}};e.\u0275fac=function(n){return new(n||e)(M(se))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var Gk=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({});let i=e;return i})();var x$=["mat-menu-item",""],D$=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],S$=["mat-icon, [matMenuItemIcon]","*"];function E$(i,e){i&1&&(pi(),c(0,"svg",2),I(1,"polygon",3),d())}var I$=["*"];function M$(i,e){if(i&1){let r=A();c(0,"div",0),b("keydown",function(n){y(r);let o=_();return w(o._handleKeydown(n))})("click",function(){y(r);let n=_();return w(n.closed.emit("click"))})("@transformMenu.start",function(n){y(r);let o=_();return w(o._onAnimationStart(n))})("@transformMenu.done",function(n){y(r);let o=_();return w(o._onAnimationDone(n))}),c(1,"div",1),ae(2),d()()}if(i&2){let r=_();Yt(r._classList),p("id",r.panelId)("@transformMenu",r._panelAnimationState),ie("aria-label",r.ariaLabel||null)("aria-labelledby",r.ariaLabelledby||null)("aria-describedby",r.ariaDescribedby||null)}}var tw=new R("MAT_MENU_PANEL"),ys=(()=>{let e=class e{constructor(t,n,o,a,s){this._elementRef=t,this._document=n,this._focusMonitor=o,this._parentMenu=a,this._changeDetectorRef=s,this.role="menuitem",this.disabled=!1,this.disableRipple=!1,this._hovered=new G,this._focused=new G,this._highlighted=!1,this._triggersSubmenu=!1,a?.addItem?.(this)}focus(t,n){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,n):this._getHostElement().focus(n),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){let t=this._elementRef.nativeElement.cloneNode(!0),n=t.querySelectorAll("mat-icon, .material-icons");for(let o=0;o{let e=class e{constructor(t,n,o,a,s,l,u){this._template=t,this._componentFactoryResolver=n,this._appRef=o,this._injector=a,this._viewContainerRef=s,this._document=l,this._changeDetectorRef=u,this._attached=new G}attach(t={}){this._portal||(this._portal=new Oi(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new Tl(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));let n=this._template.elementRef.nativeElement;n.parentNode.insertBefore(this._outlet.outletElement,n),this._changeDetectorRef?.markForCheck(),this._portal.attach(this._outlet,t),this._attached.next()}detach(){this._portal.isAttached&&this._portal.detach()}ngOnDestroy(){this._outlet&&this._outlet.dispose()}};e.\u0275fac=function(n){return new(n||e)(m(ct),m(wn),m(Ln),m(Pe),m(Ct),m(se),m(he))},e.\u0275dir=L({type:e,selectors:[["ng-template","matMenuContent",""]],standalone:!0,features:[Ce([{provide:Yk,useExisting:e}])]});let i=e;return i})(),Zf={transformMenu:ui("transformMenu",[Lt("void",Me({opacity:0,transform:"scale(0.8)"})),St("void => enter",Mt("120ms cubic-bezier(0, 0, 0.2, 1)",Me({opacity:1,transform:"scale(1)"}))),St("* => void",Mt("100ms 25ms linear",Me({opacity:0})))]),fadeInItems:ui("fadeInItems",[Lt("showing",Me({opacity:1})),St("void => *",[Me({opacity:0}),Mt("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Efe=Zf.fadeInItems,Ife=Zf.transformMenu,T$=0,k$=new R("mat-menu-default-options",{providedIn:"root",factory:A$});function A$(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}var ka=(()=>{let e=class e{get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}set panelClass(t){let n=this._previousPanelClass,o=j({},this._classList);n&&n.length&&n.split(" ").forEach(a=>{o[a]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(a=>{o[a]=!0}),this._elementRef.nativeElement.className=""),this._classList=o}get classList(){return this.panelClass}set classList(t){this.panelClass=t}constructor(t,n,o,a){this._elementRef=t,this._changeDetectorRef=a,this._elevationPrefix="mat-elevation-z",this._baseElevation=null,this._directDescendantItems=new eo,this._classList={},this._panelAnimationState="void",this._animationDone=new G,this.closed=new T,this.close=this.closed,this.panelId=`mat-menu-panel-${T$++}`,this._injector=k(Pe),this.overlayPanelClass=o.overlayPanelClass||"",this._xPosition=o.xPosition,this._yPosition=o.yPosition,this.backdropClass=o.backdropClass,this.overlapTrigger=o.overlapTrigger,this.hasBackdrop=o.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new _a(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Rt(this._directDescendantItems),Tt(t=>wt(...t.map(n=>n._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t)),this._directDescendantItems.changes.subscribe(t=>{let n=this._keyManager;if(this._panelAnimationState==="enter"&&n.activeItem?._hasFocus()){let o=t.toArray(),a=Math.max(0,Math.min(o.length-1,n.activeItemIndex||0));o[a]&&!o[a].disabled?n.setActiveItem(a):n.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy()}_hovered(){return this._directDescendantItems.changes.pipe(Rt(this._directDescendantItems),Tt(n=>wt(...n.map(o=>o._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){let n=t.keyCode,o=this._keyManager;switch(n){case 27:Pt(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&this.direction==="ltr"&&this.closed.emit("keydown");break;case 39:this.parentMenu&&this.direction==="rtl"&&this.closed.emit("keydown");break;default:(n===38||n===40)&&o.setFocusOrigin("keyboard"),o.onKeydown(t);return}t.stopPropagation()}focusFirstItem(t="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=ai(()=>{let n=null;if(this._directDescendantItems.length&&(n=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!n||!n.contains(document.activeElement)){let o=this._keyManager;o.setFocusOrigin(t).setFirstItemActive(),!o.activeItem&&n&&n.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){if(this._baseElevation===null){let l=(typeof getComputedStyle=="function"?getComputedStyle(this._elementRef.nativeElement):null)?.getPropertyValue("--mat-menu-base-elevation-level")||"8";this._baseElevation=parseInt(l)}let n=Math.min(this._baseElevation+t,24),o=`${this._elevationPrefix}${n}`,a=Object.keys(this._classList).find(s=>s.startsWith(this._elevationPrefix));if(!a||a===this._previousElevation){let s=j({},this._classList);this._previousElevation&&(s[this._previousElevation]=!1),s[o]=!0,this._previousElevation=o,this._classList=s}}setPositionClasses(t=this.xPosition,n=this.yPosition){this._classList=rt(j({},this._classList),{"mat-menu-before":t==="before","mat-menu-after":t==="after","mat-menu-above":n==="above","mat-menu-below":n==="below"}),this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,t.toState==="enter"&&this._keyManager.activeItemIndex===0&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Rt(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(n=>n._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}};e.\u0275fac=function(n){return new(n||e)(m(q),m(Z),m(k$),m(he))},e.\u0275cmp=E({type:e,selectors:[["mat-menu"]],contentQueries:function(n,o,a){if(n&1&&(Be(a,Yk,5),Be(a,ys,5),Be(a,ys,4)),n&2){let s;Q(s=K())&&(o.lazyContent=s.first),Q(s=K())&&(o._allItems=s),Q(s=K())&&(o.items=s)}},viewQuery:function(n,o){if(n&1&&ce(ct,5),n&2){let a;Q(a=K())&&(o.templateRef=a.first)}},hostVars:3,hostBindings:function(n,o){n&2&&ie("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[2,"overlapTrigger","overlapTrigger",Y],hasBackdrop:[2,"hasBackdrop","hasBackdrop",t=>t==null?null:Y(t)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],standalone:!0,features:[Ce([{provide:tw,useExisting:e}]),ge,re],ngContentSelectors:I$,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mat-mdc-elevation-specific",3,"keydown","click","id"],[1,"mat-mdc-menu-content"]],template:function(n,o){n&1&&(He(),x(0,M$,3,7,"ng-template"))},styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;outline:0}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font, var(--mat-app-label-large-font));line-height:var(--mat-menu-item-label-text-line-height, var(--mat-app-label-large-line-height));font-size:var(--mat-menu-item-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mat-menu-item-label-text-tracking, var(--mat-app-label-large-tracking));font-weight:var(--mat-menu-item-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;outline:0;border-radius:var(--mat-menu-container-shape, var(--mat-app-corner-extra-small));background-color:var(--mat-menu-container-color, var(--mat-app-surface-container));will-change:transform,opacity}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.mat-mdc-menu-panel.ng-animating:has(.mat-mdc-menu-content:empty){display:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-panel .mat-divider{color:var(--mat-menu-divider-color, var(--mat-app-surface-variant));margin-bottom:var(--mat-menu-divider-bottom-spacing);margin-top:var(--mat-menu-divider-top-spacing)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:var(--mat-menu-item-leading-spacing);padding-right:var(--mat-menu-item-trailing-spacing);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px}[dir=rtl] .mat-mdc-menu-item{padding-right:var(--mat-menu-item-leading-spacing);padding-left:var(--mat-menu-item-trailing-spacing)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing);padding-right:var(--mat-menu-item-with-icon-trailing-spacing)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-right:var(--mat-menu-item-with-icon-leading-spacing);padding-left:var(--mat-menu-item-with-icon-trailing-spacing)}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color, var(--mat-app-on-surface))}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color, var(--mat-app-on-surface-variant))}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item:focus{outline:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing);height:var(--mat-menu-item-icon-size);width:var(--mat-menu-item-icon-size)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color)}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color)}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1);transform-origin:center}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[Zf.transformMenu,Zf.fadeInItems]},changeDetection:0});let i=e;return i})(),Kk=new R("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let i=k(xt);return()=>i.scrollStrategies.reposition()}});function O$(i){return()=>i.scrollStrategies.reposition()}var R$={provide:Kk,deps:[xt],useFactory:O$},qk=Ui({passive:!0});var Xf=(()=>{let e=class e{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._parentMaterialMenu,this._menuCloseSubscription=t.close.subscribe(n=>{this._destroyMenu(n),(n==="click"||n==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(n)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(t,n,o,a,s,l,u,f,v){this._overlay=t,this._element=n,this._viewContainerRef=o,this._menuItemInstance=l,this._dir=u,this._focusMonitor=f,this._ngZone=v,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=ve.EMPTY,this._hoverSubscription=ve.EMPTY,this._menuCloseSubscription=ve.EMPTY,this._changeDetectorRef=k(he),this._handleTouchStart=C=>{Sd(C)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new T,this.onMenuOpen=this.menuOpened,this.menuClosed=new T,this.onMenuClose=this.menuClosed,this._scrollStrategy=a,this._parentMaterialMenu=s instanceof ka?s:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,qk)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,qk),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){let t=this.menu;if(this._menuOpen||!t)return;let n=this._createOverlay(t),o=n.getConfig(),a=o.positionStrategy;this._setPosition(t,a),o.hasBackdrop=t.hasBackdrop==null?!this.triggersSubmenu():t.hasBackdrop,n.attach(this._getPortal(t)),t.lazyContent&&t.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(t),t instanceof ka&&(t._startAnimation(),t._directDescendantItems.changes.pipe(fe(t.close)).subscribe(()=>{a.withLockedPosition(!1).reapplyLastPosition(),a.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(t,n){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,n):this._element.nativeElement.focus(n)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(t){if(!this._overlayRef||!this.menuOpen)return;let n=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&(t==="keydown"||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,n instanceof ka?(n._resetAnimation(),n.lazyContent?n._animationDone.pipe(Ye(o=>o.toState==="void"),Ot(1),fe(n.lazyContent._attached)).subscribe({next:()=>n.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),n?.lazyContent?.detach())}_initMenu(t){t.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,t.direction=this.dir,this._setMenuElevation(t),t.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(t){if(t.setElevation){let n=0,o=t.parentMenu;for(;o;)n++,o=o.parentMenu;t.setElevation(n)}}_setIsMenuOpen(t){t!==this._menuOpen&&(this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(t),this._changeDetectorRef.markForCheck())}_createOverlay(t){if(!this._overlayRef){let n=this._getOverlayConfig(t);this._subscribeToPositions(t,n.positionStrategy),this._overlayRef=this._overlay.create(n),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(t){return new Mn({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:t.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:t.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t,n){t.setPositionClasses&&n.positionChanges.subscribe(o=>{let a=o.connectionPair.overlayX==="start"?"after":"before",s=o.connectionPair.overlayY==="top"?"below":"above";this._ngZone?this._ngZone.run(()=>t.setPositionClasses(a,s)):t.setPositionClasses(a,s)})}_setPosition(t,n){let[o,a]=t.xPosition==="before"?["end","start"]:["start","end"],[s,l]=t.yPosition==="above"?["bottom","top"]:["top","bottom"],[u,f]=[s,l],[v,C]=[o,a],D=0;if(this.triggersSubmenu()){if(C=o=t.xPosition==="before"?"start":"end",a=v=o==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let S=this._parentMaterialMenu.items.first;this._parentInnerPadding=S?S._getHostElement().offsetTop:0}D=s==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else t.overlapTrigger||(u=s==="top"?"bottom":"top",f=l==="top"?"bottom":"top");n.withPositions([{originX:o,originY:u,overlayX:v,overlayY:s,offsetY:D},{originX:a,originY:u,overlayX:C,overlayY:s,offsetY:D},{originX:o,originY:f,overlayX:v,overlayY:l,offsetY:-D},{originX:a,originY:f,overlayX:C,overlayY:l,offsetY:-D}])}_menuClosingActions(){let t=this._overlayRef.backdropClick(),n=this._overlayRef.detachments(),o=this._parentMaterialMenu?this._parentMaterialMenu.closed:oe(),a=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Ye(s=>s!==this._menuItemInstance),Ye(()=>this._menuOpen)):oe();return wt(t,o,a,n)}_handleMousedown(t){Dd(t)||(this._openedBy=t.button===0?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){let n=t.keyCode;(n===13||n===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(n===39&&this.dir==="ltr"||n===37&&this.dir==="rtl")&&(this._openedBy="keyboard",this.openMenu())}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Ye(t=>t===this._menuItemInstance&&!t.disabled),Qr(0,dc)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof ka&&this.menu._isAnimating?this.menu._animationDone.pipe(Ot(1),Qr(0,dc),fe(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(t){return(!this._portal||this._portal.templateRef!==t.templateRef)&&(this._portal=new Oi(t.templateRef,this._viewContainerRef)),this._portal}};e.\u0275fac=function(n){return new(n||e)(m(xt),m(q),m(Ct),m(Kk),m(tw,8),m(ys,10),m(Nt,8),m(Di),m(Z))},e.\u0275dir=L({type:e,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(n,o){n&1&&b("click",function(s){return o._handleClick(s)})("mousedown",function(s){return o._handleMousedown(s)})("keydown",function(s){return o._handleKeydown(s)}),n&2&&ie("aria-haspopup",o.menu?"menu":null)("aria-expanded",o.menuOpen)("aria-controls",o.menuOpen?o.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[0,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[0,"matMenuTriggerFor","menu"],menuData:[0,"matMenuTriggerData","menuData"],restoreFocus:[0,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"],standalone:!0});let i=e;return i})(),Zk=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({providers:[R$],imports:[Ei,Lr,pe,an,so,pe]});let i=e;return i})();var Jk=Ui({passive:!0}),eA=(()=>{let e=class e{constructor(t,n){this._platform=t,this._ngZone=n,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return Ai;let n=En(t),o=this._monitoredElements.get(n);if(o)return o.subject;let a=new G,s="cdk-text-field-autofilled",l=u=>{u.animationName==="cdk-text-field-autofill-start"&&!n.classList.contains(s)?(n.classList.add(s),this._ngZone.run(()=>a.next({target:u.target,isAutofilled:!0}))):u.animationName==="cdk-text-field-autofill-end"&&n.classList.contains(s)&&(n.classList.remove(s),this._ngZone.run(()=>a.next({target:u.target,isAutofilled:!1})))};return this._ngZone.runOutsideAngular(()=>{n.addEventListener("animationstart",l,Jk),n.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(n,{subject:a,unlisten:()=>{n.removeEventListener("animationstart",l,Jk)}}),a}stopMonitoring(t){let n=En(t),o=this._monitoredElements.get(n);o&&(o.unlisten(),o.subject.complete(),n.classList.remove("cdk-text-field-autofill-monitored"),n.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(n))}ngOnDestroy(){this._monitoredElements.forEach((t,n)=>this.stopMonitoring(n))}};e.\u0275fac=function(n){return new(n||e)(M(Ve),M(Z))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var tA=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({});let i=e;return i})();var iw=new R("MAT_INPUT_VALUE_ACCESSOR"),F$=["button","checkbox","file","hidden","image","radio","range","reset","submit"],N$=0,ft=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(t){this._disabled=Bn(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(sr.required)??!1}set required(t){this._required=Bn(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&j0().has(this._type)&&(this._elementRef.nativeElement.type=this._type),this._ensureWheelDefaultBehavior()}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(t){this._errorStateTracker.matcher=t}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=Bn(t)}get errorState(){return this._errorStateTracker.errorState}set errorState(t){this._errorStateTracker.errorState=t}constructor(t,n,o,a,s,l,u,f,v,C){this._elementRef=t,this._platform=n,this.ngControl=o,this._autofillMonitor=f,this._ngZone=v,this._formField=C,this._uid=`mat-input-${N$++}`,this._webkitBlinkWheelListenerAttached=!1,this.focused=!1,this.stateChanges=new G,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(P=>j0().has(P)),this._iOSKeyupListener=P=>{let z=P.target;!z.value&&z.selectionStart===0&&z.selectionEnd===0&&(z.setSelectionRange(1,1),z.setSelectionRange(0,0))},this._webkitBlinkWheelListener=()=>{};let D=this._elementRef.nativeElement,S=D.nodeName.toLowerCase();this._inputValueAccessor=u||D,this._previousNativeValue=this.value,this.id=this.id,n.IOS&&v.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._errorStateTracker=new Fr(l,o,s,a,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=S==="select",this._isTextarea=S==="textarea",this._isInFormField=!!C,this._isNativeSelect&&(this.controlType=D.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener),this._webkitBlinkWheelListenerAttached&&this._elementRef.nativeElement.removeEventListener("wheel",this._webkitBlinkWheelListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==null&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(t){t!==this.focused&&(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){let t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_dirtyCheckPlaceholder(){let t=this._getPlaceholder();if(t!==this._previousPlaceholder){let n=this._elementRef.nativeElement;this._previousPlaceholder=t,t?n.setAttribute("placeholder",t):n.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){F$.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let t=this._elementRef.nativeElement,n=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&n&&n.label)}else return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let t=this._elementRef.nativeElement;return this._isNativeSelect&&(t.multiple||t.size>1)}_ensureWheelDefaultBehavior(){!this._webkitBlinkWheelListenerAttached&&this._type==="number"&&(this._platform.BLINK||this._platform.WEBKIT)&&(this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("wheel",this._webkitBlinkWheelListener)}),this._webkitBlinkWheelListenerAttached=!0),this._webkitBlinkWheelListenerAttached&&this._type!=="number"&&(this._elementRef.nativeElement.removeEventListener("wheel",this._webkitBlinkWheelListener),this._webkitBlinkWheelListenerAttached=!0)}};e.\u0275fac=function(n){return new(n||e)(m(q),m(Ve),m(kn,10),m(Oo,8),m(gs,8),m(Nr),m(iw,10),m(eA),m(Z),m(Ro,8))},e.\u0275dir=L({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(n,o){n&1&&b("focus",function(){return o._focusChanged(!0)})("blur",function(){return o._focusChanged(!1)})("input",function(){return o._onInput()}),n&2&&(Si("id",o.id)("disabled",o.disabled)("required",o.required),ie("name",o.name||null)("readonly",o.readonly&&!o._isNativeSelect||null)("aria-invalid",o.empty&&o.required?null:o.errorState)("aria-required",o.required)("id",o.id),ne("mat-input-server",o._isServer)("mat-mdc-form-field-textarea-control",o._isInFormField&&o._isTextarea)("mat-mdc-form-field-input-control",o._isInFormField)("mdc-text-field__input",o._isInFormField)("mat-mdc-native-select-inline",o._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],standalone:!0,features:[Ce([{provide:Ia,useExisting:e}]),Qe]});let i=e;return i})(),iA=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({imports:[pe,vs,vs,tA,pe]});let i=e;return i})();var nA=(()=>{let e=class e{transform(t){return my(t)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275pipe=Qo({name:"isEmpty",type:e,pure:!0});let i=e;return i})(),yi=(()=>{let e=class e{transform(t){return!my(t)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275pipe=Qo({name:"notEmpty",type:e,pure:!0});let i=e;return i})();var oA=(()=>{let e=class e{transform(t,n){let o;return n===void 0?o=(a,s)=>a>s?1:-1:o=(a,s)=>a[n]>s[n]?1:-1,t.sort(o)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275pipe=Qo({name:"sort",type:e,pure:!0});let i=e;return i})();var V$=["trigger"],j$=()=>[5,10,25,100,1e3];function B$(i,e){if(i&1&&I(0,"img",39),i&2){let r=_();p("src",r.icon,Ie)}}function z$(i,e){if(i&1){let r=A();c(0,"button",47),b("click",function(){let n=y(r).$implicit,o=_(5);return w(o.newAction.emit({param:n,table:o}))}),d()}if(i&2){let r=e.$implicit,t=_(5);p("innerHTML",t.api.safeString(t.api.gui.icon(r.icon)+r.name),qt)}}function U$(i,e){if(i&1&&(mt(0),c(1,"button",44),g(2),d(),c(3,"mat-menu",45,3),x(5,z$,1,1,"button",46),_t(6,"sort"),d(),pt()),i&2){let r=e.$implicit,t=we(4);h(),p("matMenuTriggerFor",t),h(),$e(r.key),h(),p("overlapTrigger",!1),h(2),p("ngForOf",bb(6,4,r.value,"name"))}}function H$(i,e){if(i&1&&(mt(0),c(1,"mat-menu",40,2),x(3,U$,7,7,"ng-container",41),_t(4,"keyvalue"),d(),c(5,"a",42)(6,"i",22),g(7,"insert_drive_file"),d(),c(8,"span",43)(9,"uds-translate"),g(10,"New"),d()(),c(11,"i",22),g(12,"arrow_drop_down"),d()(),pt()),i&2){let r=we(2),t=_(3);h(),p("overlapTrigger",!1),h(2),p("ngForOf",Dt(4,3,t.grpTypes)),h(2),p("matMenuTriggerFor",r)}}function $$(i,e){if(i&1){let r=A();c(0,"button",49),b("click",function(){let n=y(r).$implicit,o=_(4);return w(o.newAction.emit({param:n,table:o}))}),d()}if(i&2){let r=e.$implicit,t=_(4);p("innerHTML",t.api.safeString(t.api.gui.icon(r.icon)+r.name),qt)}}function W$(i,e){if(i&1&&(mt(0),c(1,"mat-menu",40,2),x(3,$$,1,1,"button",48),_t(4,"sort"),d(),c(5,"a",42)(6,"i",22),g(7,"insert_drive_file"),d(),c(8,"span",43)(9,"uds-translate"),g(10,"New"),d()(),c(11,"i",22),g(12,"arrow_drop_down"),d()(),pt()),i&2){let r=we(2),t=_(3);h(),p("overlapTrigger",!1),h(2),p("ngForOf",bb(4,3,t.oTypes,"name")),h(2),p("matMenuTriggerFor",r)}}function G$(i,e){if(i&1&&(mt(0),x(1,H$,13,5,"ng-container",13)(2,W$,13,6,"ng-container",13),pt()),i&2){let r=_(2);h(),p("ngIf",r.newGrouped),h(),p("ngIf",!r.newGrouped)}}function q$(i,e){if(i&1){let r=A();mt(0),c(1,"a",50),b("click",function(){y(r);let n=_(2);return w(n.newAction.emit({param:void 0,table:n}))}),c(2,"i",22),g(3,"insert_drive_file"),d(),c(4,"span",43)(5,"uds-translate"),g(6,"New"),d()()(),pt()}}function Y$(i,e){if(i&1&&(mt(0),x(1,G$,3,2,"ng-container",13)(2,q$,7,0,"ng-container",13),pt()),i&2){let r=_();h(),p("ngIf",r.oTypes!==void 0&&r.oTypes.length!==0),h(),p("ngIf",r.oTypes!==void 0&&r.oTypes.length===0)}}function Q$(i,e){if(i&1){let r=A();mt(0),c(1,"a",51),b("click",function(){y(r);let n=_();return w(n.emitIfSelection(n.editAction))}),c(2,"i",22),g(3,"edit"),d(),c(4,"span",43)(5,"uds-translate"),g(6,"Edit"),d()()(),pt()}if(i&2){let r=_();h(),p("disabled",r.selection.selected.length!==1)}}function K$(i,e){if(i&1){let r=A();mt(0),c(1,"a",51),b("click",function(){y(r);let n=_();return w(n.permissions())}),c(2,"i",22),g(3,"perm_identity"),d(),c(4,"span",43)(5,"uds-translate"),g(6,"Permissions"),d()()(),pt()}if(i&2){let r=_();h(),p("disabled",r.selection.selected.length!==1)}}function Z$(i,e){if(i&1){let r=A();c(0,"a",53),b("click",function(){let n=y(r).$implicit,o=_(2);return w(o.emitCustom(n))}),d()}if(i&2){let r=e.$implicit,t=_(2);p("disabled",t.isCustomDisabled(r))("innerHTML",r.html,qt)}}function X$(i,e){if(i&1&&(mt(0),x(1,Z$,1,2,"a",52),pt()),i&2){let r=_();h(),p("ngForOf",r.getcustomButtons())}}function J$(i,e){if(i&1){let r=A();mt(0),c(1,"a",54),b("click",function(){y(r);let n=_();return w(n.export())}),c(2,"i",22),g(3,"import_export"),d(),c(4,"span",43)(5,"uds-translate"),g(6,"Export CSV"),d()()(),pt()}}function eW(i,e){if(i&1){let r=A();mt(0),c(1,"a",55),b("click",function(){y(r);let n=_();return w(n.emitIfSelection(n.deleteAction,!0))}),c(2,"i",22),g(3,"delete_forever"),d(),c(4,"span",43)(5,"uds-translate"),g(6,"Delete"),d()()(),pt()}if(i&2){let r=_();h(),p("disabled",r.selection.isEmpty())}}function tW(i,e){if(i&1){let r=A();c(0,"button",56),b("click",function(){y(r);let n=_();return n.filterText="",w(n.applyFilter())}),c(1,"i",22),g(2,"clear"),d()()}}function iW(i,e){i&1&&I(0,"mat-header-cell")}function nW(i,e){i&1&&(c(0,"i",61),g(1,"check_box"),d())}function oW(i,e){i&1&&(c(0,"i",62),g(1,"check_box_outline_blank"),d())}function rW(i,e){if(i&1){let r=A();c(0,"mat-cell",59),b("click",function(n){let o=y(r).$implicit,a=_(2);return w(a.clickRow(o,n))}),x(1,nW,2,0,"i",60)(2,oW,2,0,"ng-template",null,4,fi),d()}if(i&2){let r=e.$implicit,t=we(3),n=_(2);h(),p("ngIf",n.selection.isSelected(r))("ngIfElse",t)}}function aW(i,e){i&1&&(mt(0,57),x(1,iW,1,0,"mat-header-cell",27)(2,rW,4,2,"mat-cell",58),pt())}function sW(i,e){i&1&&I(0,"mat-header-cell")}function lW(i,e){if(i&1){let r=A();c(0,"mat-cell")(1,"div",63),b("click",function(n){let o=y(r).$implicit,a=_();return a.detailAction.emit({param:o,table:a}),w(n.stopPropagation())}),c(2,"i",22),g(3,"subdirectory_arrow_right"),d()()()}}function cW(i,e){if(i&1&&(c(0,"mat-header-cell",67),g(1),d()),i&2){let r=_().$implicit;h(),$e(r.title)}}function dW(i,e){if(i&1){let r=A();c(0,"mat-cell",68),b("click",function(n){let o=y(r).$implicit,a=_(2);return w(a.clickRow(o,n))})("contextmenu",function(n){let o=y(r).$implicit,a=_().$implicit,s=_();return w(s.onContextMenu(o,a,n))}),I(1,"div",69),d()}if(i&2){let r=e.$implicit,t=_().$implicit,n=_();h(),p("innerHtml",n.getRowColumn(r,t),qt)}}function uW(i,e){if(i&1&&(mt(0,64),x(1,cW,2,1,"mat-header-cell",65)(2,dW,2,1,"mat-cell",66),pt()),i&2){let r=e.$implicit;sa("matColumnDef",r.name)}}function hW(i,e){i&1&&I(0,"mat-header-row")}function mW(i,e){if(i&1&&I(0,"mat-row",70),i&2){let r=e.$implicit,t=_();p("ngClass",t.rowClass(r))}}function pW(i,e){if(i&1&&(c(0,"div",71),g(1),c(2,"uds-translate"),g(3,"Selected items"),d()()),i&2){let r=_();h(),F(" ",r.selection.selected.length," ")}}function fW(i,e){if(i&1){let r=A();c(0,"button",75),b("click",function(){y(r);let n=_(2);return w(n.copyToClipboard())}),c(1,"i",76),g(2,"content_copy"),d(),c(3,"uds-translate"),g(4,"Copy"),d()()}}function gW(i,e){if(i&1){let r=A();c(0,"button",75),b("click",function(){y(r);let n=_().item,o=_();return w(o.detailAction.emit({param:n,table:o}))}),c(1,"i",76),g(2,"subdirectory_arrow_right"),d(),c(3,"uds-translate"),g(4,"Detail"),d()()}}function _W(i,e){if(i&1){let r=A();c(0,"button",75),b("click",function(){y(r);let n=_(2);return w(n.emitIfSelection(n.editAction))}),c(1,"i",76),g(2,"edit"),d(),c(3,"uds-translate"),g(4,"Edit"),d()()}}function vW(i,e){if(i&1){let r=A();c(0,"button",75),b("click",function(){y(r);let n=_(2);return w(n.permissions())}),c(1,"i",76),g(2,"perm_identity"),d(),c(3,"uds-translate"),g(4,"Permissions"),d()()}}function bW(i,e){if(i&1){let r=A();c(0,"button",77),b("click",function(){let n=y(r).$implicit,o=_(2);return w(o.emitCustom(n))}),d()}if(i&2){let r=e.$implicit,t=_(2);p("disabled",t.isCustomDisabled(r))("innerHTML",r.html,qt)}}function yW(i,e){if(i&1){let r=A();c(0,"button",78),b("click",function(){y(r);let n=_(2);return w(n.emitIfSelection(n.deleteAction))}),c(1,"i",76),g(2,"delete_forever"),d(),c(3,"uds-translate"),g(4,"Delete"),d()()}}function wW(i,e){if(i&1){let r=A();c(0,"button",77),b("click",function(){let n=y(r).$implicit,o=_(3);return w(o.emitCustom(n))}),d()}if(i&2){let r=e.$implicit,t=_(3);p("disabled",t.isCustomDisabled(r))("innerHTML",r.html,qt)}}function CW(i,e){if(i&1&&(mt(0),I(1,"mat-divider"),x(2,wW,1,2,"button",73),pt()),i&2){let r=_(2);h(2),p("ngForOf",r.getCustomAccelerators())}}function xW(i,e){if(i&1&&x(0,fW,5,0,"button",72)(1,gW,5,0,"button",72)(2,_W,5,0,"button",72)(3,vW,5,0,"button",72)(4,bW,1,2,"button",73)(5,yW,5,0,"button",74)(6,CW,3,1,"ng-container",13),i&2){let r=_();p("ngIf",r.allowCopy===!0),h(),p("ngIf",r.detailAction.observed),h(),p("ngIf",r.editAction.observed),h(),p("ngIf",r.hasPermissions===!0),h(),p("ngForOf",r.getCustomMenu()),h(),p("ngIf",r.deleteAction.observed),h(),p("ngIf",r.hasAccelerators)}}var Te=(()=>{let e=class e{constructor(t,n){this.api=t,this.clipboard=n,this.contextMenu={},this.paginator={},this.sort={},this.rest={},this.tableId="",this.pageSize=10,this.newGrouped=!1,this.allowCopy=!0,this.loaded=new T,this.rowSelected=new T,this.newAction=new T,this.editAction=new T,this.deleteAction=new T,this.customButtonAction=new T,this.detailAction=new T,this.title="",this.subtitle="",this.displayedColumns=[],this.columns=[],this.types=new Map,this.oTypes=[],this.grpTypes=new Map,this.rowStyleInfo=null,this.selection=new Rr(!0,[]),this.lastSel=null,this.dataSource=new Yl([]),this.firstLoad=!0,this.loading=!1,this.lastClickInfo={time:0,x:-1e4,y:-1e4},this.clipValue="",this.contextMenuPosition={x:"0px",y:"0px"},this.filterText="",this.hasCustomButtons=!1,this.hasButtons=!1,this.hasActions=!1,this.hasAccelerators=!1}ngOnInit(){return W(this,null,function*(){this.customButtons===void 0||this.customButtons.length===0||!this.customButtonAction.observed?this.hasCustomButtons=!1:this.hasCustomButtons=this.getcustomButtons().length>0,this.hasAccelerators=this.getCustomAccelerators().length>0,this.hasButtons=this.hasCustomButtons||this.detailAction.observed||this.editAction.observed||this.hasPermissions||this.deleteAction.observed,this.hasActions=this.hasButtons||this.customButtons!==void 0&&this.customButtons.length>0,this.tableId=this.tableId||this.rest.id,this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.dataSource.sortingDataAccessor=(a,s)=>{if(!(s in a))return"";let l=a[s];return typeof l=="number"?l:typeof l=="string"?l.toLocaleLowerCase():(l===null&&(l=7226578800),l.changingThisBreaksApplicationSecurity&&(l=l.changingThisBreaksApplicationSecurity),(""+l).replace(/<(span|\/span)[^>]*>/g,"").toLocaleLowerCase())},this.dataSource.filterPredicate=(a,s)=>{try{this.columns.forEach(l=>{if((""+a[l.name]).replace(/<(span|\/span)[^>]*>/g,"").toLocaleLowerCase().includes(s))throw Error()})}catch{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 Rr(this.multiSelect===!0,[]);let t=this.rest.permision();t&Vr.MANAGEMENT||(this.newAction.unsubscribe(),this.editAction.unsubscribe(),this.deleteAction.unsubscribe(),this.customButtonAction.unsubscribe()),t!==Vr.ALL&&(this.hasPermissions=!1),this.icon!==void 0&&(this.icon=this.api.staticURL("admin/img/icons/"+this.icon+".png"));let n=yield this.rest.types(),o=yield this.rest.tableInfo();yield this.initialize(o,n)})}initialize(t,n){return W(this,null,function*(){this.oTypes=n,this.types=new Map,this.grpTypes=new Map;for(let a of n)if(this.types.set(a.type,a),a.group!==void 0){this.grpTypes.has(a.group)||this.grpTypes.set(a.group,[]);let s=this.grpTypes.get(a.group);s!==void 0&&s.push(a)}t["row-style"]!==void 0&&t["row-style"].field!==void 0?this.rowStyleInfo=t["row-style"]:this.rowStyleInfo=null,this.title=t.title,this.subtitle=t.subtitle||"",this.hasButtons&&this.displayedColumns.push("selection-column");let o=[];for(let a of t.fields)for(let s in a)if(a.hasOwnProperty(s)){let l=a[s];o.push({name:s,title:l.title,type:l.type===void 0?gi.ALPHANUMERIC:l.type,dict:l.dict}),(l.visible===void 0||l.visible)&&this.displayedColumns.push(s)}this.columns=o,this.detailAction.observed&&this.displayedColumns.push("detail-column"),yield this.overview()})}overview(){return W(this,null,function*(){if(!this.loading){this.selection.clear(),this.dataSource.data=[],this.loading=!0;try{let t=yield this.rest.overview();if(this.onItem)for(let n of t)this.onItem(n);this.dataSource.data=t,this.loaded.emit({param:this.firstLoad,table:this}),this.firstLoad=!1}finally{this.loading=!1}}})}getcustomButtons(){return this.customButtons?this.customButtons.filter(t=>t.type!==ut.ONLY_MENU&&t.type!==ut.ACCELERATOR):[]}getCustomMenu(){return this.customButtons?this.customButtons.filter(t=>t.type!==ut.ACCELERATOR):[]}getCustomAccelerators(){return this.customButtons?this.customButtons.filter(t=>t.type===ut.ACCELERATOR):[]}getRowColumn(t,n){let o=t[n.name];switch(n.type){case gi.IMAGE:return this.api.safeString(this.api.gui.icon(o,"48px"));case gi.DATE:o=$i("SHORT_DATE_FORMAT",o);break;case gi.DATETIME:o=$i("SHORT_DATETIME_FORMAT",o);break;case gi.TIME:o=$i("TIME_FORMAT",o);break;case gi.DATETIMESEC:o=$i("SHORT_DATE_FORMAT",o," H:i:s");break;case gi.ICON:try{o=this.api.gui.icon(this.types.get(t.type).icon)+o}catch{}return this.api.safeString(o);case gi.CALLBACK:break;case gi.DICTIONARY:try{o=n.dict[o]}catch{o=""}break}return o}applyFilter(){this.api.putOnStorage(this.tableId+"filterValue",this.filterText),this.dataSource.filter=this.filterText.trim().toLowerCase()}sortChanged(t){this.api.putOnStorage(this.tableId+"sort-column",t.active),this.api.putOnStorage(this.tableId+"sort-direction",t.direction)}copyToClipboard(){this.clipboard.copy(this.clipValue||"")}rowClass(t){let n=[];return this.selection.isSelected(t)&&n.push("selected"),this.rowStyleInfo!==null&&n.push(this.rowStyleInfo.prefix+t[this.rowStyleInfo.field]),n}emitIfSelection(t,n=!1){let o=this.selection.selected.length;o>0&&(n===!0||o===1)&&t.emit({table:this,param:o})}isCustomDisabled(t){switch(t.type){case void 0:case ut.SINGLE_SELECT:return this.selection.selected.length!==1||t.disabled===!0;case ut.MULTI_SELECT:return this.selection.isEmpty()||t.disabled===!0;default:return!1}}emitCustom(t){!this.selection.selected.length&&t.type!==ut.ALWAYS||(t.type===ut.ACCELERATOR?this.api.navigation.goto(t.id,this.selection.selected[0],t.acceleratorProperties||[]):this.customButtonAction.emit({param:t,table:this}))}clickRow(t,n){let o=new Date().getTime();if((this.detailAction.observed||this.editAction.observed)&&Math.abs(this.lastClickInfo.x-n.x)<16&&Math.abs(this.lastClickInfo.y-n.y)<16&&o-this.lastClickInfo.time<250){this.selection.clear(),this.selection.select(t),this.detailAction.observed?this.detailAction.emit({param:t,table:this}):this.emitIfSelection(this.editAction,!1);return}this.lastClickInfo={time:o,x:n.x,y:n.y},this.doSelect(t,n)}doSelect(t,n){if(n.ctrlKey)this.lastSel=t,this.selection.toggle(t);else if(n.shiftKey){if(this.selection.isEmpty())this.selection.toggle(t);else if(this.selection.clear(),this.lastSel!==t){let o=!1,a=this.dataSource.sort?this.dataSource.sortData(this.dataSource.data,this.dataSource.sort):this.dataSource.data;for(let s of a){if((s===t||s===this.lastSel)&&(o=!o,o===!1)){this.selection.select(s);break}o&&this.selection.select(s)}}}else this.lastSel!==t&&this.selection.clear(),this.lastSel=t,this.selection.toggle(t);this.rowSelected.emit({param:null,table:this})}onContextMenu(t,n,o){o.preventDefault();let a=t[n.name];a.changingThisBreaksApplicationSecurity&&(a=a.changingThisBreaksApplicationSecurity.replace(/.*<\/span>/,"")),this.clipValue=""+a,this.hasActions&&(this.selection.clear(),this.selection.select(t),this.contextMenuPosition.x=o.clientX+"px",this.contextMenuPosition.y=o.clientY+"px",this.contextMenu.menuData={item:t},this.contextMenu.openMenu())}selectElement(t,n){(this.dataSource.sort?this.dataSource.sortData(this.dataSource.data,this.dataSource.sort):this.dataSource.data).forEach((a,s)=>{if(a[t]===n){let l=Math.floor(s/this.paginator.pageSize);this.selection.select(a),this.paginator.pageIndex=l,this.paginator.page.next({pageIndex:l,pageSize:this.paginator.pageSize,length:this.paginator.length})}})}export(){Kf(this)}permissions(){this.selection.selected.length&&Bk.launch(this.api,this.rest,this.selection.selected[0])}keyDown(t){switch(t.keyCode){case 36:this.paginator.firstPage(),t.preventDefault();break;case 35:this.paginator.lastPage(),t.preventDefault();break;case 39:this.paginator.nextPage(),t.preventDefault();break;case 37:this.paginator.previousPage(),t.preventDefault();break}}};e.\u0275fac=function(n){return new(n||e)(m(B),m(Wk))},e.\u0275cmp=E({type:e,selectors:[["uds-table"]],viewQuery:function(n,o){if(n&1&&(ce(V$,7),ce(jr,7),ce(Br,7)),n&2){let a;Q(a=K())&&(o.contextMenu=a.first),Q(a=K())&&(o.paginator=a.first),Q(a=K())&&(o.sort=a.first)}},inputs:{rest:"rest",onItem:"onItem",icon:"icon",multiSelect:"multiSelect",allowExport:"allowExport",hasPermissions:"hasPermissions",customButtons:"customButtons",tableId:"tableId",pageSize:"pageSize",newGrouped:"newGrouped",allowCopy:"allowCopy"},outputs:{loaded:"loaded",rowSelected:"rowSelected",newAction:"newAction",editAction:"editAction",deleteAction:"deleteAction",customButtonAction:"customButtonAction",detailAction:"detailAction"},decls:51,vars:30,consts:[["trigger","matMenuTrigger"],["contextMenu","matMenu"],["newMenu","matMenu"],["sub_menu","matMenu"],["uncheck",""],[1,"card"],[1,"card-header"],[1,"card-title"],[3,"src",4,"ngIf"],[1,"card-subtitle"],[1,"card-content"],[1,"header"],[1,"buttons"],[4,"ngIf"],[1,"navigation"],[1,"filter"],["matInput","",3,"keyup","ngModelChange","ngModel"],["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"],[1,"material-icons"],["tabindex","0",1,"table",3,"keydown"],["matSort","",3,"matSortChange","dataSource"],["matColumnDef","selection-column",4,"ngIf"],["matColumnDef","detail-column"],[4,"matHeaderCellDef"],[4,"matCellDef"],[3,"matColumnDef",4,"ngFor","ngForOf"],[4,"matHeaderRowDef"],[3,"ngClass",4,"matRowDef","matRowDefColumns"],[3,"hidden"],[1,"loading"],["mode","indeterminate"],[1,"footer"],["class","selection",4,"ngIf"],[2,"position","fixed",3,"matMenuTriggerFor"],["matMenuContent",""],[3,"src"],[1,"wide-menu",3,"overlapTrigger"],[4,"ngFor","ngForOf"],["mat-raised-button","","color","primary",3,"matMenuTriggerFor"],[1,"button-text"],["mat-menu-item","",1,"main-button",3,"matMenuTriggerFor"],[3,"overlapTrigger"],["mat-menu-item","",3,"innerHTML","click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click","innerHTML"],["mat-menu-item","","class","main-button",3,"innerHTML","click",4,"ngFor","ngForOf"],["mat-menu-item","",1,"main-button",3,"click","innerHTML"],["mat-raised-button","","color","primary",1,"main-button",3,"click"],["mat-raised-button","",3,"click","disabled"],["mat-raised-button","",3,"disabled","innerHTML","click",4,"ngFor","ngForOf"],["mat-raised-button","",3,"click","disabled","innerHTML"],["mat-raised-button","",3,"click"],["mat-raised-button","","color","warn",3,"click","disabled"],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],["matColumnDef","selection-column"],[3,"click",4,"matCellDef"],[3,"click"],["class","material-icons check checked",4,"ngIf","ngIfElse"],[1,"material-icons","check","checked"],[1,"material-icons","check"],[1,"detail-launcher",3,"click"],[3,"matColumnDef"],["mat-sort-header","",4,"matHeaderCellDef"],[3,"click","contextmenu",4,"matCellDef"],["mat-sort-header",""],[3,"click","contextmenu"],[3,"innerHtml"],[3,"ngClass"],[1,"selection"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"disabled","innerHTML","click",4,"ngFor","ngForOf"],["mat-menu-item","","class","menu-warn",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"material-icons","spaced"],["mat-menu-item","",3,"click","disabled","innerHTML"],["mat-menu-item","",1,"menu-warn",3,"click"]],template:function(n,o){if(n&1){let a=A();c(0,"div",5)(1,"div",6)(2,"div",7),x(3,B$,1,1,"img",8),g(4),d(),c(5,"div",9),g(6),d()(),c(7,"div",10)(8,"div",11)(9,"div",12),x(10,Y$,3,2,"ng-container",13)(11,Q$,7,1,"ng-container",13)(12,K$,7,1,"ng-container",13)(13,X$,2,1,"ng-container",13)(14,J$,7,0,"ng-container",13)(15,eW,7,1,"ng-container",13),d(),c(16,"div",14)(17,"div",15)(18,"mat-form-field")(19,"mat-label")(20,"uds-translate"),g(21,"Filter"),d()(),c(22,"input",16),b("keyup",function(){return y(a),w(o.applyFilter())}),H("ngModelChange",function(l){return y(a),$(o.filterText,l)||(o.filterText=l),w(l)}),d(),x(23,tW,3,0,"button",17),_t(24,"notEmpty"),d()(),c(25,"div",18),I(26,"mat-paginator",19),d(),c(27,"div",20)(28,"a",21),b("click",function(){return y(a),w(o.overview())}),c(29,"i",22),g(30,"autorenew"),d()()()()(),c(31,"div",23),b("keydown",function(l){return y(a),w(o.keyDown(l))}),c(32,"mat-table",24),b("matSortChange",function(l){return y(a),w(o.sortChanged(l))}),x(33,aW,3,0,"ng-container",25),mt(34,26),x(35,sW,1,0,"mat-header-cell",27)(36,lW,4,0,"mat-cell",28),pt(),x(37,uW,3,1,"ng-container",29)(38,hW,1,0,"mat-header-row",30)(39,mW,1,1,"mat-row",31),d(),c(40,"div",32)(41,"div",33),I(42,"mat-progress-spinner",34),d()()(),c(43,"div",35),g(44," \xA0 "),x(45,pW,4,1,"div",36),d()(),I(46,"div",37,0),c(48,"mat-menu",null,1),x(50,xW,7,7,"ng-template",38),d()()}if(n&2){let a=we(49);h(3),p("ngIf",o.icon!==void 0),h(),F(" ",o.title," "),h(2),F(" ",o.subtitle," "),h(4),p("ngIf",o.newAction.observed),h(),p("ngIf",o.editAction.observed),h(),p("ngIf",o.hasPermissions===!0),h(),p("ngIf",o.hasCustomButtons),h(),p("ngIf",o.allowExport===!0),h(),p("ngIf",o.deleteAction.observed),h(7),U("ngModel",o.filterText),h(),p("ngIf",Dt(24,27,o.filterText)),h(3),p("pageSize",o.pageSize)("hidePageSize",!0)("pageSizeOptions",ll(29,j$))("showFirstLastButtons",!0),h(6),p("dataSource",o.dataSource),h(),p("ngIf",o.hasButtons),h(4),p("ngForOf",o.columns),h(),p("matHeaderRowDef",o.displayedColumns),h(),p("matRowDefColumns",o.displayedColumns),h(),p("hidden",!o.loading),h(5),p("ngIf",o.hasButtons&&o.selection.selected.length>0),h(),ji("left",o.contextMenuPosition.x)("top",o.contextMenuPosition.y),p("matMenuTriggerFor",a)}},dependencies:[Sn,We,me,lt,xe,Se,xa,xp,Qi,ka,ys,Qk,Xf,_e,Ae,uo,ft,Af,Rf,Lf,Pf,Of,Vf,Ff,Nf,jf,Bf,jr,Br,Cf,Wf,qf,le,II,yi,oA],styles:['.mat-ripple[_ngcontent-%COMP%]{overflow:hidden;position:relative}.mat-ripple[_ngcontent-%COMP%]:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded[_ngcontent-%COMP%]{overflow:visible}.mat-ripple-element[_ngcontent-%COMP%]{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale3d(0,0,0);background-color:var(--mat-ripple-color, rgba(0, 0, 0, .1))}.cdk-high-contrast-active[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%], .cdk-drag-placeholder[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%]{display:none}.cdk-visually-hidden[_ngcontent-%COMP%]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl][_ngcontent-%COMP%] .cdk-visually-hidden[_ngcontent-%COMP%]{left:auto;right:0}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_ngcontent-%COMP%]{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container[_ngcontent-%COMP%]{position:fixed;z-index:1000}.cdk-overlay-container[_ngcontent-%COMP%]:empty{display:none}.cdk-global-overlay-wrapper[_ngcontent-%COMP%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:1}.cdk-high-contrast-active[_ngcontent-%COMP%] .cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:.6}.cdk-overlay-dark-backdrop[_ngcontent-%COMP%]{background:#00000052}.cdk-overlay-transparent-backdrop[_ngcontent-%COMP%]{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation[_ngcontent-%COMP%]{transition:none}.cdk-overlay-connected-position-bounding-box[_ngcontent-%COMP%]{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock[_ngcontent-%COMP%]{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize[_ngcontent-%COMP%]{resize:none}textarea.cdk-textarea-autosize-measuring[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-start{}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{animation:_ngcontent-%COMP%_cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){animation:_ngcontent-%COMP%_cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border:var(--mat-focus-indicator-border-width, 3px) var(--mat-focus-indicator-border-style, solid) var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-focus-indicator-display: block}.mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-mdc-focus-indicator-display, none);border:var(--mat-mdc-focus-indicator-border-width, 3px) var(--mat-mdc-focus-indicator-border-style, solid) var(--mat-mdc-focus-indicator-border-color, transparent);border-radius:var(--mat-mdc-focus-indicator-border-radius, 4px)}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-mdc-focus-indicator-display: block}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-app-background, transparent));color:var(--mat-app-text-color, var(--mat-app-on-background, inherit))}.mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, none)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, none)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, none)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, none)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, none)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, none)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, none)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, none)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, none)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, none)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, none)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, none)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, none)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, none)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, none)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, none)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, none)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, none)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, none)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, none)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, none)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, none)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, none)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, none)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, none)}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-wrap:wrap;margin:1rem 1rem 0rem}.buttons[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap}.buttons[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-right:1rem;margin-bottom:1rem}.buttons[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{margin-right:.1rem}.buttons[_ngcontent-%COMP%] .mat-mdc-raised-button[_ngcontent-%COMP%]:hover:not([disabled]){background-color:#fafafa;color:#000}button.mat-mdc-menu-item[_ngcontent-%COMP%]{height:2rem;line-height:2rem}.navigation[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;flex-wrap:wrap}.reload[_ngcontent-%COMP%]{margin-top:.5rem}.table[_ngcontent-%COMP%]{margin:0rem 1rem;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-o-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:#a0b0d0;cursor:pointer}.check[_ngcontent-%COMP%]{margin-left:.5rem;font-size:1.5rem;width:1.5rem}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-mdc-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-mdc-menu-panel{min-height:3rem} .mat-mdc-menu-panel.mat-mdc-menu-panel{max-width:32rem} .mat-mdc-paginator-range-label{min-width:6em}.mat-mdc-menu-item[_ngcontent-%COMP%]{min-height:2.5rem} .dark-theme .mat-mdc-paginator-container{background-color:#303030} .dark-theme .buttons .mat-mdc-raised-button:hover:not([disabled]){background-color:#303030;color:#fff} .dark-theme .mat-column-detail-column{color:#fff!important} .dark-theme .mat-column-selection-column{color:#fff!important} .dark-theme .menu-warn{color:red} .dark-theme .menu-link{color:#00f}.filter[_ngcontent-%COMP%]{display:flex;align-items:center;width:16rem}.filter[_ngcontent-%COMP%] .mat-mdc-form-field-infix{min-height:3rem;padding-top:1rem!important;padding-bottom:1rem!important}.filter[_ngcontent-%COMP%] .mat-mdc-form-field-bottom-align{height:0px}.mat-column-token[_ngcontent-%COMP%]{overflow-wrap:anywhere}']});let i=e;return i})();var rA='pause'+django.gettext("Maintenance")+"",DW='pause'+django.gettext("Exit maintenance mode")+"",SW='pause'+django.gettext("Enter maintenance mode")+"",nw=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o,this.cButtons=[{id:"maintenance",html:rA,type:ut.SINGLE_SELECT}]}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New provider"),!0)}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit provider"),!0)}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete provider"))}onMaintenance(t){let n=t.table.selection.selected[0],o=n.maintenance_mode?django.gettext("Exit maintenance mode?"):django.gettext("Enter maintenance mode?");this.api.gui.questionDialog(django.gettext("Maintenance mode for")+" "+n.name,o).then(a=>{a&&this.rest.providers.maintenance(n.id).then(()=>{t.table.overview()})})}onRowSelect(t){let n=t.table;if(n.selection.selected.length>1||n.selection.selected.length===0){this.customButtons[0].html=rA;return}n.selection.selected[0].maintenance_mode?this.customButtons[0].html=DW:this.customButtons[0].html=SW}onDetail(t){this.api.navigation.gotoService(t.param.id)}processElement(t){t.maintenance_state=t.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("provider"))}};e.\u0275fac=function(n){return new(n||e)(m(Oe),m(X),m(B))},e.\u0275cmp=E({type:e,selectors:[["uds-providers"]],decls:1,vars:7,consts:[["tableId","service-providers","icon","providers",3,"customButtonAction","newAction","editAction","deleteAction","rowSelected","detailAction","loaded","rest","onItem","multiSelect","allowExport","hasPermissions","customButtons","pageSize"]],template:function(n,o){n&1&&(c(0,"uds-table",0),b("customButtonAction",function(s){return o.onMaintenance(s)})("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("rowSelected",function(s){return o.onRowSelect(s)})("detailAction",function(s){return o.onDetail(s)})("loaded",function(s){return o.onLoad(s)}),d()),n&2&&p("rest",o.rest.providers)("onItem",o.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)},dependencies:[Te],styles:[".row-maintenance-true>mat-cell{color:#dc3131!important} .mat-column-services_count, .mat-column-user_services_count{max-width:7rem;justify-content:center} .mat-column-maintenance_state{max-width:10rem;justify-content:center}"]});let i=e;return i})();var mo=class{constructor(e,r,t,n){this.title=e,this.data=r,this.columns=t,this.id=n,this.columnsDefinition=Array.from(t,o=>{let a={};return a[o.field]={visible:!0,title:o.title,type:o.type===void 0?gi.ALPHANUMERIC:o.type},a})}get(e){return Promise.resolve({})}getLogs(e){return Promise.resolve([])}overview(e){return typeof this.data=="function"?Promise.resolve(this.data()):Promise.resolve(this.data)}summary(e){return this.overview()}put(e,r){return Promise.resolve()}create(e){return Promise.resolve()}save(e,r){return Promise.resolve()}test(e,r){return Promise.resolve("")}delete(e){return Promise.resolve()}permision(){return Vr.ALL}getPermissions(e){return Promise.resolve([])}addPermission(e,r,t,n){return Promise.resolve({})}revokePermission(e){return Promise.resolve()}types(){return Promise.resolve([])}gui(e){return Promise.resolve({})}callback(e,r){return Promise.resolve([])}tableInfo(){return Promise.resolve({fields:this.columnsDefinition,title:this.title})}detail(e,r){return null}invoke(e,r){return Promise.resolve({})}};var EW=()=>[5,10,25,100,1e3];function IW(i,e){if(i&1){let r=A();c(0,"button",24),b("click",function(){y(r);let n=_();return n.filterText="",w(n.applyFilter())}),c(1,"i",8),g(2,"close"),d()()}}function MW(i,e){if(i&1&&(c(0,"mat-header-cell",28),g(1),d()),i&2){let r=_().$implicit;h(),$e(r)}}function TW(i,e){if(i&1&&(c(0,"mat-cell"),I(1,"div",29),d()),i&2){let r=e.$implicit,t=_().$implicit,n=_();h(),p("innerHtml",n.getRowColumn(r,t),qt)}}function kW(i,e){if(i&1&&(mt(0,25),x(1,MW,2,1,"mat-header-cell",26)(2,TW,2,1,"mat-cell",27),pt()),i&2){let r=e.$implicit;p("matColumnDef",r)}}function AW(i,e){i&1&&I(0,"mat-header-row")}function OW(i,e){if(i&1&&I(0,"mat-row",30),i&2){let r=e.$implicit,t=_();p("ngClass",t.rowClass(r))}}var An=(()=>{let e=class e{constructor(t){this.api=t,this.rest={},this.itemId="",this.tableId="",this.pageSize=10,this.paginator={},this.sort={},this.filterText="",this.title="Logs",this.displayedColumns=["date","level","source","message"],this.columns=[],this.dataSource=new Yl([]),this.selection=new Rr}ngOnInit(){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";for(let t of this.displayedColumns){let n=t==="date"?gi.DATETIMESEC:gi.ALPHANUMERIC;this.columns.push({name:t,title:t,type:n})}this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",this.applyFilter(),this.overview()}overview(){return W(this,null,function*(){this.dataSource.data=yield this.rest.getLogs(this.itemId)})}selectElement(t,n){}getRowColumn(t,n){let o=t[n];return n==="date"?o=$i("SHORT_DATE_FORMAT",o," H:i:s"):n==="level"&&(o=H1(o)),o}rowClass(t){return["level-"+t.level]}applyFilter(){this.api.putOnStorage(this.tableId+"filterValue",this.filterText),this.dataSource.filter=this.filterText.trim().toLowerCase()}sortChanged(t){this.api.putOnStorage("logs-sort-column",t.active),this.api.putOnStorage("logs-sort-direction",t.direction)}export(){Kf(this)}keyDown(t){switch(t.keyCode){case 36:this.paginator.firstPage(),t.preventDefault();break;case 35:this.paginator.lastPage(),t.preventDefault();break;case 39:this.paginator.nextPage(),t.preventDefault();break;case 37:this.paginator.previousPage(),t.preventDefault();break}}};e.\u0275fac=function(n){return new(n||e)(m(B))},e.\u0275cmp=E({type:e,selectors:[["uds-logs-table"]],viewQuery:function(n,o){if(n&1&&(ce(jr,7),ce(Br,7)),n&2){let a;Q(a=K())&&(o.paginator=a.first),Q(a=K())&&(o.sort=a.first)}},inputs:{rest:"rest",itemId:"itemId",tableId:"tableId",pageSize:"pageSize"},decls:37,vars:14,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,"keyup","ngModelChange","ngModel"],["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,"matSortChange","dataSource"],[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(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"div",2),I(3,"img",3),g(4," \xA0"),c(5,"uds-translate"),g(6,"Logs"),d()()(),c(7,"div",4)(8,"div",5)(9,"div",6)(10,"a",7),b("click",function(){return o.export()}),c(11,"i",8),g(12,"import_export"),d(),c(13,"span",9)(14,"uds-translate"),g(15,"Export"),d()()()(),c(16,"div",10)(17,"div",11)(18,"uds-translate"),g(19,"Filter"),d(),g(20,"\xA0 "),c(21,"mat-form-field")(22,"input",12),b("keyup",function(){return o.applyFilter()}),H("ngModelChange",function(s){return $(o.filterText,s)||(o.filterText=s),s}),d(),x(23,IW,3,0,"button",13),_t(24,"notEmpty"),d()(),c(25,"div",14),I(26,"mat-paginator",15),d(),c(27,"div",16)(28,"a",17),b("click",function(){return o.overview()}),c(29,"i",8),g(30,"autorenew"),d()()()()(),c(31,"div",18),b("keydown",function(s){return o.keyDown(s)}),c(32,"mat-table",19),b("matSortChange",function(s){return o.sortChanged(s)}),x(33,kW,3,1,"ng-container",20)(34,AW,1,0,"mat-header-row",21)(35,OW,1,1,"mat-row",22),d()(),I(36,"div",23),d()()),n&2&&(h(3),p("src",o.api.staticURL("admin/img/icons/logs.png"),Ie),h(19),U("ngModel",o.filterText),h(),p("ngIf",Dt(24,11,o.filterText)),h(3),p("pageSize",o.pageSize)("hidePageSize",!0)("pageSizeOptions",ll(13,EW))("showFirstLastButtons",!0),h(6),p("dataSource",o.dataSource),h(),p("ngForOf",o.displayedColumns),h(),p("matHeaderRowDef",o.displayedColumns),h(),p("matRowDefColumns",o.displayedColumns))},dependencies:[Sn,We,me,lt,xe,Se,xa,ke,xp,Qi,_e,uo,ft,Af,Rf,Lf,Pf,Of,Vf,Ff,Nf,jf,Bf,jr,Br,Cf,le,yi],styles:[".header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-wrap:wrap;margin:1rem 1rem 0rem}.navigation[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;flex-wrap:wrap}.reload[_ngcontent-%COMP%]{margin-top:.5rem}.table[_ngcontent-%COMP%]{margin:0rem 1rem;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-o-user-select:none;user-select:none}.mat-column-date[_ngcontent-%COMP%]{min-width:12rem;max-width:20rem}.mat-column-level[_ngcontent-%COMP%]{max-width:8rem;text-align:center}.mat-column-source[_ngcontent-%COMP%]{max-width:8rem} .level-60000>.mat-mdc-cell{color:#ff1e1e!important} .level-50000>.mat-mdc-cell{color:#ff1e1e!important} .level-40000>.mat-mdc-cell{color:#d65014!important}.filter[_ngcontent-%COMP%]{display:flex;align-items:center;width:16rem}.filter[_ngcontent-%COMP%] .mat-mdc-form-field-infix{min-height:3rem;padding-top:1rem!important;padding-bottom:1rem!important}.filter[_ngcontent-%COMP%] .mat-mdc-form-field-bottom-align{height:0px}"]});let i=e;return i})();function RW(i,e){i&1&&(c(0,"uds-translate"),g(1,"Services pools"),d())}function PW(i,e){i&1&&(c(0,"uds-translate"),g(1,"Logs"),d())}var FW=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],aA=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.customButtons=[Ii.getGotoButton(Ud,"id")],this.servicePools={},this.services=a.services,this.service=a.service}static launch(t,n,o){let a=window.innerWidth<800?"80%":"60%",s=t.gui.dialog.open(e,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{service:o,services:n},disableClose:!1})}ngOnInit(){let t=()=>this.services.invoke(this.service.id+"/servicepools");this.servicePools=new mo(django.gettext("Service pools"),t,FW,this.service.id+"infopsls")}};e.\u0275fac=function(n){return new(n||e)(m(B),m(X),m(Ne),m(Ke))},e.\u0275cmp=E({type:e,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(n,o){n&1&&(c(0,"h4",0)(1,"uds-translate"),g(2,"Information for"),d(),g(3),d(),c(4,"mat-dialog-content")(5,"mat-tab-group")(6,"mat-tab"),x(7,RW,2,0,"ng-template",1),I(8,"uds-table",2),d(),c(9,"mat-tab"),x(10,PW,2,0,"ng-template",1),c(11,"div",3),I(12,"uds-logs-table",4),d()()()(),c(13,"mat-dialog-actions")(14,"button",5)(15,"uds-translate"),g(16,"Ok"),d()()()),n&2&&(h(3),F(" ",o.service.name,` -`),h(5),p("rest",o.servicePools)("customButtons",o.customButtons)("pageSize",6),h(4),p("rest",o.services)("itemId",o.service.id)("tableId","serviceInfo-d-log"+o.service.id)("pageSize",5))},dependencies:[ke,Qt,Je,tt,et,ei,ti,oi,le,Te,An],styles:[".mat-mdc-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}"]});let i=e;return i})();function NW(i,e){if(i&1&&(c(0,"div",3),I(1,"div",4)(2,"div",5),d()),i&2){let r=e.$implicit;h(),p("innerHTML",r.gui.label,qt),h(),p("innerHTML",r.value,qt)}}var po=(()=>{let e=class e{constructor(t){this.api=t,this.gui=[]}ngOnInit(){this.processFields()}processFields(){if(!this.gui||!this.value)return;let t=this.gui.filter(n=>n.gui.type!==Ki.HIDDEN);for(let n of t){let o=this.value[n.name];switch(n.gui.type){case Ki.CHECKBOX:n.value=o?django.gettext("Yes"):django.gettext("No");break;case Ki.PASSWORD:n.value=django.gettext("(hidden)");break;case Ki.CHOICE:{let a=Fd.locateChoice(o,n);n.value=a.text;break}case Ki.MULTI_CHOICE:n.value=django.gettext("Selected items :")+o.length;break;case Ki.IMAGECHOICE:{let a=Fd.locateChoice(o,n);a.img&&(n.value=this.api.safeString(this.api.gui.icon(a.img)+" "+a.text));break}case Ki.INFO:continue;default:n.value=o}(n.value===""||n.value===void 0||n.value===null)&&(n.value="(empty)")}return t}};e.\u0275fac=function(n){return new(n||e)(m(B))},e.\u0275cmp=E({type:e,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(n,o){n&1&&(c(0,"div",0)(1,"div",1),x(2,NW,3,2,"div",2),d(),I(3,"div"),d()),n&2&&(h(2),p("ngForOf",o.processFields()))},dependencies:[We],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}"]});let i=e;return i})();var LW=i=>["/services","providers",i];function VW(i,e){i&1&&(c(0,"uds-translate"),g(1,"Summary"),d())}function jW(i,e){if(i&1&&I(0,"uds-information",15),i&2){let r=_(2);p("value",r.provider)("gui",r.gui)}}function BW(i,e){i&1&&(c(0,"uds-translate"),g(1,"Services"),d())}function zW(i,e){i&1&&(c(0,"uds-translate"),g(1,"Usage"),d())}function UW(i,e){i&1&&(c(0,"uds-translate"),g(1,"Logs"),d())}function HW(i,e){if(i&1){let r=A();c(0,"div",6)(1,"div",7)(2,"mat-tab-group",8),H("selectedIndexChange",function(n){y(r);let o=_();return $(o.selectedTab,n)||(o.selectedTab=n),w(n)}),c(3,"mat-tab"),x(4,VW,2,0,"ng-template",9),c(5,"div",10),x(6,jW,1,2,"uds-information",11),d()(),c(7,"mat-tab"),x(8,BW,2,0,"ng-template",9),c(9,"div",10)(10,"uds-table",12),b("newAction",function(n){y(r);let o=_();return w(o.onNewService(n))})("editAction",function(n){y(r);let o=_();return w(o.onEditService(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteService(n))})("customButtonAction",function(n){y(r);let o=_();return w(o.onInformation(n))})("loaded",function(n){y(r);let o=_();return w(o.onLoad(n))}),d()()(),c(11,"mat-tab"),x(12,zW,2,0,"ng-template",9),c(13,"div",10)(14,"uds-table",13),b("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteUsage(n))}),d()()(),c(15,"mat-tab"),x(16,UW,2,0,"ng-template",9),c(17,"div",10),I(18,"uds-logs-table",14),d()()()()()}if(i&2){let r=_();h(2),U("selectedIndex",r.selectedTab),p("@.disabled",!0),h(4),p("ngIf",r.provider&&r.gui),h(4),p("rest",r.services)("multiSelect",!0)("allowExport",!0)("customButtons",r.customButtons)("pageSize",r.api.config.admin.page_size)("tableId","providers-d-services"+r.provider.id),h(4),p("rest",r.usage)("multiSelect",!0)("allowExport",!0)("pageSize",r.api.config.admin.page_size)("tableId","providers-d-usage"+r.provider.id),h(4),p("rest",r.services.parentModel)("itemId",r.provider.id)("tableId","providers-d-log"+r.provider.id)}}var ow=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o,this.customButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:ut.ONLY_MENU}],this.provider=null,this.gui=[],this.services={},this.usage={},this.selectedTab=1}ngOnInit(){let t=this.route.snapshot.paramMap.get("provider");t&&(this.services=this.rest.providers.detail(t,"services"),this.usage=this.rest.providers.detail(t,"usage"),this.services.parentModel.get(t).then(n=>{this.provider=n,this.services.parentModel.gui(n.type).then(o=>{this.gui=o})}))}onInformation(t){aA.launch(this.api,this.services,t.table.selection.selected[0])}onNewService(t){let n=django.gettext("New service")+": "+(t.param.name||"");this.api.gui.forms.typedNewForm(t,n,!1)}onEditService(t){let n=django.gettext("Edit service")+": "+(t.table.selection.selected[0].name||"");this.api.gui.forms.typedEditForm(t,n,!1)}onDeleteService(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete service"))}onDeleteUsage(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete user service"))}onLoad(t){if(t.param===!0){let n=this.route.snapshot.paramMap.get("service");if(n!==void 0){this.selectedTab=1;let o=t.table;o.dataSource.data.forEach(a=>{a.id===n&&o.selection.select(a)})}}}};e.\u0275fac=function(n){return new(n||e)(m(Oe),m(X),m(B))},e.\u0275cmp=E({type:e,selectors:[["uds-provider-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,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","providers",3,"newAction","editAction","deleteAction","customButtonAction","loaded","rest","multiSelect","allowExport","customButtons","pageSize","tableId"],["icon","usage",3,"deleteAction","rest","multiSelect","allowExport","pageSize","tableId"],[3,"rest","itemId","tableId"],[3,"value","gui"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),g(4,"arrow_back"),d()(),g(5," \xA0"),I(6,"img",4),g(7),d(),x(8,HW,19,17,"div",5),d()),n&2&&(h(2),p("routerLink",Bi(4,LW,o.services.parentId)),h(4),p("src",o.api.staticURL("admin/img/icons/services.png"),Ie),h(),F(" \xA0",o.provider==null?null:o.provider.name," "),h(),p("ngIf",o.provider!==null))},dependencies:[me,bi,ei,ti,oi,le,Te,An,po]});let i=e;return i})();var rw=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o}ngOnInit(){}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New server"),!0)}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit server"),!0)}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete server"))}onDetail(t){this.api.navigation.gotoServerDetail(t.param.id)}processElement(t){t.maintenance_state=t.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("server"))}};e.\u0275fac=function(n){return new(n||e)(m(Oe),m(X),m(B))},e.\u0275cmp=E({type:e,selectors:[["uds-servers"]],decls:1,vars:7,consts:[["tableId","server-groups-table","icon","servers",3,"newAction","editAction","deleteAction","detailAction","loaded","rest","onItem","multiSelect","allowExport","hasPermissions","newGrouped","pageSize"]],template:function(n,o){n&1&&(c(0,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("detailAction",function(s){return o.onDetail(s)})("loaded",function(s){return o.onLoad(s)}),d()),n&2&&p("rest",o.rest.serverGroups)("onItem",o.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("newGrouped",!0)("pageSize",o.api.config.admin.page_size)},dependencies:[Te]});let i=e;return i})();var sA=(()=>{let e=class e{constructor(t,n,o){this.api=t,this.dialogRef=n,this.data=o,this.filename="",this.contains_header=!0,this.separator=",",this.result=[],this.title="Import CSV",this.help="Select a CSV file to import",o&&(this.title=o.title||this.title,this.help=o.help||this.help)}static launch(t,n){return W(this,null,function*(){let o=window.innerWidth<800?"60%":"40%",a=t.gui.dialog.open(e,{width:o,data:n,disableClose:!1});return new Promise((s,l)=>{a.afterClosed().subscribe(u=>{s({data:a.componentInstance.result})})})})}loadCSV(t){return W(this,null,function*(){let n=t.split(` -`).map(a=>a.trim());if(n.length>=1024)return console.log("Too many lines, do not loaded (max is 1024)"),[];this.contains_header&&(n=n.slice(1));let o=[];for(let a of n){let s=a.split(this.separator);s.length===1&&s[0]===""||o.push(s)}return o})}onFileChange(t){return W(this,null,function*(){let n=t.target.files[0];if(!n)return;this.filename=n.name;let o=new FileReader,a=new Jt;o.onload=l=>{let u=o.result;a.resolve(u)},o.readAsText(n);let s=yield a;this.result=yield this.loadCSV(s)})}};e.\u0275fac=function(n){return new(n||e)(m(B),m(Ne),m(Ke))},e.\u0275cmp=E({type:e,selectors:[["uds-cvsimport"]],decls:57,vars:8,consts:[["fileUpload",""],["mat-dialog-title",""],[3,"innerHTML"],[1,"content"],[1,"options"],[1,"field"],[3,"valueChange","value"],[3,"value"],["value",","],["value",";"],["value","|"],["value","tab"],[1,"upload"],["type","file","accept",".csv",1,"file-input",3,"change"],["type","text","matInput","","readonly","readonly",3,"ngModelChange","click","ngModel","placeholder","matTooltip"],["mat-raised-button","","mat-dialog-close","","color","primary"],["mat-raised-button","","mat-dialog-close","","color","warn",3,"click"]],template:function(n,o){if(n&1){let a=A();c(0,"h4",1)(1,"uds-translate"),g(2,"CVS Import options for"),d(),g(3,"\xA0"),I(4,"b",2),d(),c(5,"mat-dialog-content")(6,"div",3)(7,"div",4)(8,"div",5)(9,"mat-form-field")(10,"mat-label")(11,"uds-translate"),g(12,"Header"),d()(),c(13,"mat-select",6),H("valueChange",function(l){return y(a),$(o.contains_header,l)||(o.contains_header=l),w(l)}),c(14,"mat-option",7)(15,"uds-translate"),g(16,"CSV contains header line"),d()(),c(17,"mat-option",7)(18,"uds-translate"),g(19,"CSV DOES NOT contains header line"),d()()()()(),c(20,"div",5)(21,"mat-form-field")(22,"mat-label")(23,"uds-translate"),g(24,"Separator"),d()(),c(25,"mat-select",6),H("valueChange",function(l){return y(a),$(o.separator,l)||(o.separator=l),w(l)}),c(26,"mat-option",8)(27,"uds-translate"),g(28,"Use comma"),d(),g(29," (,)"),d(),c(30,"mat-option",9)(31,"uds-translate"),g(32,"Use semicolon"),d(),g(33," (;)"),d(),c(34,"mat-option",10)(35,"uds-translate"),g(36,"Use pipe"),d(),g(37," (|)"),d(),c(38,"mat-option",11)(39,"uds-translate"),g(40,"Use tab"),d(),g(41," (tab)"),d()()()()()(),c(42,"div",12)(43,"mat-form-field")(44,"mat-label")(45,"uds-translate"),g(46,"File"),d()(),c(47,"input",13,0),b("change",function(l){return y(a),w(o.onFileChange(l))}),d(),c(49,"input",14),H("ngModelChange",function(l){return y(a),$(o.filename,l)||(o.filename=l),w(l)}),b("click",function(){y(a);let l=we(48);return w(l.click())}),d()()()(),c(50,"mat-dialog-actions")(51,"button",15)(52,"uds-translate"),g(53,"Ok"),d()(),c(54,"button",16),b("click",function(){return y(a),w(o.filename="")}),c(55,"uds-translate"),g(56,"Cancel"),d()()()}n&2&&(h(4),p("innerHTML",o.title,qt),h(9),U("value",o.contains_header),h(),p("value",!0),h(3),p("value",!1),h(8),U("value",o.separator),h(24),U("ngModel",o.filename),p("placeholder","Click here to select file to import.")("matTooltip",o.help))},dependencies:[lt,xe,Se,ke,lr,Qt,Je,tt,et,_e,Ae,ft,bt,nt,le],styles:[".content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap;width:100%}.options[_ngcontent-%COMP%]{width:100%}mat-form-field[_ngcontent-%COMP%]{width:100%!important}.mat-mdc-form-field[_ngcontent-%COMP%]{min-width:100%}.file-input[_ngcontent-%COMP%]{display:none}"]});let i=e;return i})();var $W=i=>["/services","servers",i];function WW(i,e){i&1&&(c(0,"uds-translate"),g(1,"Summary"),d())}function GW(i,e){i&1&&(c(0,"uds-translate"),g(1,"Servers"),d())}function qW(i,e){if(i&1){let r=A();c(0,"div",6)(1,"div",7)(2,"mat-tab-group",8)(3,"mat-tab"),x(4,WW,2,0,"ng-template",9),c(5,"div",10),I(6,"uds-information",11),d()(),c(7,"mat-tab"),x(8,GW,2,0,"ng-template",9),c(9,"div",10)(10,"uds-table",12),b("newAction",function(n){y(r);let o=_();return w(o.onNew(n))})("editAction",function(n){y(r);let o=_();return w(o.onEdit(n))})("rowSelected",function(n){y(r);let o=_();return w(o.onRowSelect(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDelete(n))})("customButtonAction",function(n){y(r);let o=_();return w(o.customButtonAction(n))})("loaded",function(n){y(r);let o=_();return w(o.onLoad(n))}),d()()()()()()}if(i&2){let r=_();h(2),p("@.disabled",!0),h(4),p("value",r.server)("gui",r.gui),h(4),p("rest",r.servers)("multiSelect",!0)("allowExport",!0)("customButtons",r.customButtons)("pageSize",r.api.config.admin.page_size)("tableId","servers-d-servers"+r.server.id)}}var lA='pause'+django.gettext("Maintenance")+"",YW='pause'+django.gettext("Exit maintenance mode")+"",QW='pause'+django.gettext("Enter maintenance mode")+"",KW='import_export'+django.gettext("Import CSV")+"",cA=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o,this.cButtons=[{id:"maintenance",html:lA,type:ut.SINGLE_SELECT}],this.server=null,this.gui=[],this.servers={}}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){return W(this,null,function*(){let t=this.route.snapshot.paramMap.get("server");t&&(this.servers=this.rest.serverGroups.detail(t,"servers"),this.server=yield this.servers.parentModel.get(t),this.gui=yield this.servers.parentModel.gui(this.server.type),this.server.type.startsWith("UNMANAGED")&&this.cButtons.push({id:"import-csv",html:KW,type:ut.ALWAYS}))})}onMaintenance(t){let n=t.table.selection.selected[0],o=n.maintenance_mode?django.gettext("Exit maintenance mode?"):django.gettext("Enter maintenance mode?");this.api.gui.questionDialog(django.gettext("Maintenance mode for")+" "+n.name,o).then(a=>{a&&this.servers.get(n.id+"/maintenance").then(()=>{t.table.overview()})})}onImportCSV(t){return W(this,null,function*(){let n=yield sA.launch(this.api,{title:django.gettext("Import Servers"),help:django.gettext('Format of file must be "hostname,ip,mac,...". All fields except hostname are optional. Separator can be configured.')});if(n.data.length==0)return;let o=yield this.servers.put({data:n.data},this.server.id+"/importcsv");o&&o.length>0&&this.api.gui.alert("Errors found importing data: ",o.slice(0,16).join(`
-`)),t.table.overview()})}customButtonAction(t){return W(this,null,function*(){if(t.param.id=="maintenance")return yield this.onMaintenance(t);if(t.param.id=="import-csv")return yield this.onImportCSV(t)})}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New server"),!0)}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit server"),!0)}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Remove server from server group"),"hostname")}onRowSelect(t){let n=t.table;if(n.selection.selected.length>1||n.selection.selected.length===0){this.customButtons[0].html=lA;return}n.selection.selected[0].maintenance_mode?this.customButtons[0].html=YW:this.customButtons[0].html=QW}onLoad(t){if(t.param===!0){let n=this.route.snapshot.paramMap.get("server");if(n!==void 0){let o=t.table;o.dataSource.data.forEach(a=>{a.id===n&&o.selection.select(a)})}}}};e.\u0275fac=function(n){return new(n||e)(m(Oe),m(X),m(B))},e.\u0275cmp=E({type:e,selectors:[["uds-server-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","selectedIndex","1"],["mat-tab-label",""],[1,"content"],[3,"value","gui"],["icon","servers",3,"newAction","editAction","rowSelected","deleteAction","customButtonAction","loaded","rest","multiSelect","allowExport","customButtons","pageSize","tableId"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),g(4,"arrow_back"),d()(),g(5," \xA0"),I(6,"img",4),g(7),d(),x(8,qW,11,9,"div",5),d()),n&2&&(h(2),p("routerLink",Bi(4,$W,o.servers.parentId)),h(4),p("src",o.api.staticURL("admin/img/icons/servers.png"),Ie),h(),F(" \xA0",o.server==null?null:o.server.name," "),h(),p("ngIf",o.server!==null))},dependencies:[me,bi,ei,ti,oi,le,Te,po],styles:[".row-maintenance-true>mat-cell{color:orange!important}"]});let i=e;return i})();var aw=(()=>{let e=class e{constructor(t,n,o){this.api=t,this.route=n,this.rest=o}ngOnInit(){return W(this,null,function*(){let t=this.route.snapshot.paramMap.get("authenticator")})}onDetail(t){return W(this,null,function*(){this.api.navigation.gotoAuthenticatorDetail(t.param.id)})}onNew(t){return W(this,null,function*(){this.api.gui.forms.typedNewForm(t,django.gettext("New Authenticator"),!0)})}onEdit(t){return W(this,null,function*(){this.api.gui.forms.typedEditForm(t,django.gettext("Edit Authenticator"),!0)})}onDelete(t){return W(this,null,function*(){this.api.gui.forms.deleteForm(t,django.gettext("Delete Authenticator"))})}onLoad(t){return W(this,null,function*(){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("authenticator"))})}processElement(t){t.visible=this.api.boolAsHumanString(t.visible)}};e.\u0275fac=function(n){return new(n||e)(m(B),m(Oe),m(X))},e.\u0275cmp=E({type:e,selectors:[["uds-authenticators"]],decls:2,vars:6,consts:[["icon","authenticators",3,"newAction","editAction","deleteAction","detailAction","loaded","rest","multiSelect","allowExport","hasPermissions","onItem","pageSize"]],template:function(n,o){n&1&&(c(0,"div")(1,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("detailAction",function(s){return o.onDetail(s)})("loaded",function(s){return o.onLoad(s)}),d()()),n&2&&(h(),p("rest",o.rest.authenticators)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",o.processElement)("pageSize",o.api.config.admin.page_size))},dependencies:[Te]});let i=e;return i})();var sw=(()=>{let e=class e{constructor(t,n,o){this.api=t,this.route=n,this.rest=o}ngOnInit(){let t=this.route.snapshot.paramMap.get("mfa")}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New MFA"))}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit MFA"))}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete MFA"))}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("mfa"))}};e.\u0275fac=function(n){return new(n||e)(m(B),m(Oe),m(X))},e.\u0275cmp=E({type:e,selectors:[["uds-mfas"]],decls:2,vars:5,consts:[["icon","mfas",3,"newAction","editAction","deleteAction","loaded","rest","multiSelect","allowExport","hasPermissions","pageSize"]],template:function(n,o){n&1&&(c(0,"div")(1,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("loaded",function(s){return o.onLoad(s)}),d()()),n&2&&(h(),p("rest",o.rest.mfas)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Te]});let i=e;return i})();var ZW=["panel"],XW=["*"];function JW(i,e){if(i&1){let r=A();c(0,"div",1,0),b("@panelAnimation.done",function(n){y(r);let o=_();return w(o._animationDone.next(n))}),ae(2),d()}if(i&2){let r=e.id,t=_();Yt(t._classList),ne("mat-mdc-autocomplete-visible",t.showPanel)("mat-mdc-autocomplete-hidden",!t.showPanel)("mat-primary",t._color==="primary")("mat-accent",t._color==="accent")("mat-warn",t._color==="warn"),p("id",t.id)("@panelAnimation",t.isOpen?"visible":"hidden"),ie("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby(r))}}var eG=ui("panelAnimation",[Lt("void, hidden",Me({opacity:0,transform:"scaleY(0.8)"})),St(":enter, hidden => visible",[I1([Mt("0.03s linear",Me({opacity:1})),Mt("0.12s cubic-bezier(0, 0, 0.2, 1)",Me({transform:"scaleY(1)"}))])]),St(":leave, visible => hidden",[Mt("0.075s linear",Me({opacity:0}))])]),tG=0,lw=class{constructor(e,r){this.source=e,this.option=r}},dA=new R("mat-autocomplete-default-options",{providedIn:"root",factory:iG});function iG(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1}}var Kl=(()=>{let e=class e{get isOpen(){return this._isOpen&&this.showPanel}_setColor(t){this._color=t,this._changeDetectorRef.markForCheck()}set classList(t){this._classList=t,this._elementRef.nativeElement.className=""}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(t){this._hideSingleSelectionIndicator=t,this._syncParentProperties()}_syncParentProperties(){if(this.options)for(let t of this.options)t._changeDetectorRef.markForCheck()}constructor(t,n,o,a){this._changeDetectorRef=t,this._elementRef=n,this._defaults=o,this._activeOptionChanges=ve.EMPTY,this._animationDone=new T,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new T,this.opened=new T,this.closed=new T,this.optionActivated=new T,this.id=`mat-autocomplete-${tG++}`,this.inertGroups=a?.SAFARI||!1,this.autoActiveFirstOption=!!o.autoActiveFirstOption,this.autoSelectActiveOption=!!o.autoSelectActiveOption,this.requireSelection=!!o.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new Rl(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(t=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[t]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe(),this._animationDone.complete()}_setScrollTop(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(t){let n=new lw(this,t);this.optionSelected.emit(n)}_getPanelAriaLabelledby(t){if(this.ariaLabel)return null;let n=t?t+" ":"";return this.ariaLabelledby?n+this.ariaLabelledby:t}_skipPredicate(){return!1}};e.\u0275fac=function(n){return new(n||e)(m(he),m(q),m(dA),m(Ve))},e.\u0275cmp=E({type:e,selectors:[["mat-autocomplete"]],contentQueries:function(n,o,a){if(n&1&&(Be(a,nt,5),Be(a,kd,5)),n&2){let s;Q(s=K())&&(o.options=s),Q(s=K())&&(o.optionGroups=s)}},viewQuery:function(n,o){if(n&1&&(ce(ct,7),ce(ZW,5)),n&2){let a;Q(a=K())&&(o.template=a.first),Q(a=K())&&(o.panel=a.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",Y],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",Y],requireSelection:[2,"requireSelection","requireSelection",Y],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",Y],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",Y]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],standalone:!0,features:[Ce([{provide:Td,useExisting:e}]),ge,re],ngContentSelectors:XW,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id"]],template:function(n,o){n&1&&(He(),x(0,JW,3,16,"ng-template"))},styles:["div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:static;border-radius:var(--mat-autocomplete-container-shape, var(--mat-app-corner-extra-small));box-shadow:var(--mat-autocomplete-container-elevation-shadow);background-color:var(--mat-autocomplete-background-color, var(--mat-app-surface-container))}.cdk-high-contrast-active div.mat-mdc-autocomplete-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden;pointer-events:none}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[eG]},changeDetection:0});let i=e;return i})();var nG={provide:vn,useExisting:Xt(()=>Cs),multi:!0};var uA=new R("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{let i=k(xt);return()=>i.scrollStrategies.reposition()}});function oG(i){return()=>i.scrollStrategies.reposition()}var rG={provide:uA,deps:[xt],useFactory:oG},Cs=(()=>{let e=class e{constructor(t,n,o,a,s,l,u,f,v,C,D){this._element=t,this._overlay=n,this._viewContainerRef=o,this._zone=a,this._changeDetectorRef=s,this._dir=u,this._formField=f,this._document=v,this._viewportRuler=C,this._defaults=D,this._componentDestroyed=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=ve.EMPTY,this._breakpointObserver=k(Al),this._handsetLandscapeSubscription=ve.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new G,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._initialized=new G,this._injector=k(Pe),this._aboveClass="mat-mdc-autocomplete-panel-above",this._overlayAttached=!1,this.optionSelections=Xn(()=>{let S=this.autocomplete?this.autocomplete.options:null;return S?S.changes.pipe(Rt(S),Tt(()=>wt(...S.map(P=>P.onSelectionChange)))):this._initialized.pipe(Tt(()=>this.optionSelections))}),this._handlePanelKeydown=S=>{(S.keyCode===27&&!Pt(S)||S.keyCode===38&&Pt(S,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),S.stopPropagation(),S.preventDefault())},this._trackedModal=null,this._scrollStrategy=l}ngAfterViewInit(){this._initialized.next(),this._initialized.complete();let t=this._getWindow();typeof t<"u"&&this._zone.runOutsideAngular(()=>t.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){let t=this._getWindow();typeof t<"u"&&t.removeEventListener("blur",this._windowBlurHandler),this._handsetLandscapeSubscription.unsubscribe(),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._openPanelInternal()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._latestOpeningTrigger===this&&(this.autocomplete._isOpen=!1,this.autocomplete._latestOpeningTrigger=null),this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal&&va(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return wt(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Ye(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Ye(()=>this._overlayAttached)):oe()).pipe(ue(t=>t instanceof Md?t:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return wt(dn(this._document,"click"),dn(this._document,"auxclick"),dn(this._document,"touchend")).pipe(Ye(t=>{let n=mn(t),o=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,a=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&n!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!o||!o.contains(n))&&(!a||!a.contains(n))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(n)}))}writeValue(t){Promise.resolve(null).then(()=>this._assignOptionValue(t))}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this._element.nativeElement.disabled=t}_handleKeydown(t){let n=t.keyCode,o=Pt(t);if(n===27&&!o&&t.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&n===13&&this.panelOpen&&!o)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){let a=this.autocomplete._keyManager.activeItem,s=n===38||n===40;n===9||s&&!o&&this.panelOpen?this.autocomplete._keyManager.onKeydown(t):s&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(s||this.autocomplete._keyManager.activeItem!==a)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._valueOnLastKeydown),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(t){let n=t.target,o=n.value;if(n.type==="number"&&(o=o==""?null:parseFloat(o)),this._previousValue!==o){if(this._previousValue=o,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(o),!o)this._clearPreviousSelectedOption(null,!1);else if(this.panelOpen&&!this.autocomplete.requireSelection){let a=this.autocomplete.options?.find(s=>s.selected);if(a){let s=this._getDisplayValue(a.value);o!==s&&a.deselect(!1)}}if(this._canOpen()&&this._document.activeElement===t.target){let a=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(a)}}}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(this._previousValue),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this._openPanelInternal()}_floatLabel(t=!1){this._formField&&this._formField.floatLabel==="auto"&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){let t=new Re(o=>{ai(()=>{o.next()},{injector:this._injector})}),n=this.autocomplete.options.changes.pipe(Ht(()=>this._positionStrategy.reapplyLastPosition()),Qr(0));return wt(t,n).pipe(Tt(()=>this._zone.run(()=>{let o=this.panelOpen;return this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),o!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit()),this.panelClosingActions})),Ot(1)).subscribe(o=>this._setValueAndClose(o))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(t){let n=this.autocomplete;return n&&n.displayWith?n.displayWith(t):t}_assignOptionValue(t){let n=this._getDisplayValue(t);t==null&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(n??"")}_updateNativeInputValue(t){this._formField?this._formField._control.value=t:this._element.nativeElement.value=t,this._previousValue=t}_setValueAndClose(t){let n=this.autocomplete,o=t?t.source:this._pendingAutoselectedOption;o?(this._clearPreviousSelectedOption(o),this._assignOptionValue(o.value),this._onChange(o.value),n._emitSelectEvent(o),this._element.nativeElement.focus()):n.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),n._animationDone?n._animationDone.pipe(Ot(1)).subscribe(()=>this._onChange(null)):this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(t,n){this.autocomplete?.options?.forEach(o=>{o!==t&&o.selected&&o.deselect(n)})}_openPanelInternal(t=this._element.nativeElement.value){if(this._attachOverlay(t),this._floatLabel(),this._trackedModal){let n=this.autocomplete.id;Nl(this._trackedModal,"aria-owns",n)}}_attachOverlay(t){this.autocomplete;let n=this._overlayRef;n?(this._positionStrategy.setOrigin(this._getConnectedElement()),n.updateSize({width:this._getPanelWidth()})):(this._portal=new Oi(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),n=this._overlay.create(this._getOverlayConfig()),this._overlayRef=n,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&n&&n.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(np.HandsetLandscape).subscribe(a=>{a.matches?this._positionStrategy.withFlexibleDimensions(!0).withGrowAfterOpen(!0).withViewportMargin(8):this._positionStrategy.withFlexibleDimensions(!1).withGrowAfterOpen(!1).withViewportMargin(0)})),n&&!n.hasAttached()&&(n.attach(this._portal),this._valueOnAttach=t,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());let o=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._latestOpeningTrigger=this,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&o!==this.panelOpen&&this._emitOpened()}_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){let t=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=t.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=t.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new Mn({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){let t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}_setStrategyPositions(t){let n=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],o=this._aboveClass,a=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:o},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:o}],s;this.position==="above"?s=a:this.position==="below"?s=n:s=[...n,...a],t.withPositions(s)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){let t=this.autocomplete;if(t.autoActiveFirstOption){let n=-1;for(let o=0;o .cdk-overlay-container [aria-modal="true"]');if(!t)return;let n=this.autocomplete.id;this._trackedModal&&va(this._trackedModal,"aria-owns",n),Nl(t,"aria-owns",n),this._trackedModal=t}_clearFromModal(){if(this._trackedModal){let t=this.autocomplete.id;va(this._trackedModal,"aria-owns",t),this._trackedModal=null}}};e.\u0275fac=function(n){return new(n||e)(m(q),m(xt),m(Ct),m(Z),m(he),m(uA),m(Nt,8),m(Ro,9),m(se,8),m(fn),m(dA,8))},e.\u0275dir=L({type:e,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(n,o){n&1&&b("focusin",function(){return o._handleFocus()})("blur",function(){return o._onTouched()})("input",function(s){return o._handleInput(s)})("keydown",function(s){return o._handleKeydown(s)})("click",function(){return o._handleClick()}),n&2&&ie("autocomplete",o.autocompleteAttribute)("role",o.autocompleteDisabled?null:"combobox")("aria-autocomplete",o.autocompleteDisabled?null:"list")("aria-activedescendant",o.panelOpen&&o.activeOption?o.activeOption.id:null)("aria-expanded",o.autocompleteDisabled?null:o.panelOpen.toString())("aria-controls",o.autocompleteDisabled||!o.panelOpen||o.autocomplete==null?null:o.autocomplete.id)("aria-haspopup",o.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[0,"matAutocomplete","autocomplete"],position:[0,"matAutocompletePosition","position"],connectedTo:[0,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[0,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[2,"matAutocompleteDisabled","autocompleteDisabled",Y]},exportAs:["matAutocompleteTrigger"],standalone:!0,features:[Ce([nG]),ge,Qe]});let i=e;return i})(),hA=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({providers:[rG],imports:[an,jl,pe,Ei,so,jl,pe]});let i=e;return i})();function aG(i,e){if(i&1&&(c(0,"div")(1,"uds-translate"),g(2,"Edit user"),d(),g(3),d()),i&2){let r=_();h(3),F(" ",r.user.name," ")}}function sG(i,e){i&1&&(c(0,"uds-translate"),g(1,"New user"),d())}function lG(i,e){if(i&1){let r=A();c(0,"mat-form-field")(1,"mat-label"),g(2),d(),c(3,"input",19),H("ngModelChange",function(n){y(r);let o=_();return $(o.user.name,n)||(o.user.name=n),w(n)}),d()()}if(i&2){let r=_();h(2),F(" ",r.authenticator.type_info.label_username," "),h(),U("ngModel",r.user.name),p("disabled",r.user.id)}}function cG(i,e){if(i&1&&(c(0,"mat-option",21),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),h(),Ir(" ",r.id," (",r.name,") ")}}function dG(i,e){if(i&1){let r=A();c(0,"mat-form-field")(1,"mat-label"),g(2),d(),c(3,"input",20),H("ngModelChange",function(n){y(r);let o=_();return $(o.user.name,n)||(o.user.name=n),w(n)}),b("input",function(n){y(r);let o=_();return w(o.filterUser(n))}),d(),c(4,"mat-autocomplete",null,1),x(6,cG,2,3,"mat-option",16),d()()}if(i&2){let r=we(5),t=_();h(2),F(" ",t.authenticator.type_info.label_username," "),h(),U("ngModel",t.user.name),p("matAutocomplete",r),h(3),p("ngForOf",t.users)}}function uG(i,e){if(i&1){let r=A();c(0,"mat-form-field")(1,"mat-label"),g(2),d(),c(3,"input",22),H("ngModelChange",function(n){y(r);let o=_();return $(o.user.password,n)||(o.user.password=n),w(n)}),d()()}if(i&2){let r=_();h(2),F(" ",r.authenticator.type_info.label_password," "),h(),U("ngModel",r.user.password)}}function hG(i,e){if(i&1){let r=A();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),g(3,"MFA"),d()(),c(4,"input",23),H("ngModelChange",function(n){y(r);let o=_();return $(o.user.mfa_data,n)||(o.user.mfa_data=n),w(n)}),d()()}if(i&2){let r=_();h(4),U("ngModel",r.user.mfa_data)}}function mG(i,e){if(i&1&&(c(0,"mat-option",21),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),h(),F(" ",r.name," ")}}var dw=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.groups=[],this.onSave=new T(!0),this.users=[],this.authenticator=a.authenticator,this.user={id:void 0,name:"",real_name:"",comments:"",state:"A",is_admin:!1,staff_member:!1,password:"",role:"user",mfa:"",groups:[]},a.user!==void 0&&(this.user.id=a.user.id,this.user.name=a.user.name)}static launch(t,n,o){let a=window.innerWidth<800?"60%":"40%";return t.gui.dialog.open(e,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:n,user:o},disableClose:!1}).componentInstance.onSave}ngOnInit(){this.rest.authenticators.detail(this.authenticator.id,"groups").overview().then(t=>{this.groups=t}),this.user.id&&this.rest.authenticators.detail(this.authenticator.id,"users").get(this.user.id).then(t=>{this.user=t,this.user.role=t.is_admin?"admin":t.staff_member?"staff":"user"},t=>{this.dialogRef.close()})}roleChanged(t){this.user.is_admin=t==="admin",this.user.staff_member=t==="admin"||t==="staff"}filterUser(t){let n=t.target.value;this.rest.authenticators.search(this.authenticator.id,"user",n,100).then(o=>{this.users.length=0,o.forEach(a=>{this.users.push(a)})})}save(){this.rest.authenticators.detail(this.authenticator.id,"users").save(this.user).then(t=>{this.dialogRef.close(),this.onSave.emit(!0)})}};e.\u0275fac=function(n){return new(n||e)(m(B),m(X),m(Ne),m(Ke))},e.\u0275cmp=E({type:e,selectors:[["uds-new-user"]],decls:58,vars:12,consts:[["nousertitle",""],["auto","matAutocomplete"],["mat-dialog-title",""],[4,"ngIf","ngIfElse"],[1,"content"],[4,"ngIf"],["type","text","matInput","","autocomplete","new-real_name",3,"ngModelChange","ngModel"],["type","text","matInput","","autocomplete","new-comments",3,"ngModelChange","ngModel"],[3,"ngModelChange","ngModel"],["value","A"],["value","I"],[3,"ngModelChange","valueChange","ngModel"],["value","admin"],["value","staff"],["value","user"],["multiple","",3,"ngModelChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],["type","text","matInput","","autocomplete","new-username",3,"ngModelChange","ngModel","disabled"],["type","text","aria-label","Number","matInput","",3,"ngModelChange","input","ngModel","matAutocomplete"],[3,"value"],["type","password","matInput","","autocomplete","new-password",3,"ngModelChange","ngModel"],["type","text","matInput","",3,"ngModelChange","ngModel"]],template:function(n,o){if(n&1){let a=A();c(0,"h4",2),x(1,aG,4,1,"div",3)(2,sG,2,0,"ng-template",null,0,fi),d(),c(4,"mat-dialog-content")(5,"div",4),x(6,lG,4,3,"mat-form-field",5)(7,dG,7,4,"mat-form-field",5),c(8,"mat-form-field")(9,"mat-label")(10,"uds-translate"),g(11,"Real name"),d()(),c(12,"input",6),H("ngModelChange",function(l){return y(a),$(o.user.real_name,l)||(o.user.real_name=l),w(l)}),d()(),c(13,"mat-form-field")(14,"mat-label")(15,"uds-translate"),g(16,"Comments"),d()(),c(17,"input",7),H("ngModelChange",function(l){return y(a),$(o.user.comments,l)||(o.user.comments=l),w(l)}),d()(),c(18,"mat-form-field")(19,"mat-label")(20,"uds-translate"),g(21,"State"),d()(),c(22,"mat-select",8),H("ngModelChange",function(l){return y(a),$(o.user.state,l)||(o.user.state=l),w(l)}),c(23,"mat-option",9)(24,"uds-translate"),g(25,"Enabled"),d()(),c(26,"mat-option",10)(27,"uds-translate"),g(28,"Disabled"),d()()()(),c(29,"mat-form-field")(30,"mat-label")(31,"uds-translate"),g(32,"Role"),d()(),c(33,"mat-select",11),H("ngModelChange",function(l){return y(a),$(o.user.role,l)||(o.user.role=l),w(l)}),b("valueChange",function(l){return y(a),w(o.roleChanged(l))}),c(34,"mat-option",12)(35,"uds-translate"),g(36,"Admin"),d()(),c(37,"mat-option",13)(38,"uds-translate"),g(39,"Staff member"),d()(),c(40,"mat-option",14)(41,"uds-translate"),g(42,"User"),d()()()(),x(43,uG,4,2,"mat-form-field",5)(44,hG,5,1,"mat-form-field",5),c(45,"mat-form-field")(46,"mat-label")(47,"uds-translate"),g(48,"Groups"),d()(),c(49,"mat-select",15),H("ngModelChange",function(l){return y(a),$(o.user.groups,l)||(o.user.groups=l),w(l)}),x(50,mG,2,2,"mat-option",16),d()()()(),c(51,"mat-dialog-actions")(52,"button",17)(53,"uds-translate"),g(54,"Cancel"),d()(),c(55,"button",18),b("click",function(){return y(a),w(o.save())}),c(56,"uds-translate"),g(57,"Ok"),d()()()}if(n&2){let a=we(3);h(),p("ngIf",o.user.id)("ngIfElse",a),h(5),p("ngIf",o.authenticator.type_info.search_users_supported===!1||o.user.id),h(),p("ngIf",o.authenticator.type_info.search_users_supported===!0&&!o.user.id),h(5),U("ngModel",o.user.real_name),h(5),U("ngModel",o.user.comments),h(5),U("ngModel",o.user.state),h(11),U("ngModel",o.user.role),h(10),p("ngIf",o.authenticator.type_info.needs_password),h(),p("ngIf",!o.authenticator.type_info.is_external),h(5),U("ngModel",o.user.groups),h(),p("ngForOf",o.groups)}},dependencies:[We,me,lt,xe,Se,ke,Qt,Je,tt,et,_e,Ae,ft,bt,nt,Kl,Cs,le],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]});let i=e;return i})();function pG(i,e){if(i&1&&(c(0,"div")(1,"uds-translate"),g(2,"Edit group"),d(),g(3),d()),i&2){let r=_();h(3),F(" ",r.group.name," ")}}function fG(i,e){i&1&&(c(0,"uds-translate"),g(1,"New group"),d())}function gG(i,e){if(i&1){let r=A();c(0,"mat-form-field")(1,"mat-label"),g(2),d(),c(3,"input",14),H("ngModelChange",function(n){y(r);let o=_(2);return $(o.group.name,n)||(o.group.name=n),w(n)}),d()()}if(i&2){let r=_(2);h(2),F(" ",r.authenticator.type_info.label_groupname," "),h(),U("ngModel",r.group.name),p("disabled",r.group.id)}}function _G(i,e){if(i&1&&(c(0,"mat-option",17),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),h(),Ir(" ",r.id," (",r.name,") ")}}function vG(i,e){if(i&1){let r=A();c(0,"mat-form-field")(1,"mat-label"),g(2),d(),c(3,"input",15),H("ngModelChange",function(n){y(r);let o=_(2);return $(o.group.name,n)||(o.group.name=n),w(n)}),b("input",function(n){y(r);let o=_(2);return w(o.filterGroup(n))}),d(),c(4,"mat-autocomplete",null,3),x(6,_G,2,3,"mat-option",16),d()()}if(i&2){let r=we(5),t=_(2);h(2),F(" ",t.authenticator.type_info.label_groupname," "),h(),U("ngModel",t.group.name),p("matAutocomplete",r),h(3),p("ngForOf",t.fltrGroup)}}function bG(i,e){if(i&1&&(mt(0),x(1,gG,4,3,"mat-form-field",13)(2,vG,7,4,"mat-form-field",13),pt()),i&2){let r=_();h(),p("ngIf",r.authenticator.type_info.search_groups_supported===!1||r.group.id),h(),p("ngIf",r.authenticator.type_info.search_groups_supported===!0&&!r.group.id)}}function yG(i,e){if(i&1){let r=A();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),g(3,"Meta group name"),d()(),c(4,"input",14),H("ngModelChange",function(n){y(r);let o=_();return $(o.group.name,n)||(o.group.name=n),w(n)}),d()()}if(i&2){let r=_();h(4),U("ngModel",r.group.name),p("disabled",r.group.id)}}function wG(i,e){if(i&1&&(c(0,"mat-option",17),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),h(),F(" ",r.name," ")}}function CG(i,e){if(i&1){let r=A();mt(0),c(1,"mat-form-field")(2,"mat-label")(3,"uds-translate"),g(4,"Service Pools"),d()(),c(5,"mat-select",18),H("ngModelChange",function(n){y(r);let o=_();return $(o.group.pools,n)||(o.group.pools=n),w(n)}),x(6,wG,2,2,"mat-option",16),d()(),pt()}if(i&2){let r=_();h(5),U("ngModel",r.group.pools),h(),p("ngForOf",r.servicePools)}}function xG(i,e){if(i&1&&(c(0,"mat-option",17),g(1),d()),i&2){let r=_().$implicit;p("value",r.id),h(),F(" ",r.name," ")}}function DG(i,e){if(i&1&&(mt(0),x(1,xG,2,2,"mat-option",20),pt()),i&2){let r=e.$implicit;h(),p("ngIf",r.type==="group")}}function SG(i,e){if(i&1){let r=A();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),g(3,"Match mode"),d()(),c(4,"mat-select",8),H("ngModelChange",function(n){y(r);let o=_();return $(o.group.meta_if_any,n)||(o.group.meta_if_any=n),w(n)}),c(5,"mat-option",17)(6,"uds-translate"),g(7,"Any group"),d()(),c(8,"mat-option",17)(9,"uds-translate"),g(10,"All groups"),d()()()(),c(11,"mat-form-field")(12,"mat-label")(13,"uds-translate"),g(14,"Selected Groups"),d()(),c(15,"mat-select",18),H("ngModelChange",function(n){y(r);let o=_();return $(o.group.groups,n)||(o.group.groups=n),w(n)}),x(16,DG,2,1,"ng-container",19),d()()}if(i&2){let r=_();h(4),U("ngModel",r.group.meta_if_any),h(),p("value",!0),h(3),p("value",!1),h(7),U("ngModel",r.group.groups),h(),p("ngForOf",r.groups)}}var uw=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.onSave=new T(!0),this.servicePools=[],this.groups=[],this.fltrGroup=[],this.authenticator=a.authenticator,this.group={id:void 0,type:a.groupType,name:"",comments:"",meta_if_any:!1,skip_mfa:"I",state:"A",groups:[],pools:[]},a.group!==void 0&&(this.group.id=a.group.id,this.group.type=a.group.type,this.group.name=a.group.name)}static launch(t,n,o,a){let s=window.innerWidth<800?"60%":"40%";return t.gui.dialog.open(e,{width:s,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:n,groupType:o,group:a},disableClose:!0}).componentInstance.onSave}ngOnInit(){let t=this.rest.authenticators.detail(this.authenticator.id,"groups");this.group.id!==void 0&&t.get(this.group.id).then(n=>{this.group=n},n=>{this.dialogRef.close()}),this.group.type==="meta"?t.summary().then(n=>this.groups=n):this.rest.servicesPools.summary().then(n=>this.servicePools=n)}filterGroup(t){let n=t.target.value;this.rest.authenticators.search(this.authenticator.id,"group",n,100).then(o=>{this.fltrGroup.length=0,o.forEach(a=>{this.fltrGroup.push(a)})})}getMatchValue(){return django.gettext("Match mode")+this.group.meta_if_any?django.gettext("Any"):django.gettext("All")}save(){this.rest.authenticators.detail(this.authenticator.id,"groups").save(this.group).then(t=>{this.dialogRef.close(),this.onSave.emit(!0)})}};e.\u0275fac=function(n){return new(n||e)(m(B),m(X),m(Ne),m(Ke))},e.\u0275cmp=E({type:e,selectors:[["uds-new-group"]],decls:46,vars:9,consts:[["nousertitle",""],["metafirst",""],["metasecond",""],["auto","matAutocomplete"],["mat-dialog-title",""],[4,"ngIf","ngIfElse"],[1,"content"],["type","text","matInput","",3,"ngModelChange","ngModel"],[3,"ngModelChange","ngModel"],["value","A"],["value","I"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[4,"ngIf"],["type","text","matInput","",3,"ngModelChange","ngModel","disabled"],["type","text","aria-label","Number","matInput","",3,"ngModelChange","input","ngModel","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["multiple","",3,"ngModelChange","ngModel"],[4,"ngFor","ngForOf"],[3,"value",4,"ngIf"]],template:function(n,o){if(n&1){let a=A();c(0,"h4",4),x(1,pG,4,1,"div",5)(2,fG,2,0,"ng-template",null,0,fi),d(),c(4,"mat-dialog-content")(5,"div",6),x(6,bG,3,2,"ng-container",5)(7,yG,5,2,"ng-template",null,1,fi),c(9,"mat-form-field")(10,"mat-label")(11,"uds-translate"),g(12,"Comments"),d()(),c(13,"input",7),H("ngModelChange",function(l){return y(a),$(o.group.comments,l)||(o.group.comments=l),w(l)}),d()(),c(14,"mat-form-field")(15,"mat-label")(16,"uds-translate"),g(17,"State"),d()(),c(18,"mat-select",8),H("ngModelChange",function(l){return y(a),$(o.group.state,l)||(o.group.state=l),w(l)}),c(19,"mat-option",9)(20,"uds-translate"),g(21,"Enabled"),d()(),c(22,"mat-option",10)(23,"uds-translate"),g(24,"Disabled"),d()()()(),c(25,"mat-form-field")(26,"mat-label")(27,"uds-translate"),g(28,"Skip MFA"),d()(),c(29,"mat-select",8),H("ngModelChange",function(l){return y(a),$(o.group.skip_mfa,l)||(o.group.skip_mfa=l),w(l)}),c(30,"mat-option",9)(31,"uds-translate"),g(32,"Enabled"),d()(),c(33,"mat-option",10)(34,"uds-translate"),g(35,"Disabled"),d()()()(),x(36,CG,7,2,"ng-container",5)(37,SG,17,5,"ng-template",null,2,fi),d()(),c(39,"mat-dialog-actions")(40,"button",11)(41,"uds-translate"),g(42,"Cancel"),d()(),c(43,"button",12),b("click",function(){return y(a),w(o.save())}),c(44,"uds-translate"),g(45,"Ok"),d()()()}if(n&2){let a=we(3),s=we(8),l=we(38);h(),p("ngIf",o.group.id)("ngIfElse",a),h(5),p("ngIf",o.group.type==="group")("ngIfElse",s),h(7),U("ngModel",o.group.comments),h(5),U("ngModel",o.group.state),h(11),U("ngModel",o.group.skip_mfa),h(7),p("ngIf",o.group.type==="group")("ngIfElse",l)}},dependencies:[We,me,lt,xe,Se,ke,Qt,Je,tt,et,_e,Ae,ft,bt,nt,Kl,Cs,le],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}.label-match[_ngcontent-%COMP%]{color:#0009;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:0px 0px;white-space:nowrap}"]});let i=e;return i})();function EG(i,e){i&1&&(c(0,"uds-translate"),g(1,"Groups"),d())}function IG(i,e){if(i&1&&(c(0,"mat-tab"),x(1,EG,2,0,"ng-template",2),I(2,"uds-table",6),d()),i&2){let r=_();h(2),p("rest",r.group)("pageSize",6)}}function MG(i,e){i&1&&(c(0,"uds-translate"),g(1,"Services Pools"),d())}function TG(i,e){if(i&1&&(c(0,"mat-tab"),x(1,MG,2,0,"ng-template",2),I(2,"uds-table",6),d()),i&2){let r=_();h(2),p("rest",r.servicesPools)("pageSize",6)}}function kG(i,e){i&1&&(c(0,"uds-translate"),g(1,"Assigned Services"),d())}function AG(i,e){if(i&1&&(c(0,"mat-tab"),x(1,kG,2,0,"ng-template",2),I(2,"uds-table",6),d()),i&2){let r=_();h(2),p("rest",r.userServices)("pageSize",6)}}function OG(i,e){i&1&&(c(0,"uds-translate"),g(1,"Logs"),d())}var RG=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],PG=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],FG=[{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")}],mA=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.group={},this.servicesPools={},this.userServices={},this.users=a.users,this.user=a.user}static launch(t,n,o){let a=window.innerWidth<800?"80%":"60%",s=t.gui.dialog.open(e,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{users:n,user:o},disableClose:!1})}ngOnInit(){return W(this,null,function*(){let t=()=>W(this,null,function*(){let a=yield this.rest.authenticators.detail(this.users.parentId,"users").get(this.user.id);return(yield this.rest.authenticators.detail(this.users.parentId,"groups").overview()).filter(l=>a.groups.includes(l.id))}),n=()=>W(this,null,function*(){return this.users.invoke(this.user.id+"/servicesPools")}),o=()=>W(this,null,function*(){return(yield this.users.invoke(this.user.id+"/userServices")).map(s=>(s.in_use=this.api.boolAsHumanString(s.in_use),s))});this.group=new mo(django.gettext("Groups"),t,RG,this.user.id+"infogrp"),this.servicesPools=new mo(django.gettext("Services Pools"),n,PG,this.user.id+"infopool"),this.userServices=new mo(django.gettext("Assigned services"),o,FG,this.user.id+"userservpool")})}};e.\u0275fac=function(n){return new(n||e)(m(B),m(X),m(Ne),m(Ke))},e.\u0275cmp=E({type:e,selectors:[["uds-user-information"]],decls:20,vars:14,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-tab-label",""],[1,"content"],[3,"rest","itemId","tableId","pageSize"],["mat-raised-button","","mat-dialog-close","","color","primary"],[3,"rest","pageSize"]],template:function(n,o){n&1&&(c(0,"h4",0)(1,"uds-translate"),g(2,"Information for"),d(),g(3),d(),c(4,"mat-dialog-content")(5,"mat-tab-group"),x(6,IG,3,2,"mat-tab",1),_t(7,"notEmpty"),x(8,TG,3,2,"mat-tab",1),_t(9,"notEmpty"),x(10,AG,3,2,"mat-tab",1),_t(11,"notEmpty"),c(12,"mat-tab"),x(13,OG,2,0,"ng-template",2),c(14,"div",3),I(15,"uds-logs-table",4),d()()()(),c(16,"mat-dialog-actions")(17,"button",5)(18,"uds-translate"),g(19,"Ok"),d()()()),n&2&&(h(3),F(" ",o.user.name,` -`),h(3),p("ngIf",Dt(7,8,o.group)),h(2),p("ngIf",Dt(9,10,o.servicesPools)),h(2),p("ngIf",Dt(11,12,o.userServices)),h(5),p("rest",o.users)("itemId",o.user.id)("tableId","userInfo-d-log"+o.user.id)("pageSize",5))},dependencies:[me,ke,Qt,Je,tt,et,ei,ti,oi,le,Te,An,yi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]});let i=e;return i})();function NG(i,e){i&1&&(c(0,"uds-translate"),g(1,"Services Pools"),d())}function LG(i,e){if(i&1&&(c(0,"mat-tab"),x(1,NG,2,0,"ng-template",3),I(2,"uds-table",4),d()),i&2){let r=_();h(2),p("rest",r.servicesPools)("pageSize",6)}}function VG(i,e){i&1&&(c(0,"uds-translate"),g(1,"Users"),d())}function jG(i,e){if(i&1&&(c(0,"mat-tab"),x(1,VG,2,0,"ng-template",3),I(2,"uds-table",4),d()),i&2){let r=_();h(2),p("rest",r.users)("pageSize",6)}}function BG(i,e){i&1&&(c(0,"uds-translate"),g(1,"Groups"),d())}function zG(i,e){if(i&1&&(c(0,"mat-tab"),x(1,BG,2,0,"ng-template",3),I(2,"uds-table",4),d()),i&2){let r=_();h(2),p("rest",r.groups)("pageSize",6)}}var UG=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],HG=[{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:gi.DATETIME}],$G=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],pA=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.data=a,this.users={},this.groups={},this.servicesPools={}}static launch(t,n,o){let a=window.innerWidth<800?"80%":"60%",s=t.gui.dialog.open(e,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{group:o,groups:n},disableClose:!1})}ngOnInit(){let t=this.rest.authenticators.detail(this.data.groups.parentId,"groups"),n=()=>t.invoke(this.data.group.id+"/servicesPools"),o=()=>t.invoke(this.data.group.id+"/users").then(a=>a.map(s=>(s.state=s.state==="A"?django.gettext("Enabled"):s.state==="I"?django.gettext("Disabled"):django.gettext("Blocked"),s)));if(this.servicesPools=new mo(django.gettext("Service pools"),n,UG,this.data.group.id+"infopls"),this.users=new mo(django.gettext("Users"),o,HG,this.data.group.id+"infousr"),this.data.group.type==="meta"){let a=()=>t.overview().then(s=>s.filter(l=>this.data.group.groups.includes(l.id)));this.groups=new mo(django.gettext("Groups"),a,$G,this.data.group.id+"infogrps")}}};e.\u0275fac=function(n){return new(n||e)(m(B),m(X),m(Ne),m(Ke))},e.\u0275cmp=E({type:e,selectors:[["uds-group-information"]],decls:15,vars:9,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","primary"],["mat-tab-label",""],[3,"rest","pageSize"]],template:function(n,o){n&1&&(c(0,"h4",0)(1,"uds-translate"),g(2,"Information for"),d()(),c(3,"mat-dialog-content")(4,"mat-tab-group"),x(5,LG,3,2,"mat-tab",1),_t(6,"notEmpty"),x(7,jG,3,2,"mat-tab",1),_t(8,"notEmpty"),x(9,zG,3,2,"mat-tab",1),_t(10,"notEmpty"),d()(),c(11,"mat-dialog-actions")(12,"button",2)(13,"uds-translate"),g(14,"Ok"),d()()()),n&2&&(h(5),p("ngIf",Dt(6,3,o.servicesPools)),h(2),p("ngIf",Dt(8,5,o.users)),h(2),p("ngIf",Dt(10,7,o.groups)))},dependencies:[me,ke,Qt,Je,tt,et,ei,ti,oi,le,Te,yi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]});let i=e;return i})();var WG=i=>["/authenticators",i];function GG(i,e){i&1&&(c(0,"uds-translate"),g(1,"Summary"),d())}function qG(i,e){if(i&1&&I(0,"uds-information",16),i&2){let r=_(2);p("value",r.authenticator)("gui",r.gui)}}function YG(i,e){i&1&&(c(0,"uds-translate"),g(1,"Users"),d())}function QG(i,e){if(i&1){let r=A();c(0,"uds-table",17),b("loaded",function(n){y(r);let o=_(2);return w(o.onLoad(n))})("newAction",function(n){y(r);let o=_(2);return w(o.onNewUser(n))})("editAction",function(n){y(r);let o=_(2);return w(o.onEditUser(n))})("deleteAction",function(n){y(r);let o=_(2);return w(o.onDeleteUser(n))})("customButtonAction",function(n){y(r);let o=_(2);return w(o.onUserCustom(n))}),d()}if(i&2){let r=_(2);p("rest",r.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+r.authenticator.id)("customButtons",r.usersCustomButtons)("pageSize",r.api.config.admin.page_size)}}function KG(i,e){if(i&1){let r=A();c(0,"uds-table",18),b("loaded",function(n){y(r);let o=_(2);return w(o.onLoad(n))})("editAction",function(n){y(r);let o=_(2);return w(o.onEditUser(n))})("deleteAction",function(n){y(r);let o=_(2);return w(o.onDeleteUser(n))})("customButtonAction",function(n){y(r);let o=_(2);return w(o.onUserCustom(n))}),d()}if(i&2){let r=_(2);p("rest",r.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+r.authenticator.id)("customButtons",r.customButtons)("pageSize",r.api.config.admin.page_size)}}function ZG(i,e){i&1&&(c(0,"uds-translate"),g(1,"Groups"),d())}function XG(i,e){i&1&&(c(0,"uds-translate"),g(1,"Logs"),d())}function JG(i,e){if(i&1){let r=A();c(0,"div",6)(1,"div",7)(2,"mat-tab-group",8),H("selectedIndexChange",function(n){y(r);let o=_();return $(o.selectedTab,n)||(o.selectedTab=n),w(n)}),c(3,"mat-tab"),x(4,GG,2,0,"ng-template",9),c(5,"div",10),x(6,qG,1,2,"uds-information",11),_t(7,"notEmpty"),d()(),c(8,"mat-tab"),x(9,YG,2,0,"ng-template",9),c(10,"div",10),x(11,QG,1,6,"uds-table",12)(12,KG,1,6,"uds-table",13),d()(),c(13,"mat-tab"),x(14,ZG,2,0,"ng-template",9),c(15,"div",10)(16,"uds-table",14),b("loaded",function(n){y(r);let o=_();return w(o.onLoad(n))})("newAction",function(n){y(r);let o=_();return w(o.onNewGroup(n))})("editAction",function(n){y(r);let o=_();return w(o.onEditGroup(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteGroup(n))})("customButtonAction",function(n){y(r);let o=_();return w(o.onGroupInformation(n))}),d()()(),c(17,"mat-tab"),x(18,XG,2,0,"ng-template",9),c(19,"div",10),I(20,"uds-logs-table",15),d()()()()()}if(i&2){let r=_();h(2),U("selectedIndex",r.selectedTab),p("@.disabled",!0),h(4),p("ngIf",Dt(7,14,r.gui)),h(5),p("ngIf",r.authenticator.type_info.create_users_supported),h(),p("ngIf",!r.authenticator.type_info.create_users_supported),h(4),p("rest",r.groups)("multiSelect",!0)("allowExport",!0)("customButtons",r.customButtons)("tableId","authenticators-d-groups"+r.authenticator.id)("pageSize",r.api.config.admin.page_size),h(4),p("rest",r.rest.authenticators)("itemId",r.authenticator.id)("tableId","authenticators-d-log"+r.authenticator.id)}}var Jf=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o,this.customButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:ut.ONLY_MENU}],this.usersCustomButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:ut.ONLY_MENU},{id:"clean-related",html:'clear_all '+django.gettext("Clean related (mfa,...)")+"",type:ut.ONLY_MENU}],this.authenticator=null,this.gui=[],this.users={},this.groups={},this.selectedTab=1,this.selectedTab=this.route.snapshot.paramMap.get("group")?2:1}ngOnInit(){let t=this.route.snapshot.paramMap.get("authenticator");t&&(this.users=this.rest.authenticators.detail(t,"users"),this.groups=this.rest.authenticators.detail(t,"groups"),this.rest.authenticators.get(t).then(n=>{this.authenticator=n,this.rest.authenticators.gui(n.type).then(o=>{this.gui=o})}))}onLoad(t){if(t.param===!0){let n=this.route.snapshot.paramMap.get("user"),o=this.route.snapshot.paramMap.get("group"),a=n||o;t.table.selectElement("id",a)}}processElement(t){t.maintenance_state=t.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onNewUser(t){dw.launch(this.api,this.authenticator).subscribe(n=>t.table.overview())}onEditUser(t){dw.launch(this.api,this.authenticator,t.table.selection.selected[0]).subscribe(n=>t.table.overview())}onDeleteUser(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete user"))}onNewGroup(t){uw.launch(this.api,this.authenticator,t.param.type).subscribe(n=>t.table.overview())}onEditGroup(t){uw.launch(this.api,this.authenticator,t.param.type,t.table.selection.selected[0]).subscribe(n=>t.table.overview())}onDeleteGroup(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete group"))}onUserCustom(t){return W(this,null,function*(){t.param.id==="info"?mA.launch(this.api,this.users,t.table.selection.selected[0]):t.param.id==="clean-related"&&(yield this.api.gui.questionDialog(django.gettext("Clean data"),django.gettext("Clean related data (mfa, ...)?"),!0))&&(yield this.users.invoke(t.table.selection.selected[0].id+"/clean_related"),this.api.gui.snackbar.open(django.gettext("Related data cleaned"),django.gettext("dismiss"),{duration:2e3}),t.table.overview())})}onGroupInformation(t){pA.launch(this.api,this.groups,t.table.selection.selected[0])}};e.\u0275fac=function(n){return new(n||e)(m(Oe),m(X),m(B))},e.\u0275cmp=E({type:e,selectors:[["uds-authenticators-detail"]],decls:10,vars:8,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,"selectedIndexChange","selectedIndex"],["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,"loaded","newAction","editAction","deleteAction","customButtonAction","rest","multiSelect","allowExport","customButtons","tableId","pageSize"],[3,"rest","itemId","tableId"],[3,"value","gui"],["icon","users",3,"loaded","newAction","editAction","deleteAction","customButtonAction","rest","multiSelect","allowExport","tableId","customButtons","pageSize"],["icon","users",3,"loaded","editAction","deleteAction","customButtonAction","rest","multiSelect","allowExport","tableId","customButtons","pageSize"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),g(4,"arrow_back"),d()(),g(5," \xA0"),I(6,"img",4),g(7),d(),x(8,JG,21,16,"div",5),_t(9,"notEmpty"),d()),n&2&&(h(2),p("routerLink",Bi(6,WG,o.authenticator?o.authenticator.id:"")),h(4),p("src",o.api.staticURL("admin/img/icons/services.png"),Ie),h(),F(" \xA0",o.authenticator==null?null:o.authenticator.name," "),h(),p("ngIf",Dt(9,4,o.authenticator)))},dependencies:[me,bi,ei,ti,oi,le,Te,An,po,yi]});let i=e;return i})();var hw=(()=>{let e=class e{constructor(t,n,o){this.api=t,this.route=n,this.rest=o}ngOnInit(){let t=this.route.snapshot.paramMap.get("osmanager")}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New OS Manager"),!1)}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit OS Manager"),!1)}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete OS Manager"))}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("osmanager"))}};e.\u0275fac=function(n){return new(n||e)(m(B),m(Oe),m(X))},e.\u0275cmp=E({type:e,selectors:[["uds-osmanagers"]],decls:2,vars:5,consts:[["icon","osmanagers",3,"newAction","editAction","deleteAction","loaded","rest","multiSelect","allowExport","hasPermissions","pageSize"]],template:function(n,o){n&1&&(c(0,"div")(1,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("loaded",function(s){return o.onLoad(s)}),d()()),n&2&&(h(),p("rest",o.rest.osManagers)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Te]});let i=e;return i})();var mw=(()=>{let e=class e{constructor(t,n,o){this.api=t,this.route=n,this.rest=o}ngOnInit(){let t=this.route.snapshot.paramMap.get("transport")}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New Transport"))}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit Transport"))}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete Transport"))}processElement(t){try{t.allowed_oss=t.allowed_oss.map(n=>n.id).join(", ")}catch{t.allowed_oss=""}}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("transport"))}};e.\u0275fac=function(n){return new(n||e)(m(B),m(Oe),m(X))},e.\u0275cmp=E({type:e,selectors:[["uds-transports"]],decls:2,vars:7,consts:[["icon","transports",3,"newAction","editAction","deleteAction","loaded","rest","multiSelect","allowExport","hasPermissions","newGrouped","onItem","pageSize"]],template:function(n,o){n&1&&(c(0,"div")(1,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("loaded",function(s){return o.onLoad(s)}),d()()),n&2&&(h(),p("rest",o.rest.transports)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("newGrouped",!0)("onItem",o.processElement)("pageSize",o.api.config.admin.page_size))},dependencies:[Te],styles:[".mat-column-priority{max-width:7rem;justify-content:center}"]});let i=e;return i})();var pw=(()=>{let e=class e{constructor(t,n,o){this.api=t,this.route=n,this.rest=o}ngOnInit(){let t=this.route.snapshot.paramMap.get("network")}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New Network"),!1)}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit Network"),!1)}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete Network"))}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("network"))}};e.\u0275fac=function(n){return new(n||e)(m(B),m(Oe),m(X))},e.\u0275cmp=E({type:e,selectors:[["uds-networks"]],decls:2,vars:5,consts:[["icon","networks",3,"newAction","editAction","deleteAction","loaded","rest","multiSelect","allowExport","hasPermissions","pageSize"]],template:function(n,o){n&1&&(c(0,"div")(1,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("loaded",function(s){return o.onLoad(s)}),d()()),n&2&&(h(),p("rest",o.rest.networks)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Te]});let i=e;return i})();var fw=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o}ngOnInit(){}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New tunnel"),!0)}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit tunnel"),!0)}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete tunnel"))}onDetail(t){this.api.navigation.gotoTunnelDetail(t.param.id)}processElement(t){t.maintenance_state=t.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("tunnel"))}};e.\u0275fac=function(n){return new(n||e)(m(Oe),m(X),m(B))},e.\u0275cmp=E({type:e,selectors:[["uds-tunnels"]],decls:1,vars:6,consts:[["tableId","tunnels-table","icon","providers",3,"newAction","editAction","deleteAction","detailAction","loaded","rest","onItem","multiSelect","allowExport","hasPermissions","pageSize"]],template:function(n,o){n&1&&(c(0,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("detailAction",function(s){return o.onDetail(s)})("loaded",function(s){return o.onLoad(s)}),d()),n&2&&p("rest",o.rest.tunnels)("onItem",o.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size)},dependencies:[Te]});let i=e;return i})();function e7(i,e){if(i&1&&(c(0,"mat-option",7),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),h(),F(" ",r.name," ")}}var fA=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.done=new Jt,this.availTunnelServers=[],this.tunnelFilter="",this.serverId="",this.availTunnelServers=a.availableTunnelServers,this.tunnelId=a.tunnelId}static launch(t,n,o){return W(this,null,function*(){let a=window.innerWidth<800?"60%":"40%";return t.gui.dialog.open(e,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{tunnelId:n,availableTunnelServers:o},disableClose:!1}).componentInstance.done})}ngOnInit(){return W(this,null,function*(){})}filteredTunnels(){if(!this.tunnelFilter)return this.availTunnelServers;let t=new Array;for(let n of this.availTunnelServers)n.name.toLocaleLowerCase().includes(this.tunnelFilter.toLocaleLowerCase())&&t.push(n);return t}save(){return W(this,null,function*(){if(this.serverId===""){this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid server"));return}this.dialogRef.close(),this.done.resolve(!0),yield this.rest.tunnels.assign(this.tunnelId,this.serverId)})}cancel(){return W(this,null,function*(){this.dialogRef.close(),this.done.resolve(!1)})}};e.\u0275fac=function(n){return new(n||e)(m(B),m(X),m(Ne),m(Ke))},e.\u0275cmp=E({type:e,selectors:[["uds-new-tunnel"]],decls:19,vars:3,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(n,o){n&1&&(c(0,"h4",0)(1,"uds-translate"),g(2,"Assign new server to tunnel group"),d()(),c(3,"mat-dialog-content")(4,"div",1)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),g(8,"Tunnel"),d()(),c(9,"mat-select",2),H("ngModelChange",function(s){return $(o.serverId,s)||(o.serverId=s),s}),c(10,"uds-cond-select-search",3),b("changed",function(s){return o.tunnelFilter=s}),d(),x(11,e7,2,2,"mat-option",4),d()()()(),c(12,"mat-dialog-actions")(13,"button",5),b("click",function(){return o.cancel()}),c(14,"uds-translate"),g(15,"Cancel"),d()(),c(16,"button",6),b("click",function(){return o.save()}),c(17,"uds-translate"),g(18,"Ok"),d()()()),n&2&&(h(9),U("ngModel",o.serverId),h(),p("options",o.availTunnelServers),h(),p("ngForOf",o.filteredTunnels()))},dependencies:[We,xe,Se,ke,Je,tt,et,_e,Ae,bt,nt,le,hi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]});let i=e;return i})();var t7=i=>["/connectivity","tunnels",i];function i7(i,e){i&1&&(c(0,"uds-translate"),g(1,"Summary"),d())}function n7(i,e){i&1&&(c(0,"uds-translate"),g(1,"Tunnel servers"),d())}function o7(i,e){if(i&1){let r=A();c(0,"div",6)(1,"div",7)(2,"mat-tab-group",8)(3,"mat-tab"),x(4,i7,2,0,"ng-template",9),c(5,"div",10),I(6,"uds-information",11),d()(),c(7,"mat-tab"),x(8,n7,2,0,"ng-template",9),c(9,"div",10)(10,"uds-table",12),b("newAction",function(n){y(r);let o=_();return w(o.onNew(n))})("rowSelected",function(n){y(r);let o=_();return w(o.onRowSelect(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDelete(n))})("customButtonAction",function(n){y(r);let o=_();return w(o.onMaintenance(n))})("loaded",function(n){y(r);let o=_();return w(o.onLoad(n))}),d()()()()()()}if(i&2){let r=_();h(2),p("@.disabled",!0),h(4),p("value",r.tunnel)("gui",r.gui),h(4),p("rest",r.servers)("multiSelect",!0)("allowExport",!0)("customButtons",r.customButtons)("pageSize",r.api.config.admin.page_size)("tableId","tunnels-d-servers"+r.tunnel.id)}}var gA='pause'+django.gettext("Maintenance")+"",r7='pause'+django.gettext("Exit maintenance mode")+"",a7='pause'+django.gettext("Enter maintenance mode")+"",_A=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o,this.cButtons=[{id:"maintenance",html:gA,type:ut.SINGLE_SELECT}],this.tunnel=null,this.gui=[],this.servers={}}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){return W(this,null,function*(){let t=this.route.snapshot.paramMap.get("tunnel");t&&(this.servers=this.rest.tunnels.detail(t,"servers"),this.tunnel=yield this.servers.parentModel.get(t),this.gui=yield this.servers.parentModel.gui(),console.log(this.gui),console.log(this.tunnel))})}onMaintenance(t){let n=t.table.selection.selected[0],o=n.maintenance_mode?django.gettext("Exit maintenance mode?"):django.gettext("Enter maintenance mode?");this.api.gui.questionDialog(django.gettext("Maintenance mode for")+" "+n.name,o).then(a=>{a&&this.servers.get(n.id+"/maintenance").then(()=>{t.table.overview()})})}onNew(t){return W(this,null,function*(){let n=yield this.rest.tunnels.tunnels(this.tunnel.id);n.length==0?this.api.gui.alert(django.gettext("Error"),django.gettext("This tunnel already has all the tunnel servers available")):(yield fA.launch(this.api,this.tunnel.id,n))===!0&&t.table.overview()})}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Remove member from tunnel"))}onRowSelect(t){let n=t.table;if(n.selection.selected.length>1||n.selection.selected.length===0){this.customButtons[0].html=gA;return}n.selection.selected[0].maintenance_mode?this.customButtons[0].html=r7:this.customButtons[0].html=a7}onLoad(t){if(t.param===!0){let n=this.route.snapshot.paramMap.get("tunnel");if(n!==void 0){let o=t.table;o.dataSource.data.forEach(a=>{a.id===n&&o.selection.select(a)})}}}};e.\u0275fac=function(n){return new(n||e)(m(Oe),m(X),m(B))},e.\u0275cmp=E({type:e,selectors:[["uds-tunnels-detail"]],decls:10,vars:8,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","selectedIndex","1"],["mat-tab-label",""],[1,"content"],[3,"value","gui"],["icon","tunnels",3,"newAction","rowSelected","deleteAction","customButtonAction","loaded","rest","multiSelect","allowExport","customButtons","pageSize","tableId"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),g(4,"arrow_back"),d()(),g(5," \xA0"),I(6,"img",4),g(7),d(),x(8,o7,11,9,"div",5),_t(9,"notEmpty"),d()),n&2&&(h(2),p("routerLink",Bi(6,t7,o.servers.parentId)),h(4),p("src",o.api.staticURL("admin/img/icons/tunnels.png"),Ie),h(),F(" \xA0",o.tunnel==null?null:o.tunnel.name," "),h(),p("ngIf",Dt(9,4,o.tunnel)))},dependencies:[me,bi,ei,ti,oi,le,Te,po,yi],styles:[".row-maintenance-true>mat-cell{color:orange!important}"]});let i=e;return i})();var gw=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o,this.customButtons=[Ii.getGotoButton(Ty,"provider_id"),Ii.getGotoButton(ky,"provider_id","service_id"),Ii.getGotoButton(Ry,"osmanager_id"),Ii.getGotoButton(Py,"pool_group_id")],this.editing=!1}ngOnInit(){return W(this,null,function*(){})}onChange(t){return W(this,null,function*(){let n=["initial_srvs","cache_l1_srvs","max_srvs"];if(t.on===null||t.on.field.name==="service_id"){if(t.all.service_id.value===""){t.all.osmanager_id.gui.choices=[];for(let a of n)t.all[a].gui.readonly=!0;t.all.cache_l2_srvs.gui.readonly=!0;return}let o=yield this.rest.providers.service(t.all.service_id.value);if(t.all.allow_users_reset.gui.readonly=!o.info.can_reset,t.all.osmanager_id.gui.choices=[],this.editing||(t.all.osmanager_id.gui.readonly=!o.info.needs_osmanager),o.info.needs_osmanager===!0){let a=yield this.rest.osManagers.overview(),s=[];for(let l of a)for(let u of l.servicesTypes)o.info.services_type_provided==u&&s.push({id:l.id,text:l.name});s.length>0?t.all.osmanager_id.value=t.all.osmanager_id.value||s[0].id:t.all.osmanager_id.value="",t.all.osmanager_id.gui.choices=s}else t.all.osmanager_id.gui.choices=[{id:"",text:django.gettext("(This service does not requires an OS Manager)")}],t.all.osmanager_id.value="";for(let a of n)t.all[a].gui.readonly=!o.info.uses_cache;t.all.cache_l2_srvs.gui.readonly=o.info.uses_cache===!1||o.info.uses_cache_l2===!1,t.all.publish_on_save&&(t.all.publish_on_save.gui.readonly=!o.info.needs_publication)}})}onNew(t){return W(this,null,function*(){this.editing=!1,yield 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:Ki.CHECKBOX,order:150,default:"true"}}],this.onChange.bind(this))})}onEdit(t){return W(this,null,function*(){return this.editing=!0,this.api.gui.forms.typedEditForm(t,django.gettext("Edit Service Pool"),!1,void 0,this.onChange.bind(this))})}onDelete(t){return W(this,null,function*(){return this.api.gui.forms.deleteForm(t,django.gettext("Delete service pool"))})}processElement(t){t.visible=this.api.boolAsHumanString(t.visible),t.show_transports=this.api.boolAsHumanString(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)}onDetail(t){this.api.navigation.gotoServicePoolDetail(t.param.id)}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("pool"))}};e.\u0275fac=function(n){return new(n||e)(m(Oe),m(X),m(B))},e.\u0275cmp=E({type:e,selectors:[["uds-service-pools"]],decls:1,vars:7,consts:[["icon","pools",3,"newAction","editAction","deleteAction","detailAction","loaded","rest","multiSelect","allowExport","hasPermissions","onItem","customButtons","pageSize"]],template:function(n,o){n&1&&(c(0,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("detailAction",function(s){return o.onDetail(s)})("loaded",function(s){return o.onLoad(s)}),d()),n&2&&p("rest",o.rest.servicesPools)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",o.processElement)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)},dependencies:[Te],styles:[".mat-column-user_services_count, .mat-column-user_services_in_preparation, .mat-column-visible, .mat-column-state, .mat-column-usage{max-width:7rem;justify-content:center} .mat-column-show_transports{max-width:12rem;justify-content:center} .mat-column-pool_group_name{max-width:12rem} .row-state-T>.mat-mdc-cell{color:#d65014!important} .mat-column-user_services_count{max-width:10rem;justify-content:center} .mat-column-user_services_in_preparation{max-width:10rem;justify-content:center}"]});let i=e;return i})();function s7(i,e){if(i&1&&(c(0,"mat-option",8),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),h(),F(" ",r.name," ")}}function l7(i,e){if(i&1&&(c(0,"mat-option",8),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),h(),F(" ",r.name," ")}}var eg=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.done=new Jt,this.auths=[],this.users=[],this.userFilter="",this.authId="",this.userId="",this.userService=a.userService,this.userServices=a.userServices}static launch(t,n,o){let a=window.innerWidth<800?"60%":"40%";return t.gui.dialog.open(e,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:n,userServices:o},disableClose:!1}).componentInstance.done}ngOnInit(){return W(this,null,function*(){this.authId=this.userService.owner_info.auth_id||"",this.userId=this.userService.owner_info.user_id||"",this.auths=yield this.rest.authenticators.summary(),this.authChanged()})}changeAuth(t){this.userId="",this.authChanged()}filteredUsers(){if(!this.userFilter)return this.users;let t=new Array;return this.users.forEach(n=>{(this.userFilter===""||n.name.toLocaleLowerCase().includes(this.userFilter.toLocaleLowerCase()))&&t.push(n)}),t}save(){if(this.userId===""||this.authId===""){this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid user"));return}this.userServices.save({id:this.userService.id,auth_id:this.authId,user_id:this.userId}).then(()=>{this.dialogRef.close(),this.done.resolve(!0)})}cancel(){this.dialogRef.close(),this.done.resolve(!1)}authChanged(){return W(this,null,function*(){this.authId?this.users=yield this.rest.authenticators.detail(this.authId,"users").summary():this.users=[]})}};e.\u0275fac=function(n){return new(n||e)(m(B),m(X),m(Ne),m(Ke))},e.\u0275cmp=E({type:e,selectors:[["uds-change-assigned-service-owner"]],decls:25,vars:5,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModelChange","ngModel"],[3,"changed","options"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(n,o){n&1&&(c(0,"h4",0)(1,"uds-translate"),g(2,"Change owner of assigned service"),d()(),c(3,"mat-dialog-content")(4,"div",1)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),g(8,"Authenticator"),d()(),c(9,"mat-select",2),H("ngModelChange",function(s){return $(o.authId,s)||(o.authId=s),s}),b("selectionChange",function(s){return o.changeAuth(s)}),x(10,s7,2,2,"mat-option",3),d()(),c(11,"mat-form-field")(12,"mat-label")(13,"uds-translate"),g(14,"User"),d()(),c(15,"mat-select",4),H("ngModelChange",function(s){return $(o.userId,s)||(o.userId=s),s}),c(16,"uds-cond-select-search",5),b("changed",function(s){return o.userFilter=s}),d(),x(17,l7,2,2,"mat-option",3),d()()()(),c(18,"mat-dialog-actions")(19,"button",6),b("click",function(){return o.cancel()}),c(20,"uds-translate"),g(21,"Cancel"),d()(),c(22,"button",7),b("click",function(){return o.save()}),c(23,"uds-translate"),g(24,"Ok"),d()()()),n&2&&(h(9),U("ngModel",o.authId),h(),p("ngForOf",o.auths),h(5),U("ngModel",o.userId),h(),p("options",o.users),h(),p("ngForOf",o.filteredUsers()))},dependencies:[We,xe,Se,ke,Je,tt,et,_e,Ae,bt,nt,le,hi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]});let i=e;return i})();function c7(i,e){i&1&&(c(0,"uds-translate"),g(1,"New access rule for"),d())}function d7(i,e){i&1&&(c(0,"uds-translate"),g(1,"Edit access rule for"),d())}function u7(i,e){i&1&&(c(0,"uds-translate"),g(1,"Default fallback access for"),d())}function h7(i,e){if(i&1&&(c(0,"mat-option",11),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),h(),F(" ",r.name," ")}}function m7(i,e){if(i&1){let r=A();mt(0),c(1,"mat-form-field")(2,"mat-label")(3,"uds-translate"),g(4,"Priority"),d()(),c(5,"input",8),H("ngModelChange",function(n){y(r);let o=_();return $(o.accessRule.priority,n)||(o.accessRule.priority=n),w(n)}),d()(),c(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),g(9,"Calendar"),d()(),c(10,"mat-select",3),H("ngModelChange",function(n){y(r);let o=_();return $(o.accessRule.calendar_id,n)||(o.accessRule.calendar_id=n),w(n)}),c(11,"uds-cond-select-search",9),b("changed",function(n){y(r);let o=_();return w(o.calendarsFilter=n)}),d(),x(12,h7,2,2,"mat-option",10),d()(),pt()}if(i&2){let r=_();h(5),U("ngModel",r.accessRule.priority),h(5),U("ngModel",r.accessRule.calendar_id),h(),p("options",r.calendars),h(),p("ngForOf",r.filtered(r.calendars,r.calendarsFilter))}}var Zl=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.onSave=new T(!0),this.calendars=[],this.calendarsFilter="",this.pool=a.pool,this.model=a.model,this.accessRule={id:void 0,priority:0,access:"ALLOW",calendar_id:""},a.accessRule&&(this.accessRule.id=a.accessRule.id)}static launch(t,n,o,a){let s=window.innerWidth<800?"80%":"60%";return t.gui.dialog.open(e,{width:s,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:n,model:o,accessRule:a},disableClose:!1}).componentInstance.onSave}ngOnInit(){this.rest.calendars.summary().then(t=>{this.calendars=t}),this.accessRule.id!==void 0&&this.accessRule.id!==-1?this.model.get(this.accessRule.id).then(t=>{this.accessRule=t}):this.accessRule.id===-1&&this.model.parentModel.getFallbackAccess(this.pool.id).then(t=>this.accessRule.access=t)}filtered(t,n){return n?t.filter(o=>o.name.toLocaleLowerCase().includes(n.toLocaleLowerCase())):t}save(){let t=()=>{this.dialogRef.close(),this.onSave.emit(!0)};this.accessRule.id!==-1?this.model.save(this.accessRule).then(t):this.model.parentModel.setFallbackAccess(this.pool.id,this.accessRule.access).then(t)}};e.\u0275fac=function(n){return new(n||e)(m(B),m(X),m(Ne),m(Ke))},e.\u0275cmp=E({type:e,selectors:[["uds-service-pools-access-calendars"]],decls:24,vars:6,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],[3,"ngModelChange","ngModel"],["value","ALLOW"],["value","DENY"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],["matInput","","type","number",3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(n,o){n&1&&(c(0,"h4",0),x(1,c7,2,0,"uds-translate",1)(2,d7,2,0,"uds-translate",1)(3,u7,2,0,"uds-translate",1),g(4),d(),c(5,"mat-dialog-content")(6,"div",2),x(7,m7,13,4,"ng-container",1),c(8,"mat-form-field")(9,"mat-label")(10,"uds-translate"),g(11,"Action"),d()(),c(12,"mat-select",3),H("ngModelChange",function(s){return $(o.accessRule.access,s)||(o.accessRule.access=s),s}),c(13,"mat-option",4),g(14," ALLOW "),d(),c(15,"mat-option",5),g(16," DENY "),d()()()()(),c(17,"mat-dialog-actions")(18,"button",6)(19,"uds-translate"),g(20,"Cancel"),d()(),c(21,"button",7),b("click",function(){return o.save()}),c(22,"uds-translate"),g(23,"Ok"),d()()()),n&2&&(h(),p("ngIf",o.accessRule.id===void 0),h(),p("ngIf",o.accessRule.id!==void 0&&o.accessRule.id!==-1),h(),p("ngIf",o.accessRule.id===-1),h(),F(" ",o.pool.name,` + )`;let z=l+u+f+v;this._elementRef.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${z}px)`)}_isAttachedToDom(){let t=this._elementRef.nativeElement;if(t.getRootNode){let n=t.getRootNode();return n&&n!==t}return document.documentElement.contains(t)}};e.\u0275fac=function(n){return new(n||e)(m(q),m(he),m(Z),m(Nt),m(Ve),m(Vy,8),m(kt,8),m(se))},e.\u0275cmp=E({type:e,selectors:[["mat-form-field"]],contentQueries:function(n,o,a){if(n&1&&(KE(a,o._labelChild,Ae,5),Be(a,Ia,5),Be(a,yH,5),Be(a,ik,5),Be(a,vH,5),Be(a,YT,5)),n&2){ZE();let s;Q(s=K())&&(o._formFieldControl=s.first),Q(s=K())&&(o._prefixChildren=s),Q(s=K())&&(o._suffixChildren=s),Q(s=K())&&(o._errorChildren=s),Q(s=K())&&(o._hintChildren=s)}},viewQuery:function(n,o){if(n&1&&(ce(Y8,5),ce(Q8,5),ce(K8,5),ce(Z8,5),ce(X8,5),ce(QT,5),ce(XT,5),ce(ZT,5)),n&2){let a;Q(a=K())&&(o._textField=a.first),Q(a=K())&&(o._iconPrefixContainer=a.first),Q(a=K())&&(o._textPrefixContainer=a.first),Q(a=K())&&(o._iconSuffixContainer=a.first),Q(a=K())&&(o._textSuffixContainer=a.first),Q(a=K())&&(o._floatingLabel=a.first),Q(a=K())&&(o._notchedOutline=a.first),Q(a=K())&&(o._lineRipple=a.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(n,o){n&2&&ne("mat-mdc-form-field-label-always-float",o._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",o._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",o._hasIconSuffix)("mat-form-field-invalid",o._control.errorState)("mat-form-field-disabled",o._control.disabled)("mat-form-field-autofilled",o._control.autofilled)("mat-form-field-no-animations",o._animationMode==="NoopAnimations")("mat-form-field-appearance-fill",o.appearance=="fill")("mat-form-field-appearance-outline",o.appearance=="outline")("mat-form-field-hide-placeholder",o._hasFloatingLabel()&&!o._shouldLabelFloat())("mat-focused",o._control.focused)("mat-primary",o.color!=="accent"&&o.color!=="warn")("mat-accent",o.color==="accent")("mat-warn",o.color==="warn")("ng-untouched",o._shouldForward("untouched"))("ng-touched",o._shouldForward("touched"))("ng-pristine",o._shouldForward("pristine"))("ng-dirty",o._shouldForward("dirty"))("ng-valid",o._shouldForward("valid"))("ng-invalid",o._shouldForward("invalid"))("ng-pending",o._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],standalone:!0,features:[Ce([{provide:Ro,useExisting:e},{provide:nk,useExisting:e}]),re],ngContentSelectors:eH,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],["textSuffixContainer",""],["iconSuffixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(n,o){if(n&1){let a=A();He(J8),x(0,nH,1,1,"ng-template",null,0,fi),c(2,"div",6,1),b("click",function(l){return y(a),w(o._control.onContainerClick(l))}),x(4,oH,1,0,"div",7),c(5,"div",8),x(6,sH,2,2,"div",9)(7,lH,3,0,"div",10)(8,cH,3,0,"div",11),c(9,"div",12),x(10,uH,1,1,null,13),ae(11),d(),x(12,hH,3,0,"div",14)(13,mH,3,0,"div",15),d(),x(14,pH,1,0,"div",16),d(),c(15,"div",17),x(16,fH,2,1,"div",18)(17,_H,5,2,"div",19),d()}if(n&2){let a;h(2),ne("mdc-text-field--filled",!o._hasOutline())("mdc-text-field--outlined",o._hasOutline())("mdc-text-field--no-label",!o._hasFloatingLabel())("mdc-text-field--disabled",o._control.disabled)("mdc-text-field--invalid",o._control.errorState),h(2),De(!o._hasOutline()&&!o._control.disabled?4:-1),h(2),De(o._hasOutline()?6:-1),h(),De(o._hasIconPrefix?7:-1),h(),De(o._hasTextPrefix?8:-1),h(2),De(!o._hasOutline()||o._forceDisplayInfixLabel()?10:-1),h(2),De(o._hasTextSuffix?12:-1),h(),De(o._hasIconSuffix?13:-1),h(),De(o._hasOutline()?-1:14),h(),ne("mat-mdc-form-field-subscript-dynamic-size",o.subscriptSizing==="dynamic"),h(),De((a=o._getDisplayedMessages())==="error"?16:a==="hint"?17:-1)}},dependencies:[QT,XT,ym,ZT,YT],styles:['.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field__input{width:100%;min-width:0;border:none;border-radius:0;background:none;padding:0;-moz-appearance:none;-webkit-appearance:none;height:28px}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}.mdc-text-field__input::placeholder{opacity:0}.mdc-text-field__input::-moz-placeholder{opacity:0}.mdc-text-field__input::-webkit-input-placeholder{opacity:0}.mdc-text-field__input:-ms-input-placeholder{opacity:0}.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}.mdc-text-field--outlined .mdc-text-field__input,.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color, var(--mat-app-on-surface));caret-color:var(--mdc-filled-text-field-caret-color, var(--mat-app-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color, var(--mat-app-on-surface));caret-color:var(--mdc-outlined-text-field-caret-color, var(--mat-app-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--disabled .cdk-high-contrast-active .mdc-text-field__input{background-color:Window}.mdc-text-field--filled{height:56px;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--mdc-filled-text-field-container-shape, var(--mat-app-corner-extra-small-top));border-top-right-radius:var(--mdc-filled-text-field-container-shape, var(--mat-app-corner-extra-small-top))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color, var(--mat-app-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--outlined{height:56px;overflow:visible;padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)));padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)) + 4px);padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)))}.mdc-floating-label{position:absolute;left:0;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label{right:0;left:auto;transform-origin:right top;text-align:right}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:auto}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label{left:auto;right:4px}.mdc-text-field--filled .mdc-floating-label{left:16px;right:auto}[dir=rtl] .mdc-text-field--filled .mdc-floating-label{left:auto;right:16px}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.cdk-high-contrast-active .mdc-text-field--disabled .mdc-floating-label{z-index:1}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-filled-text-field-label-text-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-focus-label-text-color, var(--mat-app-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-filled-text-field-hover-label-text-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-filled-text-field-error-label-text-color, var(--mat-app-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-error-focus-label-text-color, var(--mat-app-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-filled-text-field-error-hover-label-text-color, var(--mat-app-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font, var(--mat-app-body-large-font));font-size:var(--mdc-filled-text-field-label-text-size, var(--mat-app-body-large-size));font-weight:var(--mdc-filled-text-field-label-text-weight, var(--mat-app-body-large-weight));letter-spacing:var(--mdc-filled-text-field-label-text-tracking, var(--mat-app-body-large-tracking))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-outlined-text-field-label-text-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-focus-label-text-color, var(--mat-app-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-hover-label-text-color, var(--mat-app-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-outlined-text-field-error-label-text-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-error-focus-label-text-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-error-hover-label-text-color, var(--mat-app-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font, var(--mat-app-body-large-font));font-size:var(--mdc-outlined-text-field-label-text-size, var(--mat-app-body-large-size));font-weight:var(--mdc-outlined-text-field-label-text-weight, var(--mat-app-body-large-weight));letter-spacing:var(--mdc-outlined-text-field-label-text-tracking, var(--mat-app-body-large-tracking))}.mdc-floating-label--float-above{cursor:auto;transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1);font-size:.75rem}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline{text-align:right}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mat-mdc-notch-piece{box-sizing:border-box;height:100%;pointer-events:none;border-top:1px solid;border-bottom:1px solid}.mdc-text-field--focused .mat-mdc-notch-piece{border-width:2px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-outline-color, var(--mat-app-outline));border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-hover-outline-color, var(--mat-app-on-surface))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-focus-outline-color, var(--mat-app-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-outline-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-hover-outline-color, var(--mat-app-on-error-container))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-focus-outline-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)))}[dir=rtl] .mdc-notched-outline__leading{border-left:none;border-right:1px solid;border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}.mdc-notched-outline__trailing{flex-grow:1;border-left:none;border-right:1px solid;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}[dir=rtl] .mdc-notched-outline__trailing{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:min(var(--mat-form-field-notch-max-width, 100%),100% - max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)))*2)}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none;--mat-form-field-notch-max-width: 100%}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1;border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color, var(--mat-app-on-surface))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color, var(--mat-app-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color, var(--mat-app-on-error-container))}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color, var(--mat-app-primary))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color, var(--mat-app-error))}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-text-field--disabled{pointer-events:none}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height);padding-top:var(--mat-form-field-filled-with-label-container-padding-top);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding);padding-bottom:var(--mat-form-field-container-vertical-padding)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color, var(--mat-app-error))}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font, var(--mat-app-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-app-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-app-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-app-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-app-body-small-weight))}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color, var(--mat-app-on-surface))}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color)}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color, var(--mat-app-on-surface-variant))}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color, var(--mat-app-primary))}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font, var(--mat-app-body-large-font));line-height:var(--mat-form-field-container-text-line-height, var(--mat-app-body-large-line-height));font-size:var(--mat-form-field-container-text-size, var(--mat-app-body-large-size));letter-spacing:var(--mat-form-field-container-text-tracking, var(--mat-app-body-large-tracking));font-weight:var(--mat-form-field-container-text-weight, var(--mat-app-body-large-weight))}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color, var(--mat-app-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color)}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color, var(--mat-app-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color)}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color, var(--mat-app-error))}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-app-on-error-container))}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-app-error))}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field-infix:has(textarea[cols]){width:auto}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::-moz-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::-webkit-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[CH.transitionMessages]},changeDetection:0});let i=e;return i})(),vs=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({imports:[pe,Ei,ip,pe]});let i=e;return i})();var SH=["trigger"],EH=["panel"],IH=[[["mat-select-trigger"]],"*"],MH=["mat-select-trigger","*"];function TH(i,e){if(i&1&&(c(0,"span",4),g(1),d()),i&2){let r=_();h(),$e(r.placeholder)}}function kH(i,e){i&1&&ae(0)}function AH(i,e){if(i&1&&(c(0,"span",11),g(1),d()),i&2){let r=_(2);h(),$e(r.triggerValue)}}function OH(i,e){if(i&1&&(c(0,"span",5),x(1,kH,1,0)(2,AH,2,1,"span",11),d()),i&2){let r=_();h(),De(r.customTrigger?1:2)}}function RH(i,e){if(i&1){let r=A();c(0,"div",12,1),b("@transformPanel.done",function(n){y(r);let o=_();return w(o._panelDoneAnimatingStream.next(n.toState))})("keydown",function(n){y(r);let o=_();return w(o._handleKeydown(n))}),ae(2,1),d()}if(i&2){let r=_();YE("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",r._getPanelTheme(),""),p("ngClass",r.panelClass)("@transformPanel","showing"),ie("id",r.id+"-panel")("aria-multiselectable",r.multiple)("aria-label",r.ariaLabel||null)("aria-labelledby",r._getPanelAriaLabelledby())}}var PH={transformPanelWrap:ui("transformPanelWrap",[St("* => void",bp("@transformPanel",[vp()],{optional:!0}))]),transformPanel:ui("transformPanel",[Lt("void",Me({opacity:0,transform:"scale(1, 0.8)"})),St("void => showing",Mt("120ms cubic-bezier(0, 0, 0.2, 1)",Me({opacity:1,transform:"scale(1, 1)"}))),St("* => void",Mt("100ms linear",Me({opacity:0})))])};var ok=0,rk=new R("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let i=k(xt);return()=>i.scrollStrategies.reposition()}});function FH(i){return()=>i.scrollStrategies.reposition()}var NH=new R("MAT_SELECT_CONFIG"),LH={provide:rk,deps:[xt],useFactory:FH},ak=new R("MatSelectTrigger"),jy=class{constructor(e,r){this.source=e,this.value=r}},bt=(()=>{let e=class e{_scrollOptionIntoView(t){let n=this.options.toArray()[t];if(n){let o=this.panel.nativeElement,a=pp(t,this.options,this.optionGroups),s=n._getHostElement();t===0&&a===1?o.scrollTop=0:o.scrollTop=fp(s.offsetTop,s.offsetHeight,o.scrollTop,o.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(t){return new jy(this,t)}get focused(){return this._focused||this._panelOpen}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(t){this._hideSingleSelectionIndicator=t,this._syncParentProperties()}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(sr.required)??!1}set required(t){this._required=t,this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){this._selectionModel,this._multiple=t}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){this._assignValue(t)&&this._onChange(t)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(t){this._errorStateTracker.matcher=t}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}get errorState(){return this._errorStateTracker.errorState}set errorState(t){this._errorStateTracker.errorState=t}constructor(t,n,o,a,s,l,u,f,v,C,D,S,P,z){this._viewportRuler=t,this._changeDetectorRef=n,this._elementRef=s,this._dir=l,this._parentFormField=v,this.ngControl=C,this._liveAnnouncer=P,this._defaultOptions=z,this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._panelOpen=!1,this._compareWith=(O,de)=>O===de,this._uid=`mat-select-${ok++}`,this._triggerAriaLabelledBy=null,this._destroy=new G,this.stateChanges=new G,this.disableAutomaticLabeling=!0,this._onChange=()=>{},this._onTouched=()=>{},this._valueId=`mat-select-value-${ok++}`,this._panelDoneAnimatingStream=new G,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._multiple=!1,this.disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this._initialized=new G,this.optionSelectionChanges=Xn(()=>{let O=this.options;return O?O.changes.pipe(Rt(O),Tt(()=>wt(...O.map(de=>de.onSelectionChange)))):this._initialized.pipe(Tt(()=>this.optionSelectionChanges))}),this.openedChange=new T,this._openedStream=this.openedChange.pipe(Ye(O=>O),ue(()=>{})),this._closedStream=this.openedChange.pipe(Ye(O=>!O),ue(()=>{})),this.selectionChange=new T,this.valueChange=new T,this._trackedModal=null,this._skipPredicate=O=>this.panelOpen?!1:O.disabled,this.ngControl&&(this.ngControl.valueAccessor=this),z?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=z.typeaheadDebounceInterval),this._errorStateTracker=new Fr(a,C,f,u,this.stateChanges),this._scrollStrategyFactory=S,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(D)||0,this.id=this.id}ngOnInit(){this._selectionModel=new Rr(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(js(),fe(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe(fe(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(fe(this._destroy)).subscribe(t=>{t.added.forEach(n=>n.select()),t.removed.forEach(n=>n.deselect())}),this.options.changes.pipe(Rt(null),fe(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let t=this._getTriggerAriaLabelledby(),n=this.ngControl;if(t!==this._triggerAriaLabelledBy){let o=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?o.setAttribute("aria-labelledby",t):o.removeAttribute("aria-labelledby")}n&&(this._previousControl!==n.control&&(this._previousControl!==void 0&&n.disabled!==null&&n.disabled!==this.disabled&&(this.disabled=n.disabled),this._previousControl=n.control),this.updateErrorState())}ngOnChanges(t){(t.disabled||t.userAriaDescribedBy)&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_applyModalPanelOwnership(){let t=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!t)return;let n=`${this.id}-panel`;this._trackedModal&&va(this._trackedModal,"aria-owns",n),Nl(t,"aria-owns",n),this._trackedModal=t}_clearFromModal(){if(!this._trackedModal)return;let t=`${this.id}-panel`;va(this._trackedModal,"aria-owns",t),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next())}writeValue(t){this._assignValue(t)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){let t=this._selectionModel.selected.map(n=>n.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){let n=t.keyCode,o=n===40||n===38||n===37||n===39,a=n===13||n===32,s=this._keyManager;if(!s.isTyping()&&a&&!Pt(t)||(this.multiple||t.altKey)&&o)t.preventDefault(),this.open();else if(!this.multiple){let l=this.selected;s.onKeydown(t);let u=this.selected;u&&l!==u&&this._liveAnnouncer.announce(u.viewValue,1e4)}}_handleOpenKeydown(t){let n=this._keyManager,o=t.keyCode,a=o===40||o===38,s=n.isTyping();if(a&&t.altKey)t.preventDefault(),this.close();else if(!s&&(o===13||o===32)&&n.activeItem&&!Pt(t))t.preventDefault(),n.activeItem._selectViaInteraction();else if(!s&&this._multiple&&o===65&&t.ctrlKey){t.preventDefault();let l=this.options.some(u=>!u.disabled&&!u.selected);this.options.forEach(u=>{u.disabled||(l?u.select():u.deselect())})}else{let l=n.activeItemIndex;n.onKeydown(t),this._multiple&&a&&t.shiftKey&&n.activeItem&&n.activeItemIndex!==l&&n.activeItem._selectViaInteraction()}}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(Ot(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(t){if(this.options.forEach(n=>n.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(n=>this._selectOptionByValue(n)),this._sortValues();else{let n=this._selectOptionByValue(t);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(t){let n=this.options.find(o=>{if(this._selectionModel.isSelected(o))return!1;try{return o.value!=null&&this._compareWith(o.value,t)}catch{return!1}});return n&&this._selectionModel.select(n),n}_assignValue(t){return t!==this._value||this._multiple&&Array.isArray(t)?(this.options&&this._setSelectionByValue(t),this._value=t,!0):!1}_getOverlayWidth(t){return this.panelWidth==="auto"?(t instanceof yd?t.elementRef:t||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let t of this.options)t._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new Rl(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){let t=wt(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(fe(t)).subscribe(n=>{this._onSelect(n.source,n.isUserInput),n.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),wt(...this.options.map(n=>n._stateChanges)).pipe(fe(t)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(t,n){let o=this._selectionModel.isSelected(t);t.value==null&&!this._multiple?(t.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(t.value)):(o!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),n&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),n&&this.focus())),o!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let t=this.options.toArray();this._selectionModel.sort((n,o)=>this.sortComparator?this.sortComparator(n,o,t):t.indexOf(n)-t.indexOf(o)),this.stateChanges.next()}}_propagateChanges(t){let n;this.multiple?n=this.selected.map(o=>o.value):n=this.selected?this.selected.value:t,this._value=n,this.valueChange.emit(n),this._onChange(n),this.selectionChange.emit(this._getChangeEvent(n)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let t=-1;for(let n=0;n0}focus(t){this._elementRef.nativeElement.focus(t)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let t=this._parentFormField?.getLabelId(),n=t?t+" ":"";return this.ariaLabelledby?n+this.ariaLabelledby:t}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let t=this._parentFormField?.getLabelId(),n=(t?t+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}_panelDoneAnimating(t){this.openedChange.emit(t)}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}};e.\u0275fac=function(n){return new(n||e)(m(fn),m(he),m(Z),m(Nr),m(q),m(Nt,8),m(Oo,8),m(gs,8),m(Ro,8),m(kn,10),vi("tabindex"),m(rk),m(dp),m(NH,8))},e.\u0275cmp=E({type:e,selectors:[["mat-select"]],contentQueries:function(n,o,a){if(n&1&&(Be(a,ak,5),Be(a,nt,5),Be(a,kd,5)),n&2){let s;Q(s=K())&&(o.customTrigger=s.first),Q(s=K())&&(o.options=s),Q(s=K())&&(o.optionGroups=s)}},viewQuery:function(n,o){if(n&1&&(ce(SH,5),ce(EH,5),ce(q0,5)),n&2){let a;Q(a=K())&&(o.trigger=a.first),Q(a=K())&&(o.panel=a.first),Q(a=K())&&(o._overlayDir=a.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(n,o){n&1&&b("keydown",function(s){return o._handleKeydown(s)})("focus",function(){return o._onFocus()})("blur",function(){return o._onBlur()}),n&2&&(ie("id",o.id)("tabindex",o.disabled?-1:o.tabIndex)("aria-controls",o.panelOpen?o.id+"-panel":null)("aria-expanded",o.panelOpen)("aria-label",o.ariaLabel||null)("aria-required",o.required.toString())("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState)("aria-activedescendant",o._getAriaActiveDescendant()),ne("mat-mdc-select-disabled",o.disabled)("mat-mdc-select-invalid",o.errorState)("mat-mdc-select-required",o.required)("mat-mdc-select-empty",o.empty)("mat-mdc-select-multiple",o.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",Y],disableRipple:[2,"disableRipple","disableRipple",Y],tabIndex:[2,"tabIndex","tabIndex",t=>t==null?0:ni(t)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",Y],placeholder:"placeholder",required:[2,"required","required",Y],multiple:[2,"multiple","multiple",Y],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",Y],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",ni],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],standalone:!0,features:[Ce([{provide:Ia,useExisting:e},{provide:Td,useExisting:e}]),ge,Qe,re],ngContentSelectors:MH,decls:11,vars:8,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"backdropClick","attach","detach","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(n,o){if(n&1){let a=A();He(IH),c(0,"div",2,0),b("click",function(){return y(a),w(o.open())}),c(3,"div",3),x(4,TH,2,1,"span",4)(5,OH,3,1,"span",5),d(),c(6,"div",6)(7,"div",7),pi(),c(8,"svg",8),I(9,"path",9),d()()()(),x(10,RH,3,9,"ng-template",10),b("backdropClick",function(){return y(a),w(o.close())})("attach",function(){return y(a),w(o._onAttached())})("detach",function(){return y(a),w(o.close())})}if(n&2){let a=we(1);h(3),ie("id",o._valueId),h(),De(o.empty?4:5),h(6),p("cdkConnectedOverlayPanelClass",o._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",o._scrollStrategy)("cdkConnectedOverlayOrigin",o._preferredOverlayOrigin||a)("cdkConnectedOverlayOpen",o.panelOpen)("cdkConnectedOverlayPositions",o._positions)("cdkConnectedOverlayWidth",o._overlayWidth)}},dependencies:[yd,q0,Sn],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-app-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-app-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-app-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-app-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-app-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-app-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-app-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-app-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-app-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color, var(--mat-app-surface-container))}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}div.mat-mdc-select-panel .mat-mdc-option{--mdc-list-list-item-container-color: var(--mat-select-panel-background-color)}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-app-on-surface-variant))}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform)}'],encapsulation:2,data:{animation:[PH.transformPanel]},changeDetection:0});let i=e;return i})(),vf=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e,selectors:[["mat-select-trigger"]],standalone:!0,features:[Ce([{provide:ak,useExisting:e}])]});let i=e;return i})(),bf=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({providers:[LH],imports:[Ei,an,jl,pe,so,vs,jl,pe]});let i=e;return i})();var VH=["tooltip"],ck=20;var dk=new R("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let i=k(xt);return()=>i.scrollStrategies.reposition({scrollThrottle:ck})}});function jH(i){return()=>i.scrollStrategies.reposition({scrollThrottle:ck})}var BH={provide:dk,deps:[xt],useFactory:jH};function zH(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var UH=new R("mat-tooltip-default-options",{providedIn:"root",factory:zH});var sk="tooltip-panel",lk=Ui({passive:!0}),HH=8,$H=8,WH=24,GH=200,lr=(()=>{let e=class e{get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(t){this._positionAtOrigin=Bn(t),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(t){let n=Bn(t);this._disabled!==n&&(this._disabled=n,n?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(t){this._showDelay=Mo(t)}get hideDelay(){return this._hideDelay}set hideDelay(t){this._hideDelay=Mo(t),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(t){let n=this._message;this._message=t!=null?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(n)}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(t,n,o,a,s,l,u,f,v,C,D,S){this._overlay=t,this._elementRef=n,this._scrollDispatcher=o,this._viewContainerRef=a,this._ngZone=s,this._platform=l,this._ariaDescriber=u,this._focusMonitor=f,this._dir=C,this._defaultOptions=D,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=qH,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._touchstartTimeout=null,this._destroyed=new G,this._injector=k(Pe),this._scrollStrategy=v,this._document=S,D&&(this._showDelay=D.showDelay,this._hideDelay=D.hideDelay,D.position&&(this.position=D.position),D.positionAtOrigin&&(this.positionAtOrigin=D.positionAtOrigin),D.touchGestures&&(this.touchGestures=D.touchGestures),D.tooltipClass&&(this.tooltipClass=D.tooltipClass)),C.change.pipe(fe(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=HH}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(fe(this._destroyed)).subscribe(t=>{t?t==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let t=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([n,o])=>{t.removeEventListener(n,o,lk)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay,n){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let o=this._createOverlay(n);this._detach(),this._portal=this._portal||new In(this._tooltipComponent,this._viewContainerRef);let a=this._tooltipInstance=o.attach(this._portal).instance;a._triggerElement=this._elementRef.nativeElement,a._mouseLeaveHideDelay=this._hideDelay,a.afterHidden().pipe(fe(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),a.show(t)}hide(t=this.hideDelay){let n=this._tooltipInstance;n&&(n.isVisible()?n.hide(t):(n._cancelPendingAnimations(),this._detach()))}toggle(t){this._isTooltipVisible()?this.hide():this.show(void 0,t)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(t){if(this._overlayRef){let a=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!t)&&a._origin instanceof q)return this._overlayRef;this._detach()}let n=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),o=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin?t||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(n);return o.positionChanges.pipe(fe(this._destroyed)).subscribe(a=>{this._updateCurrentPositionClass(a.connectionPair),this._tooltipInstance&&a.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:o,panelClass:`${this._cssClassPrefix}-${sk}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(fe(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(fe(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(fe(this._destroyed)).subscribe(a=>{this._isTooltipVisible()&&a.keyCode===27&&!Pt(a)&&(a.preventDefault(),a.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){let n=t.getConfig().positionStrategy,o=this._getOrigin(),a=this._getOverlayPosition();n.withPositions([this._addOffset(j(j({},o.main),a.main)),this._addOffset(j(j({},o.fallback),a.fallback))])}_addOffset(t){let n=$H,o=!this._dir||this._dir.value=="ltr";return t.originY==="top"?t.offsetY=-n:t.originY==="bottom"?t.offsetY=n:t.originX==="start"?t.offsetX=o?-n:n:t.originX==="end"&&(t.offsetX=o?n:-n),t}_getOrigin(){let t=!this._dir||this._dir.value=="ltr",n=this.position,o;n=="above"||n=="below"?o={originX:"center",originY:n=="above"?"top":"bottom"}:n=="before"||n=="left"&&t||n=="right"&&!t?o={originX:"start",originY:"center"}:(n=="after"||n=="right"&&t||n=="left"&&!t)&&(o={originX:"end",originY:"center"});let{x:a,y:s}=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:a,originY:s}}}_getOverlayPosition(){let t=!this._dir||this._dir.value=="ltr",n=this.position,o;n=="above"?o={overlayX:"center",overlayY:"bottom"}:n=="below"?o={overlayX:"center",overlayY:"top"}:n=="before"||n=="left"&&t||n=="right"&&!t?o={overlayX:"end",overlayY:"center"}:(n=="after"||n=="right"&&t||n=="left"&&!t)&&(o={overlayX:"start",overlayY:"center"});let{x:a,y:s}=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:a,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),ai(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,n){return this.position==="above"||this.position==="below"?n==="top"?n="bottom":n==="bottom"&&(n="top"):t==="end"?t="start":t==="start"&&(t="end"),{x:t,y:n}}_updateCurrentPositionClass(t){let{overlayY:n,originX:o,originY:a}=t,s;if(n==="center"?this._dir&&this._dir.value==="rtl"?s=o==="end"?"left":"right":s=o==="start"?"left":"right":s=n==="bottom"&&a==="top"?"above":"below",s!==this._currentPosition){let l=this._overlayRef;if(l){let u=`${this._cssClassPrefix}-${sk}-`;l.removePanelClass(u+this._currentPosition),l.addPanelClass(u+s)}this._currentPosition=s}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",t=>{this._setupPointerExitEventsIfNeeded();let n;t.x!==void 0&&t.y!==void 0&&(n=t),this.show(void 0,n)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",t=>{let n=t.targetTouches?.[0],o=n?{x:n.clientX,y:n.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let a=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,o)},this._defaultOptions.touchLongPressShowDelay??a)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",n=>{let o=n.relatedTarget;(!o||!this._overlayRef?.overlayElement.contains(o))&&this.hide()}],["wheel",n=>this._wheelListener(n)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let n=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",n],["touchcancel",n])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([n,o])=>{this._elementRef.nativeElement.addEventListener(n,o,lk)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){let n=this._document.elementFromPoint(t.clientX,t.clientY),o=this._elementRef.nativeElement;n!==o&&!o.contains(n)&&this.hide()}}_disableNativeGesturesIfNecessary(){let t=this.touchGestures;if(t!=="off"){let n=this._elementRef.nativeElement,o=n.style;(t==="on"||n.nodeName!=="INPUT"&&n.nodeName!=="TEXTAREA")&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),(t==="on"||!n.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}_syncAriaDescription(t){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,t,"tooltip"),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}};e.\u0275fac=function(n){return new(n||e)(m(xt),m(q),m(Ml),m(Ct),m(Z),m(Ve),m(cp),m(Di),m(dk),m(Nt),m(UH,8),m(se))},e.\u0275dir=L({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(n,o){n&2&&ne("mat-mdc-tooltip-disabled",o.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"],standalone:!0});let i=e;return i})(),qH=(()=>{let e=class e{constructor(t,n,o){this._changeDetectorRef=t,this._elementRef=n,this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new G,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide",this._animationsDisabled=o==="NoopAnimations"}show(t){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},t)}hide(t){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},t)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:t}){(!t||!this._triggerElement.contains(t))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let t=this._elementRef.nativeElement.getBoundingClientRect();return t.height>WH&&t.width>=GH}_handleAnimationEnd({animationName:t}){(t===this._showAnimation||t===this._hideAnimation)&&this._finalizeAnimation(t===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(t){t?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(t){let n=this._tooltip.nativeElement,o=this._showAnimation,a=this._hideAnimation;if(n.classList.remove(t?a:o),n.classList.add(t?o:a),this._isVisible!==t&&(this._isVisible=t,this._changeDetectorRef.markForCheck()),t&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let s=getComputedStyle(n);(s.getPropertyValue("animation-duration")==="0s"||s.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}t&&this._onShow(),this._animationsDisabled&&(n.classList.add("_mat-animation-noopable"),this._finalizeAnimation(t))}};e.\u0275fac=function(n){return new(n||e)(m(he),m(q),m(kt,8))},e.\u0275cmp=E({type:e,selectors:[["mat-tooltip-component"]],viewQuery:function(n,o){if(n&1&&ce(VH,7),n&2){let a;Q(a=K())&&(o._tooltip=a.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(n,o){n&1&&b("mouseleave",function(s){return o._handleMouseLeave(s)})},standalone:!0,features:[re],decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(n,o){if(n&1){let a=A();c(0,"div",1,0),b("animationend",function(l){return y(a),w(o._handleAnimationEnd(l))}),c(2,"div",2),g(3),d()()}n&2&&(ne("mdc-tooltip--multiline",o._isMultiline),p("ngClass",o.tooltipClass),h(3),$e(o.message))},dependencies:[Sn],styles:['.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mdc-plain-tooltip-container-color, var(--mat-app-inverse-surface));color:var(--mdc-plain-tooltip-supporting-text-color, var(--mat-app-inverse-on-surface));border-radius:var(--mdc-plain-tooltip-container-shape, var(--mat-app-corner-extra-small));font-family:var(--mdc-plain-tooltip-supporting-text-font, var(--mat-app-body-small-font));font-size:var(--mdc-plain-tooltip-supporting-text-size, var(--mat-app-body-small-size));font-weight:var(--mdc-plain-tooltip-supporting-text-weight, var(--mat-app-body-small-weight));line-height:var(--mdc-plain-tooltip-supporting-text-line-height, var(--mat-app-body-small-line-height));letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, var(--mat-app-body-small-tracking))}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0});let i=e;return i})();var Wl=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({providers:[BH],imports:[Ll,Ei,an,pe,pe,so]});let i=e;return i})();function YH(i,e){if(i&1&&(c(0,"mat-option",17),g(1),d()),i&2){let r=e.$implicit;p("value",r),h(),F(" ",r," ")}}function QH(i,e){if(i&1){let r=A();c(0,"mat-form-field",14)(1,"mat-select",16,0),b("selectionChange",function(n){y(r);let o=_(2);return w(o._changePageSize(n.value))}),Sr(3,YH,2,2,"mat-option",17,Rc),d(),c(5,"div",18),b("click",function(){y(r);let n=we(2);return w(n.open())}),d()()}if(i&2){let r=_(2);p("appearance",r._formFieldAppearance)("color",r.color),h(),p("value",r.pageSize)("disabled",r.disabled)("aria-labelledby",r._pageSizeLabelId)("panelClass",r.selectConfig.panelClass||"")("disableOptionCentering",r.selectConfig.disableOptionCentering),h(2),Er(r._displayedPageSizeOptions)}}function KH(i,e){if(i&1&&(c(0,"div",15),g(1),d()),i&2){let r=_(2);h(),$e(r.pageSize)}}function ZH(i,e){if(i&1&&(c(0,"div",3)(1,"div",13),g(2),d(),x(3,QH,6,7,"mat-form-field",14)(4,KH,2,1,"div",15),d()),i&2){let r=_();h(),ie("id",r._pageSizeLabelId),h(),F(" ",r._intl.itemsPerPageLabel," "),h(),De(r._displayedPageSizeOptions.length>1?3:-1),h(),De(r._displayedPageSizeOptions.length<=1?4:-1)}}function XH(i,e){if(i&1){let r=A();c(0,"button",19),b("click",function(){y(r);let n=_();return w(n.firstPage())}),pi(),c(1,"svg",8),I(2,"path",20),d()()}if(i&2){let r=_();p("matTooltip",r._intl.firstPageLabel)("matTooltipDisabled",r._previousButtonsDisabled())("matTooltipPosition","above")("disabled",r._previousButtonsDisabled()),ie("aria-label",r._intl.firstPageLabel)}}function JH(i,e){if(i&1){let r=A();c(0,"button",21),b("click",function(){y(r);let n=_();return w(n.lastPage())}),pi(),c(1,"svg",8),I(2,"path",22),d()()}if(i&2){let r=_();p("matTooltip",r._intl.lastPageLabel)("matTooltipDisabled",r._nextButtonsDisabled())("matTooltipPosition","above")("disabled",r._nextButtonsDisabled()),ie("aria-label",r._intl.lastPageLabel)}}var Ma=(()=>{let e=class e{constructor(){this.changes=new G,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(t,n,o)=>{if(o==0||n==0)return`0 of ${o}`;o=Math.max(o,0);let a=t*n,s=a{let e=class e{get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max(t||0,0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(t){this._length=t||0,this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max(t||0,0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(n=>ni(n,0)),this._updateDisplayedPageSizeOptions()}constructor(t,n,o){if(this._intl=t,this._changeDetectorRef=n,this._pageSizeLabelId=`mat-paginator-page-size-label-${o6++}`,this._isInitialized=!1,this._initializedStream=new Zn(1),this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this.hidePageSize=!1,this.showFirstLastButtons=!1,this.selectConfig={},this.disabled=!1,this.page=new T,this.initialized=this._initializedStream,this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),o){let{pageSize:a,pageSizeOptions:s,hidePageSize:l,showFirstLastButtons:u}=o;a!=null&&(this._pageSize=a),s!=null&&(this._pageSizeOptions=s),l!=null&&(this.hidePageSize=l),u!=null&&(this.showFirstLastButtons=u)}this._formFieldAppearance=o?.formFieldAppearance||"outline"}ngOnInit(){this._isInitialized=!0,this._updateDisplayedPageSizeOptions(),this._initializedStream.next()}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;let t=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(t)}previousPage(){if(!this.hasPreviousPage())return;let t=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(t)}firstPage(){if(!this.hasPreviousPage())return;let t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}lastPage(){if(!this.hasNextPage())return;let t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}hasPreviousPage(){return this.pageIndex>=1&&this.pageSize!=0}hasNextPage(){let t=this.getNumberOfPages()-1;return this.pageIndext-n),this._changeDetectorRef.markForCheck())}_emitPageEvent(t){this.page.emit({previousPageIndex:t,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}};e.\u0275fac=function(n){return new(n||e)(m(Ma),m(he),m(n6,8))},e.\u0275cmp=E({type:e,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",ni],length:[2,"length","length",ni],pageSize:[2,"pageSize","pageSize",ni],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",Y],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",Y],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",Y]},outputs:{page:"page"},exportAs:["matPaginator"],standalone:!0,features:[ge,re],decls:14,vars:14,consts:[["selectRef",""],[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],[1,"mat-mdc-paginator-page-size-label"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],[1,"mat-mdc-paginator-page-size-value"],["hideSingleSelectionIndicator","",3,"selectionChange","value","disabled","aria-labelledby","panelClass","disableOptionCentering"],[3,"value"],[1,"mat-mdc-paginator-touch-target",3,"click"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(n,o){n&1&&(c(0,"div",1)(1,"div",2),x(2,ZH,5,4,"div",3),c(3,"div",4)(4,"div",5),g(5),d(),x(6,XH,3,5,"button",6),c(7,"button",7),b("click",function(){return o.previousPage()}),pi(),c(8,"svg",8),I(9,"path",9),d()(),yr(),c(10,"button",10),b("click",function(){return o.nextPage()}),pi(),c(11,"svg",8),I(12,"path",11),d()(),x(13,JH,3,5,"button",12),d()()()),n&2&&(h(2),De(o.hidePageSize?-1:2),h(3),F(" ",o._intl.getRangeLabel(o.pageIndex,o.pageSize,o.length)," "),h(),De(o.showFirstLastButtons?6:-1),h(),p("matTooltip",o._intl.previousPageLabel)("matTooltipDisabled",o._previousButtonsDisabled())("matTooltipPosition","above")("disabled",o._previousButtonsDisabled()),ie("aria-label",o._intl.previousPageLabel),h(3),p("matTooltip",o._intl.nextPageLabel)("matTooltipDisabled",o._nextButtonsDisabled())("matTooltipPosition","above")("disabled",o._nextButtonsDisabled()),ie("aria-label",o._intl.nextPageLabel),h(3),De(o.showFirstLastButtons?13:-1))},dependencies:[_e,bt,nt,Qi,lr],styles:[".mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color, var(--mat-app-on-surface));background-color:var(--mat-paginator-container-background-color, var(--mat-app-surface));font-family:var(--mat-paginator-container-text-font, var(--mat-app-body-small-font));line-height:var(--mat-paginator-container-text-line-height, var(--mat-app-body-small-line-height));font-size:var(--mat-paginator-container-text-size, var(--mat-app-body-small-size));font-weight:var(--mat-paginator-container-text-weight, var(--mat-app-body-small-weight));letter-spacing:var(--mat-paginator-container-text-tracking, var(--mat-app-body-small-tracking));--mat-form-field-container-height:var(--mat-paginator-form-field-container-height);--mat-form-field-container-vertical-padding:var(--mat-paginator-form-field-container-vertical-padding)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size, var(--mat-app-body-small-size))}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap;width:100%;min-height:var(--mat-paginator-container-size)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:84px}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color, var(--mat-app-on-surface-variant))}.mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color)}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon,.cdk-high-contrast-active .mat-mdc-paginator-icon{fill:currentColor;fill:CanvasText}.cdk-high-contrast-active .mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}.mat-mdc-paginator-touch-target{display:var(--mat-paginator-touch-target-display);position:absolute;top:50%;left:50%;width:84px;height:48px;background-color:rgba(0,0,0,0);transform:translate(-50%, -50%);cursor:pointer}"],encapsulation:2,changeDetection:0});let i=e;return i})(),uk=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({providers:[t6],imports:[ar,bf,Wl,jr]});let i=e;return i})();var r6=["mat-sort-header",""],a6=["*"];function s6(i,e){if(i&1){let r=A();c(0,"div",2),b("@arrowPosition.start",function(){y(r);let n=_();return w(n._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){y(r);let n=_();return w(n._disableViewStateAnimation=!1)}),I(1,"div",3),c(2,"div",4),I(3,"div",5)(4,"div",6)(5,"div",7),d()()}if(i&2){let r=_();p("@arrowOpacity",r._getArrowViewState())("@arrowPosition",r._getArrowViewState())("@allowChildren",r._getArrowDirectionState()),h(2),p("@indicator",r._getArrowDirectionState()),h(),p("@leftPointer",r._getArrowDirectionState()),h(),p("@rightPointer",r._getArrowDirectionState())}}var mk=new R("MAT_SORT_DEFAULT_OPTIONS"),Br=(()=>{let e=class e{get direction(){return this._direction}set direction(t){this._direction=t}constructor(t){this._defaultOptions=t,this._initializedStream=new Zn(1),this.sortables=new Map,this._stateChanges=new G,this.start="asc",this._direction="",this.disabled=!1,this.sortChange=new T,this.initialized=this._initializedStream}register(t){this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){if(!t)return"";let n=t?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,o=l6(t.start||this.start,n),a=o.indexOf(this.direction)+1;return a>=o.length&&(a=0),o[a]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}};e.\u0275fac=function(n){return new(n||e)(m(mk,8))},e.\u0275dir=L({type:e,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",Y],disabled:[2,"matSortDisabled","disabled",Y]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],standalone:!0,features:[ge,Qe]});let i=e;return i})();function l6(i,e){let r=["asc","desc"];return i=="desc"&&r.reverse(),e||r.push(""),r}var Ta=S1.ENTERING+" "+D1.STANDARD_CURVE,Gl={indicator:ui("indicator",[Lt("active-asc, asc",Me({transform:"translateY(0px)"})),Lt("active-desc, desc",Me({transform:"translateY(10px)"})),St("active-asc <=> active-desc",Mt(Ta))]),leftPointer:ui("leftPointer",[Lt("active-asc, asc",Me({transform:"rotate(-45deg)"})),Lt("active-desc, desc",Me({transform:"rotate(45deg)"})),St("active-asc <=> active-desc",Mt(Ta))]),rightPointer:ui("rightPointer",[Lt("active-asc, asc",Me({transform:"rotate(45deg)"})),Lt("active-desc, desc",Me({transform:"rotate(-45deg)"})),St("active-asc <=> active-desc",Mt(Ta))]),arrowOpacity:ui("arrowOpacity",[Lt("desc-to-active, asc-to-active, active",Me({opacity:1})),Lt("desc-to-hint, asc-to-hint, hint",Me({opacity:.54})),Lt("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Me({opacity:0})),St("* => asc, * => desc, * => active, * => hint, * => void",Mt("0ms")),St("* <=> *",Mt(Ta))]),arrowPosition:ui("arrowPosition",[St("* => desc-to-hint, * => desc-to-active",Mt(Ta,wa([Me({transform:"translateY(-25%)"}),Me({transform:"translateY(0)"})]))),St("* => hint-to-desc, * => active-to-desc",Mt(Ta,wa([Me({transform:"translateY(0)"}),Me({transform:"translateY(25%)"})]))),St("* => asc-to-hint, * => asc-to-active",Mt(Ta,wa([Me({transform:"translateY(25%)"}),Me({transform:"translateY(0)"})]))),St("* => hint-to-asc, * => active-to-asc",Mt(Ta,wa([Me({transform:"translateY(0)"}),Me({transform:"translateY(-25%)"})]))),Lt("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Me({transform:"translateY(0)"})),Lt("hint-to-desc, active-to-desc, desc",Me({transform:"translateY(-25%)"})),Lt("hint-to-asc, active-to-asc, asc",Me({transform:"translateY(25%)"}))]),allowChildren:ui("allowChildren",[St("* <=> *",[bp("@*",vp(),{optional:!0})])])},wf=(()=>{let e=class e{constructor(){this.changes=new G}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function c6(i){return i||new wf}var d6={provide:wf,deps:[[new to,new Do,wf]],useFactory:c6},Cf=(()=>{let e=class e{get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(t){this._updateSortActionDescription(t)}constructor(t,n,o,a,s,l,u,f){this._intl=t,this._changeDetectorRef=n,this._sort=o,this._columnDef=a,this._focusMonitor=s,this._elementRef=l,this._ariaDescriber=u,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this.disabled=!1,this._sortActionDescription="Sort",f?.arrowPosition&&(this.arrowPosition=f?.arrowPosition),this._handleStateChanges()}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{let n=!!t;n!==this._showIndicatorHint&&(this._setIndicatorHintVisible(n),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe(),this._sortButton&&this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription)}_setIndicatorHintVisible(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._showIndicatorHint?this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"hint"}):this._setAnimationTransitionState({fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(t){this._viewState=t||{},this._disableViewStateAnimation&&(this._viewState={toState:t.toState})}_toggleOnInteraction(){this._sort.sort(this),(this._viewState.toState==="hint"||this._viewState.toState==="active")&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(t){!this._isDisabled()&&(t.keyCode===32||t.keyCode===13)&&(t.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){let t=this._viewState.fromState;return(t?`${t}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?this._sort.direction=="asc"?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(t){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,t)),this._sortActionDescription=t}_handleStateChanges(){this._rerenderSubscription=wt(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),(this._viewState.toState==="hint"||this._viewState.toState==="active")&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&this._viewState.toState==="active"&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}};e.\u0275fac=function(n){return new(n||e)(m(wf),m(he),m(Br,8),m("MAT_SORT_HEADER_COLUMN_DEF",8),m(Di),m(q),m(cp,8),m(mk,8))},e.\u0275cmp=E({type:e,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(n,o){n&1&&b("click",function(){return o._handleClick()})("keydown",function(s){return o._handleKeydown(s)})("mouseenter",function(){return o._setIndicatorHintVisible(!0)})("mouseleave",function(){return o._setIndicatorHintVisible(!1)}),n&2&&(ie("aria-sort",o._getAriaSortAttribute()),ne("mat-sort-header-disabled",o._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",Y],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",Y]},exportAs:["matSortHeader"],standalone:!0,features:[ge,re],attrs:r6,ngContentSelectors:a6,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[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(n,o){n&1&&(He(),c(0,"div",0)(1,"div",1),ae(2),d(),x(3,s6,6,6,"div",2),d()),n&2&&(ne("mat-sort-header-sorted",o._isSorted())("mat-sort-header-position-before",o.arrowPosition==="before"),ie("tabindex",o._isDisabled()?null:0)("role",o._isDisabled()?null:"button"),h(3),De(o._renderArrow()?3:-1))},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-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.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;color:var(--mat-sort-arrow-color, var(--mat-app-on-surface));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}"],encapsulation:2,data:{animation:[Gl.indicator,Gl.leftPointer,Gl.rightPointer,Gl.arrowOpacity,Gl.arrowPosition,Gl.allowChildren]},changeDetection:0});let i=e;return i})(),pk=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({providers:[d6],imports:[pe]});let i=e;return i})();var h6=[[["caption"]],[["colgroup"],["col"]],"*"],m6=["caption","colgroup, col","*"];function p6(i,e){i&1&&ae(0,2)}function f6(i,e){i&1&&(c(0,"thead",0),Ci(1,1),d(),c(2,"tbody",0),Ci(3,2)(4,3),d(),c(5,"tfoot",0),Ci(6,4),d())}function g6(i,e){i&1&&Ci(0,1)(1,2)(2,3)(3,4)}var Po=new R("CDK_TABLE");var Mf=(()=>{let e=class e{constructor(t){this.template=t}};e.\u0275fac=function(n){return new(n||e)(m(dt))},e.\u0275dir=L({type:e,selectors:[["","cdkCellDef",""]],standalone:!0});let i=e;return i})(),Tf=(()=>{let e=class e{constructor(t){this.template=t}};e.\u0275fac=function(n){return new(n||e)(m(dt))},e.\u0275dir=L({type:e,selectors:[["","cdkHeaderCellDef",""]],standalone:!0});let i=e;return i})(),vk=(()=>{let e=class e{constructor(t){this.template=t}};e.\u0275fac=function(n){return new(n||e)(m(dt))},e.\u0275dir=L({type:e,selectors:[["","cdkFooterCellDef",""]],standalone:!0});let i=e;return i})(),ql=(()=>{let e=class e{get name(){return this._name}set name(t){this._setNameInput(t)}get sticky(){return this._sticky}set sticky(t){t!==this._sticky&&(this._sticky=t,this._hasStickyChanged=!0)}get stickyEnd(){return this._stickyEnd}set stickyEnd(t){t!==this._stickyEnd&&(this._stickyEnd=t,this._hasStickyChanged=!0)}constructor(t){this._table=t,this._hasStickyChanged=!1,this._sticky=!1,this._stickyEnd=!1}hasStickyChanged(){let t=this._hasStickyChanged;return this.resetStickyChanged(),t}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(t){t&&(this._name=t,this.cssClassFriendlyName=t.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}};e.\u0275fac=function(n){return new(n||e)(m(Po,8))},e.\u0275dir=L({type:e,selectors:[["","cdkColumnDef",""]],contentQueries:function(n,o,a){if(n&1&&(Be(a,Mf,5),Be(a,Tf,5),Be(a,vk,5)),n&2){let s;Q(s=K())&&(o.cell=s.first),Q(s=K())&&(o.headerCell=s.first),Q(s=K())&&(o.footerCell=s.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",Y],stickyEnd:[2,"stickyEnd","stickyEnd",Y]},standalone:!0,features:[Ce([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),ge]});let i=e;return i})(),Df=class{constructor(e,r){r.nativeElement.classList.add(...e._columnCssClassName)}},bk=(()=>{let e=class e extends Df{constructor(t,n){super(t,n)}};e.\u0275fac=function(n){return new(n||e)(m(ql),m(q))},e.\u0275dir=L({type:e,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],standalone:!0,features:[be]});let i=e;return i})();var yk=(()=>{let e=class e extends Df{constructor(t,n){super(t,n);let o=t._table?._getCellRole();o&&n.nativeElement.setAttribute("role",o)}};e.\u0275fac=function(n){return new(n||e)(m(ql),m(q))},e.\u0275dir=L({type:e,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],standalone:!0,features:[be]});let i=e;return i})(),Sf=class{constructor(){this.tasks=[],this.endTasks=[]}},Ef=new R("_COALESCED_STYLE_SCHEDULER"),zy=(()=>{let e=class e{constructor(t){this._currentSchedule=null,this._ngZone=k(Z)}schedule(t){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(t)}scheduleEnd(t){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(t)}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new Sf,this._ngZone.runOutsideAngular(()=>queueMicrotask(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){let t=this._currentSchedule;this._currentSchedule=new Sf;for(let n of t.tasks)n();for(let n of t.endTasks)n()}this._currentSchedule=null})))}};e.\u0275fac=function(n){return new(n||e)(M(Z))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();var Uy=(()=>{let e=class e{constructor(t,n){this.template=t,this._differs=n}ngOnChanges(t){if(!this._columnsDiffer){let n=t.columns&&t.columns.currentValue||[];this._columnsDiffer=this._differs.find(n).create(),this._columnsDiffer.diff(n)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(t){return this instanceof Wd?t.headerCell.template:this instanceof Hy?t.footerCell.template:t.cell.template}};e.\u0275fac=function(n){return new(n||e)(m(dt),m(Xo))},e.\u0275dir=L({type:e,features:[Qe]});let i=e;return i})(),Wd=(()=>{let e=class e extends Uy{get sticky(){return this._sticky}set sticky(t){t!==this._sticky&&(this._sticky=t,this._hasStickyChanged=!0)}constructor(t,n,o){super(t,n),this._table=o,this._hasStickyChanged=!1,this._sticky=!1}ngOnChanges(t){super.ngOnChanges(t)}hasStickyChanged(){let t=this._hasStickyChanged;return this.resetStickyChanged(),t}resetStickyChanged(){this._hasStickyChanged=!1}};e.\u0275fac=function(n){return new(n||e)(m(dt),m(Xo),m(Po,8))},e.\u0275dir=L({type:e,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",Y]},standalone:!0,features:[ge,be,Qe]});let i=e;return i})(),Hy=(()=>{let e=class e extends Uy{get sticky(){return this._sticky}set sticky(t){t!==this._sticky&&(this._sticky=t,this._hasStickyChanged=!0)}constructor(t,n,o){super(t,n),this._table=o,this._hasStickyChanged=!1,this._sticky=!1}ngOnChanges(t){super.ngOnChanges(t)}hasStickyChanged(){let t=this._hasStickyChanged;return this.resetStickyChanged(),t}resetStickyChanged(){this._hasStickyChanged=!1}};e.\u0275fac=function(n){return new(n||e)(m(dt),m(Xo),m(Po,8))},e.\u0275dir=L({type:e,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",Y]},standalone:!0,features:[ge,be,Qe]});let i=e;return i})(),kf=(()=>{let e=class e extends Uy{constructor(t,n,o){super(t,n),this._table=o}};e.\u0275fac=function(n){return new(n||e)(m(dt),m(Xo),m(Po,8))},e.\u0275dir=L({type:e,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},standalone:!0,features:[be]});let i=e;return i})(),bs=(()=>{let e=class e{constructor(t){this._viewContainer=t,e.mostRecentCellOutlet=this}ngOnDestroy(){e.mostRecentCellOutlet===this&&(e.mostRecentCellOutlet=null)}};e.mostRecentCellOutlet=null,e.\u0275fac=function(n){return new(n||e)(m(Ct))},e.\u0275dir=L({type:e,selectors:[["","cdkCellOutlet",""]],standalone:!0});let i=e;return i})(),$y=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=E({type:e,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],standalone:!0,features:[re],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Ci(0,0)},dependencies:[bs],encapsulation:2});let i=e;return i})();var Wy=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=E({type:e,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],standalone:!0,features:[re],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Ci(0,0)},dependencies:[bs],encapsulation:2});let i=e;return i})(),wk=(()=>{let e=class e{constructor(t){this.templateRef=t,this._contentClassName="cdk-no-data-row"}};e.\u0275fac=function(n){return new(n||e)(m(dt))},e.\u0275dir=L({type:e,selectors:[["ng-template","cdkNoDataRow",""]],standalone:!0});let i=e;return i})(),gk=["top","bottom","left","right"],By=class{constructor(e,r,t,n,o=!0,a=!0,s){this._isNativeHtmlTable=e,this._stickCellCss=r,this.direction=t,this._coalescedStyleScheduler=n,this._isBrowser=o,this._needsPositionStickyOnElement=a,this._positionListener=s,this._elemSizeCache=new WeakMap,this._resizeObserver=globalThis?.ResizeObserver?new globalThis.ResizeObserver(l=>this._updateCachedSizes(l)):null,this._updatedStickyColumnsParamsToReplay=[],this._stickyColumnsReplayTimeout=null,this._cachedCellWidths=[],this._borderCellCss={top:`${r}-border-elem-top`,bottom:`${r}-border-elem-bottom`,left:`${r}-border-elem-left`,right:`${r}-border-elem-right`}}clearStickyPositioning(e,r){(r.includes("left")||r.includes("right"))&&this._removeFromStickyColumnReplayQueue(e);let t=[];for(let n of e)if(n.nodeType===n.ELEMENT_NODE){t.push(n);for(let o=0;o{for(let n of t)this._removeStickyStyle(n,r)})}updateStickyColumns(e,r,t,n=!0,o=!0){if(o&&this._updateStickyColumnReplayQueue({rows:[...e],stickyStartStates:[...r],stickyEndStates:[...t]}),!e.length||!this._isBrowser||!(r.some(a=>a)||t.some(a=>a))){this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]}));return}this._coalescedStyleScheduler.schedule(()=>{let a=e[0],s=a.children.length,l=this._getCellWidths(a,n),u=this._getStickyStartColumnPositions(l,r),f=this._getStickyEndColumnPositions(l,t),v=r.lastIndexOf(!0),C=t.indexOf(!0),D=this.direction==="rtl",S=D?"right":"left",P=D?"left":"right";for(let z of e)for(let O=0;Or[O]?z:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:C===-1?[]:l.slice(C).map((z,O)=>t[O+C]?z:null).reverse()}))})}stickRows(e,r,t){this._isBrowser&&this._coalescedStyleScheduler.schedule(()=>{let n=t==="bottom"?e.slice().reverse():e,o=t==="bottom"?r.slice().reverse():r,a=[],s=[],l=[];for(let f=0,v=0;f{let t=e.querySelector("tfoot");t&&(r.some(n=>!n)?this._removeStickyStyle(t,["bottom"]):this._addStickyStyle(t,"bottom",0,!1))})}_removeStickyStyle(e,r){for(let n of r)e.style[n]="",e.classList.remove(this._borderCellCss[n]);gk.some(n=>r.indexOf(n)===-1&&e.style[n])?e.style.zIndex=this._getCalculatedZIndex(e):(e.style.zIndex="",this._needsPositionStickyOnElement&&(e.style.position=""),e.classList.remove(this._stickCellCss))}_addStickyStyle(e,r,t,n){e.classList.add(this._stickCellCss),n&&e.classList.add(this._borderCellCss[r]),e.style[r]=`${t}px`,e.style.zIndex=this._getCalculatedZIndex(e),this._needsPositionStickyOnElement&&(e.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(e){let r={top:100,bottom:10,left:1,right:1},t=0;for(let n of gk)e.style[n]&&(t+=r[n]);return t?`${t}`:""}_getCellWidths(e,r=!0){if(!r&&this._cachedCellWidths.length)return this._cachedCellWidths;let t=[],n=e.children;for(let o=0;o0;o--)r[o]&&(t[o]=n,n+=e[o]);return t}_retrieveElementSize(e){let r=this._elemSizeCache.get(e);if(r)return r;let t=e.getBoundingClientRect(),n={width:t.width,height:t.height};return this._resizeObserver&&(this._elemSizeCache.set(e,n),this._resizeObserver.observe(e,{box:"border-box"})),n}_updateStickyColumnReplayQueue(e){this._removeFromStickyColumnReplayQueue(e.rows),!this._stickyColumnsReplayTimeout&&this._updatedStickyColumnsParamsToReplay.push(e)}_removeFromStickyColumnReplayQueue(e){let r=new Set(e);for(let t of this._updatedStickyColumnsParamsToReplay)t.rows=t.rows.filter(n=>!r.has(n));this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(t=>!!t.rows.length)}_updateCachedSizes(e){let r=!1;for(let t of e){let n=t.borderBoxSize?.length?{width:t.borderBoxSize[0].inlineSize,height:t.borderBoxSize[0].blockSize}:{width:t.contentRect.width,height:t.contentRect.height};n.width!==this._elemSizeCache.get(t.target)?.width&&_6(t.target)&&(r=!0),this._elemSizeCache.set(t.target,n)}r&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(()=>{for(let t of this._updatedStickyColumnsParamsToReplay)this.updateStickyColumns(t.rows,t.stickyStartStates,t.stickyEndStates,!0,!1);this._updatedStickyColumnsParamsToReplay=[],this._stickyColumnsReplayTimeout=null},0))}};function _6(i){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(e=>i.classList.contains(e))}var If=new R("CDK_SPL");var Gy=(()=>{let e=class e{constructor(t,n){this.viewContainer=t,this.elementRef=n;let o=k(Po);o._rowOutlet=this,o._outletAssigned()}};e.\u0275fac=function(n){return new(n||e)(m(Ct),m(q))},e.\u0275dir=L({type:e,selectors:[["","rowOutlet",""]],standalone:!0});let i=e;return i})(),qy=(()=>{let e=class e{constructor(t,n){this.viewContainer=t,this.elementRef=n;let o=k(Po);o._headerRowOutlet=this,o._outletAssigned()}};e.\u0275fac=function(n){return new(n||e)(m(Ct),m(q))},e.\u0275dir=L({type:e,selectors:[["","headerRowOutlet",""]],standalone:!0});let i=e;return i})(),Yy=(()=>{let e=class e{constructor(t,n){this.viewContainer=t,this.elementRef=n;let o=k(Po);o._footerRowOutlet=this,o._outletAssigned()}};e.\u0275fac=function(n){return new(n||e)(m(Ct),m(q))},e.\u0275dir=L({type:e,selectors:[["","footerRowOutlet",""]],standalone:!0});let i=e;return i})(),Qy=(()=>{let e=class e{constructor(t,n){this.viewContainer=t,this.elementRef=n;let o=k(Po);o._noDataRowOutlet=this,o._outletAssigned()}};e.\u0275fac=function(n){return new(n||e)(m(Ct),m(q))},e.\u0275dir=L({type:e,selectors:[["","noDataRowOutlet",""]],standalone:!0});let i=e;return i})();var Ky=(()=>{let e=class e{_getCellRole(){if(this._cellRoleInternal===void 0){let t=this._elementRef.nativeElement.getAttribute("role"),n=t==="grid"||t==="treegrid"?"gridcell":"cell";this._cellRoleInternal=this._isNativeHtmlTable&&n==="cell"?null:n}return this._cellRoleInternal}get trackBy(){return this._trackByFn}set trackBy(t){this._trackByFn=t}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(t){this._multiTemplateDataRows=t,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(t){this._fixedLayout=t,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(t,n,o,a,s,l,u,f,v,C,D,S){this._differs=t,this._changeDetectorRef=n,this._elementRef=o,this._dir=s,this._platform=u,this._viewRepeater=f,this._coalescedStyleScheduler=v,this._viewportRuler=C,this._stickyPositioningListener=D,this._onDestroy=new G,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._hasAllOutlets=!1,this._hasInitialized=!1,this._cellRoleInternal=void 0,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new T,this.viewChange=new Gt({start:0,end:Number.MAX_VALUE}),this._injector=k(Pe),a||o.nativeElement.setAttribute("role","table"),this._document=l,this._isServer=!u.isBrowser,this._isNativeHtmlTable=o.nativeElement.nodeName==="TABLE"}ngOnInit(){this._setupStickyStyler(),this._dataDiffer=this._differs.find([]).create((t,n)=>this.trackBy?this.trackBy(n.dataIndex,n.data):n),this._viewportRuler.change().pipe(fe(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}ngOnDestroy(){[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(t=>{t?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),ep(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();let t=this._dataDiffer.diff(this._renderRows);if(!t){this._updateNoDataRow(),this.contentChanged.next();return}let n=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(t,n,(o,a,s)=>this._getEmbeddedViewArgs(o.item,s),o=>o.item.data,o=>{o.operation===El.INSERTED&&o.context&&this._renderCellTemplateForItem(o.record.item.rowDef,o.context)}),this._updateRowIndexContext(),t.forEachIdentityChange(o=>{let a=n.get(o.currentIndex);a.context.$implicit=o.item.data}),this._updateNoDataRow(),ai(()=>{this.updateStickyColumnStyles()},{injector:this._injector}),this.contentChanged.next()}addColumnDef(t){this._customColumnDefs.add(t)}removeColumnDef(t){this._customColumnDefs.delete(t)}addRowDef(t){this._customRowDefs.add(t)}removeRowDef(t){this._customRowDefs.delete(t)}addHeaderRowDef(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}removeHeaderRowDef(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}addFooterRowDef(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}removeFooterRowDef(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}setNoDataRow(t){this._customNoDataRow=t}updateStickyHeaderRowStyles(){let t=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){let o=_k(this._headerRowOutlet,"thead");o&&(o.style.display=t.length?"":"none")}let n=this._headerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,n,"top"),this._headerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyFooterRowStyles(){let t=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let o=_k(this._footerRowOutlet,"tfoot");o&&(o.style.display=t.length?"":"none")}let n=this._footerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyColumnStyles(){let t=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),o=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...t,...n,...o],["left","right"]),this._stickyColumnStylesNeedReset=!1),t.forEach((a,s)=>{this._addStickyColumnStyles([a],this._headerRowDefs[s])}),this._rowDefs.forEach(a=>{let s=[];for(let l=0;l{this._addStickyColumnStyles([a],this._footerRowDefs[s])}),Array.from(this._columnDefsByName.values()).forEach(a=>a.resetStickyChanged())}_outletAssigned(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=!0,this._canRender()&&this._render())}_canRender(){return this._hasAllOutlets&&this._hasInitialized}_render(){this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&this._rowDefs.length;let n=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||n,this._forceRecalculateCellWidths=n,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()}_getAllRenderRows(){let t=[],n=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let o=0;o{let l=o&&o.has(s)?o.get(s):[];if(l.length){let u=l.shift();return u.dataIndex=n,u}else return{data:t,rowDef:s,dataIndex:n}})}_cacheColumnDefs(){this._columnDefsByName.clear(),xf(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(n=>{this._columnDefsByName.has(n.name),this._columnDefsByName.set(n.name,n)})}_cacheRowDefs(){this._headerRowDefs=xf(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=xf(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=xf(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let t=this._rowDefs.filter(n=>!n.when);!this.multiTemplateDataRows&&t.length>1,this._defaultRowDef=t[0]}_renderUpdatedColumns(){let t=(s,l)=>s||!!l.getColumnsDiff(),n=this._rowDefs.reduce(t,!1);n&&this._forceRenderDataRows();let o=this._headerRowDefs.reduce(t,!1);o&&this._forceRenderHeaderRows();let a=this._footerRowDefs.reduce(t,!1);return a&&this._forceRenderFooterRows(),n||o||a}_switchDataSource(t){this._data=[],ep(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=t}_observeRenderChanges(){if(!this.dataSource)return;let t;ep(this.dataSource)?t=this.dataSource.connect(this):Gr(this.dataSource)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=oe(this.dataSource)),this._renderChangeSubscription=t.pipe(fe(this._onDestroy)).subscribe(n=>{this._data=n||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((t,n)=>this._renderRow(this._headerRowOutlet,t,n)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((t,n)=>this._renderRow(this._footerRowOutlet,t,n)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(t,n){let o=Array.from(n.columns||[]).map(l=>{let u=this._columnDefsByName.get(l);return u}),a=o.map(l=>l.sticky),s=o.map(l=>l.stickyEnd);this._stickyStyler.updateStickyColumns(t,a,s,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(t){let n=[];for(let o=0;o!a.when||a.when(n,t));else{let a=this._rowDefs.find(s=>s.when&&s.when(n,t))||this._defaultRowDef;a&&o.push(a)}return o.length,o}_getEmbeddedViewArgs(t,n){let o=t.rowDef,a={$implicit:t.data};return{templateRef:o.template,context:a,index:n}}_renderRow(t,n,o,a={}){let s=t.viewContainer.createEmbeddedView(n.template,a,o);return this._renderCellTemplateForItem(n,a),s}_renderCellTemplateForItem(t,n){for(let o of this._getCellTemplates(t))bs.mostRecentCellOutlet&&bs.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,n);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let t=this._rowOutlet.viewContainer;for(let n=0,o=t.length;n{let o=this._columnDefsByName.get(n);return t.extractCellTemplate(o)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let t=(n,o)=>n||o.hasStickyChanged();this._headerRowDefs.reduce(t,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(t,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(t,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){let t=this._dir?this._dir.value:"ltr";this._stickyStyler=new By(this._isNativeHtmlTable,this.stickyCssClass,t,this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:oe()).pipe(fe(this._onDestroy)).subscribe(n=>{this._stickyStyler.direction=n,this.updateStickyColumnStyles()})}_getOwnDefs(t){return t.filter(n=>!n._table||n._table===this)}_updateNoDataRow(){let t=this._customNoDataRow||this._noDataRow;if(!t)return;let n=this._rowOutlet.viewContainer.length===0;if(n===this._isShowingNoDataRow)return;let o=this._noDataRowOutlet.viewContainer;if(n){let a=o.createEmbeddedView(t.templateRef),s=a.rootNodes[0];a.rootNodes.length===1&&s?.nodeType===this._document.ELEMENT_NODE&&(s.setAttribute("role","row"),s.classList.add(t._contentClassName))}else o.clear();this._isShowingNoDataRow=n,this._changeDetectorRef.markForCheck()}};e.\u0275fac=function(n){return new(n||e)(m(Xo),m(he),m(q),vi("role"),m(Nt,8),m(se),m(Ve),m(fd),m(Ef),m(fn),m(If,12),m(Z,8))},e.\u0275cmp=E({type:e,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(n,o,a){if(n&1&&(Be(a,wk,5),Be(a,ql,5),Be(a,kf,5),Be(a,Wd,5),Be(a,Hy,5)),n&2){let s;Q(s=K())&&(o._noDataRow=s.first),Q(s=K())&&(o._contentColumnDefs=s),Q(s=K())&&(o._contentRowDefs=s),Q(s=K())&&(o._contentHeaderRowDefs=s),Q(s=K())&&(o._contentFooterRowDefs=s)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(n,o){n&2&&ne("cdk-table-fixed-layout",o.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",Y],fixedLayout:[2,"fixedLayout","fixedLayout",Y]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],standalone:!0,features:[Ce([{provide:Po,useExisting:e},{provide:fd,useClass:Il},{provide:Ef,useClass:zy},{provide:If,useValue:null}]),ge,re],ngContentSelectors:m6,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,o){n&1&&(He(h6),ae(0),ae(1,1),x(2,p6,1,0)(3,f6,7,0)(4,g6,4,0)),n&2&&(h(2),De(o._isServer?2:-1),h(),De(o._isNativeHtmlTable?3:4))},dependencies:[qy,Gy,Qy,Yy],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2});let i=e;return i})();function xf(i,e){return i.concat(Array.from(e))}function _k(i,e){let r=e.toUpperCase(),t=i.viewContainer.element.nativeElement;for(;t;){let n=t.nodeType===1?t.nodeName:null;if(n===r)return t;if(n==="TABLE")break;t=t.parentNode}return null}var Ck=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({imports:[_d]});let i=e;return i})();var v6=[[["caption"]],[["colgroup"],["col"]],"*"],b6=["caption","colgroup, col","*"];function y6(i,e){i&1&&ae(0,2)}function w6(i,e){i&1&&(c(0,"thead",0),Ci(1,1),d(),c(2,"tbody",2),Ci(3,3)(4,4),d(),c(5,"tfoot",0),Ci(6,5),d())}function C6(i,e){i&1&&Ci(0,1)(1,3)(2,4)(3,5)}var Af=(()=>{let e=class e extends Ky{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=jt(e)))(o||e)}})(),e.\u0275cmp=E({type:e,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(n,o){n&2&&ne("mdc-table-fixed-layout",o.fixedLayout)},exportAs:["matTable"],standalone:!0,features:[Ce([{provide:Ky,useExisting:e},{provide:Po,useExisting:e},{provide:Ef,useClass:zy},{provide:fd,useClass:Il},{provide:If,useValue:null}]),be,re],ngContentSelectors:b6,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,o){n&1&&(He(v6),ae(0),ae(1,1),x(2,y6,1,0)(3,w6,7,0)(4,C6,4,0)),n&2&&(h(2),De(o._isServer?2:-1),h(),De(o._isNativeHtmlTable?3:4))},dependencies:[qy,Gy,Qy,Yy],styles:[".mat-mdc-table-sticky{position:sticky !important}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table{min-width:100%;border:0;border-spacing:0;table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color, var(--mat-app-surface))}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell{text-align:right}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, var(--mat-app-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-table-header-headline-font, var(--mat-app-title-small-font, Roboto, sans-serif));line-height:var(--mat-table-header-headline-line-height, var(--mat-app-title-small-line-height));font-size:var(--mat-table-header-headline-size, var(--mat-app-title-small-size, 14px));font-weight:var(--mat-table-header-headline-weight, var(--mat-app-title-small-weight, 500))}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, var(--mat-app-on-surface, rgba(0, 0, 0, 0.87)))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, var(--mat-app-body-medium-font, Roboto, sans-serif));line-height:var(--mat-table-row-item-label-text-line-height, var(--mat-app-body-medium-line-height));font-size:var(--mat-table-row-item-label-text-size, var(--mat-app-body-medium-size, 14px));font-weight:var(--mat-table-row-item-label-text-weight, var(--mat-app-body-medium-weight))}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, var(--mat-app-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-table-footer-supporting-text-font, var(--mat-app-body-medium-font, Roboto, sans-serif));line-height:var(--mat-table-footer-supporting-text-line-height, var(--mat-app-body-medium-line-height));font-size:var(--mat-table-footer-supporting-text-size, var(--mat-app-body-medium-size, 14px));font-weight:var(--mat-table-footer-supporting-text-weight, var(--mat-app-body-medium-weight));letter-spacing:var(--mat-table-footer-supporting-text-tracking, var(--mat-app-body-medium-tracking))}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, var(--mat-app-outline, rgba(0, 0, 0, 0.12)));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking, var(--mat-app-title-small-tracking));font-weight:inherit;line-height:inherit;box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mat-mdc-header-cell{text-align:right}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, var(--mat-app-outline, rgba(0, 0, 0, 0.12)));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking, var(--mat-app-body-medium-tracking));line-height:inherit}.mdc-data-table__row:last-child .mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking, var(--mat-app-body-medium-tracking))}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"],encapsulation:2});let i=e;return i})(),Of=(()=>{let e=class e extends Mf{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=jt(e)))(o||e)}})(),e.\u0275dir=L({type:e,selectors:[["","matCellDef",""]],standalone:!0,features:[Ce([{provide:Mf,useExisting:e}]),be]});let i=e;return i})(),Rf=(()=>{let e=class e extends Tf{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=jt(e)))(o||e)}})(),e.\u0275dir=L({type:e,selectors:[["","matHeaderCellDef",""]],standalone:!0,features:[Ce([{provide:Tf,useExisting:e}]),be]});let i=e;return i})();var Pf=(()=>{let e=class e extends ql{get name(){return this._name}set name(t){this._setNameInput(t)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=jt(e)))(o||e)}})(),e.\u0275dir=L({type:e,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},standalone:!0,features:[Ce([{provide:ql,useExisting:e},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),be]});let i=e;return i})(),Ff=(()=>{let e=class e extends bk{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=jt(e)))(o||e)}})(),e.\u0275dir=L({type:e,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],standalone:!0,features:[be]});let i=e;return i})();var Nf=(()=>{let e=class e extends yk{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=jt(e)))(o||e)}})(),e.\u0275dir=L({type:e,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],standalone:!0,features:[be]});let i=e;return i})();var Lf=(()=>{let e=class e extends Wd{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=jt(e)))(o||e)}})(),e.\u0275dir=L({type:e,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",Y]},standalone:!0,features:[Ce([{provide:Wd,useExisting:e}]),ge,be]});let i=e;return i})();var Vf=(()=>{let e=class e extends kf{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=jt(e)))(o||e)}})(),e.\u0275dir=L({type:e,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},standalone:!0,features:[Ce([{provide:kf,useExisting:e}]),be]});let i=e;return i})(),jf=(()=>{let e=class e extends $y{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=jt(e)))(o||e)}})(),e.\u0275cmp=E({type:e,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],standalone:!0,features:[Ce([{provide:$y,useExisting:e}]),be,re],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Ci(0,0)},dependencies:[bs],encapsulation:2});let i=e;return i})();var Bf=(()=>{let e=class e extends Wy{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=jt(e)))(o||e)}})(),e.\u0275cmp=E({type:e,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],standalone:!0,features:[Ce([{provide:Wy,useExisting:e}]),be,re],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Ci(0,0)},dependencies:[bs],encapsulation:2});let i=e;return i})();var xk=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({imports:[pe,Ck,pe]});let i=e;return i})(),x6=9007199254740991,Yl=class extends Jm{get data(){return this._data.value}set data(e){e=Array.isArray(e)?e:[],this._data.next(e),this._renderChangesSubscription||this._filterData(e)}get filter(){return this._filter.value}set filter(e){this._filter.next(e),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(e){this._sort=e,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(e){this._paginator=e,this._updateChangeSubscription()}constructor(e=[]){super(),this._renderData=new Gt([]),this._filter=new Gt(""),this._internalPageChanges=new G,this._renderChangesSubscription=null,this.sortingDataAccessor=(r,t)=>{let n=r[t];if(N0(n)){let o=Number(n);return o{let n=t.active,o=t.direction;return!n||o==""?r:r.sort((a,s)=>{let l=this.sortingDataAccessor(a,n),u=this.sortingDataAccessor(s,n),f=typeof l,v=typeof u;f!==v&&(f==="number"&&(l+=""),v==="number"&&(u+=""));let C=0;return l!=null&&u!=null?l>u?C=1:l{let n=Object.keys(r).reduce((a,s)=>a+r[s]+"\u25EC","").toLowerCase(),o=t.trim().toLowerCase();return n.indexOf(o)!=-1},this._data=new Gt(e),this._updateChangeSubscription()}_updateChangeSubscription(){let e=this._sort?wt(this._sort.sortChange,this._sort.initialized):oe(null),r=this._paginator?wt(this._paginator.page,this._internalPageChanges,this._paginator.initialized):oe(null),t=this._data,n=Rn([t,this._filter]).pipe(ue(([s])=>this._filterData(s))),o=Rn([n,e]).pipe(ue(([s])=>this._orderData(s))),a=Rn([o,r]).pipe(ue(([s])=>this._pageData(s)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=a.subscribe(s=>this._renderData.next(s))}_filterData(e){return this.filteredData=this.filter==null||this.filter===""?e:e.filter(r=>this.filterPredicate(r,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(e){return this.sort?this.sortData(e.slice(),this.sort):e}_pageData(e){if(!this.paginator)return e;let r=this.paginator.pageIndex*this.paginator.pageSize;return e.slice(r,r+this.paginator.pageSize)}_updatePaginator(e){Promise.resolve().then(()=>{let r=this.paginator;if(r&&(r.length=e,r.pageIndex>0)){let t=Math.ceil(r.length/r.pageSize)-1||0,n=Math.min(r.pageIndex,t);n!==r.pageIndex&&(r.pageIndex=n,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}};var S6=["input"],E6=["label"],I6=["*"],M6=new R("mat-checkbox-default-options",{providedIn:"root",factory:Ek});function Ek(){return{color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1}}var ln=function(i){return i[i.Init=0]="Init",i[i.Checked=1]="Checked",i[i.Unchecked=2]="Unchecked",i[i.Indeterminate=3]="Indeterminate",i}(ln||{}),T6={provide:vn,useExisting:Xt(()=>zf),multi:!0},Zy=class{},k6=0,Sk=Ek(),zf=(()=>{let e=class e{focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(t){let n=new Zy;return n.source=this,n.checked=t,n}_getAnimationTargetElement(){return this._inputElement?.nativeElement}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(t,n,o,a,s,l){this._elementRef=t,this._changeDetectorRef=n,this._ngZone=o,this._animationMode=s,this._options=l,this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"},this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new T,this.indeterminateChange=new T,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=ln.Init,this._controlValueAccessorChangeFn=()=>{},this._validatorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||Sk,this.color=this._options.color||Sk.color,this.tabIndex=parseInt(a)||0,this.id=this._uniqueId=`mat-mdc-checkbox-${++k6}`,this.disabledInteractive=l?.disabledInteractive??!1}ngOnChanges(t){t.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(t){let n=t!=this._indeterminate;this._indeterminate=t,n&&(this._indeterminate?this._transitionCheckState(ln.Indeterminate):this._transitionCheckState(this.checked?ln.Checked:ln.Unchecked),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(t){this.checked=!!t}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}validate(t){return this.required&&t.value!==!0?{required:!0}:null}registerOnValidatorChange(t){this._validatorChangeFn=t}_transitionCheckState(t){let n=this._currentCheckState,o=this._getAnimationTargetElement();if(!(n===t||!o)&&(this._currentAnimationClass&&o.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(n,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){o.classList.add(this._currentAnimationClass);let a=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{o.classList.remove(a)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){let t=this._options?.clickAction;!this.disabled&&t!=="noop"?(this.indeterminate&&t!=="check"&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?ln.Checked:ln.Unchecked),this._emitChangeEvent()):(this.disabled&&this.disabledInteractive||!this.disabled&&t==="noop")&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate)}_onInteractionEvent(t){t.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(t,n){if(this._animationMode==="NoopAnimations")return"";switch(t){case ln.Init:if(n===ln.Checked)return this._animationClasses.uncheckedToChecked;if(n==ln.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case ln.Unchecked:return n===ln.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case ln.Checked:return n===ln.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case ln.Indeterminate:return n===ln.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(t){let n=this._inputElement;n&&(n.nativeElement.indeterminate=t)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(t){t.target&&this._labelElement.nativeElement.contains(t.target)&&t.stopPropagation()}};e.\u0275fac=function(n){return new(n||e)(m(q),m(he),m(Z),vi("tabindex"),m(kt,8),m(M6,8))},e.\u0275cmp=E({type:e,selectors:[["mat-checkbox"]],viewQuery:function(n,o){if(n&1&&(ce(S6,5),ce(E6,5),ce(Tn,5)),n&2){let a;Q(a=K())&&(o._inputElement=a.first),Q(a=K())&&(o._labelElement=a.first),Q(a=K())&&(o.ripple=a.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(n,o){n&2&&(Si("id",o.id),ie("tabindex",null)("aria-label",null)("aria-labelledby",null),Yt(o.color?"mat-"+o.color:"mat-accent"),ne("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mdc-checkbox--disabled",o.disabled)("mat-mdc-checkbox-disabled",o.disabled)("mat-mdc-checkbox-checked",o.checked)("mat-mdc-checkbox-disabled-interactive",o.disabledInteractive))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],id:"id",required:[2,"required","required",Y],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",Y],tabIndex:[2,"tabIndex","tabIndex",t=>t==null?void 0:ni(t)],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",Y],checked:[2,"checked","checked",Y],disabled:[2,"disabled","disabled",Y],indeterminate:[2,"indeterminate","indeterminate",Y]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],standalone:!0,features:[Ce([T6,{provide:co,useExisting:e,multi:!0}]),ge,Qe,re],ngContentSelectors:I6,decls:15,vars:20,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"blur","click","change","checked","indeterminate","disabled","id","required","tabIndex"],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(n,o){if(n&1){let a=A();He(),c(0,"div",3),b("click",function(l){return y(a),w(o._preventBubblingFromLabel(l))}),c(1,"div",4,0)(3,"div",5),b("click",function(){return y(a),w(o._onTouchTargetClick())}),d(),c(4,"input",6,1),b("blur",function(){return y(a),w(o._onBlur())})("click",function(){return y(a),w(o._onInputClick())})("change",function(l){return y(a),w(o._onInteractionEvent(l))}),d(),I(6,"div",7),c(7,"div",8),pi(),c(8,"svg",9),I(9,"path",10),d(),yr(),I(10,"div",11),d(),I(11,"div",12),d(),c(12,"label",13,2),ae(14),d()()}if(n&2){let a=we(2);p("labelPosition",o.labelPosition),h(4),ne("mdc-checkbox--selected",o.checked),p("checked",o.checked)("indeterminate",o.indeterminate)("disabled",o.disabled&&!o.disabledInteractive)("id",o.inputId)("required",o.required)("tabIndex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex),ie("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby)("aria-describedby",o.ariaDescribedby)("aria-checked",o.indeterminate?"mixed":null)("aria-disabled",o.disabled&&o.disabledInteractive?!0:null)("name",o.name)("value",o.value),h(7),p("matRippleTrigger",a)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),h(),p("for",o.inputId)}},dependencies:[Tn,_p],styles:['.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom;padding:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);margin:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox:hover .mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-app-on-surface))}.mdc-checkbox:hover .mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-app-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-focus-state-layer-color, var(--mat-app-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-focus-state-layer-color, var(--mat-app-on-surface))}.mdc-checkbox:active .mdc-checkbox__native-control~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color, var(--mat-app-primary))}.mdc-checkbox:active .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color, var(--mat-app-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity));background-color:var(--mdc-checkbox-selected-hover-state-layer-color, var(--mat-app-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-hover-state-layer-color, var(--mat-app-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity));background-color:var(--mdc-checkbox-selected-focus-state-layer-color, var(--mat-app-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-focus-state-layer-color, var(--mat-app-primary))}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity));background-color:var(--mdc-checkbox-selected-pressed-state-layer-color, var(--mat-app-on-surface))}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-pressed-state-layer-color, var(--mat-app-on-surface))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control~.mdc-checkbox__ripple{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-app-on-surface))}.mdc-checkbox .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;width:var(--mdc-checkbox-state-layer-size, 40px);height:var(--mdc-checkbox-state-layer-size, 40px);top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.cdk-high-contrast-active .mdc-checkbox--disabled{opacity:.5}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);-webkit-print-color-adjust:exact;color-adjust:exact;border-color:var(--mdc-checkbox-unselected-icon-color, var(--mat-app-on-surface-variant));top:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2)}.mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color, var(--mat-app-primary));background-color:var(--mdc-checkbox-selected-icon-color, var(--mat-app-primary))}.mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color)}.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mdc-checkbox-disabled-selected-icon-color);border-color:rgba(0,0,0,0)}.mdc-checkbox:hover .mdc-checkbox__native-control:not(:checked)~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mat-app-on-surface));background-color:rgba(0,0,0,0)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mat-app-primary));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mat-app-primary))}.mdc-checkbox__native-control:focus:focus:not(:checked)~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mat-app-on-surface))}.mdc-checkbox__native-control:focus:focus:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mat-app-primary));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mat-app-primary))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover .mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color)}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{background-color:var(--mdc-checkbox-disabled-selected-icon-color);border-color:rgba(0,0,0,0)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);color:var(--mdc-checkbox-selected-checkmark-color, var(--mat-app-on-primary))}.cdk-high-contrast-active .mdc-checkbox__checkmark{color:CanvasText}.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color, var(--mat-app-surface))}.cdk-high-contrast-active .mdc-checkbox--disabled .mdc-checkbox__checkmark,.cdk-high-contrast-active .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:CanvasText}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mdc-checkbox-selected-checkmark-color, var(--mat-app-on-primary))}.cdk-high-contrast-active .mdc-checkbox__mixedmark{margin:0 1px}.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color, var(--mat-app-surface))}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms cubic-bezier(0, 0, 0.2, 1),transform 180ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox._mat-animation-noopable .mdc-checkbox *,.mat-mdc-checkbox._mat-animation-noopable .mdc-checkbox *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox .mat-internal-form-field{color:var(--mat-checkbox-label-text-color, var(--mat-app-on-surface));font-family:var(--mat-checkbox-label-text-font, var(--mat-app-body-medium-font));line-height:var(--mat-checkbox-label-text-line-height, var(--mat-app-body-medium-line-height));font-size:var(--mat-checkbox-label-text-size, var(--mat-app-body-medium-size));letter-spacing:var(--mat-checkbox-label-text-tracking, var(--mat-app-body-medium-tracking));font-weight:var(--mat-checkbox-label-text-weight, var(--mat-app-body-medium-weight))}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive{pointer-events:auto}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive input{cursor:default}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color)}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;left:50%;height:48px;width:48px;transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let i=e;return i})();var Uf=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({imports:[zf,pe,pe]});let i=e;return i})();var O6=["*"],Hf;function R6(){if(Hf===void 0&&(Hf=null,typeof window<"u")){let i=window;i.trustedTypes!==void 0&&(Hf=i.trustedTypes.createPolicy("angular#components",{createHTML:e=>e}))}return Hf}function Gd(i){return R6()?.createHTML(i)||i}function Ik(i){return Error(`Unable to find icon with the name "${i}"`)}function P6(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function Mk(i){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${i}".`)}function Tk(i){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${i}".`)}var zr=class{constructor(e,r,t){this.url=e,this.svgText=r,this.options=t}},F6=(()=>{let e=class e{constructor(t,n,o,a){this._httpClient=t,this._sanitizer=n,this._errorHandler=a,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=o}addSvgIcon(t,n,o){return this.addSvgIconInNamespace("",t,n,o)}addSvgIconLiteral(t,n,o){return this.addSvgIconLiteralInNamespace("",t,n,o)}addSvgIconInNamespace(t,n,o,a){return this._addSvgIconConfig(t,n,new zr(o,null,a))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,n,o,a){let s=this._sanitizer.sanitize(Yi.HTML,o);if(!s)throw Tk(o);let l=Gd(s);return this._addSvgIconConfig(t,n,new zr("",l,a))}addSvgIconSet(t,n){return this.addSvgIconSetInNamespace("",t,n)}addSvgIconSetLiteral(t,n){return this.addSvgIconSetLiteralInNamespace("",t,n)}addSvgIconSetInNamespace(t,n,o){return this._addSvgIconSetConfig(t,new zr(n,null,o))}addSvgIconSetLiteralInNamespace(t,n,o){let a=this._sanitizer.sanitize(Yi.HTML,n);if(!a)throw Tk(n);let s=Gd(a);return this._addSvgIconSetConfig(t,new zr("",s,o))}registerFontClassAlias(t,n=t){return this._fontCssClassesByAlias.set(t,n),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(...t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){let n=this._sanitizer.sanitize(Yi.RESOURCE_URL,t);if(!n)throw Mk(t);let o=this._cachedIconsByUrl.get(n);return o?oe($f(o)):this._loadSvgIconFromConfig(new zr(t,null)).pipe(Ht(a=>this._cachedIconsByUrl.set(n,a)),ue(a=>$f(a)))}getNamedSvgIcon(t,n=""){let o=kk(n,t),a=this._svgIconConfigs.get(o);if(a)return this._getSvgFromConfig(a);if(a=this._getIconConfigFromResolvers(n,t),a)return this._svgIconConfigs.set(o,a),this._getSvgFromConfig(a);let s=this._iconSetConfigs.get(n);return s?this._getSvgFromIconSetConfigs(t,s):jo(Ik(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?oe($f(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(ue(n=>$f(n)))}_getSvgFromIconSetConfigs(t,n){let o=this._extractIconWithNameFromAnySet(t,n);if(o)return oe(o);let a=n.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(Wi(l=>{let f=`Loading icon set URL: ${this._sanitizer.sanitize(Yi.RESOURCE_URL,s.url)} failed: ${l.message}`;return this._errorHandler.handleError(new Error(f)),oe(null)})));return uc(a).pipe(ue(()=>{let s=this._extractIconWithNameFromAnySet(t,n);if(!s)throw Ik(t);return s}))}_extractIconWithNameFromAnySet(t,n){for(let o=n.length-1;o>=0;o--){let a=n[o];if(a.svgText&&a.svgText.toString().indexOf(t)>-1){let s=this._svgElementFromConfig(a),l=this._extractSvgIconFromSet(s,t,a.options);if(l)return l}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(Ht(n=>t.svgText=n),ue(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?oe(null):this._fetchIcon(t).pipe(Ht(n=>t.svgText=n))}_extractSvgIconFromSet(t,n,o){let a=t.querySelector(`[id="${n}"]`);if(!a)return null;let s=a.cloneNode(!0);if(s.removeAttribute("id"),s.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(s,o);if(s.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(s),o);let l=this._svgElementFromString(Gd(""));return l.appendChild(s),this._setSvgAttributes(l,o)}_svgElementFromString(t){let n=this._document.createElement("DIV");n.innerHTML=t;let o=n.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(t){let n=this._svgElementFromString(Gd("")),o=t.attributes;for(let a=0;aGd(f)),zo(()=>this._inProgressUrlFetches.delete(s)),mc());return this._inProgressUrlFetches.set(s,u),u}_addSvgIconConfig(t,n,o){return this._svgIconConfigs.set(kk(t,n),o),this}_addSvgIconSetConfig(t,n){let o=this._iconSetConfigs.get(t);return o?o.push(n):this._iconSetConfigs.set(t,[n]),this}_svgElementFromConfig(t){if(!t.svgElement){let n=this._svgElementFromString(t.svgText);this._setSvgAttributes(n,t.options),t.svgElement=n}return t.svgElement}_getIconConfigFromResolvers(t,n){for(let o=0;oe?e.pathname+e.search:""}}var Ak=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],B6=Ak.map(i=>`[${i}]`).join(", "),z6=/^url\(['"]?#(.*?)['"]?\)$/,Ok=(()=>{let e=class e{get color(){return this._color||this._defaultColor}set color(t){this._color=t}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){let n=this._cleanupFontValue(t);n!==this._fontSet&&(this._fontSet=n,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){let n=this._cleanupFontValue(t);n!==this._fontIcon&&(this._fontIcon=n,this._updateFontIconClasses())}constructor(t,n,o,a,s,l){this._elementRef=t,this._iconRegistry=n,this._location=a,this._errorHandler=s,this.inline=!1,this._previousFontSetClass=[],this._currentIconFetch=ve.EMPTY,l&&(l.color&&(this.color=this._defaultColor=l.color),l.fontSet&&(this.fontSet=l.fontSet)),o||t.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(t){if(!t)return["",""];let n=t.split(":");switch(n.length){case 1:return["",n[0]];case 2:return n;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let t=this._elementsWithExternalReferences;if(t&&t.size){let n=this._location.getPathname();n!==this._previousPath&&(this._previousPath=n,this._prependPathToReferences(n))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();let n=this._location.getPathname();this._previousPath=n,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(n),this._elementRef.nativeElement.appendChild(t)}_clearSvgElement(){let t=this._elementRef.nativeElement,n=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();n--;){let o=t.childNodes[n];(o.nodeType!==1||o.nodeName.toLowerCase()==="svg")&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let t=this._elementRef.nativeElement,n=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>t.classList.remove(o)),n.forEach(o=>t.classList.add(o)),this._previousFontSetClass=n,this.fontIcon!==this._previousFontIconClass&&!n.includes("mat-ligature-font")&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(t){return typeof t=="string"?t.trim().split(" ")[0]:t}_prependPathToReferences(t){let n=this._elementsWithExternalReferences;n&&n.forEach((o,a)=>{o.forEach(s=>{a.setAttribute(s.name,`url('${t}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(t){let n=t.querySelectorAll(B6),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let a=0;a{let l=n[a],u=l.getAttribute(s),f=u?u.match(z6):null;if(f){let v=o.get(l);v||(v=[],o.set(l,v)),v.push({name:s,value:f[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){let[n,o]=this._splitIconName(t);n&&(this._svgNamespace=n),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,n).pipe(Ot(1)).subscribe(a=>this._setSvgElement(a),a=>{let s=`Error retrieving icon ${n}:${o}! ${a.message}`;this._errorHandler.handleError(new Error(s))})}}};e.\u0275fac=function(n){return new(n||e)(m(q),m(F6),vi("aria-hidden"),m(V6),m(yn),m(L6,8))},e.\u0275cmp=E({type:e,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(n,o){n&2&&(ie("data-mat-icon-type",o._usingFontIcon()?"font":"svg")("data-mat-icon-name",o._svgName||o.fontIcon)("data-mat-icon-namespace",o._svgNamespace||o.fontSet)("fontIcon",o._usingFontIcon()?o.fontIcon:null),Yt(o.color?"mat-"+o.color:""),ne("mat-icon-inline",o.inline)("mat-icon-no-color",o.color!=="primary"&&o.color!=="accent"&&o.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",Y],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],standalone:!0,features:[ge,re],ngContentSelectors:O6,decls:1,vars:0,template:function(n,o){n&1&&(He(),ae(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0});let i=e;return i})(),Rk=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({imports:[pe,pe]});let i=e;return i})();var H6=["determinateSpinner"];function $6(i,e){if(i&1&&(pi(),c(0,"svg",11),I(1,"circle",12),d()),i&2){let r=_();ie("viewBox",r._viewBox()),h(),ji("stroke-dasharray",r._strokeCircumference(),"px")("stroke-dashoffset",r._strokeCircumference()/2,"px")("stroke-width",r._circleStrokeWidth(),"%"),ie("r",r._circleRadius())}}var W6=new R("mat-progress-spinner-default-options",{providedIn:"root",factory:G6});function G6(){return{diameter:Pk}}var Pk=100,q6=10,Wf=(()=>{let e=class e{get color(){return this._color||this._defaultColor}set color(t){this._color=t}constructor(t,n,o){this._elementRef=t,this._defaultColor="primary",this._value=0,this._diameter=Pk,this._noopAnimations=n==="NoopAnimations"&&!!o&&!o._forceAnimations,this.mode=t.nativeElement.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",o&&(o.color&&(this.color=this._defaultColor=o.color),o.diameter&&(this.diameter=o.diameter),o.strokeWidth&&(this.strokeWidth=o.strokeWidth))}get value(){return this.mode==="determinate"?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,t||0))}get diameter(){return this._diameter}set diameter(t){this._diameter=t||0}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(t){this._strokeWidth=t||0}_circleRadius(){return(this.diameter-q6)/2}_viewBox(){let t=this._circleRadius()*2+this.strokeWidth;return`0 0 ${t} ${t}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return this.mode==="determinate"?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}};e.\u0275fac=function(n){return new(n||e)(m(q),m(kt,8),m(W6))},e.\u0275cmp=E({type:e,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(n,o){if(n&1&&ce(H6,5),n&2){let a;Q(a=K())&&(o._determinateCircle=a.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(n,o){n&2&&(ie("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",o.mode==="determinate"?o.value:null)("mode",o.mode),Yt("mat-"+o.color),ji("width",o.diameter,"px")("height",o.diameter,"px")("--mdc-circular-progress-size",o.diameter+"px")("--mdc-circular-progress-active-indicator-width",o.diameter+"px"),ne("_mat-animation-noopable",o._noopAnimations)("mdc-circular-progress--indeterminate",o.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",ni],diameter:[2,"diameter","diameter",ni],strokeWidth:[2,"strokeWidth","strokeWidth",ni]},exportAs:["matProgressSpinner"],standalone:!0,features:[ge,re],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(n,o){if(n&1&&(x(0,$6,2,8,"ng-template",null,0,fi),c(2,"div",2,1),pi(),c(4,"svg",3),I(5,"circle",4),d()(),yr(),c(6,"div",5)(7,"div",6)(8,"div",7),Ci(9,8),d(),c(10,"div",9),Ci(11,8),d(),c(12,"div",10),Ci(13,8),d()()()),n&2){let a=we(1);h(4),ie("viewBox",o._viewBox()),h(),ji("stroke-dasharray",o._strokeCircumference(),"px")("stroke-dashoffset",o._strokeDashOffset(),"px")("stroke-width",o._circleStrokeWidth(),"%"),ie("r",o._circleRadius()),h(4),p("ngTemplateOutlet",a),h(2),p("ngTemplateOutlet",a),h(2),p("ngTemplateOutlet",a)}},dependencies:[ym],styles:[".mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0;position:relative;direction:ltr;transition:opacity 250ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width)}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1;animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color, var(--mat-app-primary))}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}"],encapsulation:2,changeDetection:0});let i=e;return i})();var Gf=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({imports:[Ei,pe]});let i=e;return i})();var qf=(()=>{let e=class e{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(t){this._vertical=Bn(t)}get inset(){return this._inset}set inset(t){this._inset=Bn(t)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=E({type:e,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(n,o){n&2&&(ie("aria-orientation",o.vertical?"vertical":"horizontal"),ne("mat-divider-vertical",o.vertical)("mat-divider-horizontal",!o.vertical)("mat-divider-inset",o.inset))},inputs:{vertical:"vertical",inset:"inset"},standalone:!0,features:[re],decls:0,vars:0,template:function(n,o){},styles:[".mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color, var(--mat-app-outline));border-top-width:var(--mat-divider-width)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color, var(--mat-app-outline));border-right-width:var(--mat-divider-width)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0});let i=e;return i})(),Yf=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({imports:[pe,pe]});let i=e;return i})();var Y6=["searchSelectInput"],Q6=["innerSelectSearch"],K6=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],Z6=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"],X6=(i,e)=>({"mat-select-search-inner-multiple":i,"mat-select-search-inner-toggle-all":e});function J6(i,e){if(i&1){let r=A();c(0,"mat-checkbox",12),b("change",function(n){y(r);let o=_();return w(o._emitSelectAllBooleanToParent(n.checked))}),d()}if(i&2){let r=_();p("color",r.matFormField==null?null:r.matFormField.color)("checked",r.toggleAllCheckboxChecked)("indeterminate",r.toggleAllCheckboxIndeterminate)("matTooltip",r.toggleAllCheckboxTooltipMessage)("matTooltipPosition",r.toggleAllCheckboxTooltipPosition)}}function e$(i,e){i&1&&I(0,"mat-spinner",13)}function t$(i,e){i&1&&ae(0,1,["*ngIf","clearIcon; else defaultIcon"])}function i$(i,e){if(i&1&&(c(0,"mat-icon",16),g(1),d()),i&2){let r=_(2);p("svgIcon",r.closeSvgIcon),h(),F(" ",r.closeSvgIcon?null:r.closeIcon," ")}}function n$(i,e){if(i&1){let r=A();c(0,"button",14),b("click",function(){y(r);let n=_();return w(n._reset(!0))}),x(1,t$,1,0,"ng-content",15)(2,i$,2,2,"ng-template",null,2,fi),d()}if(i&2){let r=we(3),t=_();h(),p("ngIf",t.clearIcon)("ngIfElse",r)}}function o$(i,e){i&1&&ae(0,2,["*ngIf","noEntriesFound; else defaultNoEntriesFound"])}function r$(i,e){if(i&1&&g(0),i&2){let r=_(2);$e(r.noEntriesFoundLabel)}}function a$(i,e){if(i&1&&(c(0,"div",17),x(1,o$,1,0,"ng-content",15)(2,r$,1,1,"ng-template",null,3,fi),d()),i&2){let r=we(3),t=_();h(),p("ngIf",t.noEntriesFound)("ngIfElse",r)}}var s$=(()=>{class i{}return i.\u0275fac=function(r){return new(r||i)},i.\u0275dir=L({type:i,selectors:[["","ngxMatSelectSearchClear",""]]}),i})(),l$=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],c$=new R("mat-selectsearch-default-options"),d$=(()=>{class i{}return i.\u0275fac=function(r){return new(r||i)},i.\u0275dir=L({type:i,selectors:[["","ngxMatSelectNoEntriesFound",""]]}),i})(),Lk=(()=>{class i{constructor(r,t,n,o,a,s){this.matSelect=r,this.changeDetectorRef=t,this._viewportRuler=n,this.matOption=o,this.matFormField=a,this.placeholderLabel="Suche",this.type="text",this.closeIcon="close",this.noEntriesFoundLabel="Keine Optionen gefunden",this.clearSearchInput=!0,this.searching=!1,this.disableInitialFocus=!1,this.enableClearOnEscapePressed=!1,this.preventHomeEndKeyPropagation=!1,this.disableScrollToActiveOnOptionsChanged=!1,this.ariaLabel="dropdown search",this.showToggleAllCheckbox=!1,this.toggleAllCheckboxChecked=!1,this.toggleAllCheckboxIndeterminate=!1,this.toggleAllCheckboxTooltipMessage="",this.toggleAllCheckboxTooltipPosition="below",this.hideClearSearchButton=!1,this.alwaysRestoreSelectedOptionsMulti=!1,this.recreateValuesArray=!1,this.toggleAll=new T,this.onTouched=l=>{},this._options$=new Gt(null),this.optionsList$=this._options$.pipe(Tt(l=>l?l.changes.pipe(ue(u=>u.toArray()),Rt(l.toArray())):oe(null))),this.optionsLength$=this.optionsList$.pipe(ue(l=>l?l.length:0)),this._formControl=new Bp("",{nonNullable:!0}),this._showNoEntriesFound$=Rn([this._formControl.valueChanges,this.optionsLength$]).pipe(ue(([l,u])=>!!(this.noEntriesFoundLabel&&l&&u===this.getOptionsLengthOffset()))),this._onDestroy=new G,this.applyDefaultOptions(s)}get value(){return this._formControl.value}set _options(r){this._options$.next(r)}get _options(){return this._options$.getValue()}applyDefaultOptions(r){if(r)for(let t of l$)r.hasOwnProperty(t)&&(this[t]=r[t])}ngOnInit(){this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search"),this.matOption._getHostElement().setAttribute("role","presentation")):console.error(" must be placed inside a element"),this.matSelect.openedChange.pipe(Qr(1),fe(this._onDestroy)).subscribe(r=>{r?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe(Ot(1),Tt(r=>{this._options=this.matSelect.options;let t=this._options.toArray()[this.getOptionsLengthOffset()];return this._options.changes.pipe(Ht(()=>{setTimeout(()=>{let n=this._options.toArray(),o=n[this.getOptionsLengthOffset()],a=this.matSelect._keyManager;a&&this.matSelect.panelOpen&&o&&((!t||!this.matSelect.compareWith(t.value,o.value)||!a.activeItem||!n.find(l=>this.matSelect.compareWith(l.value,a.activeItem?.value)))&&a.setActiveItem(this.getOptionsLengthOffset()),setTimeout(()=>{this.updateInputWidth()})),t=o})}))})).pipe(fe(this._onDestroy)).subscribe(),this._showNoEntriesFound$.pipe(fe(this._onDestroy)).subscribe(r=>{this.matOption&&(r?this.matOption._getHostElement().classList.add("mat-select-search-no-entries-found"):this.matOption._getHostElement().classList.remove("mat-select-search-no-entries-found"))}),this._viewportRuler.change().pipe(fe(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe(fe(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(r){this.toggleAll.emit(r)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(r){(r.key&&r.key.length===1||this.preventHomeEndKeyPropagation&&(r.key==="Home"||r.key==="End"))&&r.stopPropagation(),this.matSelect.multiple&&r.key&&r.key==="Enter"&&setTimeout(()=>this._focus()),this.enableClearOnEscapePressed&&r.key==="Escape"&&this.value&&(this._reset(!0),r.stopPropagation())}_handleKeyup(r){if(r.key==="ArrowUp"||r.key==="ArrowDown"){let t=this.matSelect._getAriaActiveDescendant(),n=this._options.toArray().findIndex(o=>o.id===t);n!==-1&&(this.unselectActiveDescendant(),this.activeDescendant=this._options.toArray()[n]._getHostElement(),this.activeDescendant.setAttribute("aria-selected","true"),this.searchSelectInput.nativeElement.setAttribute("aria-activedescendant",t))}}writeValue(r){this._lastExternalInputValue=r,this._formControl.setValue(r),this.changeDetectorRef.markForCheck()}onBlur(){this.unselectActiveDescendant(),this.onTouched()}registerOnChange(r){this._formControl.valueChanges.pipe(Ye(t=>t!==this._lastExternalInputValue),Ht(()=>this._lastExternalInputValue=void 0),fe(this._onDestroy)).subscribe(r)}registerOnTouched(r){this.onTouched=r}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;let r=this.matSelect.panel.nativeElement,t=r.scrollTop;this.searchSelectInput.nativeElement.focus(),r.scrollTop=t}_reset(r){this._formControl.setValue(""),r&&this._focus()}initMultipleHandling(){if(!this.matSelect.ngControl){this.matSelect.multiple&&console.error("the mat-select containing ngx-mat-select-search must have a ngModel or formControl directive when multiple=true");return}this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges&&this.matSelect.ngControl.valueChanges.pipe(fe(this._onDestroy)).subscribe(r=>{let t=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!r||!Array.isArray(r))&&(r=[]);let n=this.matSelect.options.map(o=>o.value);this.previousSelectedValues.forEach(o=>{!r.some(a=>this.matSelect.compareWith(a,o))&&!n.some(a=>this.matSelect.compareWith(a,o))&&(this.recreateValuesArray?r=[...r,o]:r.push(o),t=!0)})}this.previousSelectedValues=r,t&&this.matSelect._onChange(r)})}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let r=this.innerSelectSearch.nativeElement,t=null;for(;r&&r.parentElement;)if(r=r.parentElement,r.classList.contains("mat-select-panel")){t=r;break}t&&(this.innerSelectSearch.nativeElement.style.width=t.clientWidth+"px")}getOptionsLengthOffset(){return this.matOption?1:0}unselectActiveDescendant(){this.activeDescendant?.removeAttribute("aria-selected"),this.searchSelectInput.nativeElement.removeAttribute("aria-activedescendant")}}return i.\u0275fac=function(r){return new(r||i)(m(bt),m(he),m(fn),m(nt,8),m(_e,8),m(c$,8))},i.\u0275cmp=E({type:i,selectors:[["ngx-mat-select-search"]],contentQueries:function(r,t,n){if(r&1&&(Be(n,s$,5),Be(n,d$,5)),r&2){let o;Q(o=K())&&(t.clearIcon=o.first),Q(o=K())&&(t.noEntriesFound=o.first)}},viewQuery:function(r,t){if(r&1&&(ce(Y6,7,q),ce(Q6,7,q)),r&2){let n;Q(n=K())&&(t.searchSelectInput=n.first),Q(n=K())&&(t.innerSelectSearch=n.first)}},inputs:{placeholderLabel:"placeholderLabel",type:"type",closeIcon:"closeIcon",closeSvgIcon:"closeSvgIcon",noEntriesFoundLabel:"noEntriesFoundLabel",clearSearchInput:"clearSearchInput",searching:"searching",disableInitialFocus:"disableInitialFocus",enableClearOnEscapePressed:"enableClearOnEscapePressed",preventHomeEndKeyPropagation:"preventHomeEndKeyPropagation",disableScrollToActiveOnOptionsChanged:"disableScrollToActiveOnOptionsChanged",ariaLabel:"ariaLabel",showToggleAllCheckbox:"showToggleAllCheckbox",toggleAllCheckboxChecked:"toggleAllCheckboxChecked",toggleAllCheckboxIndeterminate:"toggleAllCheckboxIndeterminate",toggleAllCheckboxTooltipMessage:"toggleAllCheckboxTooltipMessage",toggleAllCheckboxTooltipPosition:"toggleAllCheckboxTooltipPosition",hideClearSearchButton:"hideClearSearchButton",alwaysRestoreSelectedOptionsMulti:"alwaysRestoreSelectedOptionsMulti",recreateValuesArray:"recreateValuesArray"},outputs:{toggleAll:"toggleAll"},features:[Ce([{provide:vn,useExisting:Xt(()=>i),multi:!0}])],ngContentSelectors:Z6,decls:13,vars:14,consts:[["innerSelectSearch",""],["searchSelectInput",""],["defaultIcon",""],["defaultNoEntriesFound",""],["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"],[1,"mat-select-search-inner-row"],["class","mat-select-search-toggle-all-checkbox","matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change",4,"ngIf"],["autocomplete","off",1,"mat-select-search-input",3,"keydown","keyup","blur","type","formControl","placeholder"],["class","mat-select-search-spinner","diameter","16",4,"ngIf"],["mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["class","mat-select-search-no-entries-found",4,"ngIf"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"change","color","checked","indeterminate","matTooltip","matTooltipPosition"],["diameter","16",1,"mat-select-search-spinner"],["mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[4,"ngIf","ngIfElse"],[3,"svgIcon"],[1,"mat-select-search-no-entries-found"]],template:function(r,t){if(r&1){let n=A();He(K6),I(0,"input",4),c(1,"div",5,0)(3,"div",6),x(4,J6,1,5,"mat-checkbox",7),c(5,"input",8,1),b("keydown",function(a){return y(n),w(t._handleKeydown(a))})("keyup",function(a){return y(n),w(t._handleKeyup(a))})("blur",function(){return y(n),w(t.onBlur())}),d(),x(7,e$,1,0,"mat-spinner",9)(8,n$,4,2,"button",10),ae(9),d(),I(10,"mat-divider"),d(),x(11,a$,4,2,"div",11),_t(12,"async")}r&2&&(h(),p("ngClass",cl(11,X6,t.matSelect.multiple,t._isToggleAllCheckboxVisible())),h(3),p("ngIf",t._isToggleAllCheckboxVisible()),h(),p("type",t.type)("formControl",t._formControl)("placeholder",t.placeholderLabel),ie("aria-label",t.ariaLabel),h(2),p("ngIf",t.searching),h(),p("ngIf",!t.hideClearSearchButton&&t.value&&!t.searching),h(3),p("ngIf",Dt(12,9,t._showNoEntriesFound$)))},dependencies:[Sn,me,lt,xe,xy,Qi,zf,Ok,Wf,lr,qf,EI],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;z-index:100;font-size:inherit;box-shadow:none;background-color:var(--mat-select-panel-background-color)}.mat-select-search-inner.mat-select-search-inner-multiple.mat-select-search-inner-toggle-all[_ngcontent-%COMP%] .mat-select-search-inner-row[_ngcontent-%COMP%]{display:flex;align-items:center}.mat-select-search-input[_ngcontent-%COMP%]{box-sizing:border-box;width:100%;border:none;font-family:inherit;font-size:inherit;color:currentColor;outline:none;background-color:var(--mat-select-panel-background-color);padding:0 44px 0 16px;height:calc(3em - 1px);line-height:calc(3em - 1px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-right:16px;padding-left:44px}.mat-select-search-inner-toggle-all[_ngcontent-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-left:5px}.mat-select-search-no-entries-found[_ngcontent-%COMP%]{padding-top:8px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:0}[dir=rtl][_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{right:auto;left:4px}.mat-select-search-spinner[_ngcontent-%COMP%]{position:absolute;right:16px;top:calc(50% - 8px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%]{right:auto;left:16px} .mat-mdc-option[aria-disabled=true].contains-mat-select-search{position:sticky;top:-8px;z-index:1;opacity:1;margin-top:-8px;pointer-events:all} .mat-mdc-option[aria-disabled=true].contains-mat-select-search .mat-icon{margin-right:0;margin-left:0} .mat-mdc-option[aria-disabled=true].contains-mat-select-search mat-pseudo-checkbox{display:none} .mat-mdc-option[aria-disabled=true].contains-mat-select-search .mdc-list-item__primary-text{opacity:1}.mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:5px}[dir=rtl][_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:0;padding-right:5px}"],changeDetection:0}),i})();var Vk=(()=>{class i{}return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=te({type:i}),i.\u0275inj=ee({imports:[Ei,Up,ar,Uf,Rk,Gf,Wl,Yf]}),i})();function h$(i,e){if(i&1){let r=A();c(0,"mat-option")(1,"ngx-mat-select-search",1),b("ngModelChange",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()()}if(i&2){let r=_();h(),p("placeholderLabel",r.placeholderLabel)("noEntriesFoundLabel",r.noEntriesFoundLabel)}}var hi=(()=>{let e=class e{constructor(){this.placeholderLabel=django.gettext("Filter"),this.noEntriesFoundLabel=django.gettext("No entries found"),this.changed=new T,this.notIfLessThan=7}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=E({type:e,selectors:[["uds-cond-select-search"]],inputs:{placeholderLabel:"placeholderLabel",noEntriesFoundLabel:"noEntriesFoundLabel",options:"options",notIfLessThan:"notIfLessThan"},outputs:{changed:"changed"},decls:1,vars:1,consts:[[4,"ngIf"],["ngModel","",3,"ngModelChange","placeholderLabel","noEntriesFoundLabel"]],template:function(n,o){n&1&&x(0,h$,2,2,"mat-option",0),n&2&&p("ngIf",o.options&&o.options.length>o.notIfLessThan)},dependencies:[me,xe,Se,nt,Lk]});let i=e;return i})();function m$(i,e){i&1&&(c(0,"uds-translate"),g(1,"New user permission for"),d())}function p$(i,e){i&1&&(c(0,"uds-translate"),g(1,"New group permission for"),d())}function f$(i,e){if(i&1&&(c(0,"mat-option",11),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),h(),$e(r.text)}}function g$(i,e){if(i&1&&(c(0,"mat-option",11),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),h(),$e(r.text)}}function _$(i,e){if(i&1&&(c(0,"mat-option",11),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),h(),$e(r.text)}}var jk=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.data=a,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.done=new Jt}static launch(t,n,o){return W(this,null,function*(){let a=window.innerWidth<800?"80%":"50%";return t.gui.dialog.open(e,{width:a,data:{type:n,item:o},disableClose:!0}).componentInstance.done})}ngOnInit(){return W(this,null,function*(){let t=yield this.rest.authenticators.summary();for(let n of t)this.authenticators.push({id:n.id,text:n.name})})}changeAuth(t){return W(this,null,function*(){this.entities.length=0,this.entity="";let n=yield this.rest.authenticators.detail(t,this.data.type+"s").summary();for(let o of n)this.entities.push({id:o.id,text:o.name})})}save(){this.done.resolve({authenticator:this.authenticator,entity:this.entity,permissision:this.permission}),this.dialogRef.close()}cancel(){this.done.resolve(null),this.dialogRef.close()}filteredEntities(){let t=new Array;return this.entities.forEach(n=>{(!this.filterUser||n.text.toLocaleLowerCase().includes(this.filterUser.toLocaleLowerCase()))&&t.push(n)}),t}getFieldLabel(t){return t==="user"?django.gettext("User"):t==="group"?django.gettext("Group"):t==="auth"?django.gettext("Authenticator"):django.gettext("Permission")}};e.\u0275fac=function(n){return new(n||e)(m(B),m(X),m(Ne),m(Ke))},e.\u0275cmp=E({type:e,selectors:[["uds-new-permission"]],decls:24,vars:13,consts:[["titleGroup",""],["mat-dialog-title",""],[4,"ngIf","ngIfElse"],[3,"innerHTML"],[1,"container"],[3,"valueChange","ngModelChange","placeholder","ngModel"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModelChange","placeholder","ngModel"],[3,"changed","options"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(n,o){if(n&1){let a=A();c(0,"h4",1),x(1,m$,2,0,"uds-translate",2),I(2,"b",3),x(3,p$,2,0,"ng-template",null,0,fi),d(),c(5,"mat-dialog-content")(6,"div",4)(7,"mat-form-field")(8,"mat-select",5),b("valueChange",function(l){return y(a),w(o.changeAuth(l))}),H("ngModelChange",function(l){return y(a),$(o.authenticator,l)||(o.authenticator=l),w(l)}),x(9,f$,2,2,"mat-option",6),d()(),c(10,"mat-form-field")(11,"mat-select",7),H("ngModelChange",function(l){return y(a),$(o.entity,l)||(o.entity=l),w(l)}),c(12,"uds-cond-select-search",8),b("changed",function(l){return y(a),w(o.filterUser=l)}),d(),x(13,g$,2,2,"mat-option",6),d()(),c(14,"mat-form-field")(15,"mat-select",7),H("ngModelChange",function(l){return y(a),$(o.permission,l)||(o.permission=l),w(l)}),x(16,_$,2,2,"mat-option",6),d()()()(),c(17,"mat-dialog-actions")(18,"button",9),b("click",function(){return y(a),w(o.cancel())}),c(19,"uds-translate"),g(20,"Cancel"),d()(),c(21,"button",10),b("click",function(){return y(a),w(o.save())}),c(22,"uds-translate"),g(23,"Ok"),d()()()}if(n&2){let a=we(4);h(),p("ngIf",o.data.type==="user")("ngIfElse",a),h(),p("innerHTML",o.data.item.name,qt),h(6),p("placeholder",o.getFieldLabel("auth")),U("ngModel",o.authenticator),h(),p("ngForOf",o.authenticators),h(2),p("placeholder",o.getFieldLabel(o.data.type)),U("ngModel",o.entity),h(),p("options",o.entities),h(),p("ngForOf",o.filteredEntities()),h(2),p("placeholder",o.getFieldLabel("perm")),U("ngModel",o.permission),h(),p("ngForOf",o.permissions)}},dependencies:[We,me,xe,Se,ke,Je,tt,et,_e,bt,nt,le,hi],styles:[".container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}.mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]});let i=e;return i})();var v$=(i,e)=>[i,e];function b$(i,e){if(i&1){let r=A();c(0,"div",11)(1,"div",12),g(2),d(),c(3,"div",13),g(4),c(5,"a",14),b("click",function(){let n=y(r).$implicit,o=_(2);return w(o.revokePermission(n))}),c(6,"i",15),g(7,"close"),d()()()()}if(i&2){let r=e.$implicit;h(2),Ir(" ",r.entity_name,"@",r.auth_name," "),h(2),F(" ",r.perm_name," \xA0")}}function y$(i,e){if(i&1){let r=A();c(0,"div",7)(1,"div",8)(2,"div",9),b("click",function(n){let o=y(r).$implicit;return _().newPermission(o),w(n.preventDefault())}),c(3,"uds-translate"),g(4,"New permission..."),d()(),x(5,b$,8,3,"div",10),d()()}if(i&2){let r=e.$implicit;h(5),p("ngForOf",r)}}var Bk=(()=>{let e=class e{constructor(t,n,o){this.api=t,this.dialogRef=n,this.data=o,this.userPermissions=[],this.groupPermissions=[]}static launch(t,n,o){let a=window.innerWidth<800?"90%":"60%",s=t.gui.dialog.open(e,{width:a,data:{rest:n,item:o},disableClose:!1})}ngOnInit(){return W(this,null,function*(){yield this.reload()})}reload(){return W(this,null,function*(){let t=yield this.data.rest.getPermissions(this.data.item.id);this.updatePermissions(t)})}updatePermissions(t){this.userPermissions.length=0,this.groupPermissions.length=0;for(let n of t)n.type==="user"?this.userPermissions.push(n):this.groupPermissions.push(n)}revokePermission(t){return W(this,null,function*(){if(yield this.api.gui.questionDialog(django.gettext("Remove"),django.gettext("Confirm revokation of permission")+" "+t.entity_name+"@"+t.auth_name+" "+t.perm_name+"")){let n=yield this.data.rest.revokePermission([t.id]);this.reload()}})}newPermission(t){return W(this,null,function*(){let n=t===this.userPermissions?"user":"group",o=yield jk.launch(this.api,n,this.data.item);o&&(yield this.data.rest.addPermission(this.data.item.id,n+"s",o.entity,o.permissision),this.reload())})}};e.\u0275fac=function(n){return new(n||e)(m(B),m(Ne),m(Ke))},e.\u0275cmp=E({type:e,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(n,o){n&1&&(c(0,"h4",0)(1,"uds-translate"),g(2,"Permissions for"),d(),g(3,"\xA0"),I(4,"b",1),d(),c(5,"mat-dialog-content")(6,"div",2)(7,"uds-translate",3),g(8,"Users"),d(),c(9,"uds-translate",3),g(10,"Groups"),d()(),c(11,"div",4),x(12,y$,6,1,"div",5),d()(),c(13,"mat-dialog-actions")(14,"button",6)(15,"uds-translate"),g(16,"Ok"),d()()()),n&2&&(h(4),p("innerHTML",o.data.item.name,qt),h(8),p("ngForOf",cl(2,v$,o.userPermissions,o.groupPermissions)))},dependencies:[We,ke,Qt,Je,tt,et,le],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:#00000024 0 1px 4px;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-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]});let i=e;return i})();var $k=su(Qf()),w$="text/csv",zk=",",Uk=`\r +`,Hk=i=>(i.changingThisBreaksApplicationSecurity!==void 0&&(i=i.changingThisBreaksApplicationSecurity.replace(/<.*>/g,"")),i=""+i,'"'+i.replace('"','""')+'"'),Kf=i=>{let e="";i.columns.forEach(n=>{e+=Hk(n.title)+zk}),e=e.slice(0,-1)+Uk;let r=i.dataSource.data;for(let n of r){for(let o of i.columns){let a=n[o.name];switch(o.type){case gi.DATE:a=$i("SHORT_DATE_FORMAT",a);break;case gi.DATETIME:a=$i("SHORT_DATETIME_FORMAT",a);break;case gi.DATETIMESEC:a=$i("SHORT_DATE_FORMAT",a," H:i:s");break;case gi.TIME:a=$i("TIME_FORMAT",a);break;default:break}e+=Hk(a)+zk}e=e.slice(0,-1)+Uk}let t=new Blob([e],{type:w$});setTimeout(()=>{(0,$k.saveAs)(t,i.title+".csv",{autoBom:!1})})};var ew=class{constructor(e,r){this._document=r;let t=this._textarea=this._document.createElement("textarea"),n=t.style;n.position="fixed",n.top=n.opacity="0",n.left="-999em",t.setAttribute("aria-hidden","true"),t.value=e,t.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(t)}copy(){let e=this._textarea,r=!1;try{if(e){let t=this._document.activeElement;e.select(),e.setSelectionRange(0,e.value.length),r=this._document.execCommand("copy"),t&&t.focus()}}catch{}return r}destroy(){let e=this._textarea;e&&(e.remove(),this._textarea=void 0)}},Wk=(()=>{let e=class e{constructor(t){this._document=t}copy(t){let n=this.beginCopy(t),o=n.copy();return n.destroy(),o}beginCopy(t){return new ew(t,this._document)}};e.\u0275fac=function(n){return new(n||e)(M(se))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var Gk=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({});let i=e;return i})();var x$=["mat-menu-item",""],D$=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],S$=["mat-icon, [matMenuItemIcon]","*"];function E$(i,e){i&1&&(pi(),c(0,"svg",2),I(1,"polygon",3),d())}var I$=["*"];function M$(i,e){if(i&1){let r=A();c(0,"div",0),b("keydown",function(n){y(r);let o=_();return w(o._handleKeydown(n))})("click",function(){y(r);let n=_();return w(n.closed.emit("click"))})("@transformMenu.start",function(n){y(r);let o=_();return w(o._onAnimationStart(n))})("@transformMenu.done",function(n){y(r);let o=_();return w(o._onAnimationDone(n))}),c(1,"div",1),ae(2),d()()}if(i&2){let r=_();Yt(r._classList),p("id",r.panelId)("@transformMenu",r._panelAnimationState),ie("aria-label",r.ariaLabel||null)("aria-labelledby",r.ariaLabelledby||null)("aria-describedby",r.ariaDescribedby||null)}}var tw=new R("MAT_MENU_PANEL"),ys=(()=>{let e=class e{constructor(t,n,o,a,s){this._elementRef=t,this._document=n,this._focusMonitor=o,this._parentMenu=a,this._changeDetectorRef=s,this.role="menuitem",this.disabled=!1,this.disableRipple=!1,this._hovered=new G,this._focused=new G,this._highlighted=!1,this._triggersSubmenu=!1,a?.addItem?.(this)}focus(t,n){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,n):this._getHostElement().focus(n),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){let t=this._elementRef.nativeElement.cloneNode(!0),n=t.querySelectorAll("mat-icon, .material-icons");for(let o=0;o{let e=class e{constructor(t,n,o,a,s,l,u){this._template=t,this._componentFactoryResolver=n,this._appRef=o,this._injector=a,this._viewContainerRef=s,this._document=l,this._changeDetectorRef=u,this._attached=new G}attach(t={}){this._portal||(this._portal=new Oi(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new Tl(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));let n=this._template.elementRef.nativeElement;n.parentNode.insertBefore(this._outlet.outletElement,n),this._changeDetectorRef?.markForCheck(),this._portal.attach(this._outlet,t),this._attached.next()}detach(){this._portal.isAttached&&this._portal.detach()}ngOnDestroy(){this._outlet&&this._outlet.dispose()}};e.\u0275fac=function(n){return new(n||e)(m(dt),m(wn),m(Ln),m(Pe),m(Ct),m(se),m(he))},e.\u0275dir=L({type:e,selectors:[["ng-template","matMenuContent",""]],standalone:!0,features:[Ce([{provide:Yk,useExisting:e}])]});let i=e;return i})(),Zf={transformMenu:ui("transformMenu",[Lt("void",Me({opacity:0,transform:"scale(0.8)"})),St("void => enter",Mt("120ms cubic-bezier(0, 0, 0.2, 1)",Me({opacity:1,transform:"scale(1)"}))),St("* => void",Mt("100ms 25ms linear",Me({opacity:0})))]),fadeInItems:ui("fadeInItems",[Lt("showing",Me({opacity:1})),St("void => *",[Me({opacity:0}),Mt("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Efe=Zf.fadeInItems,Ife=Zf.transformMenu,T$=0,k$=new R("mat-menu-default-options",{providedIn:"root",factory:A$});function A$(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}var ka=(()=>{let e=class e{get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}set panelClass(t){let n=this._previousPanelClass,o=j({},this._classList);n&&n.length&&n.split(" ").forEach(a=>{o[a]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(a=>{o[a]=!0}),this._elementRef.nativeElement.className=""),this._classList=o}get classList(){return this.panelClass}set classList(t){this.panelClass=t}constructor(t,n,o,a){this._elementRef=t,this._changeDetectorRef=a,this._elevationPrefix="mat-elevation-z",this._baseElevation=null,this._directDescendantItems=new eo,this._classList={},this._panelAnimationState="void",this._animationDone=new G,this.closed=new T,this.close=this.closed,this.panelId=`mat-menu-panel-${T$++}`,this._injector=k(Pe),this.overlayPanelClass=o.overlayPanelClass||"",this._xPosition=o.xPosition,this._yPosition=o.yPosition,this.backdropClass=o.backdropClass,this.overlapTrigger=o.overlapTrigger,this.hasBackdrop=o.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new _a(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Rt(this._directDescendantItems),Tt(t=>wt(...t.map(n=>n._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t)),this._directDescendantItems.changes.subscribe(t=>{let n=this._keyManager;if(this._panelAnimationState==="enter"&&n.activeItem?._hasFocus()){let o=t.toArray(),a=Math.max(0,Math.min(o.length-1,n.activeItemIndex||0));o[a]&&!o[a].disabled?n.setActiveItem(a):n.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy()}_hovered(){return this._directDescendantItems.changes.pipe(Rt(this._directDescendantItems),Tt(n=>wt(...n.map(o=>o._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){let n=t.keyCode,o=this._keyManager;switch(n){case 27:Pt(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&this.direction==="ltr"&&this.closed.emit("keydown");break;case 39:this.parentMenu&&this.direction==="rtl"&&this.closed.emit("keydown");break;default:(n===38||n===40)&&o.setFocusOrigin("keyboard"),o.onKeydown(t);return}t.stopPropagation()}focusFirstItem(t="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=ai(()=>{let n=null;if(this._directDescendantItems.length&&(n=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!n||!n.contains(document.activeElement)){let o=this._keyManager;o.setFocusOrigin(t).setFirstItemActive(),!o.activeItem&&n&&n.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){if(this._baseElevation===null){let l=(typeof getComputedStyle=="function"?getComputedStyle(this._elementRef.nativeElement):null)?.getPropertyValue("--mat-menu-base-elevation-level")||"8";this._baseElevation=parseInt(l)}let n=Math.min(this._baseElevation+t,24),o=`${this._elevationPrefix}${n}`,a=Object.keys(this._classList).find(s=>s.startsWith(this._elevationPrefix));if(!a||a===this._previousElevation){let s=j({},this._classList);this._previousElevation&&(s[this._previousElevation]=!1),s[o]=!0,this._previousElevation=o,this._classList=s}}setPositionClasses(t=this.xPosition,n=this.yPosition){this._classList=rt(j({},this._classList),{"mat-menu-before":t==="before","mat-menu-after":t==="after","mat-menu-above":n==="above","mat-menu-below":n==="below"}),this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,t.toState==="enter"&&this._keyManager.activeItemIndex===0&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Rt(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(n=>n._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}};e.\u0275fac=function(n){return new(n||e)(m(q),m(Z),m(k$),m(he))},e.\u0275cmp=E({type:e,selectors:[["mat-menu"]],contentQueries:function(n,o,a){if(n&1&&(Be(a,Yk,5),Be(a,ys,5),Be(a,ys,4)),n&2){let s;Q(s=K())&&(o.lazyContent=s.first),Q(s=K())&&(o._allItems=s),Q(s=K())&&(o.items=s)}},viewQuery:function(n,o){if(n&1&&ce(dt,5),n&2){let a;Q(a=K())&&(o.templateRef=a.first)}},hostVars:3,hostBindings:function(n,o){n&2&&ie("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[2,"overlapTrigger","overlapTrigger",Y],hasBackdrop:[2,"hasBackdrop","hasBackdrop",t=>t==null?null:Y(t)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],standalone:!0,features:[Ce([{provide:tw,useExisting:e}]),ge,re],ngContentSelectors:I$,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mat-mdc-elevation-specific",3,"keydown","click","id"],[1,"mat-mdc-menu-content"]],template:function(n,o){n&1&&(He(),x(0,M$,3,7,"ng-template"))},styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;outline:0}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font, var(--mat-app-label-large-font));line-height:var(--mat-menu-item-label-text-line-height, var(--mat-app-label-large-line-height));font-size:var(--mat-menu-item-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mat-menu-item-label-text-tracking, var(--mat-app-label-large-tracking));font-weight:var(--mat-menu-item-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;outline:0;border-radius:var(--mat-menu-container-shape, var(--mat-app-corner-extra-small));background-color:var(--mat-menu-container-color, var(--mat-app-surface-container));will-change:transform,opacity}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.mat-mdc-menu-panel.ng-animating:has(.mat-mdc-menu-content:empty){display:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-panel .mat-divider{color:var(--mat-menu-divider-color, var(--mat-app-surface-variant));margin-bottom:var(--mat-menu-divider-bottom-spacing);margin-top:var(--mat-menu-divider-top-spacing)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:var(--mat-menu-item-leading-spacing);padding-right:var(--mat-menu-item-trailing-spacing);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px}[dir=rtl] .mat-mdc-menu-item{padding-right:var(--mat-menu-item-leading-spacing);padding-left:var(--mat-menu-item-trailing-spacing)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing);padding-right:var(--mat-menu-item-with-icon-trailing-spacing)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-right:var(--mat-menu-item-with-icon-leading-spacing);padding-left:var(--mat-menu-item-with-icon-trailing-spacing)}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color, var(--mat-app-on-surface))}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color, var(--mat-app-on-surface-variant))}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item:focus{outline:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing);height:var(--mat-menu-item-icon-size);width:var(--mat-menu-item-icon-size)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color)}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color)}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1);transform-origin:center}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[Zf.transformMenu,Zf.fadeInItems]},changeDetection:0});let i=e;return i})(),Kk=new R("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let i=k(xt);return()=>i.scrollStrategies.reposition()}});function O$(i){return()=>i.scrollStrategies.reposition()}var R$={provide:Kk,deps:[xt],useFactory:O$},qk=Ui({passive:!0});var Xf=(()=>{let e=class e{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._parentMaterialMenu,this._menuCloseSubscription=t.close.subscribe(n=>{this._destroyMenu(n),(n==="click"||n==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(n)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(t,n,o,a,s,l,u,f,v){this._overlay=t,this._element=n,this._viewContainerRef=o,this._menuItemInstance=l,this._dir=u,this._focusMonitor=f,this._ngZone=v,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=ve.EMPTY,this._hoverSubscription=ve.EMPTY,this._menuCloseSubscription=ve.EMPTY,this._changeDetectorRef=k(he),this._handleTouchStart=C=>{Sd(C)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new T,this.onMenuOpen=this.menuOpened,this.menuClosed=new T,this.onMenuClose=this.menuClosed,this._scrollStrategy=a,this._parentMaterialMenu=s instanceof ka?s:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,qk)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,qk),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){let t=this.menu;if(this._menuOpen||!t)return;let n=this._createOverlay(t),o=n.getConfig(),a=o.positionStrategy;this._setPosition(t,a),o.hasBackdrop=t.hasBackdrop==null?!this.triggersSubmenu():t.hasBackdrop,n.attach(this._getPortal(t)),t.lazyContent&&t.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(t),t instanceof ka&&(t._startAnimation(),t._directDescendantItems.changes.pipe(fe(t.close)).subscribe(()=>{a.withLockedPosition(!1).reapplyLastPosition(),a.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(t,n){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,n):this._element.nativeElement.focus(n)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(t){if(!this._overlayRef||!this.menuOpen)return;let n=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&(t==="keydown"||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,n instanceof ka?(n._resetAnimation(),n.lazyContent?n._animationDone.pipe(Ye(o=>o.toState==="void"),Ot(1),fe(n.lazyContent._attached)).subscribe({next:()=>n.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),n?.lazyContent?.detach())}_initMenu(t){t.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,t.direction=this.dir,this._setMenuElevation(t),t.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(t){if(t.setElevation){let n=0,o=t.parentMenu;for(;o;)n++,o=o.parentMenu;t.setElevation(n)}}_setIsMenuOpen(t){t!==this._menuOpen&&(this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(t),this._changeDetectorRef.markForCheck())}_createOverlay(t){if(!this._overlayRef){let n=this._getOverlayConfig(t);this._subscribeToPositions(t,n.positionStrategy),this._overlayRef=this._overlay.create(n),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(t){return new Mn({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:t.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:t.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t,n){t.setPositionClasses&&n.positionChanges.subscribe(o=>{let a=o.connectionPair.overlayX==="start"?"after":"before",s=o.connectionPair.overlayY==="top"?"below":"above";this._ngZone?this._ngZone.run(()=>t.setPositionClasses(a,s)):t.setPositionClasses(a,s)})}_setPosition(t,n){let[o,a]=t.xPosition==="before"?["end","start"]:["start","end"],[s,l]=t.yPosition==="above"?["bottom","top"]:["top","bottom"],[u,f]=[s,l],[v,C]=[o,a],D=0;if(this.triggersSubmenu()){if(C=o=t.xPosition==="before"?"start":"end",a=v=o==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let S=this._parentMaterialMenu.items.first;this._parentInnerPadding=S?S._getHostElement().offsetTop:0}D=s==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else t.overlapTrigger||(u=s==="top"?"bottom":"top",f=l==="top"?"bottom":"top");n.withPositions([{originX:o,originY:u,overlayX:v,overlayY:s,offsetY:D},{originX:a,originY:u,overlayX:C,overlayY:s,offsetY:D},{originX:o,originY:f,overlayX:v,overlayY:l,offsetY:-D},{originX:a,originY:f,overlayX:C,overlayY:l,offsetY:-D}])}_menuClosingActions(){let t=this._overlayRef.backdropClick(),n=this._overlayRef.detachments(),o=this._parentMaterialMenu?this._parentMaterialMenu.closed:oe(),a=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Ye(s=>s!==this._menuItemInstance),Ye(()=>this._menuOpen)):oe();return wt(t,o,a,n)}_handleMousedown(t){Dd(t)||(this._openedBy=t.button===0?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){let n=t.keyCode;(n===13||n===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(n===39&&this.dir==="ltr"||n===37&&this.dir==="rtl")&&(this._openedBy="keyboard",this.openMenu())}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Ye(t=>t===this._menuItemInstance&&!t.disabled),Qr(0,dc)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof ka&&this.menu._isAnimating?this.menu._animationDone.pipe(Ot(1),Qr(0,dc),fe(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(t){return(!this._portal||this._portal.templateRef!==t.templateRef)&&(this._portal=new Oi(t.templateRef,this._viewContainerRef)),this._portal}};e.\u0275fac=function(n){return new(n||e)(m(xt),m(q),m(Ct),m(Kk),m(tw,8),m(ys,10),m(Nt,8),m(Di),m(Z))},e.\u0275dir=L({type:e,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(n,o){n&1&&b("click",function(s){return o._handleClick(s)})("mousedown",function(s){return o._handleMousedown(s)})("keydown",function(s){return o._handleKeydown(s)}),n&2&&ie("aria-haspopup",o.menu?"menu":null)("aria-expanded",o.menuOpen)("aria-controls",o.menuOpen?o.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[0,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[0,"matMenuTriggerFor","menu"],menuData:[0,"matMenuTriggerData","menuData"],restoreFocus:[0,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"],standalone:!0});let i=e;return i})(),Zk=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({providers:[R$],imports:[Ei,Lr,pe,an,so,pe]});let i=e;return i})();var Jk=Ui({passive:!0}),eA=(()=>{let e=class e{constructor(t,n){this._platform=t,this._ngZone=n,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return Ai;let n=En(t),o=this._monitoredElements.get(n);if(o)return o.subject;let a=new G,s="cdk-text-field-autofilled",l=u=>{u.animationName==="cdk-text-field-autofill-start"&&!n.classList.contains(s)?(n.classList.add(s),this._ngZone.run(()=>a.next({target:u.target,isAutofilled:!0}))):u.animationName==="cdk-text-field-autofill-end"&&n.classList.contains(s)&&(n.classList.remove(s),this._ngZone.run(()=>a.next({target:u.target,isAutofilled:!1})))};return this._ngZone.runOutsideAngular(()=>{n.addEventListener("animationstart",l,Jk),n.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(n,{subject:a,unlisten:()=>{n.removeEventListener("animationstart",l,Jk)}}),a}stopMonitoring(t){let n=En(t),o=this._monitoredElements.get(n);o&&(o.unlisten(),o.subject.complete(),n.classList.remove("cdk-text-field-autofill-monitored"),n.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(n))}ngOnDestroy(){this._monitoredElements.forEach((t,n)=>this.stopMonitoring(n))}};e.\u0275fac=function(n){return new(n||e)(M(Ve),M(Z))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var tA=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({});let i=e;return i})();var iw=new R("MAT_INPUT_VALUE_ACCESSOR"),F$=["button","checkbox","file","hidden","image","radio","range","reset","submit"],N$=0,ft=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(t){this._disabled=Bn(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(sr.required)??!1}set required(t){this._required=Bn(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&j0().has(this._type)&&(this._elementRef.nativeElement.type=this._type),this._ensureWheelDefaultBehavior()}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(t){this._errorStateTracker.matcher=t}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=Bn(t)}get errorState(){return this._errorStateTracker.errorState}set errorState(t){this._errorStateTracker.errorState=t}constructor(t,n,o,a,s,l,u,f,v,C){this._elementRef=t,this._platform=n,this.ngControl=o,this._autofillMonitor=f,this._ngZone=v,this._formField=C,this._uid=`mat-input-${N$++}`,this._webkitBlinkWheelListenerAttached=!1,this.focused=!1,this.stateChanges=new G,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(P=>j0().has(P)),this._iOSKeyupListener=P=>{let z=P.target;!z.value&&z.selectionStart===0&&z.selectionEnd===0&&(z.setSelectionRange(1,1),z.setSelectionRange(0,0))},this._webkitBlinkWheelListener=()=>{};let D=this._elementRef.nativeElement,S=D.nodeName.toLowerCase();this._inputValueAccessor=u||D,this._previousNativeValue=this.value,this.id=this.id,n.IOS&&v.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._errorStateTracker=new Fr(l,o,s,a,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=S==="select",this._isTextarea=S==="textarea",this._isInFormField=!!C,this._isNativeSelect&&(this.controlType=D.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener),this._webkitBlinkWheelListenerAttached&&this._elementRef.nativeElement.removeEventListener("wheel",this._webkitBlinkWheelListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==null&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(t){t!==this.focused&&(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){let t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_dirtyCheckPlaceholder(){let t=this._getPlaceholder();if(t!==this._previousPlaceholder){let n=this._elementRef.nativeElement;this._previousPlaceholder=t,t?n.setAttribute("placeholder",t):n.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){F$.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let t=this._elementRef.nativeElement,n=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&n&&n.label)}else return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let t=this._elementRef.nativeElement;return this._isNativeSelect&&(t.multiple||t.size>1)}_ensureWheelDefaultBehavior(){!this._webkitBlinkWheelListenerAttached&&this._type==="number"&&(this._platform.BLINK||this._platform.WEBKIT)&&(this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("wheel",this._webkitBlinkWheelListener)}),this._webkitBlinkWheelListenerAttached=!0),this._webkitBlinkWheelListenerAttached&&this._type!=="number"&&(this._elementRef.nativeElement.removeEventListener("wheel",this._webkitBlinkWheelListener),this._webkitBlinkWheelListenerAttached=!0)}};e.\u0275fac=function(n){return new(n||e)(m(q),m(Ve),m(kn,10),m(Oo,8),m(gs,8),m(Nr),m(iw,10),m(eA),m(Z),m(Ro,8))},e.\u0275dir=L({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(n,o){n&1&&b("focus",function(){return o._focusChanged(!0)})("blur",function(){return o._focusChanged(!1)})("input",function(){return o._onInput()}),n&2&&(Si("id",o.id)("disabled",o.disabled)("required",o.required),ie("name",o.name||null)("readonly",o.readonly&&!o._isNativeSelect||null)("aria-invalid",o.empty&&o.required?null:o.errorState)("aria-required",o.required)("id",o.id),ne("mat-input-server",o._isServer)("mat-mdc-form-field-textarea-control",o._isInFormField&&o._isTextarea)("mat-mdc-form-field-input-control",o._isInFormField)("mdc-text-field__input",o._isInFormField)("mat-mdc-native-select-inline",o._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],standalone:!0,features:[Ce([{provide:Ia,useExisting:e}]),Qe]});let i=e;return i})(),iA=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({imports:[pe,vs,vs,tA,pe]});let i=e;return i})();var nA=(()=>{let e=class e{transform(t){return my(t)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275pipe=Qo({name:"isEmpty",type:e,pure:!0});let i=e;return i})(),yi=(()=>{let e=class e{transform(t){return!my(t)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275pipe=Qo({name:"notEmpty",type:e,pure:!0});let i=e;return i})();var oA=(()=>{let e=class e{transform(t,n){let o;return n===void 0?o=(a,s)=>a>s?1:-1:o=(a,s)=>a[n]>s[n]?1:-1,t.sort(o)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275pipe=Qo({name:"sort",type:e,pure:!0});let i=e;return i})();var V$=["trigger"],j$=()=>[5,10,25,100,1e3];function B$(i,e){if(i&1&&I(0,"img",39),i&2){let r=_();p("src",r.icon,Ie)}}function z$(i,e){if(i&1){let r=A();c(0,"button",47),b("click",function(){let n=y(r).$implicit,o=_(5);return w(o.newAction.emit({param:n,table:o}))}),d()}if(i&2){let r=e.$implicit,t=_(5);p("innerHTML",t.api.safeString(t.api.gui.icon(r.icon)+r.name),qt)}}function U$(i,e){if(i&1&&(mt(0),c(1,"button",44),g(2),d(),c(3,"mat-menu",45,3),x(5,z$,1,1,"button",46),_t(6,"sort"),d(),pt()),i&2){let r=e.$implicit,t=we(4);h(),p("matMenuTriggerFor",t),h(),$e(r.key),h(),p("overlapTrigger",!1),h(2),p("ngForOf",bb(6,4,r.value,"name"))}}function H$(i,e){if(i&1&&(mt(0),c(1,"mat-menu",40,2),x(3,U$,7,7,"ng-container",41),_t(4,"keyvalue"),d(),c(5,"a",42)(6,"i",22),g(7,"insert_drive_file"),d(),c(8,"span",43)(9,"uds-translate"),g(10,"New"),d()(),c(11,"i",22),g(12,"arrow_drop_down"),d()(),pt()),i&2){let r=we(2),t=_(3);h(),p("overlapTrigger",!1),h(2),p("ngForOf",Dt(4,3,t.grpTypes)),h(2),p("matMenuTriggerFor",r)}}function $$(i,e){if(i&1){let r=A();c(0,"button",49),b("click",function(){let n=y(r).$implicit,o=_(4);return w(o.newAction.emit({param:n,table:o}))}),d()}if(i&2){let r=e.$implicit,t=_(4);p("innerHTML",t.api.safeString(t.api.gui.icon(r.icon)+r.name),qt)}}function W$(i,e){if(i&1&&(mt(0),c(1,"mat-menu",40,2),x(3,$$,1,1,"button",48),_t(4,"sort"),d(),c(5,"a",42)(6,"i",22),g(7,"insert_drive_file"),d(),c(8,"span",43)(9,"uds-translate"),g(10,"New"),d()(),c(11,"i",22),g(12,"arrow_drop_down"),d()(),pt()),i&2){let r=we(2),t=_(3);h(),p("overlapTrigger",!1),h(2),p("ngForOf",bb(4,3,t.oTypes,"name")),h(2),p("matMenuTriggerFor",r)}}function G$(i,e){if(i&1&&(mt(0),x(1,H$,13,5,"ng-container",13)(2,W$,13,6,"ng-container",13),pt()),i&2){let r=_(2);h(),p("ngIf",r.newGrouped),h(),p("ngIf",!r.newGrouped)}}function q$(i,e){if(i&1){let r=A();mt(0),c(1,"a",50),b("click",function(){y(r);let n=_(2);return w(n.newAction.emit({param:void 0,table:n}))}),c(2,"i",22),g(3,"insert_drive_file"),d(),c(4,"span",43)(5,"uds-translate"),g(6,"New"),d()()(),pt()}}function Y$(i,e){if(i&1&&(mt(0),x(1,G$,3,2,"ng-container",13)(2,q$,7,0,"ng-container",13),pt()),i&2){let r=_();h(),p("ngIf",r.oTypes!==void 0&&r.oTypes.length!==0),h(),p("ngIf",r.oTypes!==void 0&&r.oTypes.length===0)}}function Q$(i,e){if(i&1){let r=A();mt(0),c(1,"a",51),b("click",function(){y(r);let n=_();return w(n.emitIfSelection(n.editAction))}),c(2,"i",22),g(3,"edit"),d(),c(4,"span",43)(5,"uds-translate"),g(6,"Edit"),d()()(),pt()}if(i&2){let r=_();h(),p("disabled",r.selection.selected.length!==1)}}function K$(i,e){if(i&1){let r=A();mt(0),c(1,"a",51),b("click",function(){y(r);let n=_();return w(n.permissions())}),c(2,"i",22),g(3,"perm_identity"),d(),c(4,"span",43)(5,"uds-translate"),g(6,"Permissions"),d()()(),pt()}if(i&2){let r=_();h(),p("disabled",r.selection.selected.length!==1)}}function Z$(i,e){if(i&1){let r=A();c(0,"a",53),b("click",function(){let n=y(r).$implicit,o=_(2);return w(o.emitCustom(n))}),d()}if(i&2){let r=e.$implicit,t=_(2);p("disabled",t.isCustomDisabled(r))("innerHTML",r.html,qt)}}function X$(i,e){if(i&1&&(mt(0),x(1,Z$,1,2,"a",52),pt()),i&2){let r=_();h(),p("ngForOf",r.getcustomButtons())}}function J$(i,e){if(i&1){let r=A();mt(0),c(1,"a",54),b("click",function(){y(r);let n=_();return w(n.export())}),c(2,"i",22),g(3,"import_export"),d(),c(4,"span",43)(5,"uds-translate"),g(6,"Export CSV"),d()()(),pt()}}function eW(i,e){if(i&1){let r=A();mt(0),c(1,"a",55),b("click",function(){y(r);let n=_();return w(n.emitIfSelection(n.deleteAction,!0))}),c(2,"i",22),g(3,"delete_forever"),d(),c(4,"span",43)(5,"uds-translate"),g(6,"Delete"),d()()(),pt()}if(i&2){let r=_();h(),p("disabled",r.selection.isEmpty())}}function tW(i,e){if(i&1){let r=A();c(0,"button",56),b("click",function(){y(r);let n=_();return n.filterText="",w(n.applyFilter())}),c(1,"i",22),g(2,"clear"),d()()}}function iW(i,e){i&1&&I(0,"mat-header-cell")}function nW(i,e){i&1&&(c(0,"i",61),g(1,"check_box"),d())}function oW(i,e){i&1&&(c(0,"i",62),g(1,"check_box_outline_blank"),d())}function rW(i,e){if(i&1){let r=A();c(0,"mat-cell",59),b("click",function(n){let o=y(r).$implicit,a=_(2);return w(a.clickRow(o,n))}),x(1,nW,2,0,"i",60)(2,oW,2,0,"ng-template",null,4,fi),d()}if(i&2){let r=e.$implicit,t=we(3),n=_(2);h(),p("ngIf",n.selection.isSelected(r))("ngIfElse",t)}}function aW(i,e){i&1&&(mt(0,57),x(1,iW,1,0,"mat-header-cell",27)(2,rW,4,2,"mat-cell",58),pt())}function sW(i,e){i&1&&I(0,"mat-header-cell")}function lW(i,e){if(i&1){let r=A();c(0,"mat-cell")(1,"div",63),b("click",function(n){let o=y(r).$implicit,a=_();return a.detailAction.emit({param:o,table:a}),w(n.stopPropagation())}),c(2,"i",22),g(3,"subdirectory_arrow_right"),d()()()}}function cW(i,e){if(i&1&&(c(0,"mat-header-cell",67),g(1),d()),i&2){let r=_().$implicit;h(),$e(r.title)}}function dW(i,e){if(i&1){let r=A();c(0,"mat-cell",68),b("click",function(n){let o=y(r).$implicit,a=_(2);return w(a.clickRow(o,n))})("contextmenu",function(n){let o=y(r).$implicit,a=_().$implicit,s=_();return w(s.onContextMenu(o,a,n))}),I(1,"div",69),d()}if(i&2){let r=e.$implicit,t=_().$implicit,n=_();h(),p("innerHtml",n.getRowColumn(r,t),qt)}}function uW(i,e){if(i&1&&(mt(0,64),x(1,cW,2,1,"mat-header-cell",65)(2,dW,2,1,"mat-cell",66),pt()),i&2){let r=e.$implicit;sa("matColumnDef",r.name)}}function hW(i,e){i&1&&I(0,"mat-header-row")}function mW(i,e){if(i&1&&I(0,"mat-row",70),i&2){let r=e.$implicit,t=_();p("ngClass",t.rowClass(r))}}function pW(i,e){if(i&1&&(c(0,"div",71),g(1),c(2,"uds-translate"),g(3,"Selected items"),d()()),i&2){let r=_();h(),F(" ",r.selection.selected.length," ")}}function fW(i,e){if(i&1){let r=A();c(0,"button",75),b("click",function(){y(r);let n=_(2);return w(n.copyToClipboard())}),c(1,"i",76),g(2,"content_copy"),d(),c(3,"uds-translate"),g(4,"Copy"),d()()}}function gW(i,e){if(i&1){let r=A();c(0,"button",75),b("click",function(){y(r);let n=_().item,o=_();return w(o.detailAction.emit({param:n,table:o}))}),c(1,"i",76),g(2,"subdirectory_arrow_right"),d(),c(3,"uds-translate"),g(4,"Detail"),d()()}}function _W(i,e){if(i&1){let r=A();c(0,"button",75),b("click",function(){y(r);let n=_(2);return w(n.emitIfSelection(n.editAction))}),c(1,"i",76),g(2,"edit"),d(),c(3,"uds-translate"),g(4,"Edit"),d()()}}function vW(i,e){if(i&1){let r=A();c(0,"button",75),b("click",function(){y(r);let n=_(2);return w(n.permissions())}),c(1,"i",76),g(2,"perm_identity"),d(),c(3,"uds-translate"),g(4,"Permissions"),d()()}}function bW(i,e){if(i&1){let r=A();c(0,"button",77),b("click",function(){let n=y(r).$implicit,o=_(2);return w(o.emitCustom(n))}),d()}if(i&2){let r=e.$implicit,t=_(2);p("disabled",t.isCustomDisabled(r))("innerHTML",r.html,qt)}}function yW(i,e){if(i&1){let r=A();c(0,"button",78),b("click",function(){y(r);let n=_(2);return w(n.emitIfSelection(n.deleteAction))}),c(1,"i",76),g(2,"delete_forever"),d(),c(3,"uds-translate"),g(4,"Delete"),d()()}}function wW(i,e){if(i&1){let r=A();c(0,"button",77),b("click",function(){let n=y(r).$implicit,o=_(3);return w(o.emitCustom(n))}),d()}if(i&2){let r=e.$implicit,t=_(3);p("disabled",t.isCustomDisabled(r))("innerHTML",r.html,qt)}}function CW(i,e){if(i&1&&(mt(0),I(1,"mat-divider"),x(2,wW,1,2,"button",73),pt()),i&2){let r=_(2);h(2),p("ngForOf",r.getCustomAccelerators())}}function xW(i,e){if(i&1&&x(0,fW,5,0,"button",72)(1,gW,5,0,"button",72)(2,_W,5,0,"button",72)(3,vW,5,0,"button",72)(4,bW,1,2,"button",73)(5,yW,5,0,"button",74)(6,CW,3,1,"ng-container",13),i&2){let r=_();p("ngIf",r.allowCopy===!0),h(),p("ngIf",r.detailAction.observed),h(),p("ngIf",r.editAction.observed),h(),p("ngIf",r.hasPermissions===!0),h(),p("ngForOf",r.getCustomMenu()),h(),p("ngIf",r.deleteAction.observed),h(),p("ngIf",r.hasAccelerators)}}var Te=(()=>{let e=class e{constructor(t,n){this.api=t,this.clipboard=n,this.contextMenu={},this.paginator={},this.sort={},this.rest={},this.tableId="",this.pageSize=10,this.newGrouped=!1,this.allowCopy=!0,this.loaded=new T,this.rowSelected=new T,this.newAction=new T,this.editAction=new T,this.deleteAction=new T,this.customButtonAction=new T,this.detailAction=new T,this.title="",this.subtitle="",this.displayedColumns=[],this.columns=[],this.types=new Map,this.oTypes=[],this.grpTypes=new Map,this.rowStyleInfo=null,this.selection=new Rr(!0,[]),this.lastSel=null,this.dataSource=new Yl([]),this.firstLoad=!0,this.loading=!1,this.lastClickInfo={time:0,x:-1e4,y:-1e4},this.clipValue="",this.contextMenuPosition={x:"0px",y:"0px"},this.filterText="",this.hasCustomButtons=!1,this.hasButtons=!1,this.hasActions=!1,this.hasAccelerators=!1}ngOnInit(){return W(this,null,function*(){this.customButtons===void 0||this.customButtons.length===0||!this.customButtonAction.observed?this.hasCustomButtons=!1:this.hasCustomButtons=!0,this.hasAccelerators=this.getCustomAccelerators().length>0,this.hasButtons=this.hasCustomButtons||this.detailAction.observed||this.editAction.observed||this.hasPermissions||this.deleteAction.observed,this.hasActions=this.hasButtons||this.customButtons!==void 0&&this.customButtons.length>0,this.tableId=this.tableId||this.rest.id,this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.dataSource.sortingDataAccessor=(a,s)=>{if(!(s in a))return"";let l=a[s];return typeof l=="number"?l:typeof l=="string"?l.toLocaleLowerCase():(l===null&&(l=7226578800),l.changingThisBreaksApplicationSecurity&&(l=l.changingThisBreaksApplicationSecurity),(""+l).replace(/<(span|\/span)[^>]*>/g,"").toLocaleLowerCase())},this.dataSource.filterPredicate=(a,s)=>{try{this.columns.forEach(l=>{if((""+a[l.name]).replace(/<(span|\/span)[^>]*>/g,"").toLocaleLowerCase().includes(s))throw Error()})}catch{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 Rr(this.multiSelect===!0,[]);let t=this.rest.permision();t&Vr.MANAGEMENT||(this.newAction.unsubscribe(),this.editAction.unsubscribe(),this.deleteAction.unsubscribe(),this.customButtonAction.unsubscribe()),t!==Vr.ALL&&(this.hasPermissions=!1),this.icon!==void 0&&(this.icon=this.api.staticURL("admin/img/icons/"+this.icon+".png"));let n=yield this.rest.types(),o=yield this.rest.tableInfo();yield this.initialize(o,n)})}initialize(t,n){return W(this,null,function*(){this.oTypes=n,this.types=new Map,this.grpTypes=new Map;for(let a of n)if(this.types.set(a.type,a),a.group!==void 0){this.grpTypes.has(a.group)||this.grpTypes.set(a.group,[]);let s=this.grpTypes.get(a.group);s!==void 0&&s.push(a)}t["row-style"]!==void 0&&t["row-style"].field!==void 0?this.rowStyleInfo=t["row-style"]:this.rowStyleInfo=null,this.title=t.title,this.subtitle=t.subtitle||"",this.hasButtons&&this.displayedColumns.push("selection-column");let o=[];for(let a of t.fields)for(let s in a)if(a.hasOwnProperty(s)){let l=a[s];o.push({name:s,title:l.title,type:l.type===void 0?gi.ALPHANUMERIC:l.type,dict:l.dict}),(l.visible===void 0||l.visible)&&this.displayedColumns.push(s)}this.columns=o,this.detailAction.observed&&this.displayedColumns.push("detail-column"),yield this.overview()})}overview(){return W(this,null,function*(){if(!this.loading){this.selection.clear(),this.dataSource.data=[],this.loading=!0;try{let t=yield this.rest.overview();if(this.onItem)for(let n of t)this.onItem(n);this.dataSource.data=t,this.loaded.emit({param:this.firstLoad,table:this}),this.firstLoad=!1}finally{this.loading=!1}}})}getcustomButtons(){return this.customButtons?this.customButtons.filter(t=>t.type!==ct.ONLY_MENU&&t.type!==ct.ACCELERATOR):[]}getCustomMenu(){return this.customButtons?this.customButtons.filter(t=>t.type!==ct.ACCELERATOR):[]}getCustomAccelerators(){return this.customButtons?this.customButtons.filter(t=>t.type===ct.ACCELERATOR):[]}getRowColumn(t,n){let o=t[n.name];switch(n.type){case gi.IMAGE:return this.api.safeString(this.api.gui.icon(o,"48px"));case gi.DATE:o=$i("SHORT_DATE_FORMAT",o);break;case gi.DATETIME:o=$i("SHORT_DATETIME_FORMAT",o);break;case gi.TIME:o=$i("TIME_FORMAT",o);break;case gi.DATETIMESEC:o=$i("SHORT_DATE_FORMAT",o," H:i:s");break;case gi.ICON:try{o=this.api.gui.icon(this.types.get(t.type).icon)+o}catch{}return this.api.safeString(o);case gi.CALLBACK:break;case gi.DICTIONARY:try{o=n.dict[o]}catch{o=""}break}return o}applyFilter(){this.api.putOnStorage(this.tableId+"filterValue",this.filterText),this.dataSource.filter=this.filterText.trim().toLowerCase()}sortChanged(t){this.api.putOnStorage(this.tableId+"sort-column",t.active),this.api.putOnStorage(this.tableId+"sort-direction",t.direction)}copyToClipboard(){this.clipboard.copy(this.clipValue||"")}rowClass(t){let n=[];return this.selection.isSelected(t)&&n.push("selected"),this.rowStyleInfo!==null&&n.push(this.rowStyleInfo.prefix+t[this.rowStyleInfo.field]),n}emitIfSelection(t,n=!1){let o=this.selection.selected.length;o>0&&(n===!0||o===1)&&t.emit({table:this,param:o})}isCustomDisabled(t){switch(t.type){case void 0:case ct.SINGLE_SELECT:return this.selection.selected.length!==1||t.disabled===!0;case ct.MULTI_SELECT:return this.selection.isEmpty()||t.disabled===!0;default:return!1}}emitCustom(t){!this.selection.selected.length&&t.type!==ct.ALWAYS||(t.type===ct.ACCELERATOR?this.api.navigation.goto(t.id,this.selection.selected[0],t.acceleratorProperties||[]):this.customButtonAction.emit({param:t,table:this}))}clickRow(t,n){let o=new Date().getTime();if((this.detailAction.observed||this.editAction.observed)&&Math.abs(this.lastClickInfo.x-n.x)<16&&Math.abs(this.lastClickInfo.y-n.y)<16&&o-this.lastClickInfo.time<250){this.selection.clear(),this.selection.select(t),this.detailAction.observed?this.detailAction.emit({param:t,table:this}):this.emitIfSelection(this.editAction,!1);return}this.lastClickInfo={time:o,x:n.x,y:n.y},this.doSelect(t,n)}doSelect(t,n){if(n.ctrlKey)this.lastSel=t,this.selection.toggle(t);else if(n.shiftKey){if(this.selection.isEmpty())this.selection.toggle(t);else if(this.selection.clear(),this.lastSel!==t){let o=!1,a=this.dataSource.sort?this.dataSource.sortData(this.dataSource.data,this.dataSource.sort):this.dataSource.data;for(let s of a){if((s===t||s===this.lastSel)&&(o=!o,o===!1)){this.selection.select(s);break}o&&this.selection.select(s)}}}else this.lastSel!==t&&this.selection.clear(),this.lastSel=t,this.selection.toggle(t);this.rowSelected.emit({param:null,table:this})}onContextMenu(t,n,o){o.preventDefault();let a=t[n.name];a.changingThisBreaksApplicationSecurity&&(a=a.changingThisBreaksApplicationSecurity.replace(/.*<\/span>/,"")),this.clipValue=""+a,this.hasActions&&(this.selection.clear(),this.selection.select(t),this.contextMenuPosition.x=o.clientX+"px",this.contextMenuPosition.y=o.clientY+"px",this.contextMenu.menuData={item:t},this.contextMenu.openMenu())}selectElement(t,n){(this.dataSource.sort?this.dataSource.sortData(this.dataSource.data,this.dataSource.sort):this.dataSource.data).forEach((a,s)=>{if(a[t]===n){let l=Math.floor(s/this.paginator.pageSize);this.selection.select(a),this.paginator.pageIndex=l,this.paginator.page.next({pageIndex:l,pageSize:this.paginator.pageSize,length:this.paginator.length})}})}export(){Kf(this)}permissions(){this.selection.selected.length&&Bk.launch(this.api,this.rest,this.selection.selected[0])}keyDown(t){switch(t.keyCode){case 36:this.paginator.firstPage(),t.preventDefault();break;case 35:this.paginator.lastPage(),t.preventDefault();break;case 39:this.paginator.nextPage(),t.preventDefault();break;case 37:this.paginator.previousPage(),t.preventDefault();break}}};e.\u0275fac=function(n){return new(n||e)(m(B),m(Wk))},e.\u0275cmp=E({type:e,selectors:[["uds-table"]],viewQuery:function(n,o){if(n&1&&(ce(V$,7),ce(jr,7),ce(Br,7)),n&2){let a;Q(a=K())&&(o.contextMenu=a.first),Q(a=K())&&(o.paginator=a.first),Q(a=K())&&(o.sort=a.first)}},inputs:{rest:"rest",onItem:"onItem",icon:"icon",multiSelect:"multiSelect",allowExport:"allowExport",hasPermissions:"hasPermissions",customButtons:"customButtons",tableId:"tableId",pageSize:"pageSize",newGrouped:"newGrouped",allowCopy:"allowCopy"},outputs:{loaded:"loaded",rowSelected:"rowSelected",newAction:"newAction",editAction:"editAction",deleteAction:"deleteAction",customButtonAction:"customButtonAction",detailAction:"detailAction"},decls:51,vars:30,consts:[["trigger","matMenuTrigger"],["contextMenu","matMenu"],["newMenu","matMenu"],["sub_menu","matMenu"],["uncheck",""],[1,"card"],[1,"card-header"],[1,"card-title"],[3,"src",4,"ngIf"],[1,"card-subtitle"],[1,"card-content"],[1,"header"],[1,"buttons"],[4,"ngIf"],[1,"navigation"],[1,"filter"],["matInput","",3,"keyup","ngModelChange","ngModel"],["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"],[1,"material-icons"],["tabindex","0",1,"table",3,"keydown"],["matSort","",3,"matSortChange","dataSource"],["matColumnDef","selection-column",4,"ngIf"],["matColumnDef","detail-column"],[4,"matHeaderCellDef"],[4,"matCellDef"],[3,"matColumnDef",4,"ngFor","ngForOf"],[4,"matHeaderRowDef"],[3,"ngClass",4,"matRowDef","matRowDefColumns"],[3,"hidden"],[1,"loading"],["mode","indeterminate"],[1,"footer"],["class","selection",4,"ngIf"],[2,"position","fixed",3,"matMenuTriggerFor"],["matMenuContent",""],[3,"src"],[1,"wide-menu",3,"overlapTrigger"],[4,"ngFor","ngForOf"],["mat-raised-button","","color","primary",3,"matMenuTriggerFor"],[1,"button-text"],["mat-menu-item","",1,"main-button",3,"matMenuTriggerFor"],[3,"overlapTrigger"],["mat-menu-item","",3,"innerHTML","click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click","innerHTML"],["mat-menu-item","","class","main-button",3,"innerHTML","click",4,"ngFor","ngForOf"],["mat-menu-item","",1,"main-button",3,"click","innerHTML"],["mat-raised-button","","color","primary",1,"main-button",3,"click"],["mat-raised-button","",3,"click","disabled"],["mat-raised-button","",3,"disabled","innerHTML","click",4,"ngFor","ngForOf"],["mat-raised-button","",3,"click","disabled","innerHTML"],["mat-raised-button","",3,"click"],["mat-raised-button","","color","warn",3,"click","disabled"],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],["matColumnDef","selection-column"],[3,"click",4,"matCellDef"],[3,"click"],["class","material-icons check checked",4,"ngIf","ngIfElse"],[1,"material-icons","check","checked"],[1,"material-icons","check"],[1,"detail-launcher",3,"click"],[3,"matColumnDef"],["mat-sort-header","",4,"matHeaderCellDef"],[3,"click","contextmenu",4,"matCellDef"],["mat-sort-header",""],[3,"click","contextmenu"],[3,"innerHtml"],[3,"ngClass"],[1,"selection"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"disabled","innerHTML","click",4,"ngFor","ngForOf"],["mat-menu-item","","class","menu-warn",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"material-icons","spaced"],["mat-menu-item","",3,"click","disabled","innerHTML"],["mat-menu-item","",1,"menu-warn",3,"click"]],template:function(n,o){if(n&1){let a=A();c(0,"div",5)(1,"div",6)(2,"div",7),x(3,B$,1,1,"img",8),g(4),d(),c(5,"div",9),g(6),d()(),c(7,"div",10)(8,"div",11)(9,"div",12),x(10,Y$,3,2,"ng-container",13)(11,Q$,7,1,"ng-container",13)(12,K$,7,1,"ng-container",13)(13,X$,2,1,"ng-container",13)(14,J$,7,0,"ng-container",13)(15,eW,7,1,"ng-container",13),d(),c(16,"div",14)(17,"div",15)(18,"mat-form-field")(19,"mat-label")(20,"uds-translate"),g(21,"Filter"),d()(),c(22,"input",16),b("keyup",function(){return y(a),w(o.applyFilter())}),H("ngModelChange",function(l){return y(a),$(o.filterText,l)||(o.filterText=l),w(l)}),d(),x(23,tW,3,0,"button",17),_t(24,"notEmpty"),d()(),c(25,"div",18),I(26,"mat-paginator",19),d(),c(27,"div",20)(28,"a",21),b("click",function(){return y(a),w(o.overview())}),c(29,"i",22),g(30,"autorenew"),d()()()()(),c(31,"div",23),b("keydown",function(l){return y(a),w(o.keyDown(l))}),c(32,"mat-table",24),b("matSortChange",function(l){return y(a),w(o.sortChanged(l))}),x(33,aW,3,0,"ng-container",25),mt(34,26),x(35,sW,1,0,"mat-header-cell",27)(36,lW,4,0,"mat-cell",28),pt(),x(37,uW,3,1,"ng-container",29)(38,hW,1,0,"mat-header-row",30)(39,mW,1,1,"mat-row",31),d(),c(40,"div",32)(41,"div",33),I(42,"mat-progress-spinner",34),d()()(),c(43,"div",35),g(44," \xA0 "),x(45,pW,4,1,"div",36),d()(),I(46,"div",37,0),c(48,"mat-menu",null,1),x(50,xW,7,7,"ng-template",38),d()()}if(n&2){let a=we(49);h(3),p("ngIf",o.icon!==void 0),h(),F(" ",o.title," "),h(2),F(" ",o.subtitle," "),h(4),p("ngIf",o.newAction.observed),h(),p("ngIf",o.editAction.observed),h(),p("ngIf",o.hasPermissions===!0),h(),p("ngIf",o.hasCustomButtons),h(),p("ngIf",o.allowExport===!0),h(),p("ngIf",o.deleteAction.observed),h(7),U("ngModel",o.filterText),h(),p("ngIf",Dt(24,27,o.filterText)),h(3),p("pageSize",o.pageSize)("hidePageSize",!0)("pageSizeOptions",ll(29,j$))("showFirstLastButtons",!0),h(6),p("dataSource",o.dataSource),h(),p("ngIf",o.hasButtons),h(4),p("ngForOf",o.columns),h(),p("matHeaderRowDef",o.displayedColumns),h(),p("matRowDefColumns",o.displayedColumns),h(),p("hidden",!o.loading),h(5),p("ngIf",o.hasButtons&&o.selection.selected.length>0),h(),ji("left",o.contextMenuPosition.x)("top",o.contextMenuPosition.y),p("matMenuTriggerFor",a)}},dependencies:[Sn,We,me,lt,xe,Se,xa,xp,Qi,ka,ys,Qk,Xf,_e,Ae,uo,ft,Af,Rf,Lf,Pf,Of,Vf,Ff,Nf,jf,Bf,jr,Br,Cf,Wf,qf,le,II,yi,oA],styles:['.mat-ripple[_ngcontent-%COMP%]{overflow:hidden;position:relative}.mat-ripple[_ngcontent-%COMP%]:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded[_ngcontent-%COMP%]{overflow:visible}.mat-ripple-element[_ngcontent-%COMP%]{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale3d(0,0,0);background-color:var(--mat-ripple-color, rgba(0, 0, 0, .1))}.cdk-high-contrast-active[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%], .cdk-drag-placeholder[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%]{display:none}.cdk-visually-hidden[_ngcontent-%COMP%]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl][_ngcontent-%COMP%] .cdk-visually-hidden[_ngcontent-%COMP%]{left:auto;right:0}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_ngcontent-%COMP%]{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container[_ngcontent-%COMP%]{position:fixed;z-index:1000}.cdk-overlay-container[_ngcontent-%COMP%]:empty{display:none}.cdk-global-overlay-wrapper[_ngcontent-%COMP%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:1}.cdk-high-contrast-active[_ngcontent-%COMP%] .cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:.6}.cdk-overlay-dark-backdrop[_ngcontent-%COMP%]{background:#00000052}.cdk-overlay-transparent-backdrop[_ngcontent-%COMP%]{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation[_ngcontent-%COMP%]{transition:none}.cdk-overlay-connected-position-bounding-box[_ngcontent-%COMP%]{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock[_ngcontent-%COMP%]{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize[_ngcontent-%COMP%]{resize:none}textarea.cdk-textarea-autosize-measuring[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-start{}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{animation:_ngcontent-%COMP%_cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){animation:_ngcontent-%COMP%_cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border:var(--mat-focus-indicator-border-width, 3px) var(--mat-focus-indicator-border-style, solid) var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-focus-indicator-display: block}.mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-mdc-focus-indicator-display, none);border:var(--mat-mdc-focus-indicator-border-width, 3px) var(--mat-mdc-focus-indicator-border-style, solid) var(--mat-mdc-focus-indicator-border-color, transparent);border-radius:var(--mat-mdc-focus-indicator-border-radius, 4px)}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-mdc-focus-indicator-display: block}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-app-background, transparent));color:var(--mat-app-text-color, var(--mat-app-on-background, inherit))}.mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, none)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, none)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, none)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, none)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, none)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, none)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, none)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, none)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, none)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, none)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, none)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, none)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, none)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, none)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, none)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, none)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, none)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, none)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, none)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, none)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, none)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, none)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, none)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, none)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, none)}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-wrap:wrap;margin:1rem 1rem 0rem}.buttons[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap}.buttons[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-right:1rem;margin-bottom:1rem}.buttons[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{margin-right:.1rem}.buttons[_ngcontent-%COMP%] .mat-mdc-raised-button[_ngcontent-%COMP%]:hover:not([disabled]){background-color:#fafafa;color:#000}button.mat-mdc-menu-item[_ngcontent-%COMP%]{height:2rem;line-height:2rem}.navigation[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;flex-wrap:wrap}.reload[_ngcontent-%COMP%]{margin-top:.5rem}.table[_ngcontent-%COMP%]{margin:0rem 1rem;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-o-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:#a0b0d0;cursor:pointer}.check[_ngcontent-%COMP%]{margin-left:.5rem;font-size:1.5rem;width:1.5rem}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-mdc-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-mdc-menu-panel{min-height:3rem} .mat-mdc-menu-panel.mat-mdc-menu-panel{max-width:32rem} .mat-mdc-paginator-range-label{min-width:6em}.mat-mdc-menu-item[_ngcontent-%COMP%]{min-height:2.5rem} .dark-theme .mat-mdc-paginator-container{background-color:#303030} .dark-theme .buttons .mat-mdc-raised-button:hover:not([disabled]){background-color:#303030;color:#fff} .dark-theme .mat-column-detail-column{color:#fff!important} .dark-theme .mat-column-selection-column{color:#fff!important} .dark-theme .menu-warn{color:red} .dark-theme .menu-link{color:#00f}.filter[_ngcontent-%COMP%]{display:flex;align-items:center;width:16rem}.filter[_ngcontent-%COMP%] .mat-mdc-form-field-infix{min-height:3rem;padding-top:1rem!important;padding-bottom:1rem!important}.filter[_ngcontent-%COMP%] .mat-mdc-form-field-bottom-align{height:0px}.mat-column-token[_ngcontent-%COMP%]{overflow-wrap:anywhere}']});let i=e;return i})();var rA='pause'+django.gettext("Maintenance")+"",DW='pause'+django.gettext("Exit maintenance mode")+"",SW='pause'+django.gettext("Enter maintenance mode")+"",nw=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o,this.cButtons=[{id:"maintenance",html:rA,type:ct.SINGLE_SELECT}]}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New provider"),!0)}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit provider"),!0)}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete provider"))}onMaintenance(t){let n=t.table.selection.selected[0],o=n.maintenance_mode?django.gettext("Exit maintenance mode?"):django.gettext("Enter maintenance mode?");this.api.gui.questionDialog(django.gettext("Maintenance mode for")+" "+n.name,o).then(a=>{a&&this.rest.providers.maintenance(n.id).then(()=>{t.table.overview()})})}onRowSelect(t){let n=t.table;if(n.selection.selected.length>1||n.selection.selected.length===0){this.customButtons[0].html=rA;return}n.selection.selected[0].maintenance_mode?this.customButtons[0].html=DW:this.customButtons[0].html=SW}onDetail(t){this.api.navigation.gotoService(t.param.id)}processElement(t){t.maintenance_state=t.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("provider"))}};e.\u0275fac=function(n){return new(n||e)(m(Oe),m(X),m(B))},e.\u0275cmp=E({type:e,selectors:[["uds-providers"]],decls:1,vars:7,consts:[["tableId","service-providers","icon","providers",3,"customButtonAction","newAction","editAction","deleteAction","rowSelected","detailAction","loaded","rest","onItem","multiSelect","allowExport","hasPermissions","customButtons","pageSize"]],template:function(n,o){n&1&&(c(0,"uds-table",0),b("customButtonAction",function(s){return o.onMaintenance(s)})("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("rowSelected",function(s){return o.onRowSelect(s)})("detailAction",function(s){return o.onDetail(s)})("loaded",function(s){return o.onLoad(s)}),d()),n&2&&p("rest",o.rest.providers)("onItem",o.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)},dependencies:[Te],styles:[".row-maintenance-true>mat-cell{color:#dc3131!important} .mat-column-services_count, .mat-column-user_services_count{max-width:7rem;justify-content:center} .mat-column-maintenance_state{max-width:10rem;justify-content:center}"]});let i=e;return i})();var mo=class{constructor(e,r,t,n){this.title=e,this.data=r,this.columns=t,this.id=n,this.columnsDefinition=Array.from(t,o=>{let a={};return a[o.field]={visible:!0,title:o.title,type:o.type===void 0?gi.ALPHANUMERIC:o.type},a})}get(e){return Promise.resolve({})}getLogs(e){return Promise.resolve([])}overview(e){return typeof this.data=="function"?Promise.resolve(this.data()):Promise.resolve(this.data)}summary(e){return this.overview()}put(e,r){return Promise.resolve()}create(e){return Promise.resolve()}save(e,r){return Promise.resolve()}test(e,r){return Promise.resolve("")}delete(e){return Promise.resolve()}permision(){return Vr.ALL}getPermissions(e){return Promise.resolve([])}addPermission(e,r,t,n){return Promise.resolve({})}revokePermission(e){return Promise.resolve()}types(){return Promise.resolve([])}gui(e){return Promise.resolve({})}callback(e,r){return Promise.resolve([])}tableInfo(){return Promise.resolve({fields:this.columnsDefinition,title:this.title})}detail(e,r){return null}invoke(e,r){return Promise.resolve({})}};var EW=()=>[5,10,25,100,1e3];function IW(i,e){if(i&1){let r=A();c(0,"button",24),b("click",function(){y(r);let n=_();return n.filterText="",w(n.applyFilter())}),c(1,"i",8),g(2,"close"),d()()}}function MW(i,e){if(i&1&&(c(0,"mat-header-cell",28),g(1),d()),i&2){let r=_().$implicit;h(),$e(r)}}function TW(i,e){if(i&1&&(c(0,"mat-cell"),I(1,"div",29),d()),i&2){let r=e.$implicit,t=_().$implicit,n=_();h(),p("innerHtml",n.getRowColumn(r,t),qt)}}function kW(i,e){if(i&1&&(mt(0,25),x(1,MW,2,1,"mat-header-cell",26)(2,TW,2,1,"mat-cell",27),pt()),i&2){let r=e.$implicit;p("matColumnDef",r)}}function AW(i,e){i&1&&I(0,"mat-header-row")}function OW(i,e){if(i&1&&I(0,"mat-row",30),i&2){let r=e.$implicit,t=_();p("ngClass",t.rowClass(r))}}var An=(()=>{let e=class e{constructor(t){this.api=t,this.rest={},this.itemId="",this.tableId="",this.pageSize=10,this.paginator={},this.sort={},this.filterText="",this.title="Logs",this.displayedColumns=["date","level","source","message"],this.columns=[],this.dataSource=new Yl([]),this.selection=new Rr}ngOnInit(){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";for(let t of this.displayedColumns){let n=t==="date"?gi.DATETIMESEC:gi.ALPHANUMERIC;this.columns.push({name:t,title:t,type:n})}this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",this.applyFilter(),this.overview()}overview(){return W(this,null,function*(){this.dataSource.data=yield this.rest.getLogs(this.itemId)})}selectElement(t,n){}getRowColumn(t,n){let o=t[n];return n==="date"?o=$i("SHORT_DATE_FORMAT",o," H:i:s"):n==="level"&&(o=H1(o)),o}rowClass(t){return["level-"+t.level]}applyFilter(){this.api.putOnStorage(this.tableId+"filterValue",this.filterText),this.dataSource.filter=this.filterText.trim().toLowerCase()}sortChanged(t){this.api.putOnStorage("logs-sort-column",t.active),this.api.putOnStorage("logs-sort-direction",t.direction)}export(){Kf(this)}keyDown(t){switch(t.keyCode){case 36:this.paginator.firstPage(),t.preventDefault();break;case 35:this.paginator.lastPage(),t.preventDefault();break;case 39:this.paginator.nextPage(),t.preventDefault();break;case 37:this.paginator.previousPage(),t.preventDefault();break}}};e.\u0275fac=function(n){return new(n||e)(m(B))},e.\u0275cmp=E({type:e,selectors:[["uds-logs-table"]],viewQuery:function(n,o){if(n&1&&(ce(jr,7),ce(Br,7)),n&2){let a;Q(a=K())&&(o.paginator=a.first),Q(a=K())&&(o.sort=a.first)}},inputs:{rest:"rest",itemId:"itemId",tableId:"tableId",pageSize:"pageSize"},decls:37,vars:14,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,"keyup","ngModelChange","ngModel"],["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,"matSortChange","dataSource"],[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(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"div",2),I(3,"img",3),g(4," \xA0"),c(5,"uds-translate"),g(6,"Logs"),d()()(),c(7,"div",4)(8,"div",5)(9,"div",6)(10,"a",7),b("click",function(){return o.export()}),c(11,"i",8),g(12,"import_export"),d(),c(13,"span",9)(14,"uds-translate"),g(15,"Export"),d()()()(),c(16,"div",10)(17,"div",11)(18,"uds-translate"),g(19,"Filter"),d(),g(20,"\xA0 "),c(21,"mat-form-field")(22,"input",12),b("keyup",function(){return o.applyFilter()}),H("ngModelChange",function(s){return $(o.filterText,s)||(o.filterText=s),s}),d(),x(23,IW,3,0,"button",13),_t(24,"notEmpty"),d()(),c(25,"div",14),I(26,"mat-paginator",15),d(),c(27,"div",16)(28,"a",17),b("click",function(){return o.overview()}),c(29,"i",8),g(30,"autorenew"),d()()()()(),c(31,"div",18),b("keydown",function(s){return o.keyDown(s)}),c(32,"mat-table",19),b("matSortChange",function(s){return o.sortChanged(s)}),x(33,kW,3,1,"ng-container",20)(34,AW,1,0,"mat-header-row",21)(35,OW,1,1,"mat-row",22),d()(),I(36,"div",23),d()()),n&2&&(h(3),p("src",o.api.staticURL("admin/img/icons/logs.png"),Ie),h(19),U("ngModel",o.filterText),h(),p("ngIf",Dt(24,11,o.filterText)),h(3),p("pageSize",o.pageSize)("hidePageSize",!0)("pageSizeOptions",ll(13,EW))("showFirstLastButtons",!0),h(6),p("dataSource",o.dataSource),h(),p("ngForOf",o.displayedColumns),h(),p("matHeaderRowDef",o.displayedColumns),h(),p("matRowDefColumns",o.displayedColumns))},dependencies:[Sn,We,me,lt,xe,Se,xa,ke,xp,Qi,_e,uo,ft,Af,Rf,Lf,Pf,Of,Vf,Ff,Nf,jf,Bf,jr,Br,Cf,le,yi],styles:[".header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-wrap:wrap;margin:1rem 1rem 0rem}.navigation[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;flex-wrap:wrap}.reload[_ngcontent-%COMP%]{margin-top:.5rem}.table[_ngcontent-%COMP%]{margin:0rem 1rem;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-o-user-select:none;user-select:none}.mat-column-date[_ngcontent-%COMP%]{min-width:12rem;max-width:20rem}.mat-column-level[_ngcontent-%COMP%]{max-width:8rem;text-align:center}.mat-column-source[_ngcontent-%COMP%]{max-width:8rem} .level-60000>.mat-mdc-cell{color:#ff1e1e!important} .level-50000>.mat-mdc-cell{color:#ff1e1e!important} .level-40000>.mat-mdc-cell{color:#d65014!important}.filter[_ngcontent-%COMP%]{display:flex;align-items:center;width:16rem}.filter[_ngcontent-%COMP%] .mat-mdc-form-field-infix{min-height:3rem;padding-top:1rem!important;padding-bottom:1rem!important}.filter[_ngcontent-%COMP%] .mat-mdc-form-field-bottom-align{height:0px}"]});let i=e;return i})();function RW(i,e){i&1&&(c(0,"uds-translate"),g(1,"Services pools"),d())}function PW(i,e){i&1&&(c(0,"uds-translate"),g(1,"Logs"),d())}var FW=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],aA=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.customButtons=[Ii.getGotoButton(Ud,"id")],this.servicePools={},this.services=a.services,this.service=a.service}static launch(t,n,o){let a=window.innerWidth<800?"80%":"60%",s=t.gui.dialog.open(e,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{service:o,services:n},disableClose:!1})}ngOnInit(){let t=()=>this.services.invoke(this.service.id+"/servicepools");this.servicePools=new mo(django.gettext("Service pools"),t,FW,this.service.id+"infopsls")}};e.\u0275fac=function(n){return new(n||e)(m(B),m(X),m(Ne),m(Ke))},e.\u0275cmp=E({type:e,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(n,o){n&1&&(c(0,"h4",0)(1,"uds-translate"),g(2,"Information for"),d(),g(3),d(),c(4,"mat-dialog-content")(5,"mat-tab-group")(6,"mat-tab"),x(7,RW,2,0,"ng-template",1),I(8,"uds-table",2),d(),c(9,"mat-tab"),x(10,PW,2,0,"ng-template",1),c(11,"div",3),I(12,"uds-logs-table",4),d()()()(),c(13,"mat-dialog-actions")(14,"button",5)(15,"uds-translate"),g(16,"Ok"),d()()()),n&2&&(h(3),F(" ",o.service.name,` +`),h(5),p("rest",o.servicePools)("customButtons",o.customButtons)("pageSize",6),h(4),p("rest",o.services)("itemId",o.service.id)("tableId","serviceInfo-d-log"+o.service.id)("pageSize",5))},dependencies:[ke,Qt,Je,tt,et,ei,ti,oi,le,Te,An],styles:[".mat-mdc-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}"]});let i=e;return i})();function NW(i,e){if(i&1&&(c(0,"div",3),I(1,"div",4)(2,"div",5),d()),i&2){let r=e.$implicit;h(),p("innerHTML",r.gui.label,qt),h(),p("innerHTML",r.value,qt)}}var po=(()=>{let e=class e{constructor(t){this.api=t,this.gui=[]}ngOnInit(){this.processFields()}processFields(){if(!this.gui||!this.value)return;let t=this.gui.filter(n=>n.gui.type!==Ki.HIDDEN);for(let n of t){let o=this.value[n.name];switch(n.gui.type){case Ki.CHECKBOX:n.value=o?django.gettext("Yes"):django.gettext("No");break;case Ki.PASSWORD:n.value=django.gettext("(hidden)");break;case Ki.CHOICE:{let a=Fd.locateChoice(o,n);n.value=a.text;break}case Ki.MULTI_CHOICE:n.value=django.gettext("Selected items :")+o.length;break;case Ki.IMAGECHOICE:{let a=Fd.locateChoice(o,n);a.img&&(n.value=this.api.safeString(this.api.gui.icon(a.img)+" "+a.text));break}case Ki.INFO:continue;default:n.value=o}(n.value===""||n.value===void 0||n.value===null)&&(n.value="(empty)")}return t}};e.\u0275fac=function(n){return new(n||e)(m(B))},e.\u0275cmp=E({type:e,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(n,o){n&1&&(c(0,"div",0)(1,"div",1),x(2,NW,3,2,"div",2),d(),I(3,"div"),d()),n&2&&(h(2),p("ngForOf",o.processFields()))},dependencies:[We],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}"]});let i=e;return i})();var LW=i=>["/services","providers",i];function VW(i,e){i&1&&(c(0,"uds-translate"),g(1,"Summary"),d())}function jW(i,e){if(i&1&&I(0,"uds-information",15),i&2){let r=_(2);p("value",r.provider)("gui",r.gui)}}function BW(i,e){i&1&&(c(0,"uds-translate"),g(1,"Services"),d())}function zW(i,e){i&1&&(c(0,"uds-translate"),g(1,"Usage"),d())}function UW(i,e){i&1&&(c(0,"uds-translate"),g(1,"Logs"),d())}function HW(i,e){if(i&1){let r=A();c(0,"div",6)(1,"div",7)(2,"mat-tab-group",8),H("selectedIndexChange",function(n){y(r);let o=_();return $(o.selectedTab,n)||(o.selectedTab=n),w(n)}),c(3,"mat-tab"),x(4,VW,2,0,"ng-template",9),c(5,"div",10),x(6,jW,1,2,"uds-information",11),d()(),c(7,"mat-tab"),x(8,BW,2,0,"ng-template",9),c(9,"div",10)(10,"uds-table",12),b("newAction",function(n){y(r);let o=_();return w(o.onNewService(n))})("editAction",function(n){y(r);let o=_();return w(o.onEditService(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteService(n))})("customButtonAction",function(n){y(r);let o=_();return w(o.onInformation(n))})("loaded",function(n){y(r);let o=_();return w(o.onLoad(n))}),d()()(),c(11,"mat-tab"),x(12,zW,2,0,"ng-template",9),c(13,"div",10)(14,"uds-table",13),b("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteUsage(n))}),d()()(),c(15,"mat-tab"),x(16,UW,2,0,"ng-template",9),c(17,"div",10),I(18,"uds-logs-table",14),d()()()()()}if(i&2){let r=_();h(2),U("selectedIndex",r.selectedTab),p("@.disabled",!0),h(4),p("ngIf",r.provider&&r.gui),h(4),p("rest",r.services)("multiSelect",!0)("allowExport",!0)("customButtons",r.customButtons)("pageSize",r.api.config.admin.page_size)("tableId","providers-d-services"+r.provider.id),h(4),p("rest",r.usage)("multiSelect",!0)("allowExport",!0)("pageSize",r.api.config.admin.page_size)("tableId","providers-d-usage"+r.provider.id),h(4),p("rest",r.services.parentModel)("itemId",r.provider.id)("tableId","providers-d-log"+r.provider.id)}}var ow=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o,this.customButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:ct.ONLY_MENU}],this.provider=null,this.gui=[],this.services={},this.usage={},this.selectedTab=1}ngOnInit(){let t=this.route.snapshot.paramMap.get("provider");t&&(this.services=this.rest.providers.detail(t,"services"),this.usage=this.rest.providers.detail(t,"usage"),this.services.parentModel.get(t).then(n=>{this.provider=n,this.services.parentModel.gui(n.type).then(o=>{this.gui=o})}))}onInformation(t){aA.launch(this.api,this.services,t.table.selection.selected[0])}onNewService(t){let n=django.gettext("New service")+": "+(t.param.name||"");this.api.gui.forms.typedNewForm(t,n,!1)}onEditService(t){let n=django.gettext("Edit service")+": "+(t.table.selection.selected[0].name||"");this.api.gui.forms.typedEditForm(t,n,!1)}onDeleteService(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete service"))}onDeleteUsage(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete user service"))}onLoad(t){if(t.param===!0){let n=this.route.snapshot.paramMap.get("service");if(n!==void 0){this.selectedTab=1;let o=t.table;o.dataSource.data.forEach(a=>{a.id===n&&o.selection.select(a)})}}}};e.\u0275fac=function(n){return new(n||e)(m(Oe),m(X),m(B))},e.\u0275cmp=E({type:e,selectors:[["uds-provider-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,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","providers",3,"newAction","editAction","deleteAction","customButtonAction","loaded","rest","multiSelect","allowExport","customButtons","pageSize","tableId"],["icon","usage",3,"deleteAction","rest","multiSelect","allowExport","pageSize","tableId"],[3,"rest","itemId","tableId"],[3,"value","gui"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),g(4,"arrow_back"),d()(),g(5," \xA0"),I(6,"img",4),g(7),d(),x(8,HW,19,17,"div",5),d()),n&2&&(h(2),p("routerLink",Bi(4,LW,o.services.parentId)),h(4),p("src",o.api.staticURL("admin/img/icons/services.png"),Ie),h(),F(" \xA0",o.provider==null?null:o.provider.name," "),h(),p("ngIf",o.provider!==null))},dependencies:[me,bi,ei,ti,oi,le,Te,An,po]});let i=e;return i})();var rw=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o}ngOnInit(){}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New server"),!0)}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit server"),!0)}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete server"))}onDetail(t){this.api.navigation.gotoServerDetail(t.param.id)}processElement(t){t.maintenance_state=t.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("server"))}};e.\u0275fac=function(n){return new(n||e)(m(Oe),m(X),m(B))},e.\u0275cmp=E({type:e,selectors:[["uds-servers"]],decls:1,vars:7,consts:[["tableId","server-groups-table","icon","servers",3,"newAction","editAction","deleteAction","detailAction","loaded","rest","onItem","multiSelect","allowExport","hasPermissions","newGrouped","pageSize"]],template:function(n,o){n&1&&(c(0,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("detailAction",function(s){return o.onDetail(s)})("loaded",function(s){return o.onLoad(s)}),d()),n&2&&p("rest",o.rest.serverGroups)("onItem",o.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("newGrouped",!0)("pageSize",o.api.config.admin.page_size)},dependencies:[Te]});let i=e;return i})();var sA=(()=>{let e=class e{constructor(t,n,o){this.api=t,this.dialogRef=n,this.data=o,this.filename="",this.contains_header=!0,this.separator=",",this.result=[],this.title="Import CSV",this.help="Select a CSV file to import",o&&(this.title=o.title||this.title,this.help=o.help||this.help)}static launch(t,n){return W(this,null,function*(){let o=window.innerWidth<800?"60%":"40%",a=t.gui.dialog.open(e,{width:o,data:n,disableClose:!1});return new Promise((s,l)=>{a.afterClosed().subscribe(u=>{s({data:a.componentInstance.result})})})})}loadCSV(t){return W(this,null,function*(){let n=t.split(` +`).map(a=>a.trim());if(n.length>=1024)return console.log("Too many lines, do not loaded (max is 1024)"),[];this.contains_header&&(n=n.slice(1));let o=[];for(let a of n){let s=a.split(this.separator);s.length===1&&s[0]===""||o.push(s)}return o})}onFileChange(t){return W(this,null,function*(){let n=t.target.files[0];if(!n)return;this.filename=n.name;let o=new FileReader,a=new Jt;o.onload=l=>{let u=o.result;a.resolve(u)},o.readAsText(n);let s=yield a;this.result=yield this.loadCSV(s)})}};e.\u0275fac=function(n){return new(n||e)(m(B),m(Ne),m(Ke))},e.\u0275cmp=E({type:e,selectors:[["uds-cvsimport"]],decls:57,vars:8,consts:[["fileUpload",""],["mat-dialog-title",""],[3,"innerHTML"],[1,"content"],[1,"options"],[1,"field"],[3,"valueChange","value"],[3,"value"],["value",","],["value",";"],["value","|"],["value","tab"],[1,"upload"],["type","file","accept",".csv",1,"file-input",3,"change"],["type","text","matInput","","readonly","readonly",3,"ngModelChange","click","ngModel","placeholder","matTooltip"],["mat-raised-button","","mat-dialog-close","","color","primary"],["mat-raised-button","","mat-dialog-close","","color","warn",3,"click"]],template:function(n,o){if(n&1){let a=A();c(0,"h4",1)(1,"uds-translate"),g(2,"CVS Import options for"),d(),g(3,"\xA0"),I(4,"b",2),d(),c(5,"mat-dialog-content")(6,"div",3)(7,"div",4)(8,"div",5)(9,"mat-form-field")(10,"mat-label")(11,"uds-translate"),g(12,"Header"),d()(),c(13,"mat-select",6),H("valueChange",function(l){return y(a),$(o.contains_header,l)||(o.contains_header=l),w(l)}),c(14,"mat-option",7)(15,"uds-translate"),g(16,"CSV contains header line"),d()(),c(17,"mat-option",7)(18,"uds-translate"),g(19,"CSV DOES NOT contains header line"),d()()()()(),c(20,"div",5)(21,"mat-form-field")(22,"mat-label")(23,"uds-translate"),g(24,"Separator"),d()(),c(25,"mat-select",6),H("valueChange",function(l){return y(a),$(o.separator,l)||(o.separator=l),w(l)}),c(26,"mat-option",8)(27,"uds-translate"),g(28,"Use comma"),d(),g(29," (,)"),d(),c(30,"mat-option",9)(31,"uds-translate"),g(32,"Use semicolon"),d(),g(33," (;)"),d(),c(34,"mat-option",10)(35,"uds-translate"),g(36,"Use pipe"),d(),g(37," (|)"),d(),c(38,"mat-option",11)(39,"uds-translate"),g(40,"Use tab"),d(),g(41," (tab)"),d()()()()()(),c(42,"div",12)(43,"mat-form-field")(44,"mat-label")(45,"uds-translate"),g(46,"File"),d()(),c(47,"input",13,0),b("change",function(l){return y(a),w(o.onFileChange(l))}),d(),c(49,"input",14),H("ngModelChange",function(l){return y(a),$(o.filename,l)||(o.filename=l),w(l)}),b("click",function(){y(a);let l=we(48);return w(l.click())}),d()()()(),c(50,"mat-dialog-actions")(51,"button",15)(52,"uds-translate"),g(53,"Ok"),d()(),c(54,"button",16),b("click",function(){return y(a),w(o.filename="")}),c(55,"uds-translate"),g(56,"Cancel"),d()()()}n&2&&(h(4),p("innerHTML",o.title,qt),h(9),U("value",o.contains_header),h(),p("value",!0),h(3),p("value",!1),h(8),U("value",o.separator),h(24),U("ngModel",o.filename),p("placeholder","Click here to select file to import.")("matTooltip",o.help))},dependencies:[lt,xe,Se,ke,lr,Qt,Je,tt,et,_e,Ae,ft,bt,nt,le],styles:[".content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap;width:100%}.options[_ngcontent-%COMP%]{width:100%}mat-form-field[_ngcontent-%COMP%]{width:100%!important}.mat-mdc-form-field[_ngcontent-%COMP%]{min-width:100%}.file-input[_ngcontent-%COMP%]{display:none}"]});let i=e;return i})();var $W=i=>["/services","servers",i];function WW(i,e){i&1&&(c(0,"uds-translate"),g(1,"Summary"),d())}function GW(i,e){i&1&&(c(0,"uds-translate"),g(1,"Servers"),d())}function qW(i,e){if(i&1){let r=A();c(0,"div",6)(1,"div",7)(2,"mat-tab-group",8)(3,"mat-tab"),x(4,WW,2,0,"ng-template",9),c(5,"div",10),I(6,"uds-information",11),d()(),c(7,"mat-tab"),x(8,GW,2,0,"ng-template",9),c(9,"div",10)(10,"uds-table",12),b("newAction",function(n){y(r);let o=_();return w(o.onNew(n))})("editAction",function(n){y(r);let o=_();return w(o.onEdit(n))})("rowSelected",function(n){y(r);let o=_();return w(o.onRowSelect(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDelete(n))})("customButtonAction",function(n){y(r);let o=_();return w(o.customButtonAction(n))})("loaded",function(n){y(r);let o=_();return w(o.onLoad(n))}),d()()()()()()}if(i&2){let r=_();h(2),p("@.disabled",!0),h(4),p("value",r.server)("gui",r.gui),h(4),p("rest",r.servers)("multiSelect",!0)("allowExport",!0)("customButtons",r.customButtons)("pageSize",r.api.config.admin.page_size)("tableId","servers-d-servers"+r.server.id)}}var lA='pause'+django.gettext("Maintenance")+"",YW='pause'+django.gettext("Exit maintenance mode")+"",QW='pause'+django.gettext("Enter maintenance mode")+"",KW='import_export'+django.gettext("Import CSV")+"",cA=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o,this.cButtons=[{id:"maintenance",html:lA,type:ct.SINGLE_SELECT}],this.server=null,this.gui=[],this.servers={}}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){return W(this,null,function*(){let t=this.route.snapshot.paramMap.get("server");t&&(this.servers=this.rest.serverGroups.detail(t,"servers"),this.server=yield this.servers.parentModel.get(t),this.gui=yield this.servers.parentModel.gui(this.server.type),this.server.type.startsWith("UNMANAGED")&&this.cButtons.push({id:"import-csv",html:KW,type:ct.ALWAYS}))})}onMaintenance(t){let n=t.table.selection.selected[0],o=n.maintenance_mode?django.gettext("Exit maintenance mode?"):django.gettext("Enter maintenance mode?");this.api.gui.questionDialog(django.gettext("Maintenance mode for")+" "+n.name,o).then(a=>{a&&this.servers.get(n.id+"/maintenance").then(()=>{t.table.overview()})})}onImportCSV(t){return W(this,null,function*(){let n=yield sA.launch(this.api,{title:django.gettext("Import Servers"),help:django.gettext('Format of file must be "hostname,ip,mac,...". All fields except hostname are optional. Separator can be configured.')});if(n.data.length==0)return;let o=yield this.servers.put({data:n.data},this.server.id+"/importcsv");o&&o.length>0&&this.api.gui.alert("Errors found importing data: ",o.slice(0,16).join(`
+`)),t.table.overview()})}customButtonAction(t){return W(this,null,function*(){if(t.param.id=="maintenance")return yield this.onMaintenance(t);if(t.param.id=="import-csv")return yield this.onImportCSV(t)})}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New server"),!0)}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit server"),!0)}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Remove server from server group"),"hostname")}onRowSelect(t){let n=t.table;if(n.selection.selected.length>1||n.selection.selected.length===0){this.customButtons[0].html=lA;return}n.selection.selected[0].maintenance_mode?this.customButtons[0].html=YW:this.customButtons[0].html=QW}onLoad(t){if(t.param===!0){let n=this.route.snapshot.paramMap.get("server");if(n!==void 0){let o=t.table;o.dataSource.data.forEach(a=>{a.id===n&&o.selection.select(a)})}}}};e.\u0275fac=function(n){return new(n||e)(m(Oe),m(X),m(B))},e.\u0275cmp=E({type:e,selectors:[["uds-server-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","selectedIndex","1"],["mat-tab-label",""],[1,"content"],[3,"value","gui"],["icon","servers",3,"newAction","editAction","rowSelected","deleteAction","customButtonAction","loaded","rest","multiSelect","allowExport","customButtons","pageSize","tableId"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),g(4,"arrow_back"),d()(),g(5," \xA0"),I(6,"img",4),g(7),d(),x(8,qW,11,9,"div",5),d()),n&2&&(h(2),p("routerLink",Bi(4,$W,o.servers.parentId)),h(4),p("src",o.api.staticURL("admin/img/icons/servers.png"),Ie),h(),F(" \xA0",o.server==null?null:o.server.name," "),h(),p("ngIf",o.server!==null))},dependencies:[me,bi,ei,ti,oi,le,Te,po],styles:[".row-maintenance-true>mat-cell{color:orange!important}"]});let i=e;return i})();var aw=(()=>{let e=class e{constructor(t,n,o){this.api=t,this.route=n,this.rest=o}ngOnInit(){return W(this,null,function*(){let t=this.route.snapshot.paramMap.get("authenticator")})}onDetail(t){return W(this,null,function*(){this.api.navigation.gotoAuthenticatorDetail(t.param.id)})}onNew(t){return W(this,null,function*(){this.api.gui.forms.typedNewForm(t,django.gettext("New Authenticator"),!0)})}onEdit(t){return W(this,null,function*(){this.api.gui.forms.typedEditForm(t,django.gettext("Edit Authenticator"),!0)})}onDelete(t){return W(this,null,function*(){this.api.gui.forms.deleteForm(t,django.gettext("Delete Authenticator"))})}onLoad(t){return W(this,null,function*(){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("authenticator"))})}processElement(t){t.visible=this.api.boolAsHumanString(t.visible)}};e.\u0275fac=function(n){return new(n||e)(m(B),m(Oe),m(X))},e.\u0275cmp=E({type:e,selectors:[["uds-authenticators"]],decls:2,vars:6,consts:[["icon","authenticators",3,"newAction","editAction","deleteAction","detailAction","loaded","rest","multiSelect","allowExport","hasPermissions","onItem","pageSize"]],template:function(n,o){n&1&&(c(0,"div")(1,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("detailAction",function(s){return o.onDetail(s)})("loaded",function(s){return o.onLoad(s)}),d()()),n&2&&(h(),p("rest",o.rest.authenticators)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",o.processElement)("pageSize",o.api.config.admin.page_size))},dependencies:[Te]});let i=e;return i})();var sw=(()=>{let e=class e{constructor(t,n,o){this.api=t,this.route=n,this.rest=o}ngOnInit(){let t=this.route.snapshot.paramMap.get("mfa")}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New MFA"))}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit MFA"))}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete MFA"))}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("mfa"))}};e.\u0275fac=function(n){return new(n||e)(m(B),m(Oe),m(X))},e.\u0275cmp=E({type:e,selectors:[["uds-mfas"]],decls:2,vars:5,consts:[["icon","mfas",3,"newAction","editAction","deleteAction","loaded","rest","multiSelect","allowExport","hasPermissions","pageSize"]],template:function(n,o){n&1&&(c(0,"div")(1,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("loaded",function(s){return o.onLoad(s)}),d()()),n&2&&(h(),p("rest",o.rest.mfas)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Te]});let i=e;return i})();var ZW=["panel"],XW=["*"];function JW(i,e){if(i&1){let r=A();c(0,"div",1,0),b("@panelAnimation.done",function(n){y(r);let o=_();return w(o._animationDone.next(n))}),ae(2),d()}if(i&2){let r=e.id,t=_();Yt(t._classList),ne("mat-mdc-autocomplete-visible",t.showPanel)("mat-mdc-autocomplete-hidden",!t.showPanel)("mat-primary",t._color==="primary")("mat-accent",t._color==="accent")("mat-warn",t._color==="warn"),p("id",t.id)("@panelAnimation",t.isOpen?"visible":"hidden"),ie("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby(r))}}var eG=ui("panelAnimation",[Lt("void, hidden",Me({opacity:0,transform:"scaleY(0.8)"})),St(":enter, hidden => visible",[I1([Mt("0.03s linear",Me({opacity:1})),Mt("0.12s cubic-bezier(0, 0, 0.2, 1)",Me({transform:"scaleY(1)"}))])]),St(":leave, visible => hidden",[Mt("0.075s linear",Me({opacity:0}))])]),tG=0,lw=class{constructor(e,r){this.source=e,this.option=r}},dA=new R("mat-autocomplete-default-options",{providedIn:"root",factory:iG});function iG(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1}}var Kl=(()=>{let e=class e{get isOpen(){return this._isOpen&&this.showPanel}_setColor(t){this._color=t,this._changeDetectorRef.markForCheck()}set classList(t){this._classList=t,this._elementRef.nativeElement.className=""}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(t){this._hideSingleSelectionIndicator=t,this._syncParentProperties()}_syncParentProperties(){if(this.options)for(let t of this.options)t._changeDetectorRef.markForCheck()}constructor(t,n,o,a){this._changeDetectorRef=t,this._elementRef=n,this._defaults=o,this._activeOptionChanges=ve.EMPTY,this._animationDone=new T,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new T,this.opened=new T,this.closed=new T,this.optionActivated=new T,this.id=`mat-autocomplete-${tG++}`,this.inertGroups=a?.SAFARI||!1,this.autoActiveFirstOption=!!o.autoActiveFirstOption,this.autoSelectActiveOption=!!o.autoSelectActiveOption,this.requireSelection=!!o.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new Rl(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(t=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[t]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe(),this._animationDone.complete()}_setScrollTop(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(t){let n=new lw(this,t);this.optionSelected.emit(n)}_getPanelAriaLabelledby(t){if(this.ariaLabel)return null;let n=t?t+" ":"";return this.ariaLabelledby?n+this.ariaLabelledby:t}_skipPredicate(){return!1}};e.\u0275fac=function(n){return new(n||e)(m(he),m(q),m(dA),m(Ve))},e.\u0275cmp=E({type:e,selectors:[["mat-autocomplete"]],contentQueries:function(n,o,a){if(n&1&&(Be(a,nt,5),Be(a,kd,5)),n&2){let s;Q(s=K())&&(o.options=s),Q(s=K())&&(o.optionGroups=s)}},viewQuery:function(n,o){if(n&1&&(ce(dt,7),ce(ZW,5)),n&2){let a;Q(a=K())&&(o.template=a.first),Q(a=K())&&(o.panel=a.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",Y],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",Y],requireSelection:[2,"requireSelection","requireSelection",Y],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",Y],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",Y]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],standalone:!0,features:[Ce([{provide:Td,useExisting:e}]),ge,re],ngContentSelectors:XW,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id"]],template:function(n,o){n&1&&(He(),x(0,JW,3,16,"ng-template"))},styles:["div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:static;border-radius:var(--mat-autocomplete-container-shape, var(--mat-app-corner-extra-small));box-shadow:var(--mat-autocomplete-container-elevation-shadow);background-color:var(--mat-autocomplete-background-color, var(--mat-app-surface-container))}.cdk-high-contrast-active div.mat-mdc-autocomplete-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden;pointer-events:none}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[eG]},changeDetection:0});let i=e;return i})();var nG={provide:vn,useExisting:Xt(()=>Cs),multi:!0};var uA=new R("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{let i=k(xt);return()=>i.scrollStrategies.reposition()}});function oG(i){return()=>i.scrollStrategies.reposition()}var rG={provide:uA,deps:[xt],useFactory:oG},Cs=(()=>{let e=class e{constructor(t,n,o,a,s,l,u,f,v,C,D){this._element=t,this._overlay=n,this._viewContainerRef=o,this._zone=a,this._changeDetectorRef=s,this._dir=u,this._formField=f,this._document=v,this._viewportRuler=C,this._defaults=D,this._componentDestroyed=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=ve.EMPTY,this._breakpointObserver=k(Al),this._handsetLandscapeSubscription=ve.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new G,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._initialized=new G,this._injector=k(Pe),this._aboveClass="mat-mdc-autocomplete-panel-above",this._overlayAttached=!1,this.optionSelections=Xn(()=>{let S=this.autocomplete?this.autocomplete.options:null;return S?S.changes.pipe(Rt(S),Tt(()=>wt(...S.map(P=>P.onSelectionChange)))):this._initialized.pipe(Tt(()=>this.optionSelections))}),this._handlePanelKeydown=S=>{(S.keyCode===27&&!Pt(S)||S.keyCode===38&&Pt(S,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),S.stopPropagation(),S.preventDefault())},this._trackedModal=null,this._scrollStrategy=l}ngAfterViewInit(){this._initialized.next(),this._initialized.complete();let t=this._getWindow();typeof t<"u"&&this._zone.runOutsideAngular(()=>t.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){let t=this._getWindow();typeof t<"u"&&t.removeEventListener("blur",this._windowBlurHandler),this._handsetLandscapeSubscription.unsubscribe(),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._openPanelInternal()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._latestOpeningTrigger===this&&(this.autocomplete._isOpen=!1,this.autocomplete._latestOpeningTrigger=null),this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal&&va(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return wt(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Ye(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Ye(()=>this._overlayAttached)):oe()).pipe(ue(t=>t instanceof Md?t:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return wt(dn(this._document,"click"),dn(this._document,"auxclick"),dn(this._document,"touchend")).pipe(Ye(t=>{let n=mn(t),o=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,a=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&n!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!o||!o.contains(n))&&(!a||!a.contains(n))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(n)}))}writeValue(t){Promise.resolve(null).then(()=>this._assignOptionValue(t))}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this._element.nativeElement.disabled=t}_handleKeydown(t){let n=t.keyCode,o=Pt(t);if(n===27&&!o&&t.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&n===13&&this.panelOpen&&!o)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){let a=this.autocomplete._keyManager.activeItem,s=n===38||n===40;n===9||s&&!o&&this.panelOpen?this.autocomplete._keyManager.onKeydown(t):s&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(s||this.autocomplete._keyManager.activeItem!==a)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._valueOnLastKeydown),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(t){let n=t.target,o=n.value;if(n.type==="number"&&(o=o==""?null:parseFloat(o)),this._previousValue!==o){if(this._previousValue=o,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(o),!o)this._clearPreviousSelectedOption(null,!1);else if(this.panelOpen&&!this.autocomplete.requireSelection){let a=this.autocomplete.options?.find(s=>s.selected);if(a){let s=this._getDisplayValue(a.value);o!==s&&a.deselect(!1)}}if(this._canOpen()&&this._document.activeElement===t.target){let a=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(a)}}}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(this._previousValue),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this._openPanelInternal()}_floatLabel(t=!1){this._formField&&this._formField.floatLabel==="auto"&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){let t=new Re(o=>{ai(()=>{o.next()},{injector:this._injector})}),n=this.autocomplete.options.changes.pipe(Ht(()=>this._positionStrategy.reapplyLastPosition()),Qr(0));return wt(t,n).pipe(Tt(()=>this._zone.run(()=>{let o=this.panelOpen;return this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),o!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit()),this.panelClosingActions})),Ot(1)).subscribe(o=>this._setValueAndClose(o))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(t){let n=this.autocomplete;return n&&n.displayWith?n.displayWith(t):t}_assignOptionValue(t){let n=this._getDisplayValue(t);t==null&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(n??"")}_updateNativeInputValue(t){this._formField?this._formField._control.value=t:this._element.nativeElement.value=t,this._previousValue=t}_setValueAndClose(t){let n=this.autocomplete,o=t?t.source:this._pendingAutoselectedOption;o?(this._clearPreviousSelectedOption(o),this._assignOptionValue(o.value),this._onChange(o.value),n._emitSelectEvent(o),this._element.nativeElement.focus()):n.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),n._animationDone?n._animationDone.pipe(Ot(1)).subscribe(()=>this._onChange(null)):this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(t,n){this.autocomplete?.options?.forEach(o=>{o!==t&&o.selected&&o.deselect(n)})}_openPanelInternal(t=this._element.nativeElement.value){if(this._attachOverlay(t),this._floatLabel(),this._trackedModal){let n=this.autocomplete.id;Nl(this._trackedModal,"aria-owns",n)}}_attachOverlay(t){this.autocomplete;let n=this._overlayRef;n?(this._positionStrategy.setOrigin(this._getConnectedElement()),n.updateSize({width:this._getPanelWidth()})):(this._portal=new Oi(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),n=this._overlay.create(this._getOverlayConfig()),this._overlayRef=n,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&n&&n.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(np.HandsetLandscape).subscribe(a=>{a.matches?this._positionStrategy.withFlexibleDimensions(!0).withGrowAfterOpen(!0).withViewportMargin(8):this._positionStrategy.withFlexibleDimensions(!1).withGrowAfterOpen(!1).withViewportMargin(0)})),n&&!n.hasAttached()&&(n.attach(this._portal),this._valueOnAttach=t,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());let o=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._latestOpeningTrigger=this,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&o!==this.panelOpen&&this._emitOpened()}_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){let t=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=t.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=t.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new Mn({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){let t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}_setStrategyPositions(t){let n=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],o=this._aboveClass,a=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:o},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:o}],s;this.position==="above"?s=a:this.position==="below"?s=n:s=[...n,...a],t.withPositions(s)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){let t=this.autocomplete;if(t.autoActiveFirstOption){let n=-1;for(let o=0;o .cdk-overlay-container [aria-modal="true"]');if(!t)return;let n=this.autocomplete.id;this._trackedModal&&va(this._trackedModal,"aria-owns",n),Nl(t,"aria-owns",n),this._trackedModal=t}_clearFromModal(){if(this._trackedModal){let t=this.autocomplete.id;va(this._trackedModal,"aria-owns",t),this._trackedModal=null}}};e.\u0275fac=function(n){return new(n||e)(m(q),m(xt),m(Ct),m(Z),m(he),m(uA),m(Nt,8),m(Ro,9),m(se,8),m(fn),m(dA,8))},e.\u0275dir=L({type:e,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(n,o){n&1&&b("focusin",function(){return o._handleFocus()})("blur",function(){return o._onTouched()})("input",function(s){return o._handleInput(s)})("keydown",function(s){return o._handleKeydown(s)})("click",function(){return o._handleClick()}),n&2&&ie("autocomplete",o.autocompleteAttribute)("role",o.autocompleteDisabled?null:"combobox")("aria-autocomplete",o.autocompleteDisabled?null:"list")("aria-activedescendant",o.panelOpen&&o.activeOption?o.activeOption.id:null)("aria-expanded",o.autocompleteDisabled?null:o.panelOpen.toString())("aria-controls",o.autocompleteDisabled||!o.panelOpen||o.autocomplete==null?null:o.autocomplete.id)("aria-haspopup",o.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[0,"matAutocomplete","autocomplete"],position:[0,"matAutocompletePosition","position"],connectedTo:[0,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[0,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[2,"matAutocompleteDisabled","autocompleteDisabled",Y]},exportAs:["matAutocompleteTrigger"],standalone:!0,features:[Ce([nG]),ge,Qe]});let i=e;return i})(),hA=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({providers:[rG],imports:[an,jl,pe,Ei,so,jl,pe]});let i=e;return i})();function aG(i,e){if(i&1&&(c(0,"div")(1,"uds-translate"),g(2,"Edit user"),d(),g(3),d()),i&2){let r=_();h(3),F(" ",r.user.name," ")}}function sG(i,e){i&1&&(c(0,"uds-translate"),g(1,"New user"),d())}function lG(i,e){if(i&1){let r=A();c(0,"mat-form-field")(1,"mat-label"),g(2),d(),c(3,"input",19),H("ngModelChange",function(n){y(r);let o=_();return $(o.user.name,n)||(o.user.name=n),w(n)}),d()()}if(i&2){let r=_();h(2),F(" ",r.authenticator.type_info.label_username," "),h(),U("ngModel",r.user.name),p("disabled",r.user.id)}}function cG(i,e){if(i&1&&(c(0,"mat-option",21),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),h(),Ir(" ",r.id," (",r.name,") ")}}function dG(i,e){if(i&1){let r=A();c(0,"mat-form-field")(1,"mat-label"),g(2),d(),c(3,"input",20),H("ngModelChange",function(n){y(r);let o=_();return $(o.user.name,n)||(o.user.name=n),w(n)}),b("input",function(n){y(r);let o=_();return w(o.filterUser(n))}),d(),c(4,"mat-autocomplete",null,1),x(6,cG,2,3,"mat-option",16),d()()}if(i&2){let r=we(5),t=_();h(2),F(" ",t.authenticator.type_info.label_username," "),h(),U("ngModel",t.user.name),p("matAutocomplete",r),h(3),p("ngForOf",t.users)}}function uG(i,e){if(i&1){let r=A();c(0,"mat-form-field")(1,"mat-label"),g(2),d(),c(3,"input",22),H("ngModelChange",function(n){y(r);let o=_();return $(o.user.password,n)||(o.user.password=n),w(n)}),d()()}if(i&2){let r=_();h(2),F(" ",r.authenticator.type_info.label_password," "),h(),U("ngModel",r.user.password)}}function hG(i,e){if(i&1){let r=A();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),g(3,"MFA"),d()(),c(4,"input",23),H("ngModelChange",function(n){y(r);let o=_();return $(o.user.mfa_data,n)||(o.user.mfa_data=n),w(n)}),d()()}if(i&2){let r=_();h(4),U("ngModel",r.user.mfa_data)}}function mG(i,e){if(i&1&&(c(0,"mat-option",21),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),h(),F(" ",r.name," ")}}var dw=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.groups=[],this.onSave=new T(!0),this.users=[],this.authenticator=a.authenticator,this.user={id:void 0,name:"",real_name:"",comments:"",state:"A",is_admin:!1,staff_member:!1,password:"",role:"user",mfa:"",groups:[]},a.user!==void 0&&(this.user.id=a.user.id,this.user.name=a.user.name)}static launch(t,n,o){let a=window.innerWidth<800?"60%":"40%";return t.gui.dialog.open(e,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:n,user:o},disableClose:!1}).componentInstance.onSave}ngOnInit(){this.rest.authenticators.detail(this.authenticator.id,"groups").overview().then(t=>{this.groups=t}),this.user.id&&this.rest.authenticators.detail(this.authenticator.id,"users").get(this.user.id).then(t=>{this.user=t,this.user.role=t.is_admin?"admin":t.staff_member?"staff":"user"},t=>{this.dialogRef.close()})}roleChanged(t){this.user.is_admin=t==="admin",this.user.staff_member=t==="admin"||t==="staff"}filterUser(t){let n=t.target.value;this.rest.authenticators.search(this.authenticator.id,"user",n,100).then(o=>{this.users.length=0,o.forEach(a=>{this.users.push(a)})})}save(){this.rest.authenticators.detail(this.authenticator.id,"users").save(this.user).then(t=>{this.dialogRef.close(),this.onSave.emit(!0)})}};e.\u0275fac=function(n){return new(n||e)(m(B),m(X),m(Ne),m(Ke))},e.\u0275cmp=E({type:e,selectors:[["uds-new-user"]],decls:58,vars:12,consts:[["nousertitle",""],["auto","matAutocomplete"],["mat-dialog-title",""],[4,"ngIf","ngIfElse"],[1,"content"],[4,"ngIf"],["type","text","matInput","","autocomplete","new-real_name",3,"ngModelChange","ngModel"],["type","text","matInput","","autocomplete","new-comments",3,"ngModelChange","ngModel"],[3,"ngModelChange","ngModel"],["value","A"],["value","I"],[3,"ngModelChange","valueChange","ngModel"],["value","admin"],["value","staff"],["value","user"],["multiple","",3,"ngModelChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],["type","text","matInput","","autocomplete","new-username",3,"ngModelChange","ngModel","disabled"],["type","text","aria-label","Number","matInput","",3,"ngModelChange","input","ngModel","matAutocomplete"],[3,"value"],["type","password","matInput","","autocomplete","new-password",3,"ngModelChange","ngModel"],["type","text","matInput","",3,"ngModelChange","ngModel"]],template:function(n,o){if(n&1){let a=A();c(0,"h4",2),x(1,aG,4,1,"div",3)(2,sG,2,0,"ng-template",null,0,fi),d(),c(4,"mat-dialog-content")(5,"div",4),x(6,lG,4,3,"mat-form-field",5)(7,dG,7,4,"mat-form-field",5),c(8,"mat-form-field")(9,"mat-label")(10,"uds-translate"),g(11,"Real name"),d()(),c(12,"input",6),H("ngModelChange",function(l){return y(a),$(o.user.real_name,l)||(o.user.real_name=l),w(l)}),d()(),c(13,"mat-form-field")(14,"mat-label")(15,"uds-translate"),g(16,"Comments"),d()(),c(17,"input",7),H("ngModelChange",function(l){return y(a),$(o.user.comments,l)||(o.user.comments=l),w(l)}),d()(),c(18,"mat-form-field")(19,"mat-label")(20,"uds-translate"),g(21,"State"),d()(),c(22,"mat-select",8),H("ngModelChange",function(l){return y(a),$(o.user.state,l)||(o.user.state=l),w(l)}),c(23,"mat-option",9)(24,"uds-translate"),g(25,"Enabled"),d()(),c(26,"mat-option",10)(27,"uds-translate"),g(28,"Disabled"),d()()()(),c(29,"mat-form-field")(30,"mat-label")(31,"uds-translate"),g(32,"Role"),d()(),c(33,"mat-select",11),H("ngModelChange",function(l){return y(a),$(o.user.role,l)||(o.user.role=l),w(l)}),b("valueChange",function(l){return y(a),w(o.roleChanged(l))}),c(34,"mat-option",12)(35,"uds-translate"),g(36,"Admin"),d()(),c(37,"mat-option",13)(38,"uds-translate"),g(39,"Staff member"),d()(),c(40,"mat-option",14)(41,"uds-translate"),g(42,"User"),d()()()(),x(43,uG,4,2,"mat-form-field",5)(44,hG,5,1,"mat-form-field",5),c(45,"mat-form-field")(46,"mat-label")(47,"uds-translate"),g(48,"Groups"),d()(),c(49,"mat-select",15),H("ngModelChange",function(l){return y(a),$(o.user.groups,l)||(o.user.groups=l),w(l)}),x(50,mG,2,2,"mat-option",16),d()()()(),c(51,"mat-dialog-actions")(52,"button",17)(53,"uds-translate"),g(54,"Cancel"),d()(),c(55,"button",18),b("click",function(){return y(a),w(o.save())}),c(56,"uds-translate"),g(57,"Ok"),d()()()}if(n&2){let a=we(3);h(),p("ngIf",o.user.id)("ngIfElse",a),h(5),p("ngIf",o.authenticator.type_info.search_users_supported===!1||o.user.id),h(),p("ngIf",o.authenticator.type_info.search_users_supported===!0&&!o.user.id),h(5),U("ngModel",o.user.real_name),h(5),U("ngModel",o.user.comments),h(5),U("ngModel",o.user.state),h(11),U("ngModel",o.user.role),h(10),p("ngIf",o.authenticator.type_info.needs_password),h(),p("ngIf",!o.authenticator.type_info.is_external),h(5),U("ngModel",o.user.groups),h(),p("ngForOf",o.groups)}},dependencies:[We,me,lt,xe,Se,ke,Qt,Je,tt,et,_e,Ae,ft,bt,nt,Kl,Cs,le],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]});let i=e;return i})();function pG(i,e){if(i&1&&(c(0,"div")(1,"uds-translate"),g(2,"Edit group"),d(),g(3),d()),i&2){let r=_();h(3),F(" ",r.group.name," ")}}function fG(i,e){i&1&&(c(0,"uds-translate"),g(1,"New group"),d())}function gG(i,e){if(i&1){let r=A();c(0,"mat-form-field")(1,"mat-label"),g(2),d(),c(3,"input",14),H("ngModelChange",function(n){y(r);let o=_(2);return $(o.group.name,n)||(o.group.name=n),w(n)}),d()()}if(i&2){let r=_(2);h(2),F(" ",r.authenticator.type_info.label_groupname," "),h(),U("ngModel",r.group.name),p("disabled",r.group.id)}}function _G(i,e){if(i&1&&(c(0,"mat-option",17),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),h(),Ir(" ",r.id," (",r.name,") ")}}function vG(i,e){if(i&1){let r=A();c(0,"mat-form-field")(1,"mat-label"),g(2),d(),c(3,"input",15),H("ngModelChange",function(n){y(r);let o=_(2);return $(o.group.name,n)||(o.group.name=n),w(n)}),b("input",function(n){y(r);let o=_(2);return w(o.filterGroup(n))}),d(),c(4,"mat-autocomplete",null,3),x(6,_G,2,3,"mat-option",16),d()()}if(i&2){let r=we(5),t=_(2);h(2),F(" ",t.authenticator.type_info.label_groupname," "),h(),U("ngModel",t.group.name),p("matAutocomplete",r),h(3),p("ngForOf",t.fltrGroup)}}function bG(i,e){if(i&1&&(mt(0),x(1,gG,4,3,"mat-form-field",13)(2,vG,7,4,"mat-form-field",13),pt()),i&2){let r=_();h(),p("ngIf",r.authenticator.type_info.search_groups_supported===!1||r.group.id),h(),p("ngIf",r.authenticator.type_info.search_groups_supported===!0&&!r.group.id)}}function yG(i,e){if(i&1){let r=A();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),g(3,"Meta group name"),d()(),c(4,"input",14),H("ngModelChange",function(n){y(r);let o=_();return $(o.group.name,n)||(o.group.name=n),w(n)}),d()()}if(i&2){let r=_();h(4),U("ngModel",r.group.name),p("disabled",r.group.id)}}function wG(i,e){if(i&1&&(c(0,"mat-option",17),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),h(),F(" ",r.name," ")}}function CG(i,e){if(i&1){let r=A();mt(0),c(1,"mat-form-field")(2,"mat-label")(3,"uds-translate"),g(4,"Service Pools"),d()(),c(5,"mat-select",18),H("ngModelChange",function(n){y(r);let o=_();return $(o.group.pools,n)||(o.group.pools=n),w(n)}),x(6,wG,2,2,"mat-option",16),d()(),pt()}if(i&2){let r=_();h(5),U("ngModel",r.group.pools),h(),p("ngForOf",r.servicePools)}}function xG(i,e){if(i&1&&(c(0,"mat-option",17),g(1),d()),i&2){let r=_().$implicit;p("value",r.id),h(),F(" ",r.name," ")}}function DG(i,e){if(i&1&&(mt(0),x(1,xG,2,2,"mat-option",20),pt()),i&2){let r=e.$implicit;h(),p("ngIf",r.type==="group")}}function SG(i,e){if(i&1){let r=A();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),g(3,"Match mode"),d()(),c(4,"mat-select",8),H("ngModelChange",function(n){y(r);let o=_();return $(o.group.meta_if_any,n)||(o.group.meta_if_any=n),w(n)}),c(5,"mat-option",17)(6,"uds-translate"),g(7,"Any group"),d()(),c(8,"mat-option",17)(9,"uds-translate"),g(10,"All groups"),d()()()(),c(11,"mat-form-field")(12,"mat-label")(13,"uds-translate"),g(14,"Selected Groups"),d()(),c(15,"mat-select",18),H("ngModelChange",function(n){y(r);let o=_();return $(o.group.groups,n)||(o.group.groups=n),w(n)}),x(16,DG,2,1,"ng-container",19),d()()}if(i&2){let r=_();h(4),U("ngModel",r.group.meta_if_any),h(),p("value",!0),h(3),p("value",!1),h(7),U("ngModel",r.group.groups),h(),p("ngForOf",r.groups)}}var uw=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.onSave=new T(!0),this.servicePools=[],this.groups=[],this.fltrGroup=[],this.authenticator=a.authenticator,this.group={id:void 0,type:a.groupType,name:"",comments:"",meta_if_any:!1,skip_mfa:"I",state:"A",groups:[],pools:[]},a.group!==void 0&&(this.group.id=a.group.id,this.group.type=a.group.type,this.group.name=a.group.name)}static launch(t,n,o,a){let s=window.innerWidth<800?"60%":"40%";return t.gui.dialog.open(e,{width:s,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:n,groupType:o,group:a},disableClose:!0}).componentInstance.onSave}ngOnInit(){let t=this.rest.authenticators.detail(this.authenticator.id,"groups");this.group.id!==void 0&&t.get(this.group.id).then(n=>{this.group=n},n=>{this.dialogRef.close()}),this.group.type==="meta"?t.summary().then(n=>this.groups=n):this.rest.servicesPools.summary().then(n=>this.servicePools=n)}filterGroup(t){let n=t.target.value;this.rest.authenticators.search(this.authenticator.id,"group",n,100).then(o=>{this.fltrGroup.length=0,o.forEach(a=>{this.fltrGroup.push(a)})})}getMatchValue(){return django.gettext("Match mode")+this.group.meta_if_any?django.gettext("Any"):django.gettext("All")}save(){this.rest.authenticators.detail(this.authenticator.id,"groups").save(this.group).then(t=>{this.dialogRef.close(),this.onSave.emit(!0)})}};e.\u0275fac=function(n){return new(n||e)(m(B),m(X),m(Ne),m(Ke))},e.\u0275cmp=E({type:e,selectors:[["uds-new-group"]],decls:46,vars:9,consts:[["nousertitle",""],["metafirst",""],["metasecond",""],["auto","matAutocomplete"],["mat-dialog-title",""],[4,"ngIf","ngIfElse"],[1,"content"],["type","text","matInput","",3,"ngModelChange","ngModel"],[3,"ngModelChange","ngModel"],["value","A"],["value","I"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[4,"ngIf"],["type","text","matInput","",3,"ngModelChange","ngModel","disabled"],["type","text","aria-label","Number","matInput","",3,"ngModelChange","input","ngModel","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["multiple","",3,"ngModelChange","ngModel"],[4,"ngFor","ngForOf"],[3,"value",4,"ngIf"]],template:function(n,o){if(n&1){let a=A();c(0,"h4",4),x(1,pG,4,1,"div",5)(2,fG,2,0,"ng-template",null,0,fi),d(),c(4,"mat-dialog-content")(5,"div",6),x(6,bG,3,2,"ng-container",5)(7,yG,5,2,"ng-template",null,1,fi),c(9,"mat-form-field")(10,"mat-label")(11,"uds-translate"),g(12,"Comments"),d()(),c(13,"input",7),H("ngModelChange",function(l){return y(a),$(o.group.comments,l)||(o.group.comments=l),w(l)}),d()(),c(14,"mat-form-field")(15,"mat-label")(16,"uds-translate"),g(17,"State"),d()(),c(18,"mat-select",8),H("ngModelChange",function(l){return y(a),$(o.group.state,l)||(o.group.state=l),w(l)}),c(19,"mat-option",9)(20,"uds-translate"),g(21,"Enabled"),d()(),c(22,"mat-option",10)(23,"uds-translate"),g(24,"Disabled"),d()()()(),c(25,"mat-form-field")(26,"mat-label")(27,"uds-translate"),g(28,"Skip MFA"),d()(),c(29,"mat-select",8),H("ngModelChange",function(l){return y(a),$(o.group.skip_mfa,l)||(o.group.skip_mfa=l),w(l)}),c(30,"mat-option",9)(31,"uds-translate"),g(32,"Enabled"),d()(),c(33,"mat-option",10)(34,"uds-translate"),g(35,"Disabled"),d()()()(),x(36,CG,7,2,"ng-container",5)(37,SG,17,5,"ng-template",null,2,fi),d()(),c(39,"mat-dialog-actions")(40,"button",11)(41,"uds-translate"),g(42,"Cancel"),d()(),c(43,"button",12),b("click",function(){return y(a),w(o.save())}),c(44,"uds-translate"),g(45,"Ok"),d()()()}if(n&2){let a=we(3),s=we(8),l=we(38);h(),p("ngIf",o.group.id)("ngIfElse",a),h(5),p("ngIf",o.group.type==="group")("ngIfElse",s),h(7),U("ngModel",o.group.comments),h(5),U("ngModel",o.group.state),h(11),U("ngModel",o.group.skip_mfa),h(7),p("ngIf",o.group.type==="group")("ngIfElse",l)}},dependencies:[We,me,lt,xe,Se,ke,Qt,Je,tt,et,_e,Ae,ft,bt,nt,Kl,Cs,le],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}.label-match[_ngcontent-%COMP%]{color:#0009;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:0px 0px;white-space:nowrap}"]});let i=e;return i})();function EG(i,e){i&1&&(c(0,"uds-translate"),g(1,"Groups"),d())}function IG(i,e){if(i&1&&(c(0,"mat-tab"),x(1,EG,2,0,"ng-template",2),I(2,"uds-table",6),d()),i&2){let r=_();h(2),p("rest",r.group)("pageSize",6)}}function MG(i,e){i&1&&(c(0,"uds-translate"),g(1,"Services Pools"),d())}function TG(i,e){if(i&1&&(c(0,"mat-tab"),x(1,MG,2,0,"ng-template",2),I(2,"uds-table",6),d()),i&2){let r=_();h(2),p("rest",r.servicesPools)("pageSize",6)}}function kG(i,e){i&1&&(c(0,"uds-translate"),g(1,"Assigned Services"),d())}function AG(i,e){if(i&1&&(c(0,"mat-tab"),x(1,kG,2,0,"ng-template",2),I(2,"uds-table",6),d()),i&2){let r=_();h(2),p("rest",r.userServices)("pageSize",6)}}function OG(i,e){i&1&&(c(0,"uds-translate"),g(1,"Logs"),d())}var RG=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],PG=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],FG=[{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")}],mA=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.group={},this.servicesPools={},this.userServices={},this.users=a.users,this.user=a.user}static launch(t,n,o){let a=window.innerWidth<800?"80%":"60%",s=t.gui.dialog.open(e,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{users:n,user:o},disableClose:!1})}ngOnInit(){return W(this,null,function*(){let t=()=>W(this,null,function*(){let a=yield this.rest.authenticators.detail(this.users.parentId,"users").get(this.user.id);return(yield this.rest.authenticators.detail(this.users.parentId,"groups").overview()).filter(l=>a.groups.includes(l.id))}),n=()=>W(this,null,function*(){return this.users.invoke(this.user.id+"/servicesPools")}),o=()=>W(this,null,function*(){return(yield this.users.invoke(this.user.id+"/userServices")).map(s=>(s.in_use=this.api.boolAsHumanString(s.in_use),s))});this.group=new mo(django.gettext("Groups"),t,RG,this.user.id+"infogrp"),this.servicesPools=new mo(django.gettext("Services Pools"),n,PG,this.user.id+"infopool"),this.userServices=new mo(django.gettext("Assigned services"),o,FG,this.user.id+"userservpool")})}};e.\u0275fac=function(n){return new(n||e)(m(B),m(X),m(Ne),m(Ke))},e.\u0275cmp=E({type:e,selectors:[["uds-user-information"]],decls:20,vars:14,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-tab-label",""],[1,"content"],[3,"rest","itemId","tableId","pageSize"],["mat-raised-button","","mat-dialog-close","","color","primary"],[3,"rest","pageSize"]],template:function(n,o){n&1&&(c(0,"h4",0)(1,"uds-translate"),g(2,"Information for"),d(),g(3),d(),c(4,"mat-dialog-content")(5,"mat-tab-group"),x(6,IG,3,2,"mat-tab",1),_t(7,"notEmpty"),x(8,TG,3,2,"mat-tab",1),_t(9,"notEmpty"),x(10,AG,3,2,"mat-tab",1),_t(11,"notEmpty"),c(12,"mat-tab"),x(13,OG,2,0,"ng-template",2),c(14,"div",3),I(15,"uds-logs-table",4),d()()()(),c(16,"mat-dialog-actions")(17,"button",5)(18,"uds-translate"),g(19,"Ok"),d()()()),n&2&&(h(3),F(" ",o.user.name,` +`),h(3),p("ngIf",Dt(7,8,o.group)),h(2),p("ngIf",Dt(9,10,o.servicesPools)),h(2),p("ngIf",Dt(11,12,o.userServices)),h(5),p("rest",o.users)("itemId",o.user.id)("tableId","userInfo-d-log"+o.user.id)("pageSize",5))},dependencies:[me,ke,Qt,Je,tt,et,ei,ti,oi,le,Te,An,yi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]});let i=e;return i})();function NG(i,e){i&1&&(c(0,"uds-translate"),g(1,"Services Pools"),d())}function LG(i,e){if(i&1&&(c(0,"mat-tab"),x(1,NG,2,0,"ng-template",3),I(2,"uds-table",4),d()),i&2){let r=_();h(2),p("rest",r.servicesPools)("pageSize",6)}}function VG(i,e){i&1&&(c(0,"uds-translate"),g(1,"Users"),d())}function jG(i,e){if(i&1&&(c(0,"mat-tab"),x(1,VG,2,0,"ng-template",3),I(2,"uds-table",4),d()),i&2){let r=_();h(2),p("rest",r.users)("pageSize",6)}}function BG(i,e){i&1&&(c(0,"uds-translate"),g(1,"Groups"),d())}function zG(i,e){if(i&1&&(c(0,"mat-tab"),x(1,BG,2,0,"ng-template",3),I(2,"uds-table",4),d()),i&2){let r=_();h(2),p("rest",r.groups)("pageSize",6)}}var UG=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],HG=[{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:gi.DATETIME}],$G=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],pA=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.data=a,this.users={},this.groups={},this.servicesPools={}}static launch(t,n,o){let a=window.innerWidth<800?"80%":"60%",s=t.gui.dialog.open(e,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{group:o,groups:n},disableClose:!1})}ngOnInit(){let t=this.rest.authenticators.detail(this.data.groups.parentId,"groups"),n=()=>t.invoke(this.data.group.id+"/servicesPools"),o=()=>t.invoke(this.data.group.id+"/users").then(a=>a.map(s=>(s.state=s.state==="A"?django.gettext("Enabled"):s.state==="I"?django.gettext("Disabled"):django.gettext("Blocked"),s)));if(this.servicesPools=new mo(django.gettext("Service pools"),n,UG,this.data.group.id+"infopls"),this.users=new mo(django.gettext("Users"),o,HG,this.data.group.id+"infousr"),this.data.group.type==="meta"){let a=()=>t.overview().then(s=>s.filter(l=>this.data.group.groups.includes(l.id)));this.groups=new mo(django.gettext("Groups"),a,$G,this.data.group.id+"infogrps")}}};e.\u0275fac=function(n){return new(n||e)(m(B),m(X),m(Ne),m(Ke))},e.\u0275cmp=E({type:e,selectors:[["uds-group-information"]],decls:15,vars:9,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","primary"],["mat-tab-label",""],[3,"rest","pageSize"]],template:function(n,o){n&1&&(c(0,"h4",0)(1,"uds-translate"),g(2,"Information for"),d()(),c(3,"mat-dialog-content")(4,"mat-tab-group"),x(5,LG,3,2,"mat-tab",1),_t(6,"notEmpty"),x(7,jG,3,2,"mat-tab",1),_t(8,"notEmpty"),x(9,zG,3,2,"mat-tab",1),_t(10,"notEmpty"),d()(),c(11,"mat-dialog-actions")(12,"button",2)(13,"uds-translate"),g(14,"Ok"),d()()()),n&2&&(h(5),p("ngIf",Dt(6,3,o.servicesPools)),h(2),p("ngIf",Dt(8,5,o.users)),h(2),p("ngIf",Dt(10,7,o.groups)))},dependencies:[me,ke,Qt,Je,tt,et,ei,ti,oi,le,Te,yi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]});let i=e;return i})();var WG=i=>["/authenticators",i];function GG(i,e){i&1&&(c(0,"uds-translate"),g(1,"Summary"),d())}function qG(i,e){if(i&1&&I(0,"uds-information",16),i&2){let r=_(2);p("value",r.authenticator)("gui",r.gui)}}function YG(i,e){i&1&&(c(0,"uds-translate"),g(1,"Users"),d())}function QG(i,e){if(i&1){let r=A();c(0,"uds-table",17),b("loaded",function(n){y(r);let o=_(2);return w(o.onLoad(n))})("newAction",function(n){y(r);let o=_(2);return w(o.onNewUser(n))})("editAction",function(n){y(r);let o=_(2);return w(o.onEditUser(n))})("deleteAction",function(n){y(r);let o=_(2);return w(o.onDeleteUser(n))})("customButtonAction",function(n){y(r);let o=_(2);return w(o.onUserCustom(n))}),d()}if(i&2){let r=_(2);p("rest",r.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+r.authenticator.id)("customButtons",r.usersCustomButtons)("pageSize",r.api.config.admin.page_size)}}function KG(i,e){if(i&1){let r=A();c(0,"uds-table",18),b("loaded",function(n){y(r);let o=_(2);return w(o.onLoad(n))})("editAction",function(n){y(r);let o=_(2);return w(o.onEditUser(n))})("deleteAction",function(n){y(r);let o=_(2);return w(o.onDeleteUser(n))})("customButtonAction",function(n){y(r);let o=_(2);return w(o.onUserCustom(n))}),d()}if(i&2){let r=_(2);p("rest",r.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+r.authenticator.id)("customButtons",r.usersCustomButtons)("pageSize",r.api.config.admin.page_size)}}function ZG(i,e){i&1&&(c(0,"uds-translate"),g(1,"Groups"),d())}function XG(i,e){i&1&&(c(0,"uds-translate"),g(1,"Logs"),d())}function JG(i,e){if(i&1){let r=A();c(0,"div",6)(1,"div",7)(2,"mat-tab-group",8),H("selectedIndexChange",function(n){y(r);let o=_();return $(o.selectedTab,n)||(o.selectedTab=n),w(n)}),c(3,"mat-tab"),x(4,GG,2,0,"ng-template",9),c(5,"div",10),x(6,qG,1,2,"uds-information",11),_t(7,"notEmpty"),d()(),c(8,"mat-tab"),x(9,YG,2,0,"ng-template",9),c(10,"div",10),x(11,QG,1,6,"uds-table",12)(12,KG,1,6,"uds-table",13),d()(),c(13,"mat-tab"),x(14,ZG,2,0,"ng-template",9),c(15,"div",10)(16,"uds-table",14),b("loaded",function(n){y(r);let o=_();return w(o.onLoad(n))})("newAction",function(n){y(r);let o=_();return w(o.onNewGroup(n))})("editAction",function(n){y(r);let o=_();return w(o.onEditGroup(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteGroup(n))})("customButtonAction",function(n){y(r);let o=_();return w(o.onGroupInformation(n))}),d()()(),c(17,"mat-tab"),x(18,XG,2,0,"ng-template",9),c(19,"div",10),I(20,"uds-logs-table",15),d()()()()()}if(i&2){let r=_();h(2),U("selectedIndex",r.selectedTab),p("@.disabled",!0),h(4),p("ngIf",Dt(7,14,r.gui)),h(5),p("ngIf",r.authenticator.type_info.create_users_supported),h(),p("ngIf",!r.authenticator.type_info.create_users_supported),h(4),p("rest",r.groups)("multiSelect",!0)("allowExport",!0)("customButtons",r.groupsCustomButtons)("tableId","authenticators-d-groups"+r.authenticator.id)("pageSize",r.api.config.admin.page_size),h(4),p("rest",r.rest.authenticators)("itemId",r.authenticator.id)("tableId","authenticators-d-log"+r.authenticator.id)}}var Jf=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o,this.groupsCustomButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:ct.ONLY_MENU}],this.usersCustomButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:ct.ONLY_MENU},{id:"clean-related",html:'clear_all '+django.gettext("Clean related (mfa,...)")+"",type:ct.ONLY_MENU},{id:"enable-client-logging",html:'assignment '+django.gettext("Enable client logging")+"",type:ct.ONLY_MENU}],this.authenticator=null,this.gui=[],this.users={},this.groups={},this.selectedTab=1,this.selectedTab=this.route.snapshot.paramMap.get("group")?2:1}ngOnInit(){let t=this.route.snapshot.paramMap.get("authenticator");t&&(this.users=this.rest.authenticators.detail(t,"users"),this.groups=this.rest.authenticators.detail(t,"groups"),this.rest.authenticators.get(t).then(n=>{this.authenticator=n,this.rest.authenticators.gui(n.type).then(o=>{this.gui=o})}))}onLoad(t){if(t.param===!0){let n=this.route.snapshot.paramMap.get("user"),o=this.route.snapshot.paramMap.get("group"),a=n||o;t.table.selectElement("id",a)}}processElement(t){t.maintenance_state=t.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onNewUser(t){dw.launch(this.api,this.authenticator).subscribe(n=>t.table.overview())}onEditUser(t){dw.launch(this.api,this.authenticator,t.table.selection.selected[0]).subscribe(n=>t.table.overview())}onDeleteUser(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete user"))}onNewGroup(t){uw.launch(this.api,this.authenticator,t.param.type).subscribe(n=>t.table.overview())}onEditGroup(t){uw.launch(this.api,this.authenticator,t.param.type,t.table.selection.selected[0]).subscribe(n=>t.table.overview())}onDeleteGroup(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete group"))}onUserCustom(t){return W(this,null,function*(){t.param.id==="info"?mA.launch(this.api,this.users,t.table.selection.selected[0]):t.param.id==="clean-related"?(yield this.api.gui.questionDialog(django.gettext("Clean data"),django.gettext("Clean related data (mfa, ...)?"),!0))&&(yield this.users.invoke(t.table.selection.selected[0].id+"/clean_related"),this.api.gui.snackbar.open(django.gettext("Related data cleaned"),django.gettext("dismiss"),{duration:2e3}),t.table.overview()):t.param.id==="enable-client-logging"&&(yield this.api.gui.questionDialog(django.gettext("Client logging"),django.gettext("Enable client logging for user?"),!0))&&(yield this.users.invoke(t.table.selection.selected[0].id+"/enable_client_logging"),this.api.gui.snackbar.open(django.gettext("Client logging enabled"),django.gettext("dismiss"),{duration:2e3}),t.table.overview())})}onGroupInformation(t){pA.launch(this.api,this.groups,t.table.selection.selected[0])}};e.\u0275fac=function(n){return new(n||e)(m(Oe),m(X),m(B))},e.\u0275cmp=E({type:e,selectors:[["uds-authenticators-detail"]],decls:10,vars:8,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,"selectedIndexChange","selectedIndex"],["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,"loaded","newAction","editAction","deleteAction","customButtonAction","rest","multiSelect","allowExport","customButtons","tableId","pageSize"],[3,"rest","itemId","tableId"],[3,"value","gui"],["icon","users",3,"loaded","newAction","editAction","deleteAction","customButtonAction","rest","multiSelect","allowExport","tableId","customButtons","pageSize"],["icon","users",3,"loaded","editAction","deleteAction","customButtonAction","rest","multiSelect","allowExport","tableId","customButtons","pageSize"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),g(4,"arrow_back"),d()(),g(5," \xA0"),I(6,"img",4),g(7),d(),x(8,JG,21,16,"div",5),_t(9,"notEmpty"),d()),n&2&&(h(2),p("routerLink",Bi(6,WG,o.authenticator?o.authenticator.id:"")),h(4),p("src",o.api.staticURL("admin/img/icons/services.png"),Ie),h(),F(" \xA0",o.authenticator==null?null:o.authenticator.name," "),h(),p("ngIf",Dt(9,4,o.authenticator)))},dependencies:[me,bi,ei,ti,oi,le,Te,An,po,yi]});let i=e;return i})();var hw=(()=>{let e=class e{constructor(t,n,o){this.api=t,this.route=n,this.rest=o}ngOnInit(){let t=this.route.snapshot.paramMap.get("osmanager")}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New OS Manager"),!1)}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit OS Manager"),!1)}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete OS Manager"))}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("osmanager"))}};e.\u0275fac=function(n){return new(n||e)(m(B),m(Oe),m(X))},e.\u0275cmp=E({type:e,selectors:[["uds-osmanagers"]],decls:2,vars:5,consts:[["icon","osmanagers",3,"newAction","editAction","deleteAction","loaded","rest","multiSelect","allowExport","hasPermissions","pageSize"]],template:function(n,o){n&1&&(c(0,"div")(1,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("loaded",function(s){return o.onLoad(s)}),d()()),n&2&&(h(),p("rest",o.rest.osManagers)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Te]});let i=e;return i})();var mw=(()=>{let e=class e{constructor(t,n,o){this.api=t,this.route=n,this.rest=o}ngOnInit(){let t=this.route.snapshot.paramMap.get("transport")}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New Transport"))}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit Transport"))}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete Transport"))}processElement(t){try{t.allowed_oss=t.allowed_oss.map(n=>n.id).join(", ")}catch{t.allowed_oss=""}}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("transport"))}};e.\u0275fac=function(n){return new(n||e)(m(B),m(Oe),m(X))},e.\u0275cmp=E({type:e,selectors:[["uds-transports"]],decls:2,vars:7,consts:[["icon","transports",3,"newAction","editAction","deleteAction","loaded","rest","multiSelect","allowExport","hasPermissions","newGrouped","onItem","pageSize"]],template:function(n,o){n&1&&(c(0,"div")(1,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("loaded",function(s){return o.onLoad(s)}),d()()),n&2&&(h(),p("rest",o.rest.transports)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("newGrouped",!0)("onItem",o.processElement)("pageSize",o.api.config.admin.page_size))},dependencies:[Te],styles:[".mat-column-priority{max-width:7rem;justify-content:center}"]});let i=e;return i})();var pw=(()=>{let e=class e{constructor(t,n,o){this.api=t,this.route=n,this.rest=o}ngOnInit(){let t=this.route.snapshot.paramMap.get("network")}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New Network"),!1)}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit Network"),!1)}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete Network"))}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("network"))}};e.\u0275fac=function(n){return new(n||e)(m(B),m(Oe),m(X))},e.\u0275cmp=E({type:e,selectors:[["uds-networks"]],decls:2,vars:5,consts:[["icon","networks",3,"newAction","editAction","deleteAction","loaded","rest","multiSelect","allowExport","hasPermissions","pageSize"]],template:function(n,o){n&1&&(c(0,"div")(1,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("loaded",function(s){return o.onLoad(s)}),d()()),n&2&&(h(),p("rest",o.rest.networks)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Te]});let i=e;return i})();var fw=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o}ngOnInit(){}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New tunnel"),!0)}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit tunnel"),!0)}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete tunnel"))}onDetail(t){this.api.navigation.gotoTunnelDetail(t.param.id)}processElement(t){t.maintenance_state=t.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("tunnel"))}};e.\u0275fac=function(n){return new(n||e)(m(Oe),m(X),m(B))},e.\u0275cmp=E({type:e,selectors:[["uds-tunnels"]],decls:1,vars:6,consts:[["tableId","tunnels-table","icon","providers",3,"newAction","editAction","deleteAction","detailAction","loaded","rest","onItem","multiSelect","allowExport","hasPermissions","pageSize"]],template:function(n,o){n&1&&(c(0,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("detailAction",function(s){return o.onDetail(s)})("loaded",function(s){return o.onLoad(s)}),d()),n&2&&p("rest",o.rest.tunnels)("onItem",o.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size)},dependencies:[Te]});let i=e;return i})();function e7(i,e){if(i&1&&(c(0,"mat-option",7),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),h(),F(" ",r.name," ")}}var fA=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.done=new Jt,this.availTunnelServers=[],this.tunnelFilter="",this.serverId="",this.availTunnelServers=a.availableTunnelServers,this.tunnelId=a.tunnelId}static launch(t,n,o){return W(this,null,function*(){let a=window.innerWidth<800?"60%":"40%";return t.gui.dialog.open(e,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{tunnelId:n,availableTunnelServers:o},disableClose:!1}).componentInstance.done})}ngOnInit(){return W(this,null,function*(){})}filteredTunnels(){if(!this.tunnelFilter)return this.availTunnelServers;let t=new Array;for(let n of this.availTunnelServers)n.name.toLocaleLowerCase().includes(this.tunnelFilter.toLocaleLowerCase())&&t.push(n);return t}save(){return W(this,null,function*(){if(this.serverId===""){this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid server"));return}this.dialogRef.close(),this.done.resolve(!0),yield this.rest.tunnels.assign(this.tunnelId,this.serverId)})}cancel(){return W(this,null,function*(){this.dialogRef.close(),this.done.resolve(!1)})}};e.\u0275fac=function(n){return new(n||e)(m(B),m(X),m(Ne),m(Ke))},e.\u0275cmp=E({type:e,selectors:[["uds-new-tunnel"]],decls:19,vars:3,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(n,o){n&1&&(c(0,"h4",0)(1,"uds-translate"),g(2,"Assign new server to tunnel group"),d()(),c(3,"mat-dialog-content")(4,"div",1)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),g(8,"Tunnel"),d()(),c(9,"mat-select",2),H("ngModelChange",function(s){return $(o.serverId,s)||(o.serverId=s),s}),c(10,"uds-cond-select-search",3),b("changed",function(s){return o.tunnelFilter=s}),d(),x(11,e7,2,2,"mat-option",4),d()()()(),c(12,"mat-dialog-actions")(13,"button",5),b("click",function(){return o.cancel()}),c(14,"uds-translate"),g(15,"Cancel"),d()(),c(16,"button",6),b("click",function(){return o.save()}),c(17,"uds-translate"),g(18,"Ok"),d()()()),n&2&&(h(9),U("ngModel",o.serverId),h(),p("options",o.availTunnelServers),h(),p("ngForOf",o.filteredTunnels()))},dependencies:[We,xe,Se,ke,Je,tt,et,_e,Ae,bt,nt,le,hi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]});let i=e;return i})();var t7=i=>["/connectivity","tunnels",i];function i7(i,e){i&1&&(c(0,"uds-translate"),g(1,"Summary"),d())}function n7(i,e){i&1&&(c(0,"uds-translate"),g(1,"Tunnel servers"),d())}function o7(i,e){if(i&1){let r=A();c(0,"div",6)(1,"div",7)(2,"mat-tab-group",8)(3,"mat-tab"),x(4,i7,2,0,"ng-template",9),c(5,"div",10),I(6,"uds-information",11),d()(),c(7,"mat-tab"),x(8,n7,2,0,"ng-template",9),c(9,"div",10)(10,"uds-table",12),b("newAction",function(n){y(r);let o=_();return w(o.onNew(n))})("rowSelected",function(n){y(r);let o=_();return w(o.onRowSelect(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDelete(n))})("customButtonAction",function(n){y(r);let o=_();return w(o.onMaintenance(n))})("loaded",function(n){y(r);let o=_();return w(o.onLoad(n))}),d()()()()()()}if(i&2){let r=_();h(2),p("@.disabled",!0),h(4),p("value",r.tunnel)("gui",r.gui),h(4),p("rest",r.servers)("multiSelect",!0)("allowExport",!0)("customButtons",r.customButtons)("pageSize",r.api.config.admin.page_size)("tableId","tunnels-d-servers"+r.tunnel.id)}}var gA='pause'+django.gettext("Maintenance")+"",r7='pause'+django.gettext("Exit maintenance mode")+"",a7='pause'+django.gettext("Enter maintenance mode")+"",_A=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o,this.cButtons=[{id:"maintenance",html:gA,type:ct.SINGLE_SELECT}],this.tunnel=null,this.gui=[],this.servers={}}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){return W(this,null,function*(){let t=this.route.snapshot.paramMap.get("tunnel");t&&(this.servers=this.rest.tunnels.detail(t,"servers"),this.tunnel=yield this.servers.parentModel.get(t),this.gui=yield this.servers.parentModel.gui(),console.log(this.gui),console.log(this.tunnel))})}onMaintenance(t){let n=t.table.selection.selected[0],o=n.maintenance_mode?django.gettext("Exit maintenance mode?"):django.gettext("Enter maintenance mode?");this.api.gui.questionDialog(django.gettext("Maintenance mode for")+" "+n.name,o).then(a=>{a&&this.servers.get(n.id+"/maintenance").then(()=>{t.table.overview()})})}onNew(t){return W(this,null,function*(){let n=yield this.rest.tunnels.tunnels(this.tunnel.id);n.length==0?this.api.gui.alert(django.gettext("Error"),django.gettext("This tunnel already has all the tunnel servers available")):(yield fA.launch(this.api,this.tunnel.id,n))===!0&&t.table.overview()})}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Remove member from tunnel"))}onRowSelect(t){let n=t.table;if(n.selection.selected.length>1||n.selection.selected.length===0){this.customButtons[0].html=gA;return}n.selection.selected[0].maintenance_mode?this.customButtons[0].html=r7:this.customButtons[0].html=a7}onLoad(t){if(t.param===!0){let n=this.route.snapshot.paramMap.get("tunnel");if(n!==void 0){let o=t.table;o.dataSource.data.forEach(a=>{a.id===n&&o.selection.select(a)})}}}};e.\u0275fac=function(n){return new(n||e)(m(Oe),m(X),m(B))},e.\u0275cmp=E({type:e,selectors:[["uds-tunnels-detail"]],decls:10,vars:8,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","selectedIndex","1"],["mat-tab-label",""],[1,"content"],[3,"value","gui"],["icon","tunnels",3,"newAction","rowSelected","deleteAction","customButtonAction","loaded","rest","multiSelect","allowExport","customButtons","pageSize","tableId"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),g(4,"arrow_back"),d()(),g(5," \xA0"),I(6,"img",4),g(7),d(),x(8,o7,11,9,"div",5),_t(9,"notEmpty"),d()),n&2&&(h(2),p("routerLink",Bi(6,t7,o.servers.parentId)),h(4),p("src",o.api.staticURL("admin/img/icons/tunnels.png"),Ie),h(),F(" \xA0",o.tunnel==null?null:o.tunnel.name," "),h(),p("ngIf",Dt(9,4,o.tunnel)))},dependencies:[me,bi,ei,ti,oi,le,Te,po,yi],styles:[".row-maintenance-true>mat-cell{color:orange!important}"]});let i=e;return i})();var gw=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o,this.customButtons=[Ii.getGotoButton(Ty,"provider_id"),Ii.getGotoButton(ky,"provider_id","service_id"),Ii.getGotoButton(Ry,"osmanager_id"),Ii.getGotoButton(Py,"pool_group_id")],this.editing=!1}ngOnInit(){return W(this,null,function*(){})}onChange(t){return W(this,null,function*(){let n=["initial_srvs","cache_l1_srvs","max_srvs"];if(t.on===null||t.on.field.name==="service_id"){if(t.all.service_id.value===""){t.all.osmanager_id.gui.choices=[];for(let a of n)t.all[a].gui.readonly=!0;t.all.cache_l2_srvs.gui.readonly=!0;return}let o=yield this.rest.providers.service(t.all.service_id.value);if(t.all.allow_users_reset.gui.readonly=!o.info.can_reset,t.all.osmanager_id.gui.choices=[],this.editing||(t.all.osmanager_id.gui.readonly=!o.info.needs_osmanager),o.info.needs_osmanager===!0){let a=yield this.rest.osManagers.overview(),s=[];for(let l of a)for(let u of l.servicesTypes)o.info.services_type_provided==u&&s.push({id:l.id,text:l.name});s.length>0?t.all.osmanager_id.value=t.all.osmanager_id.value||s[0].id:t.all.osmanager_id.value="",t.all.osmanager_id.gui.choices=s}else t.all.osmanager_id.gui.choices=[{id:"",text:django.gettext("(This service does not requires an OS Manager)")}],t.all.osmanager_id.value="";for(let a of n)t.all[a].gui.readonly=!o.info.uses_cache;t.all.cache_l2_srvs.gui.readonly=o.info.uses_cache===!1||o.info.uses_cache_l2===!1,t.all.publish_on_save&&(t.all.publish_on_save.gui.readonly=!o.info.needs_publication)}})}onNew(t){return W(this,null,function*(){this.editing=!1,yield 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:Ki.CHECKBOX,order:150,default:"true"}}],this.onChange.bind(this))})}onEdit(t){return W(this,null,function*(){return this.editing=!0,this.api.gui.forms.typedEditForm(t,django.gettext("Edit Service Pool"),!1,void 0,this.onChange.bind(this))})}onDelete(t){return W(this,null,function*(){return this.api.gui.forms.deleteForm(t,django.gettext("Delete service pool"))})}processElement(t){t.visible=this.api.boolAsHumanString(t.visible),t.show_transports=this.api.boolAsHumanString(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)}onDetail(t){this.api.navigation.gotoServicePoolDetail(t.param.id)}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("pool"))}};e.\u0275fac=function(n){return new(n||e)(m(Oe),m(X),m(B))},e.\u0275cmp=E({type:e,selectors:[["uds-service-pools"]],decls:1,vars:7,consts:[["icon","pools",3,"newAction","editAction","deleteAction","detailAction","loaded","rest","multiSelect","allowExport","hasPermissions","onItem","customButtons","pageSize"]],template:function(n,o){n&1&&(c(0,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("detailAction",function(s){return o.onDetail(s)})("loaded",function(s){return o.onLoad(s)}),d()),n&2&&p("rest",o.rest.servicesPools)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",o.processElement)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)},dependencies:[Te],styles:[".mat-column-user_services_count, .mat-column-user_services_in_preparation, .mat-column-visible, .mat-column-state, .mat-column-usage{max-width:7rem;justify-content:center} .mat-column-show_transports{max-width:12rem;justify-content:center} .mat-column-pool_group_name{max-width:12rem} .row-state-T>.mat-mdc-cell{color:#d65014!important} .mat-column-user_services_count{max-width:10rem;justify-content:center} .mat-column-user_services_in_preparation{max-width:10rem;justify-content:center}"]});let i=e;return i})();function s7(i,e){if(i&1&&(c(0,"mat-option",8),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),h(),F(" ",r.name," ")}}function l7(i,e){if(i&1&&(c(0,"mat-option",8),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),h(),F(" ",r.name," ")}}var eg=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.done=new Jt,this.auths=[],this.users=[],this.userFilter="",this.authId="",this.userId="",this.userService=a.userService,this.userServices=a.userServices}static launch(t,n,o){let a=window.innerWidth<800?"60%":"40%";return t.gui.dialog.open(e,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:n,userServices:o},disableClose:!1}).componentInstance.done}ngOnInit(){return W(this,null,function*(){this.authId=this.userService.owner_info.auth_id||"",this.userId=this.userService.owner_info.user_id||"",this.auths=yield this.rest.authenticators.summary(),this.authChanged()})}changeAuth(t){this.userId="",this.authChanged()}filteredUsers(){if(!this.userFilter)return this.users;let t=new Array;return this.users.forEach(n=>{(this.userFilter===""||n.name.toLocaleLowerCase().includes(this.userFilter.toLocaleLowerCase()))&&t.push(n)}),t}save(){if(this.userId===""||this.authId===""){this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid user"));return}this.userServices.save({id:this.userService.id,auth_id:this.authId,user_id:this.userId}).then(()=>{this.dialogRef.close(),this.done.resolve(!0)})}cancel(){this.dialogRef.close(),this.done.resolve(!1)}authChanged(){return W(this,null,function*(){this.authId?this.users=yield this.rest.authenticators.detail(this.authId,"users").summary():this.users=[]})}};e.\u0275fac=function(n){return new(n||e)(m(B),m(X),m(Ne),m(Ke))},e.\u0275cmp=E({type:e,selectors:[["uds-change-assigned-service-owner"]],decls:25,vars:5,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModelChange","ngModel"],[3,"changed","options"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(n,o){n&1&&(c(0,"h4",0)(1,"uds-translate"),g(2,"Change owner of assigned service"),d()(),c(3,"mat-dialog-content")(4,"div",1)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),g(8,"Authenticator"),d()(),c(9,"mat-select",2),H("ngModelChange",function(s){return $(o.authId,s)||(o.authId=s),s}),b("selectionChange",function(s){return o.changeAuth(s)}),x(10,s7,2,2,"mat-option",3),d()(),c(11,"mat-form-field")(12,"mat-label")(13,"uds-translate"),g(14,"User"),d()(),c(15,"mat-select",4),H("ngModelChange",function(s){return $(o.userId,s)||(o.userId=s),s}),c(16,"uds-cond-select-search",5),b("changed",function(s){return o.userFilter=s}),d(),x(17,l7,2,2,"mat-option",3),d()()()(),c(18,"mat-dialog-actions")(19,"button",6),b("click",function(){return o.cancel()}),c(20,"uds-translate"),g(21,"Cancel"),d()(),c(22,"button",7),b("click",function(){return o.save()}),c(23,"uds-translate"),g(24,"Ok"),d()()()),n&2&&(h(9),U("ngModel",o.authId),h(),p("ngForOf",o.auths),h(5),U("ngModel",o.userId),h(),p("options",o.users),h(),p("ngForOf",o.filteredUsers()))},dependencies:[We,xe,Se,ke,Je,tt,et,_e,Ae,bt,nt,le,hi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]});let i=e;return i})();function c7(i,e){i&1&&(c(0,"uds-translate"),g(1,"New access rule for"),d())}function d7(i,e){i&1&&(c(0,"uds-translate"),g(1,"Edit access rule for"),d())}function u7(i,e){i&1&&(c(0,"uds-translate"),g(1,"Default fallback access for"),d())}function h7(i,e){if(i&1&&(c(0,"mat-option",11),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),h(),F(" ",r.name," ")}}function m7(i,e){if(i&1){let r=A();mt(0),c(1,"mat-form-field")(2,"mat-label")(3,"uds-translate"),g(4,"Priority"),d()(),c(5,"input",8),H("ngModelChange",function(n){y(r);let o=_();return $(o.accessRule.priority,n)||(o.accessRule.priority=n),w(n)}),d()(),c(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),g(9,"Calendar"),d()(),c(10,"mat-select",3),H("ngModelChange",function(n){y(r);let o=_();return $(o.accessRule.calendar_id,n)||(o.accessRule.calendar_id=n),w(n)}),c(11,"uds-cond-select-search",9),b("changed",function(n){y(r);let o=_();return w(o.calendarsFilter=n)}),d(),x(12,h7,2,2,"mat-option",10),d()(),pt()}if(i&2){let r=_();h(5),U("ngModel",r.accessRule.priority),h(5),U("ngModel",r.accessRule.calendar_id),h(),p("options",r.calendars),h(),p("ngForOf",r.filtered(r.calendars,r.calendarsFilter))}}var Zl=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.onSave=new T(!0),this.calendars=[],this.calendarsFilter="",this.pool=a.pool,this.model=a.model,this.accessRule={id:void 0,priority:0,access:"ALLOW",calendar_id:""},a.accessRule&&(this.accessRule.id=a.accessRule.id)}static launch(t,n,o,a){let s=window.innerWidth<800?"80%":"60%";return t.gui.dialog.open(e,{width:s,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:n,model:o,accessRule:a},disableClose:!1}).componentInstance.onSave}ngOnInit(){this.rest.calendars.summary().then(t=>{this.calendars=t}),this.accessRule.id!==void 0&&this.accessRule.id!==-1?this.model.get(this.accessRule.id).then(t=>{this.accessRule=t}):this.accessRule.id===-1&&this.model.parentModel.getFallbackAccess(this.pool.id).then(t=>this.accessRule.access=t)}filtered(t,n){return n?t.filter(o=>o.name.toLocaleLowerCase().includes(n.toLocaleLowerCase())):t}save(){let t=()=>{this.dialogRef.close(),this.onSave.emit(!0)};this.accessRule.id!==-1?this.model.save(this.accessRule).then(t):this.model.parentModel.setFallbackAccess(this.pool.id,this.accessRule.access).then(t)}};e.\u0275fac=function(n){return new(n||e)(m(B),m(X),m(Ne),m(Ke))},e.\u0275cmp=E({type:e,selectors:[["uds-service-pools-access-calendars"]],decls:24,vars:6,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],[3,"ngModelChange","ngModel"],["value","ALLOW"],["value","DENY"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],["matInput","","type","number",3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(n,o){n&1&&(c(0,"h4",0),x(1,c7,2,0,"uds-translate",1)(2,d7,2,0,"uds-translate",1)(3,u7,2,0,"uds-translate",1),g(4),d(),c(5,"mat-dialog-content")(6,"div",2),x(7,m7,13,4,"ng-container",1),c(8,"mat-form-field")(9,"mat-label")(10,"uds-translate"),g(11,"Action"),d()(),c(12,"mat-select",3),H("ngModelChange",function(s){return $(o.accessRule.access,s)||(o.accessRule.access=s),s}),c(13,"mat-option",4),g(14," ALLOW "),d(),c(15,"mat-option",5),g(16," DENY "),d()()()()(),c(17,"mat-dialog-actions")(18,"button",6)(19,"uds-translate"),g(20,"Cancel"),d()(),c(21,"button",7),b("click",function(){return o.save()}),c(22,"uds-translate"),g(23,"Ok"),d()()()),n&2&&(h(),p("ngIf",o.accessRule.id===void 0),h(),p("ngIf",o.accessRule.id!==void 0&&o.accessRule.id!==-1),h(),p("ngIf",o.accessRule.id===-1),h(),F(" ",o.pool.name,` `),h(3),p("ngIf",o.accessRule.id!==-1),h(5),U("ngModel",o.accessRule.access))},dependencies:[We,me,lt,$n,xe,Se,ke,Qt,Je,tt,et,_e,Ae,ft,bt,nt,le,hi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]});let i=e;return i})();function p7(i,e){if(i&1&&(c(0,"mat-option",8),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),h(),F(" ",r.name," ")}}function f7(i,e){if(i&1&&(mt(0),g(1),pt()),i&2){let r=_().$implicit;h(),F(" (",r.comments,")")}}function g7(i,e){if(i&1&&(c(0,"mat-option",8),g(1),x(2,f7,2,1,"ng-container",9),d()),i&2){let r=e.$implicit;p("value",r.id),h(),F(" ",r.name,""),h(),p("ngIf",r.comments)}}var tg=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.done=new Jt,this.model={},this.auths=[],this.authFilter="",this.groups=[],this.groupFilter="",this.authId="",this.groupId="",this.pool=a.pool,this.model=a.model}static launch(t,n,o){let a=window.innerWidth<800?"60%":"40%";return t.gui.dialog.open(e,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:n,model:o},disableClose:!1}).componentInstance.done}ngOnInit(){return W(this,null,function*(){this.auths=yield this.rest.authenticators.summary()})}changeAuth(t){return W(this,null,function*(){this.groupId="",this.authChanged()})}filteredGroups(){return!this.groupFilter||this.groupFilter.length<3?this.groups:this.groups.filter(t=>(t.name+t.comments).toLocaleLowerCase().includes(this.groupFilter.toLocaleLowerCase()))}filteredAuths(){return!this.authFilter||this.authFilter.length<3?this.auths:this.auths.filter(t=>t.name.toLocaleLowerCase().includes(this.authFilter.toLocaleLowerCase()))}save(){return W(this,null,function*(){if(this.groupId===""||this.authId===""){this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid group"));return}yield this.model.create({id:this.groupId}),this.dialogRef.close(),this.done.resolve(!0)})}cancel(){return W(this,null,function*(){this.dialogRef.close(),this.done.resolve(!1)})}authChanged(){return W(this,null,function*(){this.authId?this.groups=yield this.rest.authenticators.detail(this.authId,"groups").summary():this.groups=[]})}};e.\u0275fac=function(n){return new(n||e)(m(B),m(X),m(Ne),m(Ke))},e.\u0275cmp=E({type:e,selectors:[["uds-service-pools-add-group"]],decls:27,vars:7,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","selectionChange","ngModel"],[3,"changed","options"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModelChange","ngModel"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[4,"ngIf"]],template:function(n,o){n&1&&(c(0,"h4",0)(1,"uds-translate"),g(2,"New group for"),d(),g(3),d(),c(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),g(9,"Authenticator"),d()(),c(10,"mat-select",2),H("ngModelChange",function(s){return $(o.authId,s)||(o.authId=s),s}),b("selectionChange",function(s){return o.changeAuth(s)}),c(11,"uds-cond-select-search",3),b("changed",function(s){return o.authFilter=s}),d(),x(12,p7,2,2,"mat-option",4),d()(),c(13,"mat-form-field")(14,"mat-label")(15,"uds-translate"),g(16,"Group"),d()(),c(17,"mat-select",5),H("ngModelChange",function(s){return $(o.groupId,s)||(o.groupId=s),s}),c(18,"uds-cond-select-search",3),b("changed",function(s){return o.groupFilter=s}),d(),x(19,g7,3,3,"mat-option",4),d()()()(),c(20,"mat-dialog-actions")(21,"button",6),b("click",function(){return o.cancel()}),c(22,"uds-translate"),g(23,"Cancel"),d()(),c(24,"button",7),b("click",function(){return o.save()}),c(25,"uds-translate"),g(26,"Ok"),d()()()),n&2&&(h(3),F(" ",o.pool.name,""),h(7),U("ngModel",o.authId),h(),p("options",o.auths),h(),p("ngForOf",o.filteredAuths()),h(5),U("ngModel",o.groupId),h(),p("options",o.groups),h(),p("ngForOf",o.filteredGroups()))},dependencies:[We,me,xe,Se,ke,Je,tt,et,_e,Ae,bt,nt,le,hi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]});let i=e;return i})();function _7(i,e){if(i&1&&(mt(0),g(1),pt()),i&2){let r=_().$implicit;h(),F(" (",r.comments,")")}}function v7(i,e){if(i&1&&(c(0,"mat-option",7),g(1),x(2,_7,2,1,"ng-container",8),d()),i&2){let r=e.$implicit;p("value",r.id),h(),F(" ",r.name,""),h(),p("ngIf",r.comments)}}var vA=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.done=new Jt,this.transports=[],this.transportsFilter="",this.transportId="",this.servicePool=a.servicePool}static launch(t,n){let o=window.innerWidth<800?"60%":"40%";return t.gui.dialog.open(e,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1}).componentInstance.done}ngOnInit(){return W(this,null,function*(){this.transports=(yield this.rest.transports.summary()).filter(t=>this.servicePool.info.allowed_protocols.includes(t.protocol))})}filteredTransports(){return this.transportsFilter?this.transports.filter(t=>t.name.toLocaleLowerCase().includes(this.transportsFilter.toLocaleLowerCase())):this.transports}save(){return W(this,null,function*(){if(this.transportId===""){this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid transport"));return}yield this.rest.servicesPools.detail(this.servicePool.id,"transports").create({id:this.transportId}),this.done.resolve(!0),this.dialogRef.close()})}cancel(){return W(this,null,function*(){this.done.resolve(!1),this.dialogRef.close()})}};e.\u0275fac=function(n){return new(n||e)(m(B),m(X),m(Ne),m(Ke))},e.\u0275cmp=E({type:e,selectors:[["uds-service-pools-add-transport"]],decls:20,vars:4,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[4,"ngIf"]],template:function(n,o){n&1&&(c(0,"h4",0)(1,"uds-translate"),g(2,"New transport for"),d(),g(3),d(),c(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),g(9,"Transport"),d()(),c(10,"mat-select",2),H("ngModelChange",function(s){return $(o.transportId,s)||(o.transportId=s),s}),c(11,"uds-cond-select-search",3),b("changed",function(s){return o.transportsFilter=s}),d(),x(12,v7,3,3,"mat-option",4),d()()()(),c(13,"mat-dialog-actions")(14,"button",5),b("click",function(){return o.cancel()}),c(15,"uds-translate"),g(16,"Cancel"),d()(),c(17,"button",6),b("click",function(){return o.save()}),c(18,"uds-translate"),g(19,"Ok"),d()()()),n&2&&(h(3),F(" ",o.servicePool.name,""),h(7),U("ngModel",o.transportId),h(),p("options",o.transports),h(),p("ngForOf",o.filteredTransports()))},dependencies:[We,me,xe,Se,ke,Je,tt,et,_e,Ae,bt,nt,le,hi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]});let i=e;return i})();var bA=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.done=new Jt,this.reason="",this.servicePool=a.servicePool}static launch(t,n){let o=window.innerWidth<800?"60%":"40%";return t.gui.dialog.open(e,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1}).componentInstance.done}ngOnInit(){}save(){this.rest.servicesPools.detail(this.servicePool.id,"publications").invoke("publish","changelog="+encodeURIComponent(this.reason)).then(()=>{this.dialogRef.close(),this.done.resolve(!0)})}cancel(){this.dialogRef.close(),this.done.resolve(!1)}};e.\u0275fac=function(n){return new(n||e)(m(B),m(X),m(Ne),m(Ke))},e.\u0275cmp=E({type:e,selectors:[["uds-service-pools-new-publication"]],decls:18,vars:2,consts:[["mat-dialog-title",""],[1,"content"],["matInput","","type","text",3,"ngModelChange","ngModel"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,o){n&1&&(c(0,"h4",0)(1,"uds-translate"),g(2,"New publication for"),d(),g(3),d(),c(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),g(9,"Comments"),d()(),c(10,"input",2),H("ngModelChange",function(s){return $(o.reason,s)||(o.reason=s),s}),d()()()(),c(11,"mat-dialog-actions")(12,"button",3),b("click",function(){return o.cancel()}),c(13,"uds-translate"),g(14,"Cancel"),d()(),c(15,"button",4),b("click",function(){return o.save()}),c(16,"uds-translate"),g(17,"Ok"),d()()()),n&2&&(h(3),F(" ",o.servicePool.name,` `),h(7),U("ngModel",o.reason))},dependencies:[lt,xe,Se,ke,Je,tt,et,_e,Ae,ft,le],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]});let i=e;return i})();var yA=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.onSave=new T(!0),this.changeLogPubs={},this.servicePool=a.servicePool}static launch(t,n){let o=window.innerWidth<800?"80%":"60%",a=t.gui.dialog.open(e,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1})}ngOnInit(){this.changeLogPubs=this.rest.servicesPools.detail(this.servicePool.id,"changelog")}};e.\u0275fac=function(n){return new(n||e)(m(B),m(X),m(Ne),m(Ke))},e.\u0275cmp=E({type:e,selectors:[["uds-service-pools-publications-changelog"]],decls:11,vars:4,consts:[["changeLog",""],["mat-dialog-title",""],["icon","publications",3,"rest","allowExport","tableId"],["mat-raised-button","","color","primary","mat-dialog-close",""]],template:function(n,o){n&1&&(c(0,"h4",1)(1,"uds-translate"),g(2,"Changelog of"),d(),g(3),d(),c(4,"mat-dialog-content"),I(5,"uds-table",2,0),d(),c(7,"mat-dialog-actions")(8,"button",3)(9,"uds-translate"),g(10,"Ok"),d()()()),n&2&&(h(3),F(" ",o.servicePool.name,` `),h(2),p("rest",o.changeLogPubs)("allowExport",!0)("tableId","servicePools-d-changelog"+o.servicePool.id))},dependencies:[ke,Qt,Je,tt,et,le,Te],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]});let i=e;return i})();var b7=["switch"],y7=["*"];function w7(i,e){i&1&&(c(0,"span",10),pi(),c(1,"svg",12),I(2,"path",13),d(),c(3,"svg",14),I(4,"path",15),d()())}var C7=new R("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1})}),x7={provide:vn,useExisting:Xt(()=>cr),multi:!0},ig=class{constructor(e,r){this.source=e,this.checked=r}},D7=0,cr=(()=>{let e=class e{_createChangeEvent(t){return new ig(this,t)}get buttonId(){return`${this.id||this._uniqueId}-button`}focus(){this._switchElement.nativeElement.focus()}get checked(){return this._checked}set checked(t){this._checked=t,this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(t,n,o,a,s,l){this._elementRef=t,this._focusMonitor=n,this._changeDetectorRef=o,this.defaults=s,this._onChange=u=>{},this._onTouched=()=>{},this._validatorOnChange=()=>{},this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this.change=new T,this.toggleChange=new T,this.tabIndex=parseInt(a)||0,this.color=s.color||"accent",this._noopAnimations=l==="NoopAnimations",this.id=this._uniqueId=`mat-mdc-slide-toggle-${++D7}`,this.hideIcon=s.hideIcon??!1,this.disabledInteractive=s.disabledInteractive??!1,this._labelId=this._uniqueId+"-label"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{t==="keyboard"||t==="program"?(this._focused=!0,this._changeDetectorRef.markForCheck()):t||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnChanges(t){t.required&&this._validatorOnChange()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(t){this.checked=!!t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}validate(t){return this.required&&t.value!==!0?{required:!0}:null}registerOnValidatorChange(t){this._validatorOnChange=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}_handleClick(){this.disabled||(this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new ig(this,this.checked))))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}};e.\u0275fac=function(n){return new(n||e)(m(q),m(Di),m(he),vi("tabindex"),m(C7),m(kt,8))},e.\u0275cmp=E({type:e,selectors:[["mat-slide-toggle"]],viewQuery:function(n,o){if(n&1&&ce(b7,5),n&2){let a;Q(a=K())&&(o._switchElement=a.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(n,o){n&2&&(Si("id",o.id),ie("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),Yt(o.color?"mat-"+o.color:""),ne("mat-mdc-slide-toggle-focused",o._focused)("mat-mdc-slide-toggle-checked",o.checked)("_mat-animation-noopable",o._noopAnimations))},inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],required:[2,"required","required",Y],color:"color",disabled:[2,"disabled","disabled",Y],disableRipple:[2,"disableRipple","disableRipple",Y],tabIndex:[2,"tabIndex","tabIndex",t=>t==null?0:ni(t)],checked:[2,"checked","checked",Y],hideIcon:[2,"hideIcon","hideIcon",Y],disabledInteractive:[2,"disabledInteractive","disabledInteractive",Y]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],standalone:!0,features:[Ce([x7,{provide:co,useExisting:e,multi:!0}]),ge,Qe,re],ngContentSelectors:y7,decls:13,vars:27,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-switch__icons"],[1,"mdc-label",3,"click","for"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"]],template:function(n,o){if(n&1){let a=A();He(),c(0,"div",1)(1,"button",2,0),b("click",function(){return y(a),w(o._handleClick())}),I(3,"span",3),c(4,"span",4)(5,"span",5)(6,"span",6),I(7,"span",7),d(),c(8,"span",8),I(9,"span",9),d(),x(10,w7,5,0,"span",10),d()()(),c(11,"label",11),b("click",function(l){return y(a),w(l.stopPropagation())}),ae(12),d()()}if(n&2){let a=we(2);p("labelPosition",o.labelPosition),h(),ne("mdc-switch--selected",o.checked)("mdc-switch--unselected",!o.checked)("mdc-switch--checked",o.checked)("mdc-switch--disabled",o.disabled)("mat-mdc-slide-toggle-disabled-interactive",o.disabledInteractive),p("tabIndex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex)("disabled",o.disabled&&!o.disabledInteractive),ie("id",o.buttonId)("name",o.name)("aria-label",o.ariaLabel)("aria-labelledby",o._getAriaLabelledBy())("aria-describedby",o.ariaDescribedby)("aria-required",o.required||null)("aria-checked",o.checked)("aria-disabled",o.disabled&&o.disabledInteractive?"true":null),h(8),p("matRippleTrigger",a)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),h(),De(o.hideIcon?-1:10),h(),p("for",o.buttonId),ie("id",o._labelId)}},dependencies:[Tn,_p],styles:['.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative;width:var(--mdc-switch-track-width)}.mdc-switch.mdc-switch--disabled{cursor:default;pointer-events:none}.mdc-switch.mat-mdc-slide-toggle-disabled-interactive{pointer-events:auto}.mdc-switch__track{overflow:hidden;position:relative;width:100%;height:var(--mdc-switch-track-height);border-radius:var(--mdc-switch-track-shape, var(--mat-app-corner-full))}.mdc-switch--disabled.mdc-switch .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity)}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%;border-width:var(--mat-switch-track-outline-width);border-color:var(--mat-switch-track-outline-color, var(--mat-app-outline))}.cdk-high-contrast-active .mdc-switch__track::before,.cdk-high-contrast-active .mdc-switch__track::after{border-color:currentColor}.mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track::after{border-width:var(--mat-switch-selected-track-outline-width);border-color:var(--mat-switch-selected-track-outline-color)}.mdc-switch--disabled .mdc-switch__track::before,.mdc-switch--disabled .mdc-switch__track::after{border-width:var(--mat-switch-disabled-unselected-track-outline-width);border-color:var(--mat-switch-disabled-unselected-track-outline-color, var(--mat-app-on-surface))}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0);background:var(--mdc-switch-unselected-track-color, var(--mat-app-surface-variant))}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch--selected .mdc-switch__track::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::before{opacity:var(--mat-switch-hidden-track-opacity);transition:var(--mat-switch-hidden-track-transition)}.mdc-switch--unselected .mdc-switch__track::before{opacity:var(--mat-switch-visible-track-opacity);transition:var(--mat-switch-visible-track-transition)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color, var(--mat-app-surface-variant))}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color, var(--mat-app-surface-variant))}.mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color, var(--mat-app-surface-variant))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__track::before,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__track::before,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__track::before,.mdc-switch.mdc-switch--disabled .mdc-switch__track::before{background:var(--mdc-switch-disabled-unselected-track-color, var(--mat-app-surface-variant))}.mdc-switch__track::after{transform:translateX(-100%);background:var(--mdc-switch-selected-track-color, var(--mat-app-primary))}[dir=rtl] .mdc-switch__track::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::after{transform:translateX(0)}.mdc-switch--selected .mdc-switch__track::after{opacity:var(--mat-switch-visible-track-opacity);transition:var(--mat-switch-visible-track-transition)}.mdc-switch--unselected .mdc-switch__track::after{opacity:var(--mat-switch-hidden-track-opacity);transition:var(--mat-switch-hidden-track-transition)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color, var(--mat-app-primary))}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color, var(--mat-app-primary))}.mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color, var(--mat-app-primary))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__track::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__track::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__track::after,.mdc-switch.mdc-switch--disabled .mdc-switch__track::after{background:var(--mdc-switch-disabled-selected-track-color, var(--mat-app-on-surface))}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0);width:calc(100% - var(--mdc-switch-handle-width))}[dir=rtl] .mdc-switch__handle-track{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto;transition:width 75ms cubic-bezier(0.4, 0, 0.2, 1),height 75ms cubic-bezier(0.4, 0, 0.2, 1),margin 75ms cubic-bezier(0.4, 0, 0.2, 1);width:var(--mdc-switch-handle-width);height:var(--mdc-switch-handle-height);border-radius:var(--mdc-switch-handle-shape, var(--mat-app-corner-full))}[dir=rtl] .mdc-switch__handle{left:auto;right:0}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{width:var(--mat-switch-unselected-handle-size);height:var(--mat-switch-unselected-handle-size);margin:var(--mat-switch-unselected-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-unselected-with-icon-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{width:var(--mat-switch-selected-handle-size);height:var(--mat-switch-selected-handle-size);margin:var(--mat-switch-selected-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-selected-with-icon-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch__handle:has(.mdc-switch__icons){width:var(--mat-switch-with-icon-handle-size);height:var(--mat-switch-with-icon-handle-size)}.mat-mdc-slide-toggle .mdc-switch:active:not(.mdc-switch--disabled) .mdc-switch__handle{width:var(--mat-switch-pressed-handle-size);height:var(--mat-switch-pressed-handle-size)}.mat-mdc-slide-toggle .mdc-switch--selected:active:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-selected-pressed-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--unselected:active:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-unselected-pressed-handle-horizontal-margin)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-selected-handle-opacity)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-unselected-handle-opacity)}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}.cdk-high-contrast-active .mdc-switch__handle::before,.cdk-high-contrast-active .mdc-switch__handle::after{border-color:currentColor}.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color, var(--mat-app-on-primary))}.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-hover-handle-color, var(--mat-app-primary-container))}.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color, var(--mat-app-primary-container))}.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color, var(--mat-app-primary-container))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:hover:not(:focus):not(:active) .mdc-switch__handle::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:focus:not(:active) .mdc-switch__handle::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:active .mdc-switch__handle::after,.mdc-switch--selected.mdc-switch--disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-selected-handle-color, var(--mat-app-surface))}.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color, var(--mat-app-outline))}.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color, var(--mat-app-on-surface-variant))}.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color, var(--mat-app-on-surface-variant))}.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color, var(--mat-app-on-surface-variant))}.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color, var(--mat-app-on-surface))}.mdc-switch__handle::before{background:var(--mdc-switch-handle-surface-color)}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation-shadow)}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__shadow,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__shadow,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__shadow,.mdc-switch.mdc-switch--disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation-shadow)}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1;width:var(--mdc-switch-state-layer-size);height:var(--mdc-switch-state-layer-size)}.mdc-switch__ripple::after{content:"";opacity:0}.mdc-switch--disabled .mdc-switch__ripple::after{display:none}.mat-mdc-slide-toggle-disabled-interactive .mdc-switch__ripple::after{display:block}.mdc-switch:hover .mdc-switch__ripple::after{opacity:.04;transition:75ms opacity cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mdc-switch .mdc-switch__ripple::after{opacity:.12}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:focus .mdc-switch__ripple::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:active .mdc-switch__ripple::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:hover:not(:focus) .mdc-switch__ripple::after,.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background:var(--mdc-switch-unselected-hover-state-layer-color, var(--mat-app-on-surface))}.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background:var(--mdc-switch-unselected-focus-state-layer-color, var(--mat-app-on-surface))}.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background:var(--mdc-switch-unselected-pressed-state-layer-color, var(--mat-app-on-surface));opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity));transition:opacity 75ms linear}.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background:var(--mdc-switch-selected-hover-state-layer-color, var(--mat-app-primary))}.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background:var(--mdc-switch-selected-focus-state-layer-color, var(--mat-app-primary))}.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background:var(--mdc-switch-selected-pressed-state-layer-color, var(--mat-app-primary));opacity:var(--mdc-switch-selected-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity));transition:opacity 75ms linear}.mdc-switch__icons{position:relative;height:100%;width:100%;z-index:1}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__icons{opacity:var(--mdc-switch-disabled-unselected-icon-opacity)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity)}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--unselected .mdc-switch__icon{width:var(--mdc-switch-unselected-icon-size);height:var(--mdc-switch-unselected-icon-size);fill:var(--mdc-switch-unselected-icon-color, var(--mat-app-surface-variant))}.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color, var(--mat-app-surface-variant))}.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size);height:var(--mdc-switch-selected-icon-size);fill:var(--mdc-switch-selected-icon-color, var(--mat-app-on-primary-container))}.mdc-switch--selected.mdc-switch--disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color, var(--mat-app-on-surface))}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle{-webkit-user-select:none;user-select:none;display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-internal-form-field{color:var(--mat-switch-label-text-color, var(--mat-app-on-surface));font-family:var(--mat-switch-label-text-font, var(--mat-app-body-medium-font));line-height:var(--mat-switch-label-text-line-height, var(--mat-app-body-medium-line-height));font-size:var(--mat-switch-label-text-size, var(--mat-app-body-medium-size));letter-spacing:var(--mat-switch-label-text-tracking, var(--mat-app-body-medium-tracking));font-weight:var(--mat-switch-label-text-weight, var(--mat-app-body-medium-weight))}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-mdc-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}.mat-mdc-slide-toggle .mdc-switch:enabled+.mdc-label{cursor:pointer}.mat-mdc-slide-toggle .mdc-switch--disabled+label{color:var(--mdc-switch-disabled-label-text-color)}'],encapsulation:2,changeDetection:0});let i=e;return i})();var wA=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({imports:[cr,pe,pe]});let i=e;return i})();var S7=()=>["transport","group","bool"];function E7(i,e){i&1&&(mt(0),c(1,"uds-translate"),g(2,"Edit action for"),d(),pt())}function I7(i,e){i&1&&(c(0,"uds-translate"),g(1,"New action for"),d())}function M7(i,e){if(i&1&&(c(0,"mat-option",13),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),h(),F(" ",r.name," ")}}function T7(i,e){if(i&1&&(c(0,"mat-option",13),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),h(),F(" ",r.description," ")}}function k7(i,e){if(i&1&&(c(0,"mat-option",13),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),h(),F(" ",r.name," ")}}function A7(i,e){if(i&1){let r=A();mt(0),c(1,"mat-form-field")(2,"mat-label")(3,"uds-translate"),g(4,"Transport"),d()(),c(5,"mat-select",4),H("ngModelChange",function(n){y(r);let o=_();return $(o.paramValue,n)||(o.paramValue=n),w(n)}),c(6,"uds-cond-select-search",5),b("changed",function(n){y(r);let o=_();return w(o.transportsFilter=n)}),d(),x(7,k7,2,2,"mat-option",6),d()(),pt()}if(i&2){let r=_();h(5),U("ngModel",r.paramValue),h(),p("options",r.transports),h(),p("ngForOf",r.filtered(r.transports,r.transportsFilter))}}function O7(i,e){if(i&1&&(c(0,"mat-option",13),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),h(),F(" ",r.name," ")}}function R7(i,e){if(i&1&&(c(0,"mat-option",13),g(1),d()),i&2){let r=e.$implicit,t=_(2);p("value",t.authenticator+"@"+r.id),h(),F(" ",r.name," ")}}function P7(i,e){if(i&1){let r=A();mt(0),c(1,"mat-form-field")(2,"mat-label")(3,"uds-translate"),g(4,"Authenticator"),d()(),c(5,"mat-select",9),H("ngModelChange",function(n){y(r);let o=_();return $(o.authenticator,n)||(o.authenticator=n),w(n)}),b("valueChange",function(n){y(r);let o=_();return w(o.authenticatorChangedTo(n))}),x(6,O7,2,2,"mat-option",6),d()(),c(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),g(10,"Group"),d()(),c(11,"mat-select",4),H("ngModelChange",function(n){y(r);let o=_();return $(o.paramValue,n)||(o.paramValue=n),w(n)}),c(12,"uds-cond-select-search",5),b("changed",function(n){y(r);let o=_();return w(o.groupsFilter=n)}),d(),x(13,R7,2,2,"mat-option",6),d()(),pt()}if(i&2){let r=_();h(5),U("ngModel",r.authenticator),h(),p("ngForOf",r.authenticators),h(5),U("ngModel",r.paramValue),h(),p("options",r.groups),h(),p("ngForOf",r.filtered(r.groups,r.groupsFilter))}}function F7(i,e){if(i&1){let r=A();mt(0),c(1,"div",14)(2,"span",15),g(3),d(),g(4,"\xA0 "),c(5,"mat-slide-toggle",4),H("ngModelChange",function(n){y(r);let o=_();return $(o.paramValue,n)||(o.paramValue=n),w(n)}),d()(),pt()}if(i&2){let r=_();h(3),$e(r.parameter.description),h(2),U("ngModel",r.paramValue)}}function N7(i,e){if(i&1){let r=A();mt(0),c(1,"mat-form-field")(2,"mat-label"),g(3),d(),c(4,"input",16),H("ngModelChange",function(n){y(r);let o=_();return $(o.paramValue,n)||(o.paramValue=n),w(n)}),d()(),pt()}if(i&2){let r=_();h(3),F(" ",r.parameter.description," "),h(),p("type",r.parameter.type),U("ngModel",r.paramValue)}}var _w=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.onSave=new T(!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=a.servicePool,this.scheduledAction={id:void 0,action:"",calendar:"",calendar_id:"",at_start:!0,events_offset:0,params:{}},a.scheduledAction!==void 0&&(this.scheduledAction.id=a.scheduledAction.id)}static launch(t,n,o){let a=window.innerWidth<800?"80%":"60%";return t.gui.dialog.open(e,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n,scheduledAction:o},disableClose:!1}).componentInstance.onSave}ngOnInit(){this.rest.authenticators.summary().then(t=>this.authenticators=t),this.rest.transports.summary().then(t=>this.transports=t),this.rest.calendars.summary().then(t=>this.calendars=t),this.rest.servicesPools.actionsList(this.servicePool.id).then(t=>{this.actionList=t,this.actionList.forEach(n=>{this.paramsDict[n.id]=n.params[0]}),this.scheduledAction.id!==void 0&&this.rest.servicesPools.detail(this.servicePool.id,"actions").get(this.scheduledAction.id).then(n=>{this.scheduledAction=n,this.actionChangedTo(this.scheduledAction.action)})})}filtered(t,n){return n?t.filter(o=>o.name.toLocaleLowerCase().includes(n.toLocaleLowerCase())):t}actionChangedTo(t){if(this.parameter=this.paramsDict[t],this.parameter!==void 0&&(this.paramValue=this.scheduledAction.params[this.parameter.name],this.paramValue===void 0&&(this.parameter.default!==!1?this.paramValue=this.parameter.default||"":this.paramValue=!1),this.parameter.type==="group")){let n=this.paramValue.split("@");n.length!==2&&(n=["",""]),this.authenticator=n[0],this.authenticatorChangedTo(this.authenticator)}}authenticatorChangedTo(t){return W(this,null,function*(){t&&(this.groups=yield this.rest.authenticators.detail(t,"groups").summary())})}save(){return W(this,null,function*(){this.scheduledAction.params={},this.parameter&&(this.scheduledAction.params[this.parameter.name]=this.paramValue),yield this.rest.servicesPools.detail(this.servicePool.id,"actions").save(this.scheduledAction),this.dialogRef.close(),this.onSave.emit(!0)})}};e.\u0275fac=function(n){return new(n||e)(m(B),m(X),m(Ne),m(Ke))},e.\u0275cmp=E({type:e,selectors:[["uds-service-pools-scheduled-action"]],decls:40,vars:15,consts:[["editTitle",""],["mat-dialog-title",""],[4,"ngIf","ngIfElse"],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","number",3,"ngModelChange","ngModel"],[1,"toggle"],[3,"ngModelChange","valueChange","ngModel"],[4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[1,"mat-form-field-infix"],[1,"label"],["matInput","",3,"ngModelChange","type","ngModel"]],template:function(n,o){if(n&1){let a=A();c(0,"h4",1),x(1,E7,3,0,"ng-container",2)(2,I7,2,0,"ng-template",null,0,fi),g(4),d(),c(5,"mat-dialog-content")(6,"div",3)(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),g(10,"Calendar"),d()(),c(11,"mat-select",4),H("ngModelChange",function(l){return y(a),$(o.scheduledAction.calendar_id,l)||(o.scheduledAction.calendar_id=l),w(l)}),c(12,"uds-cond-select-search",5),b("changed",function(l){return y(a),w(o.calendarsFilter=l)}),d(),x(13,M7,2,2,"mat-option",6),d()(),c(14,"mat-form-field")(15,"mat-label")(16,"uds-translate"),g(17,"Events offset (minutes)"),d()(),c(18,"input",7),H("ngModelChange",function(l){return y(a),$(o.scheduledAction.events_offset,l)||(o.scheduledAction.events_offset=l),w(l)}),d()(),c(19,"div",8)(20,"mat-slide-toggle",4),H("ngModelChange",function(l){return y(a),$(o.scheduledAction.at_start,l)||(o.scheduledAction.at_start=l),w(l)}),c(21,"uds-translate"),g(22,"At the beginning of the interval?"),d()()(),c(23,"mat-form-field")(24,"mat-label")(25,"uds-translate"),g(26,"Action"),d()(),c(27,"mat-select",9),H("ngModelChange",function(l){return y(a),$(o.scheduledAction.action,l)||(o.scheduledAction.action=l),w(l)}),b("valueChange",function(l){return y(a),w(o.actionChangedTo(l))}),x(28,T7,2,2,"mat-option",6),d()(),x(29,A7,8,3,"ng-container",10)(30,P7,14,5,"ng-container",10)(31,F7,6,2,"ng-container",10)(32,N7,5,3,"ng-container",10),d()(),c(33,"mat-dialog-actions")(34,"button",11)(35,"uds-translate"),g(36,"Cancel"),d()(),c(37,"button",12),b("click",function(){return y(a),w(o.save())}),c(38,"uds-translate"),g(39,"Ok"),d()()()}if(n&2){let a=we(3);h(),p("ngIf",o.scheduledAction.id!==void 0)("ngIfElse",a),h(3),F(" ",o.servicePool.name,` `),h(7),U("ngModel",o.scheduledAction.calendar_id),h(),p("options",o.calendars),h(),p("ngForOf",o.filtered(o.calendars,o.calendarsFilter)),h(5),U("ngModel",o.scheduledAction.events_offset),h(2),U("ngModel",o.scheduledAction.at_start),h(7),U("ngModel",o.scheduledAction.action),h(),p("ngForOf",o.actionList),h(),p("ngIf",(o.parameter==null?null:o.parameter.type)==="transport"),h(),p("ngIf",(o.parameter==null?null:o.parameter.type)==="group"),h(),p("ngIf",(o.parameter==null?null:o.parameter.type)==="bool"),h(),p("ngIf",(o.parameter==null?null:o.parameter.type)&&!ll(14,S7).includes(o.parameter.type))}},dependencies:[We,me,lt,$n,xe,Se,ke,Qt,Je,tt,et,_e,Ae,ft,bt,nt,cr,le,hi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]});let i=e;return i})();var qd=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.onSave=new T(!0),this.userService=a.userService,this.model=a.model}static launch(t,n,o){let a=window.innerWidth<800?"80%":"60%",s=t.gui.dialog.open(e,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:n,model:o},disableClose:!1})}ngOnInit(){}};e.\u0275fac=function(n){return new(n||e)(m(B),m(X),m(Ne),m(Ke))},e.\u0275cmp=E({type:e,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(n,o){n&1&&(c(0,"h4",0)(1,"uds-translate"),g(2,"Logs of"),d(),g(3),d(),c(4,"mat-dialog-content"),I(5,"uds-logs-table",1),d(),c(6,"mat-dialog-actions")(7,"button",2)(8,"uds-translate"),g(9,"Ok"),d()()()),n&2&&(h(3),F(" ",o.userService.name,` -`),h(2),p("rest",o.model)("itemId",o.userService.id)("tableId","servicePools-d-uslog"+o.userService.id))},dependencies:[ke,Qt,Je,tt,et,le,An],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]});let i=e;return i})();function L7(i,e){if(i&1&&(c(0,"mat-option",8),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),h(),F(" ",r.text," ")}}function V7(i,e){if(i&1&&(c(0,"mat-option",8),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),h(),F(" ",r.name," ")}}function j7(i,e){if(i&1&&(c(0,"mat-option",8),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),h(),F(" ",r.name," ")}}var CA=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.done=new Jt,this.auths=[],this.assignablesServices=[],this.assignablesServicesFilter="",this.users=[],this.userFilter="",this.serviceId="",this.authId="",this.userId="",this.servicePool=a.servicePool}static launch(t,n){let o=window.innerWidth<800?"60%":"40%";return t.gui.dialog.open(e,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1}).componentInstance.done}ngOnInit(){return W(this,null,function*(){this.authId="",this.userId="";let t=yield this.rest.authenticators.summary(),n=yield this.rest.servicesPools.listAssignables(this.servicePool.id);this.auths=t,this.assignablesServices=n})}changeAuth(t){return W(this,null,function*(){this.userId="",this.authChanged()})}filteredUsers(){if(!this.userFilter)return this.users;let t=new Array;return this.users.forEach(n=>{n.name.toLocaleLowerCase().includes(this.userFilter.toLocaleLowerCase())&&t.push(n)}),t}filteredAssignables(){if(!this.assignablesServicesFilter)return this.assignablesServices;let t=new Array;return this.assignablesServices.forEach(n=>{n.text.toLocaleLowerCase().includes(this.assignablesServicesFilter.toLocaleLowerCase())&&t.push(n)}),t}save(){return W(this,null,function*(){if(this.userId===""||this.authId===""){this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid user"));return}this.rest.servicesPools.createFromAssignable(this.servicePool.id,this.userId,this.serviceId).then(t=>{this.dialogRef.close(),this.done.resolve(!0)})})}cancel(){this.dialogRef.close(),this.done.resolve(!1)}authChanged(){return W(this,null,function*(){this.authId&&(this.users=yield this.rest.authenticators.detail(this.authId,"users").summary())})}};e.\u0275fac=function(n){return new(n||e)(m(B),m(X),m(Ne),m(Ke))},e.\u0275cmp=E({type:e,selectors:[["uds-assign-service-to-owner"]],decls:32,vars:8,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModelChange","selectionChange","ngModel"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(n,o){n&1&&(c(0,"h4",0)(1,"uds-translate"),g(2,"Assign service to user manually"),d()(),c(3,"mat-dialog-content")(4,"div",1)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),g(8,"Service"),d()(),c(9,"mat-select",2),H("ngModelChange",function(s){return $(o.serviceId,s)||(o.serviceId=s),s}),c(10,"uds-cond-select-search",3),b("changed",function(s){return o.assignablesServicesFilter=s}),d(),x(11,L7,2,2,"mat-option",4),d()(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),g(15,"Authenticator"),d()(),c(16,"mat-select",5),H("ngModelChange",function(s){return $(o.authId,s)||(o.authId=s),s}),b("selectionChange",function(s){return o.changeAuth(s)}),x(17,V7,2,2,"mat-option",4),d()(),c(18,"mat-form-field")(19,"mat-label")(20,"uds-translate"),g(21,"User"),d()(),c(22,"mat-select",2),H("ngModelChange",function(s){return $(o.userId,s)||(o.userId=s),s}),c(23,"uds-cond-select-search",3),b("changed",function(s){return o.userFilter=s}),d(),x(24,j7,2,2,"mat-option",4),d()()()(),c(25,"mat-dialog-actions")(26,"button",6),b("click",function(){return o.cancel()}),c(27,"uds-translate"),g(28,"Cancel"),d()(),c(29,"button",7),b("click",function(){return o.save()}),c(30,"uds-translate"),g(31,"Ok"),d()()()),n&2&&(h(9),U("ngModel",o.serviceId),h(),p("options",o.assignablesServices),h(),p("ngForOf",o.filteredAssignables()),h(5),U("ngModel",o.authId),h(),p("ngForOf",o.auths),h(5),U("ngModel",o.userId),h(),p("options",o.users),h(),p("ngForOf",o.filteredUsers()))},dependencies:[We,xe,Se,ke,Je,tt,et,_e,Ae,bt,nt,le,hi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]});let i=e;return i})();var DA=su(Qf());var xA=(()=>{let e=class e{constructor(t){this.rest=t,this.poolUuid="",this.options={},this.chart=null}onResize(t){this.chart&&this.chart.resize()}ngOnInit(){return W(this,null,function*(){let t=yield this.rest.system.stats("complete",this.poolUuid);this.options={tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},toolbox:{feature:{dataZoom:{yAxisIndex:"none"},restore:{},saveAsImage:{}}},xAxis:{type:"category",data:t.assigned.map(n=>$i("SHORT_DATETIME_FORMAT",new Date(n.stamp))),boundaryGap:!1},yAxis:{type:"value"},series:[{name:django.gettext("Assigned"),type:"line",stack:"services",smooth:!0,areaStyle:{},data:t.assigned.map(n=>n.value)},{name:django.gettext("Cached"),type:"line",stack:"services",smooth:!0,areaStyle:{},data:t.cached.map(n=>n.value)},{name:django.gettext("In use"),type:"line",smooth:!0,data:t.inuse.map(n=>n.value)}]}})}chartInit(t){this.chart=t}};e.\u0275fac=function(n){return new(n||e)(m(X))},e.\u0275cmp=E({type:e,selectors:[["uds-service-pools-charts"]],hostBindings:function(n,o){n&1&&b("resize",function(s){return o.onResize(s)},!1,Jh)},inputs:{poolUuid:"poolUuid"},decls:2,vars:1,consts:[[1,"statistics-chart"],["echarts","","theme","dark-digerati",3,"chartInit","options"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1),b("chartInit",function(s){return o.chartInit(s)}),d()()),n&2&&(h(),p("options",o.options))},dependencies:[gf]});let i=e;return i})();var z7=i=>["/pools","service-pools",i];function U7(i,e){i&1&&(c(0,"uds-translate"),g(1,"Summary"),d())}function H7(i,e){if(i&1&&I(0,"uds-information",20),i&2){let r=_(2);p("value",r.servicePool)("gui",r.gui)}}function $7(i,e){i&1&&(c(0,"uds-translate"),g(1,"Assigned services"),d())}function W7(i,e){i&1&&(c(0,"uds-translate"),g(1,"Cache"),d())}function G7(i,e){if(i&1){let r=A();c(0,"mat-tab"),x(1,W7,2,0,"ng-template",9),c(2,"div",10)(3,"uds-table",21),b("customButtonAction",function(n){y(r);let o=_(2);return w(o.onCustomCached(n))})("deleteAction",function(n){y(r);let o=_(2);return w(o.onDeleteCache(n))}),d()()()}if(i&2){let r=_(2);h(3),p("rest",r.cache)("multiSelect",!0)("allowExport",!0)("onItem",r.processsCacheElement)("tableId","servicePools-d-cache"+r.servicePool.id)("customButtons",r.customButtonsCachedServices)("pageSize",r.api.config.admin.page_size)}}function q7(i,e){i&1&&(c(0,"uds-translate"),g(1,"Groups"),d())}function Y7(i,e){i&1&&(c(0,"uds-translate"),g(1,"Transports"),d())}function Q7(i,e){i&1&&(c(0,"uds-translate"),g(1,"Publications"),d())}function K7(i,e){if(i&1){let r=A();c(0,"mat-tab"),x(1,Q7,2,0,"ng-template",9),c(2,"div",10)(3,"uds-table",22),b("customButtonAction",function(n){y(r);let o=_(2);return w(o.onCustomPublication(n))})("newAction",function(n){y(r);let o=_(2);return w(o.onNewPublication(n))})("rowSelected",function(n){y(r);let o=_(2);return w(o.onPublicationRowSelect(n))}),d()()()}if(i&2){let r=_(2);h(3),p("rest",r.publications)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-publications"+r.servicePool.id)("customButtons",r.customButtonsPublication)("pageSize",r.api.config.admin.page_size)}}function Z7(i,e){i&1&&(c(0,"uds-translate"),g(1,"Scheduled actions"),d())}function X7(i,e){i&1&&(c(0,"uds-translate"),g(1,"Access calendars"),d())}function J7(i,e){i&1&&(c(0,"uds-translate"),g(1,"Charts"),d())}function e9(i,e){i&1&&(c(0,"uds-translate"),g(1,"Logs"),d())}function t9(i,e){if(i&1){let r=A();c(0,"div",6)(1,"div",7)(2,"mat-tab-group",8),H("selectedIndexChange",function(n){y(r);let o=_();return $(o.selectedTab,n)||(o.selectedTab=n),w(n)}),c(3,"mat-tab"),x(4,U7,2,0,"ng-template",9),c(5,"div",10),x(6,H7,1,2,"uds-information",11),d()(),c(7,"mat-tab"),x(8,$7,2,0,"ng-template",9),c(9,"div",10)(10,"uds-table",12),b("customButtonAction",function(n){y(r);let o=_();return w(o.onCustomAssigned(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteAssigned(n))}),d()()(),x(11,G7,4,7,"mat-tab",13),c(12,"mat-tab"),x(13,q7,2,0,"ng-template",9),c(14,"div",10)(15,"uds-table",14),b("newAction",function(n){y(r);let o=_();return w(o.onNewGroup(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteGroup(n))}),d()()(),c(16,"mat-tab"),x(17,Y7,2,0,"ng-template",9),c(18,"div",10)(19,"uds-table",15),b("newAction",function(n){y(r);let o=_();return w(o.onNewTransport(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteTransport(n))}),d()()(),x(20,K7,4,6,"mat-tab",13),c(21,"mat-tab"),x(22,Z7,2,0,"ng-template",9),c(23,"div",10)(24,"uds-table",16),b("customButtonAction",function(n){y(r);let o=_();return w(o.onCustomScheduleAction(n))})("newAction",function(n){y(r);let o=_();return w(o.onNewScheduledAction(n))})("editAction",function(n){y(r);let o=_();return w(o.onEditScheduledAction(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteScheduledAction(n))}),d()()(),c(25,"mat-tab"),x(26,X7,2,0,"ng-template",9),c(27,"div",10)(28,"uds-table",17),b("newAction",function(n){y(r);let o=_();return w(o.onNewAccessCalendar(n))})("editAction",function(n){y(r);let o=_();return w(o.onEditAccessCalendar(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteAccessCalendar(n))})("loaded",function(n){y(r);let o=_();return w(o.onAccessCalendarLoad(n))}),d()()(),c(29,"mat-tab"),x(30,J7,2,0,"ng-template",9),c(31,"div",10),I(32,"uds-service-pools-charts",18),d()(),c(33,"mat-tab"),x(34,e9,2,0,"ng-template",9),c(35,"div",10),I(36,"uds-logs-table",19),d()()()()()}if(i&2){let r=_();h(2),U("selectedIndex",r.selectedTab),p("@.disabled",!0),h(4),p("ngIf",r.servicePool&&r.gui),h(4),p("rest",r.assignedServices)("multiSelect",!0)("allowExport",!0)("onItem",r.processsAssignedElement)("tableId","servicePools-d-services"+r.servicePool.id)("customButtons",r.customButtonsAssignedServices)("pageSize",r.api.config.admin.page_size),h(),p("ngIf",r.cache),h(4),p("rest",r.groups)("multiSelect",!0)("allowExport",!0)("customButtons",r.customButtonsGroups)("tableId","servicePools-d-groups"+r.servicePool.id)("pageSize",r.api.config.admin.page_size),h(4),p("rest",r.transports)("multiSelect",!0)("allowExport",!0)("customButtons",r.customButtonsTransports)("tableId","servicePools-d-transports"+r.servicePool.id)("pageSize",r.api.config.admin.page_size),h(),p("ngIf",r.publications),h(4),p("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),h(4),p("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),h(4),p("poolUuid",r.servicePool.id),h(4),p("rest",r.rest.servicesPools)("itemId",r.servicePool.id)("tableId","servicePools-d-log"+r.servicePool.id)("pageSize",r.api.config.admin.page_size)}}var og='event'+django.gettext("Logs")+"",i9='computer'+django.gettext("VNC")+"",n9='schedule'+django.gettext("Launch now")+"",vw='perm_identity'+django.gettext("Change owner")+"",o9='perm_identity'+django.gettext("Assign service")+"",r9='cancel'+django.gettext("Cancel")+"",a9='event'+django.gettext("Changelog")+"",rg=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o,this.customButtonsScheduledAction=[{id:"launch-action",html:n9,type:ut.SINGLE_SELECT},Ii.getGotoButton(Yp,"calendarId")],this.customButtonAccessCalendars=[Ii.getGotoButton(Yp,"calendarId")],this.customButtonsAssignedServices=[{id:"change-owner",html:vw,type:ut.SINGLE_SELECT},{id:"log",html:og,type:ut.SINGLE_SELECT},Ii.getGotoButton(Hd,"owner_info.auth_id","owner_info.user_id")],this.customButtonsCachedServices=[{id:"log",html:og,type:ut.SINGLE_SELECT}],this.customButtonsPublication=[{id:"cancel-publication",html:r9,type:ut.SINGLE_SELECT},{id:"changelog",html:a9,type:ut.ALWAYS}],this.customButtonsGroups=[Ii.getGotoButton(Ay,"auth_id","id")],this.customButtonsTransports=[Ii.getGotoButton(Oy,"id")],this.servicePool=null,this.gui=[],this.assignedServices={},this.cache=null,this.groups={},this.transports={},this.publications=null,this.scheduledActions={},this.accessCalendars={},this.selectedTab=1}static cleanInvalidSelections(t){return t.table.selection.selected.filter(n=>["E","R","M","S","C"].includes(n.state)).forEach(n=>t.table.selection.deselect(n)),t.table.selection.isEmpty()}ngOnInit(){return W(this,null,function*(){let t=this.route.snapshot.paramMap.get("pool");if(!t)return;this.assignedServices=this.rest.servicesPools.detail(t,"services"),this.groups=this.rest.servicesPools.detail(t,"groups"),this.transports=this.rest.servicesPools.detail(t,"transports"),this.scheduledActions=this.rest.servicesPools.detail(t,"actions"),this.accessCalendars=this.rest.servicesPools.detail(t,"access");let n=yield this.rest.servicesPools.get(t),o=(yield this.rest.servicesPools.gui()).filter(a=>{let s=["initial_srvs","cache_l1_srvs","cache_l2_srvs","max_srvs"];return!(n.info.uses_cache===!1&&s.includes(a.name)||n.info.uses_cache_l2===!1&&a.name==="cache_l2_srvs"||n.info.needs_manager===!1&&a.name==="osmanager_id")});this.servicePool=n,this.gui=o,n.info.uses_cache?this.cache=this.rest.servicesPools.detail(t,"cache"):this.cache=null,n.info.needs_publication?this.publications=this.rest.servicesPools.detail(t,"publications"):this.publications=null,this.api.config.admin.vnc_userservices&&this.customButtonsAssignedServices.push({id:"vnc",html:i9,type:ut.ONLY_MENU}),this.servicePool.info.can_list_assignables&&this.customButtonsAssignedServices.push({id:"assign-service",html:o9,type:ut.ALWAYS})})}vnc(t){let n=`[connection] +`),h(2),p("rest",o.model)("itemId",o.userService.id)("tableId","servicePools-d-uslog"+o.userService.id))},dependencies:[ke,Qt,Je,tt,et,le,An],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]});let i=e;return i})();function L7(i,e){if(i&1&&(c(0,"mat-option",8),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),h(),F(" ",r.text," ")}}function V7(i,e){if(i&1&&(c(0,"mat-option",8),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),h(),F(" ",r.name," ")}}function j7(i,e){if(i&1&&(c(0,"mat-option",8),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),h(),F(" ",r.name," ")}}var CA=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.done=new Jt,this.auths=[],this.assignablesServices=[],this.assignablesServicesFilter="",this.users=[],this.userFilter="",this.serviceId="",this.authId="",this.userId="",this.servicePool=a.servicePool}static launch(t,n){let o=window.innerWidth<800?"60%":"40%";return t.gui.dialog.open(e,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1}).componentInstance.done}ngOnInit(){return W(this,null,function*(){this.authId="",this.userId="";let t=yield this.rest.authenticators.summary(),n=yield this.rest.servicesPools.listAssignables(this.servicePool.id);this.auths=t,this.assignablesServices=n})}changeAuth(t){return W(this,null,function*(){this.userId="",this.authChanged()})}filteredUsers(){if(!this.userFilter)return this.users;let t=new Array;return this.users.forEach(n=>{n.name.toLocaleLowerCase().includes(this.userFilter.toLocaleLowerCase())&&t.push(n)}),t}filteredAssignables(){if(!this.assignablesServicesFilter)return this.assignablesServices;let t=new Array;return this.assignablesServices.forEach(n=>{n.text.toLocaleLowerCase().includes(this.assignablesServicesFilter.toLocaleLowerCase())&&t.push(n)}),t}save(){return W(this,null,function*(){if(this.userId===""||this.authId===""){this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid user"));return}this.rest.servicesPools.createFromAssignable(this.servicePool.id,this.userId,this.serviceId).then(t=>{this.dialogRef.close(),this.done.resolve(!0)})})}cancel(){this.dialogRef.close(),this.done.resolve(!1)}authChanged(){return W(this,null,function*(){this.authId&&(this.users=yield this.rest.authenticators.detail(this.authId,"users").summary())})}};e.\u0275fac=function(n){return new(n||e)(m(B),m(X),m(Ne),m(Ke))},e.\u0275cmp=E({type:e,selectors:[["uds-assign-service-to-owner"]],decls:32,vars:8,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModelChange","selectionChange","ngModel"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(n,o){n&1&&(c(0,"h4",0)(1,"uds-translate"),g(2,"Assign service to user manually"),d()(),c(3,"mat-dialog-content")(4,"div",1)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),g(8,"Service"),d()(),c(9,"mat-select",2),H("ngModelChange",function(s){return $(o.serviceId,s)||(o.serviceId=s),s}),c(10,"uds-cond-select-search",3),b("changed",function(s){return o.assignablesServicesFilter=s}),d(),x(11,L7,2,2,"mat-option",4),d()(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),g(15,"Authenticator"),d()(),c(16,"mat-select",5),H("ngModelChange",function(s){return $(o.authId,s)||(o.authId=s),s}),b("selectionChange",function(s){return o.changeAuth(s)}),x(17,V7,2,2,"mat-option",4),d()(),c(18,"mat-form-field")(19,"mat-label")(20,"uds-translate"),g(21,"User"),d()(),c(22,"mat-select",2),H("ngModelChange",function(s){return $(o.userId,s)||(o.userId=s),s}),c(23,"uds-cond-select-search",3),b("changed",function(s){return o.userFilter=s}),d(),x(24,j7,2,2,"mat-option",4),d()()()(),c(25,"mat-dialog-actions")(26,"button",6),b("click",function(){return o.cancel()}),c(27,"uds-translate"),g(28,"Cancel"),d()(),c(29,"button",7),b("click",function(){return o.save()}),c(30,"uds-translate"),g(31,"Ok"),d()()()),n&2&&(h(9),U("ngModel",o.serviceId),h(),p("options",o.assignablesServices),h(),p("ngForOf",o.filteredAssignables()),h(5),U("ngModel",o.authId),h(),p("ngForOf",o.auths),h(5),U("ngModel",o.userId),h(),p("options",o.users),h(),p("ngForOf",o.filteredUsers()))},dependencies:[We,xe,Se,ke,Je,tt,et,_e,Ae,bt,nt,le,hi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]});let i=e;return i})();var DA=su(Qf());var xA=(()=>{let e=class e{constructor(t){this.rest=t,this.poolUuid="",this.options={},this.chart=null}onResize(t){this.chart&&this.chart.resize()}ngOnInit(){return W(this,null,function*(){let t=yield this.rest.system.stats("complete",this.poolUuid);this.options={tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},toolbox:{feature:{dataZoom:{yAxisIndex:"none"},restore:{},saveAsImage:{}}},xAxis:{type:"category",data:t.assigned.map(n=>$i("SHORT_DATETIME_FORMAT",new Date(n.stamp))),boundaryGap:!1},yAxis:{type:"value"},series:[{name:django.gettext("Assigned"),type:"line",stack:"services",smooth:!0,areaStyle:{},data:t.assigned.map(n=>n.value)},{name:django.gettext("Cached"),type:"line",stack:"services",smooth:!0,areaStyle:{},data:t.cached.map(n=>n.value)},{name:django.gettext("In use"),type:"line",smooth:!0,data:t.inuse.map(n=>n.value)}]}})}chartInit(t){this.chart=t}};e.\u0275fac=function(n){return new(n||e)(m(X))},e.\u0275cmp=E({type:e,selectors:[["uds-service-pools-charts"]],hostBindings:function(n,o){n&1&&b("resize",function(s){return o.onResize(s)},!1,Jh)},inputs:{poolUuid:"poolUuid"},decls:2,vars:1,consts:[[1,"statistics-chart"],["echarts","","theme","dark-digerati",3,"chartInit","options"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1),b("chartInit",function(s){return o.chartInit(s)}),d()()),n&2&&(h(),p("options",o.options))},dependencies:[gf]});let i=e;return i})();var z7=i=>["/pools","service-pools",i];function U7(i,e){i&1&&(c(0,"uds-translate"),g(1,"Summary"),d())}function H7(i,e){if(i&1&&I(0,"uds-information",20),i&2){let r=_(2);p("value",r.servicePool)("gui",r.gui)}}function $7(i,e){i&1&&(c(0,"uds-translate"),g(1,"Assigned services"),d())}function W7(i,e){i&1&&(c(0,"uds-translate"),g(1,"Cache"),d())}function G7(i,e){if(i&1){let r=A();c(0,"mat-tab"),x(1,W7,2,0,"ng-template",9),c(2,"div",10)(3,"uds-table",21),b("customButtonAction",function(n){y(r);let o=_(2);return w(o.onCustomCached(n))})("deleteAction",function(n){y(r);let o=_(2);return w(o.onDeleteCache(n))}),d()()()}if(i&2){let r=_(2);h(3),p("rest",r.cache)("multiSelect",!0)("allowExport",!0)("onItem",r.processsCacheElement)("tableId","servicePools-d-cache"+r.servicePool.id)("customButtons",r.customButtonsCachedServices)("pageSize",r.api.config.admin.page_size)}}function q7(i,e){i&1&&(c(0,"uds-translate"),g(1,"Groups"),d())}function Y7(i,e){i&1&&(c(0,"uds-translate"),g(1,"Transports"),d())}function Q7(i,e){i&1&&(c(0,"uds-translate"),g(1,"Publications"),d())}function K7(i,e){if(i&1){let r=A();c(0,"mat-tab"),x(1,Q7,2,0,"ng-template",9),c(2,"div",10)(3,"uds-table",22),b("customButtonAction",function(n){y(r);let o=_(2);return w(o.onCustomPublication(n))})("newAction",function(n){y(r);let o=_(2);return w(o.onNewPublication(n))})("rowSelected",function(n){y(r);let o=_(2);return w(o.onPublicationRowSelect(n))}),d()()()}if(i&2){let r=_(2);h(3),p("rest",r.publications)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-publications"+r.servicePool.id)("customButtons",r.customButtonsPublication)("pageSize",r.api.config.admin.page_size)}}function Z7(i,e){i&1&&(c(0,"uds-translate"),g(1,"Scheduled actions"),d())}function X7(i,e){i&1&&(c(0,"uds-translate"),g(1,"Access calendars"),d())}function J7(i,e){i&1&&(c(0,"uds-translate"),g(1,"Charts"),d())}function e9(i,e){i&1&&(c(0,"uds-translate"),g(1,"Logs"),d())}function t9(i,e){if(i&1){let r=A();c(0,"div",6)(1,"div",7)(2,"mat-tab-group",8),H("selectedIndexChange",function(n){y(r);let o=_();return $(o.selectedTab,n)||(o.selectedTab=n),w(n)}),c(3,"mat-tab"),x(4,U7,2,0,"ng-template",9),c(5,"div",10),x(6,H7,1,2,"uds-information",11),d()(),c(7,"mat-tab"),x(8,$7,2,0,"ng-template",9),c(9,"div",10)(10,"uds-table",12),b("customButtonAction",function(n){y(r);let o=_();return w(o.onCustomAssigned(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteAssigned(n))}),d()()(),x(11,G7,4,7,"mat-tab",13),c(12,"mat-tab"),x(13,q7,2,0,"ng-template",9),c(14,"div",10)(15,"uds-table",14),b("newAction",function(n){y(r);let o=_();return w(o.onNewGroup(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteGroup(n))}),d()()(),c(16,"mat-tab"),x(17,Y7,2,0,"ng-template",9),c(18,"div",10)(19,"uds-table",15),b("newAction",function(n){y(r);let o=_();return w(o.onNewTransport(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteTransport(n))}),d()()(),x(20,K7,4,6,"mat-tab",13),c(21,"mat-tab"),x(22,Z7,2,0,"ng-template",9),c(23,"div",10)(24,"uds-table",16),b("customButtonAction",function(n){y(r);let o=_();return w(o.onCustomScheduleAction(n))})("newAction",function(n){y(r);let o=_();return w(o.onNewScheduledAction(n))})("editAction",function(n){y(r);let o=_();return w(o.onEditScheduledAction(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteScheduledAction(n))}),d()()(),c(25,"mat-tab"),x(26,X7,2,0,"ng-template",9),c(27,"div",10)(28,"uds-table",17),b("newAction",function(n){y(r);let o=_();return w(o.onNewAccessCalendar(n))})("editAction",function(n){y(r);let o=_();return w(o.onEditAccessCalendar(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteAccessCalendar(n))})("loaded",function(n){y(r);let o=_();return w(o.onAccessCalendarLoad(n))}),d()()(),c(29,"mat-tab"),x(30,J7,2,0,"ng-template",9),c(31,"div",10),I(32,"uds-service-pools-charts",18),d()(),c(33,"mat-tab"),x(34,e9,2,0,"ng-template",9),c(35,"div",10),I(36,"uds-logs-table",19),d()()()()()}if(i&2){let r=_();h(2),U("selectedIndex",r.selectedTab),p("@.disabled",!0),h(4),p("ngIf",r.servicePool&&r.gui),h(4),p("rest",r.assignedServices)("multiSelect",!0)("allowExport",!0)("onItem",r.processsAssignedElement)("tableId","servicePools-d-services"+r.servicePool.id)("customButtons",r.customButtonsAssignedServices)("pageSize",r.api.config.admin.page_size),h(),p("ngIf",r.cache),h(4),p("rest",r.groups)("multiSelect",!0)("allowExport",!0)("customButtons",r.customButtonsGroups)("tableId","servicePools-d-groups"+r.servicePool.id)("pageSize",r.api.config.admin.page_size),h(4),p("rest",r.transports)("multiSelect",!0)("allowExport",!0)("customButtons",r.customButtonsTransports)("tableId","servicePools-d-transports"+r.servicePool.id)("pageSize",r.api.config.admin.page_size),h(),p("ngIf",r.publications),h(4),p("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),h(4),p("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),h(4),p("poolUuid",r.servicePool.id),h(4),p("rest",r.rest.servicesPools)("itemId",r.servicePool.id)("tableId","servicePools-d-log"+r.servicePool.id)("pageSize",r.api.config.admin.page_size)}}var og='event'+django.gettext("Logs")+"",i9='computer'+django.gettext("VNC")+"",n9='schedule'+django.gettext("Launch now")+"",vw='perm_identity'+django.gettext("Change owner")+"",o9='perm_identity'+django.gettext("Assign service")+"",r9='cancel'+django.gettext("Cancel")+"",a9='event'+django.gettext("Changelog")+"",rg=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o,this.customButtonsScheduledAction=[{id:"launch-action",html:n9,type:ct.SINGLE_SELECT},Ii.getGotoButton(Yp,"calendarId")],this.customButtonAccessCalendars=[Ii.getGotoButton(Yp,"calendarId")],this.customButtonsAssignedServices=[{id:"change-owner",html:vw,type:ct.SINGLE_SELECT},{id:"log",html:og,type:ct.SINGLE_SELECT},Ii.getGotoButton(Hd,"owner_info.auth_id","owner_info.user_id")],this.customButtonsCachedServices=[{id:"log",html:og,type:ct.SINGLE_SELECT}],this.customButtonsPublication=[{id:"cancel-publication",html:r9,type:ct.SINGLE_SELECT},{id:"changelog",html:a9,type:ct.ALWAYS}],this.customButtonsGroups=[Ii.getGotoButton(Ay,"auth_id","id")],this.customButtonsTransports=[Ii.getGotoButton(Oy,"id")],this.servicePool=null,this.gui=[],this.assignedServices={},this.cache=null,this.groups={},this.transports={},this.publications=null,this.scheduledActions={},this.accessCalendars={},this.selectedTab=1}static cleanInvalidSelections(t){return t.table.selection.selected.filter(n=>["E","R","M","S","C"].includes(n.state)).forEach(n=>t.table.selection.deselect(n)),t.table.selection.isEmpty()}ngOnInit(){return W(this,null,function*(){let t=this.route.snapshot.paramMap.get("pool");if(!t)return;this.assignedServices=this.rest.servicesPools.detail(t,"services"),this.groups=this.rest.servicesPools.detail(t,"groups"),this.transports=this.rest.servicesPools.detail(t,"transports"),this.scheduledActions=this.rest.servicesPools.detail(t,"actions"),this.accessCalendars=this.rest.servicesPools.detail(t,"access");let n=yield this.rest.servicesPools.get(t),o=(yield this.rest.servicesPools.gui()).filter(a=>{let s=["initial_srvs","cache_l1_srvs","cache_l2_srvs","max_srvs"];return!(n.info.uses_cache===!1&&s.includes(a.name)||n.info.uses_cache_l2===!1&&a.name==="cache_l2_srvs"||n.info.needs_manager===!1&&a.name==="osmanager_id")});this.servicePool=n,this.gui=o,n.info.uses_cache?this.cache=this.rest.servicesPools.detail(t,"cache"):this.cache=null,n.info.needs_publication?this.publications=this.rest.servicesPools.detail(t,"publications"):this.publications=null,this.api.config.admin.vnc_userservices&&this.customButtonsAssignedServices.push({id:"vnc",html:i9,type:ct.ONLY_MENU}),this.servicePool.info.can_list_assignables&&this.customButtonsAssignedServices.push({id:"assign-service",html:o9,type:ct.ALWAYS})})}vnc(t){let n=`[connection] host=`+t.ip+` port=5900 -`,o=new Blob([n],{type:"application/extension-vnc"});setTimeout(()=>{(0,DA.saveAs)(o,t.ip+".vnc",{autoBom:!1})},100)}onCustomAssigned(t){return W(this,null,function*(){let n=t.table.selection.selected[0];if(t.param.id==="change-owner"){if(["E","R","M","S","C"].includes(n.state))return;(yield eg.launch(this.api,n,this.assignedServices))===!0&&t.table.overview()}else t.param.id==="log"?qd.launch(this.api,n,this.assignedServices):t.param.id==="assign-service"?(yield CA.launch(this.api,this.servicePool))===!0&&t.table.overview():t.param.id==="vnc"&&this.vnc(n)})}onCustomCached(t){let n=t.table.selection.selected[0];t.param.id==="log"&&this.cache&&qd.launch(this.api,n,this.cache)}processsAssignedElement(t){t.in_use=this.api.boolAsHumanString(t.in_use),t.origState=t.state,t.state==="U"&&(t.state=t.os_state!==""&&t.os_state!=="U"?"Z":"U")}onDeleteAssigned(t){e.cleanInvalidSelections(t)||this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned service"))}onDeleteCache(t){e.cleanInvalidSelections(t)||this.api.gui.forms.deleteForm(t,django.gettext("Delete cached service"))}processsCacheElement(t){t.origState=t.state,t.state==="U"&&(t.state=t.os_state!==""&&t.os_state!=="U"?"Z":"U")}onNewGroup(t){return W(this,null,function*(){(yield tg.launch(this.api,this.servicePool,this.groups))===!0&&t.table.overview()})}onDeleteGroup(t){return W(this,null,function*(){this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned group"))})}onNewTransport(t){return W(this,null,function*(){(yield vA.launch(this.api,this.servicePool))===!0&&t.table.overview()})}onDeleteTransport(t){return W(this,null,function*(){this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned transport"))})}onNewPublication(t){return W(this,null,function*(){(yield bA.launch(this.api,this.servicePool))===!0&&t.table.overview()})}onPublicationRowSelect(t){t.table.selection.selected.length===1&&(this.customButtonsPublication[0].disabled=!["P","W","L","K"].includes(t.table.selection.selected[0].state))}onCustomPublication(t){t.param.id==="cancel-publication"?this.api.gui.questionDialog(django.gettext("Publication"),django.gettext("Cancel publication?"),!0).then(n=>{n&&this.publications&&this.publications.invoke(t.table.selection.selected[0].id+"/cancel").then(o=>{this.api.gui.snackbar.open(django.gettext("Publication canceled"),django.gettext("dismiss"),{duration:2e3}),t.table.overview()})}):t.param.id==="changelog"&&yA.launch(this.api,this.servicePool)}onNewScheduledAction(t){_w.launch(this.api,this.servicePool).subscribe(n=>t.table.overview())}onEditScheduledAction(t){_w.launch(this.api,this.servicePool,t.table.selection.selected[0]).subscribe(n=>t.table.overview())}onDeleteScheduledAction(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete scheduled action"))}onCustomScheduleAction(t){this.api.gui.questionDialog(django.gettext("Execute scheduled action"),django.gettext("Execute scheduled action right now?")).then(n=>{n&&this.scheduledActions.invoke(t.table.selection.selected[0].id+"/execute").then(()=>{this.api.gui.snackbar.open(django.gettext("Scheduled action executed"),django.gettext("dismiss"),{duration:2e3}),t.table.overview()})})}onNewAccessCalendar(t){Zl.launch(this.api,this.servicePool,this.accessCalendars).subscribe(n=>t.table.overview())}onEditAccessCalendar(t){Zl.launch(this.api,this.servicePool,this.accessCalendars,t.table.selection.selected[0]).subscribe(n=>t.table.overview())}onDeleteAccessCalendar(t){t.table.selection.selected[0].id!==-1?this.api.gui.forms.deleteForm(t,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(t)}onAccessCalendarLoad(t){this.rest.servicesPools.getFallbackAccess(this.servicePool.id).then(n=>{let o=t.table.dataSource.data.filter(a=>!0);o.push({id:-1,calendar:"-",priority:this.api.safeString('10000000FallBack'),access:n}),t.table.dataSource.data=o})}processsCalendarOrScheduledElement(t){t.name=t.calendar,t.atStart=this.api.boolAsHumanString(t.atStart)}};e.\u0275fac=function(n){return new(n||e)(m(Oe),m(X),m(B))},e.\u0275cmp=E({type:e,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,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","pools",3,"customButtonAction","deleteAction","rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize"],[4,"ngIf"],["icon","groups",3,"newAction","deleteAction","rest","multiSelect","allowExport","customButtons","tableId","pageSize"],["icon","transports",3,"newAction","deleteAction","rest","multiSelect","allowExport","customButtons","tableId","pageSize"],["icon","calendars",3,"customButtonAction","newAction","editAction","deleteAction","rest","multiSelect","allowExport","tableId","customButtons","onItem","pageSize"],["icon","calendars",3,"newAction","editAction","deleteAction","loaded","rest","multiSelect","allowExport","customButtons","tableId","onItem","pageSize"],[3,"poolUuid"],[3,"rest","itemId","tableId","pageSize"],[3,"value","gui"],["icon","cached",3,"customButtonAction","deleteAction","rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize"],["icon","publications",3,"customButtonAction","newAction","rowSelected","rest","multiSelect","allowExport","tableId","customButtons","pageSize"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),g(4,"arrow_back"),d()(),g(5," \xA0"),I(6,"img",4),g(7),d(),x(8,t9,37,43,"div",5),d()),n&2&&(h(2),p("routerLink",Bi(4,z7,o.servicePool?o.servicePool.id:"")),h(4),p("src",o.api.staticURL("admin/img/icons/pools.png"),Ie),h(),F(" \xA0",o.servicePool==null?null:o.servicePool.name," "),h(),p("ngIf",o.servicePool!==null))},dependencies:[me,bi,ei,ti,oi,le,Te,An,po,xA],styles:[".mat-column-state{max-width:10rem;justify-content:center} .mat-column-revision, .mat-column-cache_level, .mat-column-in_use, .mat-column-priority{max-width:7rem;justify-content:center} .mat-column-publish_date, .mat-column-state_date, .mat-column-creation_date{width:14rem} .mat-column-trans_type, .mat-column-access{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} .row-state-S>.mat-mdc-cell{color:gray!important} .row-state-C>.mat-mdc-cell{color:gray!important} .row-state-E>.mat-mdc-cell{color:red!important} .row-state-R>.mat-mdc-cell{color:orange!important}"]});let i=e;return i})();var bw=(()=>{let e=class e{constructor(t,n,o){this.api=t,this.route=n,this.rest=o}ngOnInit(){}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New meta pool"))}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit meta pool"))}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete meta pool"))}onDetail(t){this.api.navigation.gotoMetapoolDetail(t.param.id)}processElement(t){t.visible=this.api.boolAsHumanString(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)}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("metapool"))}};e.\u0275fac=function(n){return new(n||e)(m(B),m(Oe),m(X))},e.\u0275cmp=E({type:e,selectors:[["uds-meta-pools"]],decls:2,vars:6,consts:[["icon","metas",3,"detailAction","newAction","editAction","deleteAction","loaded","rest","multiSelect","allowExport","onItem","hasPermissions","pageSize"]],template:function(n,o){n&1&&(c(0,"div")(1,"uds-table",0),b("detailAction",function(s){return o.onDetail(s)})("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("loaded",function(s){return o.onLoad(s)}),d()()),n&2&&(h(),p("rest",o.rest.metaPools)("multiSelect",!0)("allowExport",!0)("onItem",o.processElement)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Te],styles:[".mat-column-user_services_count, .mat-column-user_services_in_preparation, .mat-column-visible, .mat-column-pool_group_name{max-width:7rem;justify-content:center}"]});let i=e;return i})();function s9(i,e){i&1&&(c(0,"uds-translate"),g(1,"New member pool"),d())}function l9(i,e){i&1&&(c(0,"uds-translate"),g(1,"Edit member pool"),d())}function c9(i,e){if(i&1){let r=A();c(0,"uds-cond-select-search",11),b("changed",function(n){y(r);let o=_();return w(o.servicePoolsFilter=n)}),d()}}function d9(i,e){if(i&1&&(c(0,"mat-option",12),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),h(),F(" ",r.name," ")}}var yw=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.done=new Jt,this.servicePools=[],this.servicePoolsFilter="",this.model=a.model,this.memberPool={id:void 0,priority:0,pool_id:"",enabled:!0},a.memberPool&&(this.memberPool.id=a.memberPool.id)}static launch(t,n,o){let a=window.innerWidth<800?"60%":"40%";return t.gui.dialog.open(e,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{memberPool:o,model:n},disableClose:!1}).componentInstance.done}ngOnInit(){return W(this,null,function*(){this.servicePools=yield this.rest.servicesPools.summary(),this.memberPool.id&&(this.memberPool=yield this.model.get(this.memberPool.id))})}filtered(t,n){return n?t.filter(o=>o.name.toLocaleLowerCase().includes(n.toLocaleLowerCase())):t}save(){return W(this,null,function*(){if(!this.memberPool.pool_id){this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid service pool"));return}yield this.model.save(this.memberPool),this.dialogRef.close(),this.done.resolve(!0)})}cancel(){this.dialogRef.close(),this.done.resolve(!1)}};e.\u0275fac=function(n){return new(n||e)(m(B),m(X),m(Ne),m(Ke))},e.\u0275cmp=E({type:e,selectors:[["uds-meta-pools-service-pools"]],decls:30,vars:8,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","number",3,"ngModelChange","ngModel"],[3,"ngModelChange","ngModel"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[1,"mat-form-field-infix"],[1,"label-enabled"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"]],template:function(n,o){n&1&&(c(0,"h4",0),x(1,s9,2,0,"uds-translate",1)(2,l9,2,0,"uds-translate",1),d(),c(3,"mat-dialog-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),g(8,"Priority"),d()(),c(9,"input",3),H("ngModelChange",function(s){return $(o.memberPool.priority,s)||(o.memberPool.priority=s),s}),d()(),c(10,"mat-form-field")(11,"mat-label")(12,"uds-translate"),g(13,"Service pool"),d()(),c(14,"mat-select",4),H("ngModelChange",function(s){return $(o.memberPool.pool_id,s)||(o.memberPool.pool_id=s),s}),x(15,c9,1,0,"uds-cond-select-search",5)(16,d9,2,2,"mat-option",6),d()(),c(17,"div",7)(18,"span",8)(19,"uds-translate"),g(20,"Enabled?"),d()(),c(21,"mat-slide-toggle",4),H("ngModelChange",function(s){return $(o.memberPool.enabled,s)||(o.memberPool.enabled=s),s}),g(22),d()()()(),c(23,"mat-dialog-actions")(24,"button",9),b("click",function(){return o.cancel()}),c(25,"uds-translate"),g(26,"Cancel"),d()(),c(27,"button",10),b("click",function(){return o.save()}),c(28,"uds-translate"),g(29,"Ok"),d()()()),n&2&&(h(),p("ngIf",!(o.memberPool!=null&&o.memberPool.id)),h(),p("ngIf",o.memberPool==null?null:o.memberPool.id),h(7),U("ngModel",o.memberPool.priority),h(5),U("ngModel",o.memberPool.pool_id),h(),p("ngIf",o.servicePools.length>10),h(),p("ngForOf",o.filtered(o.servicePools,o.servicePoolsFilter)),h(5),U("ngModel",o.memberPool.enabled),h(),F(" ",o.api.boolAsHumanString(o.memberPool.enabled)," "))},dependencies:[We,me,lt,$n,xe,Se,ke,Je,tt,et,_e,Ae,ft,bt,nt,cr,le,hi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}.label-enabled[_ngcontent-%COMP%]{color:#0009;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:0px 0px;white-space:nowrap}"]});let i=e;return i})();var u9=i=>["/pools","meta-pools",i];function h9(i,e){i&1&&(c(0,"uds-translate"),g(1,"Summary"),d())}function m9(i,e){if(i&1&&I(0,"uds-information",17),i&2){let r=_(2);p("value",r.metaPool)("gui",r.gui)}}function p9(i,e){i&1&&(c(0,"uds-translate"),g(1,"Service pools"),d())}function f9(i,e){i&1&&(c(0,"uds-translate"),g(1,"Assigned services"),d())}function g9(i,e){i&1&&(c(0,"uds-translate"),g(1,"Groups"),d())}function _9(i,e){i&1&&(c(0,"uds-translate"),g(1,"Access calendars"),d())}function v9(i,e){i&1&&(c(0,"uds-translate"),g(1,"Logs"),d())}function b9(i,e){if(i&1){let r=A();c(0,"div",6)(1,"div",7)(2,"mat-tab-group",8),H("selectedIndexChange",function(n){y(r);let o=_();return $(o.selectedTab,n)||(o.selectedTab=n),w(n)}),c(3,"mat-tab"),x(4,h9,2,0,"ng-template",9),c(5,"div",10),x(6,m9,1,2,"uds-information",11),d()(),c(7,"mat-tab"),x(8,p9,2,0,"ng-template",9),c(9,"div",10)(10,"uds-table",12),b("newAction",function(n){y(r);let o=_();return w(o.onNewMemberPool(n))})("editAction",function(n){y(r);let o=_();return w(o.onEditMemberPool(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteMemberPool(n))}),d()()(),c(11,"mat-tab"),x(12,f9,2,0,"ng-template",9),c(13,"div",10)(14,"uds-table",13),b("customButtonAction",function(n){y(r);let o=_();return w(o.onCustomAssigned(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteAssigned(n))}),d()()(),c(15,"mat-tab"),x(16,g9,2,0,"ng-template",9),c(17,"div",10)(18,"uds-table",14),b("newAction",function(n){y(r);let o=_();return w(o.onNewGroup(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteGroup(n))}),d()()(),c(19,"mat-tab"),x(20,_9,2,0,"ng-template",9),c(21,"div",10)(22,"uds-table",15),b("newAction",function(n){y(r);let o=_();return w(o.onNewAccessCalendar(n))})("editAction",function(n){y(r);let o=_();return w(o.onEditAccessCalendar(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteAccessCalendar(n))})("loaded",function(n){y(r);let o=_();return w(o.onAccessCalendarLoad(n))}),d()()(),c(23,"mat-tab"),x(24,v9,2,0,"ng-template",9),c(25,"div",10),I(26,"uds-logs-table",16),d()()()()()}if(i&2){let r=_();h(2),U("selectedIndex",r.selectedTab),p("@.disabled",!0),h(4),p("ngIf",r.metaPool&&r.gui),h(4),p("rest",r.memberPools)("multiSelect",!0)("allowExport",!0)("onItem",r.processElement)("customButtons",r.customButtons)("tableId","metaPools-d-members"+r.metaPool.id)("pageSize",r.api.config.admin.page_size),h(4),p("rest",r.memberUserServices)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-services"+r.metaPool.id)("customButtons",r.customButtonsAssignedServices)("pageSize",r.api.config.admin.page_size),h(4),p("rest",r.groups)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-groups"+r.metaPool.id)("pageSize",r.api.config.admin.page_size),h(4),p("rest",r.accessCalendars)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-access"+r.metaPool.id)("pageSize",r.api.config.admin.page_size)("onItem",r.processsCalendarItem),h(4),p("rest",r.rest.metaPools)("itemId",r.metaPool.id)("tableId","metaPools-d-log"+r.metaPool.id)("pageSize",r.api.config.admin.page_size)}}var SA=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o,this.customButtons=[Ii.getGotoButton(Ud,"pool_id")],this.customButtonsAssignedServices=[{id:"change-owner",html:vw,type:ut.SINGLE_SELECT},{id:"log",html:og,type:ut.SINGLE_SELECT},Ii.getGotoButton(Hd,"owner_info.auth_id","owner_info.user_id")],this.metaPool=null,this.gui=null,this.selectedTab=1,this.memberPools={},this.memberUserServices={},this.groups={},this.accessCalendars={}}ngOnInit(){return W(this,null,function*(){let t=this.route.snapshot.paramMap.get("metapool");if(!t)return;let n=yield this.rest.metaPools.get(t),o=yield this.rest.metaPools.gui();this.memberPools=this.rest.metaPools.detail(t,"pools"),this.memberUserServices=this.rest.metaPools.detail(t,"services"),this.groups=this.rest.metaPools.detail(t,"groups"),this.accessCalendars=this.rest.metaPools.detail(t,"access"),this.metaPool=n,this.gui=o})}onNewMemberPool(t){return W(this,null,function*(){(yield yw.launch(this.api,this.memberPools))===!0&&t.table.overview()})}onEditMemberPool(t){return W(this,null,function*(){(yield yw.launch(this.api,this.memberPools,t.table.selection.selected[0]))===!0&&t.table.overview()})}onDeleteMemberPool(t){return W(this,null,function*(){this.api.gui.forms.deleteForm(t,django.gettext("Remove member pool"))})}onCustomAssigned(t){return W(this,null,function*(){let n=t.table.selection.selected[0];if(t.param.id==="change-owner"){if(["E","R","M","S","C"].includes(n.state))return;(yield eg.launch(this.api,n,this.memberUserServices))===!0&&t.table.overview()}else t.param.id==="log"&&qd.launch(this.api,n,this.memberUserServices)})}onDeleteAssigned(t){return W(this,null,function*(){rg.cleanInvalidSelections(t)||this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned service"))})}onNewGroup(t){return W(this,null,function*(){(yield tg.launch(this.api,this.metaPool.id,this.groups))===!0&&t.table.overview()})}onDeleteGroup(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned group"))}onNewAccessCalendar(t){Zl.launch(this.api,this.metaPool,this.accessCalendars).subscribe(n=>t.table.overview())}onEditAccessCalendar(t){Zl.launch(this.api,this.metaPool,this.accessCalendars,t.table.selection.selected[0]).subscribe(n=>t.table.overview())}onDeleteAccessCalendar(t){t.table.selection.selected[0].id!==-1?this.api.gui.forms.deleteForm(t,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(t)}onAccessCalendarLoad(t){this.rest.metaPools.getFallbackAccess(this.metaPool.id).then(n=>{let o=t.table.dataSource.data.filter(a=>!0);o.push({id:-1,calendar:"-",priority:this.api.safeString('10000000FallBack'),access:n}),t.table.dataSource.data=o})}processElement(t){t.enabled=this.api.boolAsHumanString(t.enabled)}processsCalendarItem(t){t.name=t.calendar,t.atStart=this.api.boolAsHumanString(t.atStart)}};e.\u0275fac=function(n){return new(n||e)(m(Oe),m(X),m(B))},e.\u0275cmp=E({type:e,selectors:[["uds-meta-pools-detail"]],decls:10,vars:8,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,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","pools",3,"newAction","editAction","deleteAction","rest","multiSelect","allowExport","onItem","customButtons","tableId","pageSize"],["icon","pools",3,"customButtonAction","deleteAction","rest","multiSelect","allowExport","tableId","customButtons","pageSize"],["icon","groups",3,"newAction","deleteAction","rest","multiSelect","allowExport","tableId","pageSize"],["icon","calendars",3,"newAction","editAction","deleteAction","loaded","rest","multiSelect","allowExport","tableId","pageSize","onItem"],[3,"rest","itemId","tableId","pageSize"],[3,"value","gui"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),g(4,"arrow_back"),d()(),g(5," \xA0"),I(6,"img",4),g(7),d(),x(8,b9,27,31,"div",5),_t(9,"notEmpty"),d()),n&2&&(h(2),p("routerLink",Bi(6,u9,o.metaPool?o.metaPool.id:"")),h(4),p("src",o.api.staticURL("admin/img/icons/metas.png"),Ie),h(),F(" ",o.metaPool==null?null:o.metaPool.name," "),h(),p("ngIf",Dt(9,4,o.metaPool)))},dependencies:[me,bi,ei,ti,oi,le,Te,An,po,yi],styles:[".mat-column-enabled, .mat-column-priority{max-width:8rem;justify-content:center}"]});let i=e;return i})();var ww=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o}ngOnInit(){}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New pool group"),!1).then(()=>t.table.overview())}onEdit(t){return W(this,null,function*(){this.api.gui.forms.typedEditForm(t,django.gettext("Edit pool group"),!1)})}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete pool group"))}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("poolgroup"))}};e.\u0275fac=function(n){return new(n||e)(m(Oe),m(X),m(B))},e.\u0275cmp=E({type:e,selectors:[["uds-pool-groups"]],decls:1,vars:5,consts:[["icon","spool-group",3,"newAction","editAction","deleteAction","loaded","rest","multiSelect","allowExport","hasPermissions","pageSize"]],template:function(n,o){n&1&&(c(0,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("loaded",function(s){return o.onLoad(s)}),d()),n&2&&p("rest",o.rest.servicesPoolGroups)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",o.api.config.admin.page_size)},dependencies:[Te],styles:[".mat-column-priority, .mat-column-thumb{max-width:7rem;justify-content:center}"]});let i=e;return i})();var Cw=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o}ngOnInit(){}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New calendar"))}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit calendar"))}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete calendar"))}onDetail(t){this.api.navigation.gotoCalendarDetail(t.param.id)}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("calendar"))}};e.\u0275fac=function(n){return new(n||e)(m(Oe),m(X),m(B))},e.\u0275cmp=E({type:e,selectors:[["uds-calendars"]],decls:1,vars:5,consts:[["icon","calendars",3,"newAction","editAction","deleteAction","detailAction","loaded","rest","multiSelect","allowExport","hasPermissions","pageSize"]],template:function(n,o){n&1&&(c(0,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("detailAction",function(s){return o.onDetail(s)})("loaded",function(s){return o.onLoad(s)}),d()),n&2&&p("rest",o.rest.calendars)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size)},dependencies:[Te]});let i=e;return i})();var y9=["mat-calendar-body",""];function w9(i,e){return this._trackRow(e)}var RA=(i,e)=>e.id;function C9(i,e){if(i&1&&(c(0,"tr",0)(1,"td",3),g(2),d()()),i&2){let r=_();h(),ji("padding-top",r._cellPadding)("padding-bottom",r._cellPadding),ie("colspan",r.numCols),h(),F(" ",r.label," ")}}function x9(i,e){if(i&1&&(c(0,"td",3),g(1),d()),i&2){let r=_(2);ji("padding-top",r._cellPadding)("padding-bottom",r._cellPadding),ie("colspan",r._firstRowOffset),h(),F(" ",r._firstRowOffset>=r.labelMinRequiredCells?r.label:""," ")}}function D9(i,e){if(i&1){let r=A();c(0,"td",6)(1,"button",7),b("click",function(n){let o=y(r).$implicit,a=_(2);return w(a._cellClicked(o,n))})("focus",function(n){let o=y(r).$implicit,a=_(2);return w(a._emitActiveDateChange(o,n))}),c(2,"span",8),g(3),d(),I(4,"span",9),d()()}if(i&2){let r=e.$implicit,t=e.$index,n=_().$index,o=_();ji("width",o._cellWidth)("padding-top",o._cellPadding)("padding-bottom",o._cellPadding),ie("data-mat-row",n)("data-mat-col",t),h(),ne("mat-calendar-body-disabled",!r.enabled)("mat-calendar-body-active",o._isActiveCell(n,t))("mat-calendar-body-range-start",o._isRangeStart(r.compareValue))("mat-calendar-body-range-end",o._isRangeEnd(r.compareValue))("mat-calendar-body-in-range",o._isInRange(r.compareValue))("mat-calendar-body-comparison-bridge-start",o._isComparisonBridgeStart(r.compareValue,n,t))("mat-calendar-body-comparison-bridge-end",o._isComparisonBridgeEnd(r.compareValue,n,t))("mat-calendar-body-comparison-start",o._isComparisonStart(r.compareValue))("mat-calendar-body-comparison-end",o._isComparisonEnd(r.compareValue))("mat-calendar-body-in-comparison-range",o._isInComparisonRange(r.compareValue))("mat-calendar-body-preview-start",o._isPreviewStart(r.compareValue))("mat-calendar-body-preview-end",o._isPreviewEnd(r.compareValue))("mat-calendar-body-in-preview",o._isInPreview(r.compareValue)),p("ngClass",r.cssClasses)("tabindex",o._isActiveCell(n,t)?0:-1),ie("aria-label",r.ariaLabel)("aria-disabled",!r.enabled||null)("aria-pressed",o._isSelected(r.compareValue))("aria-current",o.todayValue===r.compareValue?"date":null)("aria-describedby",o._getDescribedby(r.compareValue)),h(),ne("mat-calendar-body-selected",o._isSelected(r.compareValue))("mat-calendar-body-comparison-identical",o._isComparisonIdentical(r.compareValue))("mat-calendar-body-today",o.todayValue===r.compareValue),h(),F(" ",r.displayValue," ")}}function S9(i,e){if(i&1&&(c(0,"tr",1),x(1,x9,2,6,"td",4),Sr(2,D9,5,48,"td",5,RA),d()),i&2){let r=e.$implicit,t=e.$index,n=_();h(),De(t===0&&n._firstRowOffset?1:-1),h(),Er(r)}}function E9(i,e){if(i&1&&(c(0,"th",2)(1,"span",6),g(2),d(),c(3,"span",3),g(4),d()()),i&2){let r=e.$implicit;h(2),$e(r.long),h(2),$e(r.narrow)}}var I9=["*"];function M9(i,e){}function T9(i,e){if(i&1){let r=A();c(0,"mat-month-view",4),H("activeDateChange",function(n){y(r);let o=_();return $(o.activeDate,n)||(o.activeDate=n),w(n)}),b("_userSelection",function(n){y(r);let o=_();return w(o._dateSelected(n))})("dragStarted",function(n){y(r);let o=_();return w(o._dragStarted(n))})("dragEnded",function(n){y(r);let o=_();return w(o._dragEnded(n))}),d()}if(i&2){let r=_();U("activeDate",r.activeDate),p("selected",r.selected)("dateFilter",r.dateFilter)("maxDate",r.maxDate)("minDate",r.minDate)("dateClass",r.dateClass)("comparisonStart",r.comparisonStart)("comparisonEnd",r.comparisonEnd)("startDateAccessibleName",r.startDateAccessibleName)("endDateAccessibleName",r.endDateAccessibleName)("activeDrag",r._activeDrag)}}function k9(i,e){if(i&1){let r=A();c(0,"mat-year-view",5),H("activeDateChange",function(n){y(r);let o=_();return $(o.activeDate,n)||(o.activeDate=n),w(n)}),b("monthSelected",function(n){y(r);let o=_();return w(o._monthSelectedInYearView(n))})("selectedChange",function(n){y(r);let o=_();return w(o._goToDateInView(n,"month"))}),d()}if(i&2){let r=_();U("activeDate",r.activeDate),p("selected",r.selected)("dateFilter",r.dateFilter)("maxDate",r.maxDate)("minDate",r.minDate)("dateClass",r.dateClass)}}function A9(i,e){if(i&1){let r=A();c(0,"mat-multi-year-view",6),H("activeDateChange",function(n){y(r);let o=_();return $(o.activeDate,n)||(o.activeDate=n),w(n)}),b("yearSelected",function(n){y(r);let o=_();return w(o._yearSelectedInMultiYearView(n))})("selectedChange",function(n){y(r);let o=_();return w(o._goToDateInView(n,"year"))}),d()}if(i&2){let r=_();U("activeDate",r.activeDate),p("selected",r.selected)("dateFilter",r.dateFilter)("maxDate",r.maxDate)("minDate",r.minDate)("dateClass",r.dateClass)}}function O9(i,e){}var R9=["button"],P9=[[["","matDatepickerToggleIcon",""]]],F9=["[matDatepickerToggleIcon]"];function N9(i,e){i&1&&(pi(),c(0,"svg",2),I(1,"path",3),d())}var Zd=(()=>{let e=class e{constructor(){this.changes=new G,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 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(t,n){return`${t} \u2013 ${n}`}formatYearRangeLabel(t,n){return`${t} to ${n}`}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),L9=0,Qd=class{constructor(e,r,t,n,o={},a=e,s){this.value=e,this.displayValue=r,this.ariaLabel=t,this.enabled=n,this.cssClasses=o,this.compareValue=a,this.rawValue=s,this.id=L9++}},V9=1,EA=Ui({passive:!1,capture:!0}),Aa=Ui({passive:!0,capture:!0}),ag=Ui({passive:!0}),Jl=(()=>{let e=class e{ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}constructor(t,n){this._elementRef=t,this._ngZone=n,this._platform=k(Ve),this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new T,this.previewChange=new T,this.activeDateChange=new T,this.dragStarted=new T,this.dragEnded=new T,this._didDragSinceMouseDown=!1,this._injector=k(Pe),this._trackRow=o=>o,this._enterHandler=o=>{if(this._skipNextFocus&&o.type==="focus"){this._skipNextFocus=!1;return}if(o.target&&this.isRange){let a=this._getCellFromElement(o.target);a&&this._ngZone.run(()=>this.previewChange.emit({value:a.enabled?a:null,event:o}))}},this._touchmoveHandler=o=>{if(!this.isRange)return;let a=IA(o),s=a?this._getCellFromElement(a):null;a!==o.target&&(this._didDragSinceMouseDown=!0),Dw(o.target)&&o.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:s?.enabled?s:null,event:o}))},this._leaveHandler=o=>{this.previewEnd!==null&&this.isRange&&(o.type!=="blur"&&(this._didDragSinceMouseDown=!0),o.target&&this._getCellFromElement(o.target)&&!(o.relatedTarget&&this._getCellFromElement(o.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:o})))},this._mousedownHandler=o=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;let a=o.target&&this._getCellFromElement(o.target);!a||!this._isInRange(a.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:a.rawValue,event:o})})},this._mouseupHandler=o=>{if(!this.isRange)return;let a=Dw(o.target);if(!a){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:o})});return}a.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let s=this._getCellFromElement(a);this.dragEnded.emit({value:s?.rawValue??null,event:o})})},this._touchendHandler=o=>{let a=IA(o);a&&this._mouseupHandler({target:a})},this._id=`mat-calendar-body-${V9++}`,this._startDateLabelId=`${this._id}-start-date`,this._endDateLabelId=`${this._id}-end-date`,n.runOutsideAngular(()=>{let o=t.nativeElement;o.addEventListener("touchmove",this._touchmoveHandler,EA),o.addEventListener("mouseenter",this._enterHandler,Aa),o.addEventListener("focus",this._enterHandler,Aa),o.addEventListener("mouseleave",this._leaveHandler,Aa),o.addEventListener("blur",this._leaveHandler,Aa),o.addEventListener("mousedown",this._mousedownHandler,ag),o.addEventListener("touchstart",this._mousedownHandler,ag),this._platform.isBrowser&&(window.addEventListener("mouseup",this._mouseupHandler),window.addEventListener("touchend",this._touchendHandler))})}_cellClicked(t,n){this._didDragSinceMouseDown||t.enabled&&this.selectedValueChange.emit({value:t.value,event:n})}_emitActiveDateChange(t,n){t.enabled&&this.activeDateChange.emit({value:t.value,event:n})}_isSelected(t){return this.startValue===t||this.endValue===t}ngOnChanges(t){let n=t.numCols,{rows:o,numCols:a}=this;(t.rows||n)&&(this._firstRowOffset=o&&o.length&&o[0].length?a-o[0].length:0),(t.cellAspectRatio||n||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/a}%`),(n||!this._cellWidth)&&(this._cellWidth=`${100/a}%`)}ngOnDestroy(){let t=this._elementRef.nativeElement;t.removeEventListener("touchmove",this._touchmoveHandler,EA),t.removeEventListener("mouseenter",this._enterHandler,Aa),t.removeEventListener("focus",this._enterHandler,Aa),t.removeEventListener("mouseleave",this._leaveHandler,Aa),t.removeEventListener("blur",this._leaveHandler,Aa),t.removeEventListener("mousedown",this._mousedownHandler,ag),t.removeEventListener("touchstart",this._mousedownHandler,ag),this._platform.isBrowser&&(window.removeEventListener("mouseup",this._mouseupHandler),window.removeEventListener("touchend",this._touchendHandler))}_isActiveCell(t,n){let o=t*this.numCols+n;return t&&(o-=this._firstRowOffset),o==this.activeCell}_focusActiveCell(t=!0){ai(()=>{setTimeout(()=>{let n=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");n&&(t||(this._skipNextFocus=!0),n.focus())})},{injector:this._injector})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(t){return Sw(t,this.startValue,this.endValue)}_isRangeEnd(t){return Ew(t,this.startValue,this.endValue)}_isInRange(t){return Iw(t,this.startValue,this.endValue,this.isRange)}_isComparisonStart(t){return Sw(t,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(t,n,o){if(!this._isComparisonStart(t)||this._isRangeStart(t)||!this._isInRange(t))return!1;let a=this.rows[n][o-1];if(!a){let s=this.rows[n-1];a=s&&s[s.length-1]}return a&&!this._isRangeEnd(a.compareValue)}_isComparisonBridgeEnd(t,n,o){if(!this._isComparisonEnd(t)||this._isRangeEnd(t)||!this._isInRange(t))return!1;let a=this.rows[n][o+1];if(!a){let s=this.rows[n+1];a=s&&s[0]}return a&&!this._isRangeStart(a.compareValue)}_isComparisonEnd(t){return Ew(t,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(t){return Iw(t,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(t){return this.comparisonStart===this.comparisonEnd&&t===this.comparisonStart}_isPreviewStart(t){return Sw(t,this.previewStart,this.previewEnd)}_isPreviewEnd(t){return Ew(t,this.previewStart,this.previewEnd)}_isInPreview(t){return Iw(t,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(t){return this.isRange?this.startValue===t&&this.endValue===t?`${this._startDateLabelId} ${this._endDateLabelId}`:this.startValue===t?this._startDateLabelId:this.endValue===t?this._endDateLabelId:null:null}_getCellFromElement(t){let n=Dw(t);if(n){let o=n.getAttribute("data-mat-row"),a=n.getAttribute("data-mat-col");if(o&&a)return this.rows[parseInt(o)][parseInt(a)]}return null}};e.\u0275fac=function(n){return new(n||e)(m(q),m(Z))},e.\u0275cmp=E({type:e,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],standalone:!0,features:[Qe,re],attrs:y9,decls:7,vars:5,consts:[["aria-hidden","true"],["role","row"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],[1,"mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"click","focus","ngClass","tabindex"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(n,o){n&1&&(x(0,C9,3,6,"tr",0),Sr(1,S9,4,1,"tr",1,w9,!0),c(3,"span",2),g(4),d(),c(5,"span",2),g(6),d()),n&2&&(De(o._firstRowOffset{(0,DA.saveAs)(o,t.ip+".vnc",{autoBom:!1})},100)}onCustomAssigned(t){return W(this,null,function*(){let n=t.table.selection.selected[0];if(t.param.id==="change-owner"){if(["E","R","M","S","C"].includes(n.state))return;(yield eg.launch(this.api,n,this.assignedServices))===!0&&t.table.overview()}else t.param.id==="log"?qd.launch(this.api,n,this.assignedServices):t.param.id==="assign-service"?(yield CA.launch(this.api,this.servicePool))===!0&&t.table.overview():t.param.id==="vnc"&&this.vnc(n)})}onCustomCached(t){let n=t.table.selection.selected[0];t.param.id==="log"&&this.cache&&qd.launch(this.api,n,this.cache)}processsAssignedElement(t){t.in_use=this.api.boolAsHumanString(t.in_use),t.origState=t.state,t.state==="U"&&(t.state=t.os_state!==""&&t.os_state!=="U"?"Z":"U")}onDeleteAssigned(t){e.cleanInvalidSelections(t)||this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned service"))}onDeleteCache(t){e.cleanInvalidSelections(t)||this.api.gui.forms.deleteForm(t,django.gettext("Delete cached service"))}processsCacheElement(t){t.origState=t.state,t.state==="U"&&(t.state=t.os_state!==""&&t.os_state!=="U"?"Z":"U")}onNewGroup(t){return W(this,null,function*(){(yield tg.launch(this.api,this.servicePool,this.groups))===!0&&t.table.overview()})}onDeleteGroup(t){return W(this,null,function*(){this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned group"))})}onNewTransport(t){return W(this,null,function*(){(yield vA.launch(this.api,this.servicePool))===!0&&t.table.overview()})}onDeleteTransport(t){return W(this,null,function*(){this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned transport"))})}onNewPublication(t){return W(this,null,function*(){(yield bA.launch(this.api,this.servicePool))===!0&&t.table.overview()})}onPublicationRowSelect(t){t.table.selection.selected.length===1&&(this.customButtonsPublication[0].disabled=!["P","W","L","K"].includes(t.table.selection.selected[0].state))}onCustomPublication(t){t.param.id==="cancel-publication"?this.api.gui.questionDialog(django.gettext("Publication"),django.gettext("Cancel publication?"),!0).then(n=>{n&&this.publications&&this.publications.invoke(t.table.selection.selected[0].id+"/cancel").then(o=>{this.api.gui.snackbar.open(django.gettext("Publication canceled"),django.gettext("dismiss"),{duration:2e3}),t.table.overview()})}):t.param.id==="changelog"&&yA.launch(this.api,this.servicePool)}onNewScheduledAction(t){_w.launch(this.api,this.servicePool).subscribe(n=>t.table.overview())}onEditScheduledAction(t){_w.launch(this.api,this.servicePool,t.table.selection.selected[0]).subscribe(n=>t.table.overview())}onDeleteScheduledAction(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete scheduled action"))}onCustomScheduleAction(t){this.api.gui.questionDialog(django.gettext("Execute scheduled action"),django.gettext("Execute scheduled action right now?")).then(n=>{n&&this.scheduledActions.invoke(t.table.selection.selected[0].id+"/execute").then(()=>{this.api.gui.snackbar.open(django.gettext("Scheduled action executed"),django.gettext("dismiss"),{duration:2e3}),t.table.overview()})})}onNewAccessCalendar(t){Zl.launch(this.api,this.servicePool,this.accessCalendars).subscribe(n=>t.table.overview())}onEditAccessCalendar(t){Zl.launch(this.api,this.servicePool,this.accessCalendars,t.table.selection.selected[0]).subscribe(n=>t.table.overview())}onDeleteAccessCalendar(t){t.table.selection.selected[0].id!==-1?this.api.gui.forms.deleteForm(t,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(t)}onAccessCalendarLoad(t){this.rest.servicesPools.getFallbackAccess(this.servicePool.id).then(n=>{let o=t.table.dataSource.data.filter(a=>!0);o.push({id:-1,calendar:"-",priority:this.api.safeString('10000000FallBack'),access:n}),t.table.dataSource.data=o})}processsCalendarOrScheduledElement(t){t.name=t.calendar,t.atStart=this.api.boolAsHumanString(t.atStart)}};e.\u0275fac=function(n){return new(n||e)(m(Oe),m(X),m(B))},e.\u0275cmp=E({type:e,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,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","pools",3,"customButtonAction","deleteAction","rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize"],[4,"ngIf"],["icon","groups",3,"newAction","deleteAction","rest","multiSelect","allowExport","customButtons","tableId","pageSize"],["icon","transports",3,"newAction","deleteAction","rest","multiSelect","allowExport","customButtons","tableId","pageSize"],["icon","calendars",3,"customButtonAction","newAction","editAction","deleteAction","rest","multiSelect","allowExport","tableId","customButtons","onItem","pageSize"],["icon","calendars",3,"newAction","editAction","deleteAction","loaded","rest","multiSelect","allowExport","customButtons","tableId","onItem","pageSize"],[3,"poolUuid"],[3,"rest","itemId","tableId","pageSize"],[3,"value","gui"],["icon","cached",3,"customButtonAction","deleteAction","rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize"],["icon","publications",3,"customButtonAction","newAction","rowSelected","rest","multiSelect","allowExport","tableId","customButtons","pageSize"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),g(4,"arrow_back"),d()(),g(5," \xA0"),I(6,"img",4),g(7),d(),x(8,t9,37,43,"div",5),d()),n&2&&(h(2),p("routerLink",Bi(4,z7,o.servicePool?o.servicePool.id:"")),h(4),p("src",o.api.staticURL("admin/img/icons/pools.png"),Ie),h(),F(" \xA0",o.servicePool==null?null:o.servicePool.name," "),h(),p("ngIf",o.servicePool!==null))},dependencies:[me,bi,ei,ti,oi,le,Te,An,po,xA],styles:[".mat-column-state{max-width:10rem;justify-content:center} .mat-column-revision, .mat-column-cache_level, .mat-column-in_use, .mat-column-priority{max-width:7rem;justify-content:center} .mat-column-publish_date, .mat-column-state_date, .mat-column-creation_date{width:14rem} .mat-column-trans_type, .mat-column-access{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} .row-state-S>.mat-mdc-cell{color:gray!important} .row-state-C>.mat-mdc-cell{color:gray!important} .row-state-E>.mat-mdc-cell{color:red!important} .row-state-R>.mat-mdc-cell{color:orange!important}"]});let i=e;return i})();var bw=(()=>{let e=class e{constructor(t,n,o){this.api=t,this.route=n,this.rest=o}ngOnInit(){}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New meta pool"))}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit meta pool"))}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete meta pool"))}onDetail(t){this.api.navigation.gotoMetapoolDetail(t.param.id)}processElement(t){t.visible=this.api.boolAsHumanString(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)}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("metapool"))}};e.\u0275fac=function(n){return new(n||e)(m(B),m(Oe),m(X))},e.\u0275cmp=E({type:e,selectors:[["uds-meta-pools"]],decls:2,vars:6,consts:[["icon","metas",3,"detailAction","newAction","editAction","deleteAction","loaded","rest","multiSelect","allowExport","onItem","hasPermissions","pageSize"]],template:function(n,o){n&1&&(c(0,"div")(1,"uds-table",0),b("detailAction",function(s){return o.onDetail(s)})("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("loaded",function(s){return o.onLoad(s)}),d()()),n&2&&(h(),p("rest",o.rest.metaPools)("multiSelect",!0)("allowExport",!0)("onItem",o.processElement)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Te],styles:[".mat-column-user_services_count, .mat-column-user_services_in_preparation, .mat-column-visible, .mat-column-pool_group_name{max-width:7rem;justify-content:center}"]});let i=e;return i})();function s9(i,e){i&1&&(c(0,"uds-translate"),g(1,"New member pool"),d())}function l9(i,e){i&1&&(c(0,"uds-translate"),g(1,"Edit member pool"),d())}function c9(i,e){if(i&1){let r=A();c(0,"uds-cond-select-search",11),b("changed",function(n){y(r);let o=_();return w(o.servicePoolsFilter=n)}),d()}}function d9(i,e){if(i&1&&(c(0,"mat-option",12),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),h(),F(" ",r.name," ")}}var yw=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.done=new Jt,this.servicePools=[],this.servicePoolsFilter="",this.model=a.model,this.memberPool={id:void 0,priority:0,pool_id:"",enabled:!0},a.memberPool&&(this.memberPool.id=a.memberPool.id)}static launch(t,n,o){let a=window.innerWidth<800?"60%":"40%";return t.gui.dialog.open(e,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{memberPool:o,model:n},disableClose:!1}).componentInstance.done}ngOnInit(){return W(this,null,function*(){this.servicePools=yield this.rest.servicesPools.summary(),this.memberPool.id&&(this.memberPool=yield this.model.get(this.memberPool.id))})}filtered(t,n){return n?t.filter(o=>o.name.toLocaleLowerCase().includes(n.toLocaleLowerCase())):t}save(){return W(this,null,function*(){if(!this.memberPool.pool_id){this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid service pool"));return}yield this.model.save(this.memberPool),this.dialogRef.close(),this.done.resolve(!0)})}cancel(){this.dialogRef.close(),this.done.resolve(!1)}};e.\u0275fac=function(n){return new(n||e)(m(B),m(X),m(Ne),m(Ke))},e.\u0275cmp=E({type:e,selectors:[["uds-meta-pools-service-pools"]],decls:30,vars:8,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","number",3,"ngModelChange","ngModel"],[3,"ngModelChange","ngModel"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[1,"mat-form-field-infix"],[1,"label-enabled"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"]],template:function(n,o){n&1&&(c(0,"h4",0),x(1,s9,2,0,"uds-translate",1)(2,l9,2,0,"uds-translate",1),d(),c(3,"mat-dialog-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),g(8,"Priority"),d()(),c(9,"input",3),H("ngModelChange",function(s){return $(o.memberPool.priority,s)||(o.memberPool.priority=s),s}),d()(),c(10,"mat-form-field")(11,"mat-label")(12,"uds-translate"),g(13,"Service pool"),d()(),c(14,"mat-select",4),H("ngModelChange",function(s){return $(o.memberPool.pool_id,s)||(o.memberPool.pool_id=s),s}),x(15,c9,1,0,"uds-cond-select-search",5)(16,d9,2,2,"mat-option",6),d()(),c(17,"div",7)(18,"span",8)(19,"uds-translate"),g(20,"Enabled?"),d()(),c(21,"mat-slide-toggle",4),H("ngModelChange",function(s){return $(o.memberPool.enabled,s)||(o.memberPool.enabled=s),s}),g(22),d()()()(),c(23,"mat-dialog-actions")(24,"button",9),b("click",function(){return o.cancel()}),c(25,"uds-translate"),g(26,"Cancel"),d()(),c(27,"button",10),b("click",function(){return o.save()}),c(28,"uds-translate"),g(29,"Ok"),d()()()),n&2&&(h(),p("ngIf",!(o.memberPool!=null&&o.memberPool.id)),h(),p("ngIf",o.memberPool==null?null:o.memberPool.id),h(7),U("ngModel",o.memberPool.priority),h(5),U("ngModel",o.memberPool.pool_id),h(),p("ngIf",o.servicePools.length>10),h(),p("ngForOf",o.filtered(o.servicePools,o.servicePoolsFilter)),h(5),U("ngModel",o.memberPool.enabled),h(),F(" ",o.api.boolAsHumanString(o.memberPool.enabled)," "))},dependencies:[We,me,lt,$n,xe,Se,ke,Je,tt,et,_e,Ae,ft,bt,nt,cr,le,hi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}.label-enabled[_ngcontent-%COMP%]{color:#0009;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:0px 0px;white-space:nowrap}"]});let i=e;return i})();var u9=i=>["/pools","meta-pools",i];function h9(i,e){i&1&&(c(0,"uds-translate"),g(1,"Summary"),d())}function m9(i,e){if(i&1&&I(0,"uds-information",17),i&2){let r=_(2);p("value",r.metaPool)("gui",r.gui)}}function p9(i,e){i&1&&(c(0,"uds-translate"),g(1,"Service pools"),d())}function f9(i,e){i&1&&(c(0,"uds-translate"),g(1,"Assigned services"),d())}function g9(i,e){i&1&&(c(0,"uds-translate"),g(1,"Groups"),d())}function _9(i,e){i&1&&(c(0,"uds-translate"),g(1,"Access calendars"),d())}function v9(i,e){i&1&&(c(0,"uds-translate"),g(1,"Logs"),d())}function b9(i,e){if(i&1){let r=A();c(0,"div",6)(1,"div",7)(2,"mat-tab-group",8),H("selectedIndexChange",function(n){y(r);let o=_();return $(o.selectedTab,n)||(o.selectedTab=n),w(n)}),c(3,"mat-tab"),x(4,h9,2,0,"ng-template",9),c(5,"div",10),x(6,m9,1,2,"uds-information",11),d()(),c(7,"mat-tab"),x(8,p9,2,0,"ng-template",9),c(9,"div",10)(10,"uds-table",12),b("newAction",function(n){y(r);let o=_();return w(o.onNewMemberPool(n))})("editAction",function(n){y(r);let o=_();return w(o.onEditMemberPool(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteMemberPool(n))}),d()()(),c(11,"mat-tab"),x(12,f9,2,0,"ng-template",9),c(13,"div",10)(14,"uds-table",13),b("customButtonAction",function(n){y(r);let o=_();return w(o.onCustomAssigned(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteAssigned(n))}),d()()(),c(15,"mat-tab"),x(16,g9,2,0,"ng-template",9),c(17,"div",10)(18,"uds-table",14),b("newAction",function(n){y(r);let o=_();return w(o.onNewGroup(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteGroup(n))}),d()()(),c(19,"mat-tab"),x(20,_9,2,0,"ng-template",9),c(21,"div",10)(22,"uds-table",15),b("newAction",function(n){y(r);let o=_();return w(o.onNewAccessCalendar(n))})("editAction",function(n){y(r);let o=_();return w(o.onEditAccessCalendar(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteAccessCalendar(n))})("loaded",function(n){y(r);let o=_();return w(o.onAccessCalendarLoad(n))}),d()()(),c(23,"mat-tab"),x(24,v9,2,0,"ng-template",9),c(25,"div",10),I(26,"uds-logs-table",16),d()()()()()}if(i&2){let r=_();h(2),U("selectedIndex",r.selectedTab),p("@.disabled",!0),h(4),p("ngIf",r.metaPool&&r.gui),h(4),p("rest",r.memberPools)("multiSelect",!0)("allowExport",!0)("onItem",r.processElement)("customButtons",r.customButtons)("tableId","metaPools-d-members"+r.metaPool.id)("pageSize",r.api.config.admin.page_size),h(4),p("rest",r.memberUserServices)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-services"+r.metaPool.id)("customButtons",r.customButtonsAssignedServices)("pageSize",r.api.config.admin.page_size),h(4),p("rest",r.groups)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-groups"+r.metaPool.id)("pageSize",r.api.config.admin.page_size),h(4),p("rest",r.accessCalendars)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-access"+r.metaPool.id)("pageSize",r.api.config.admin.page_size)("onItem",r.processsCalendarItem),h(4),p("rest",r.rest.metaPools)("itemId",r.metaPool.id)("tableId","metaPools-d-log"+r.metaPool.id)("pageSize",r.api.config.admin.page_size)}}var SA=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o,this.customButtons=[Ii.getGotoButton(Ud,"pool_id")],this.customButtonsAssignedServices=[{id:"change-owner",html:vw,type:ct.SINGLE_SELECT},{id:"log",html:og,type:ct.SINGLE_SELECT},Ii.getGotoButton(Hd,"owner_info.auth_id","owner_info.user_id")],this.metaPool=null,this.gui=null,this.selectedTab=1,this.memberPools={},this.memberUserServices={},this.groups={},this.accessCalendars={}}ngOnInit(){return W(this,null,function*(){let t=this.route.snapshot.paramMap.get("metapool");if(!t)return;let n=yield this.rest.metaPools.get(t),o=yield this.rest.metaPools.gui();this.memberPools=this.rest.metaPools.detail(t,"pools"),this.memberUserServices=this.rest.metaPools.detail(t,"services"),this.groups=this.rest.metaPools.detail(t,"groups"),this.accessCalendars=this.rest.metaPools.detail(t,"access"),this.metaPool=n,this.gui=o})}onNewMemberPool(t){return W(this,null,function*(){(yield yw.launch(this.api,this.memberPools))===!0&&t.table.overview()})}onEditMemberPool(t){return W(this,null,function*(){(yield yw.launch(this.api,this.memberPools,t.table.selection.selected[0]))===!0&&t.table.overview()})}onDeleteMemberPool(t){return W(this,null,function*(){this.api.gui.forms.deleteForm(t,django.gettext("Remove member pool"))})}onCustomAssigned(t){return W(this,null,function*(){let n=t.table.selection.selected[0];if(t.param.id==="change-owner"){if(["E","R","M","S","C"].includes(n.state))return;(yield eg.launch(this.api,n,this.memberUserServices))===!0&&t.table.overview()}else t.param.id==="log"&&qd.launch(this.api,n,this.memberUserServices)})}onDeleteAssigned(t){return W(this,null,function*(){rg.cleanInvalidSelections(t)||this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned service"))})}onNewGroup(t){return W(this,null,function*(){(yield tg.launch(this.api,this.metaPool.id,this.groups))===!0&&t.table.overview()})}onDeleteGroup(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned group"))}onNewAccessCalendar(t){Zl.launch(this.api,this.metaPool,this.accessCalendars).subscribe(n=>t.table.overview())}onEditAccessCalendar(t){Zl.launch(this.api,this.metaPool,this.accessCalendars,t.table.selection.selected[0]).subscribe(n=>t.table.overview())}onDeleteAccessCalendar(t){t.table.selection.selected[0].id!==-1?this.api.gui.forms.deleteForm(t,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(t)}onAccessCalendarLoad(t){this.rest.metaPools.getFallbackAccess(this.metaPool.id).then(n=>{let o=t.table.dataSource.data.filter(a=>!0);o.push({id:-1,calendar:"-",priority:this.api.safeString('10000000FallBack'),access:n}),t.table.dataSource.data=o})}processElement(t){t.enabled=this.api.boolAsHumanString(t.enabled)}processsCalendarItem(t){t.name=t.calendar,t.atStart=this.api.boolAsHumanString(t.atStart)}};e.\u0275fac=function(n){return new(n||e)(m(Oe),m(X),m(B))},e.\u0275cmp=E({type:e,selectors:[["uds-meta-pools-detail"]],decls:10,vars:8,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,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","pools",3,"newAction","editAction","deleteAction","rest","multiSelect","allowExport","onItem","customButtons","tableId","pageSize"],["icon","pools",3,"customButtonAction","deleteAction","rest","multiSelect","allowExport","tableId","customButtons","pageSize"],["icon","groups",3,"newAction","deleteAction","rest","multiSelect","allowExport","tableId","pageSize"],["icon","calendars",3,"newAction","editAction","deleteAction","loaded","rest","multiSelect","allowExport","tableId","pageSize","onItem"],[3,"rest","itemId","tableId","pageSize"],[3,"value","gui"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),g(4,"arrow_back"),d()(),g(5," \xA0"),I(6,"img",4),g(7),d(),x(8,b9,27,31,"div",5),_t(9,"notEmpty"),d()),n&2&&(h(2),p("routerLink",Bi(6,u9,o.metaPool?o.metaPool.id:"")),h(4),p("src",o.api.staticURL("admin/img/icons/metas.png"),Ie),h(),F(" ",o.metaPool==null?null:o.metaPool.name," "),h(),p("ngIf",Dt(9,4,o.metaPool)))},dependencies:[me,bi,ei,ti,oi,le,Te,An,po,yi],styles:[".mat-column-enabled, .mat-column-priority{max-width:8rem;justify-content:center}"]});let i=e;return i})();var ww=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o}ngOnInit(){}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New pool group"),!1).then(()=>t.table.overview())}onEdit(t){return W(this,null,function*(){this.api.gui.forms.typedEditForm(t,django.gettext("Edit pool group"),!1)})}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete pool group"))}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("poolgroup"))}};e.\u0275fac=function(n){return new(n||e)(m(Oe),m(X),m(B))},e.\u0275cmp=E({type:e,selectors:[["uds-pool-groups"]],decls:1,vars:5,consts:[["icon","spool-group",3,"newAction","editAction","deleteAction","loaded","rest","multiSelect","allowExport","hasPermissions","pageSize"]],template:function(n,o){n&1&&(c(0,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("loaded",function(s){return o.onLoad(s)}),d()),n&2&&p("rest",o.rest.servicesPoolGroups)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",o.api.config.admin.page_size)},dependencies:[Te],styles:[".mat-column-priority, .mat-column-thumb{max-width:7rem;justify-content:center}"]});let i=e;return i})();var Cw=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o}ngOnInit(){}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New calendar"))}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit calendar"))}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete calendar"))}onDetail(t){this.api.navigation.gotoCalendarDetail(t.param.id)}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("calendar"))}};e.\u0275fac=function(n){return new(n||e)(m(Oe),m(X),m(B))},e.\u0275cmp=E({type:e,selectors:[["uds-calendars"]],decls:1,vars:5,consts:[["icon","calendars",3,"newAction","editAction","deleteAction","detailAction","loaded","rest","multiSelect","allowExport","hasPermissions","pageSize"]],template:function(n,o){n&1&&(c(0,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("detailAction",function(s){return o.onDetail(s)})("loaded",function(s){return o.onLoad(s)}),d()),n&2&&p("rest",o.rest.calendars)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size)},dependencies:[Te]});let i=e;return i})();var y9=["mat-calendar-body",""];function w9(i,e){return this._trackRow(e)}var RA=(i,e)=>e.id;function C9(i,e){if(i&1&&(c(0,"tr",0)(1,"td",3),g(2),d()()),i&2){let r=_();h(),ji("padding-top",r._cellPadding)("padding-bottom",r._cellPadding),ie("colspan",r.numCols),h(),F(" ",r.label," ")}}function x9(i,e){if(i&1&&(c(0,"td",3),g(1),d()),i&2){let r=_(2);ji("padding-top",r._cellPadding)("padding-bottom",r._cellPadding),ie("colspan",r._firstRowOffset),h(),F(" ",r._firstRowOffset>=r.labelMinRequiredCells?r.label:""," ")}}function D9(i,e){if(i&1){let r=A();c(0,"td",6)(1,"button",7),b("click",function(n){let o=y(r).$implicit,a=_(2);return w(a._cellClicked(o,n))})("focus",function(n){let o=y(r).$implicit,a=_(2);return w(a._emitActiveDateChange(o,n))}),c(2,"span",8),g(3),d(),I(4,"span",9),d()()}if(i&2){let r=e.$implicit,t=e.$index,n=_().$index,o=_();ji("width",o._cellWidth)("padding-top",o._cellPadding)("padding-bottom",o._cellPadding),ie("data-mat-row",n)("data-mat-col",t),h(),ne("mat-calendar-body-disabled",!r.enabled)("mat-calendar-body-active",o._isActiveCell(n,t))("mat-calendar-body-range-start",o._isRangeStart(r.compareValue))("mat-calendar-body-range-end",o._isRangeEnd(r.compareValue))("mat-calendar-body-in-range",o._isInRange(r.compareValue))("mat-calendar-body-comparison-bridge-start",o._isComparisonBridgeStart(r.compareValue,n,t))("mat-calendar-body-comparison-bridge-end",o._isComparisonBridgeEnd(r.compareValue,n,t))("mat-calendar-body-comparison-start",o._isComparisonStart(r.compareValue))("mat-calendar-body-comparison-end",o._isComparisonEnd(r.compareValue))("mat-calendar-body-in-comparison-range",o._isInComparisonRange(r.compareValue))("mat-calendar-body-preview-start",o._isPreviewStart(r.compareValue))("mat-calendar-body-preview-end",o._isPreviewEnd(r.compareValue))("mat-calendar-body-in-preview",o._isInPreview(r.compareValue)),p("ngClass",r.cssClasses)("tabindex",o._isActiveCell(n,t)?0:-1),ie("aria-label",r.ariaLabel)("aria-disabled",!r.enabled||null)("aria-pressed",o._isSelected(r.compareValue))("aria-current",o.todayValue===r.compareValue?"date":null)("aria-describedby",o._getDescribedby(r.compareValue)),h(),ne("mat-calendar-body-selected",o._isSelected(r.compareValue))("mat-calendar-body-comparison-identical",o._isComparisonIdentical(r.compareValue))("mat-calendar-body-today",o.todayValue===r.compareValue),h(),F(" ",r.displayValue," ")}}function S9(i,e){if(i&1&&(c(0,"tr",1),x(1,x9,2,6,"td",4),Sr(2,D9,5,48,"td",5,RA),d()),i&2){let r=e.$implicit,t=e.$index,n=_();h(),De(t===0&&n._firstRowOffset?1:-1),h(),Er(r)}}function E9(i,e){if(i&1&&(c(0,"th",2)(1,"span",6),g(2),d(),c(3,"span",3),g(4),d()()),i&2){let r=e.$implicit;h(2),$e(r.long),h(2),$e(r.narrow)}}var I9=["*"];function M9(i,e){}function T9(i,e){if(i&1){let r=A();c(0,"mat-month-view",4),H("activeDateChange",function(n){y(r);let o=_();return $(o.activeDate,n)||(o.activeDate=n),w(n)}),b("_userSelection",function(n){y(r);let o=_();return w(o._dateSelected(n))})("dragStarted",function(n){y(r);let o=_();return w(o._dragStarted(n))})("dragEnded",function(n){y(r);let o=_();return w(o._dragEnded(n))}),d()}if(i&2){let r=_();U("activeDate",r.activeDate),p("selected",r.selected)("dateFilter",r.dateFilter)("maxDate",r.maxDate)("minDate",r.minDate)("dateClass",r.dateClass)("comparisonStart",r.comparisonStart)("comparisonEnd",r.comparisonEnd)("startDateAccessibleName",r.startDateAccessibleName)("endDateAccessibleName",r.endDateAccessibleName)("activeDrag",r._activeDrag)}}function k9(i,e){if(i&1){let r=A();c(0,"mat-year-view",5),H("activeDateChange",function(n){y(r);let o=_();return $(o.activeDate,n)||(o.activeDate=n),w(n)}),b("monthSelected",function(n){y(r);let o=_();return w(o._monthSelectedInYearView(n))})("selectedChange",function(n){y(r);let o=_();return w(o._goToDateInView(n,"month"))}),d()}if(i&2){let r=_();U("activeDate",r.activeDate),p("selected",r.selected)("dateFilter",r.dateFilter)("maxDate",r.maxDate)("minDate",r.minDate)("dateClass",r.dateClass)}}function A9(i,e){if(i&1){let r=A();c(0,"mat-multi-year-view",6),H("activeDateChange",function(n){y(r);let o=_();return $(o.activeDate,n)||(o.activeDate=n),w(n)}),b("yearSelected",function(n){y(r);let o=_();return w(o._yearSelectedInMultiYearView(n))})("selectedChange",function(n){y(r);let o=_();return w(o._goToDateInView(n,"year"))}),d()}if(i&2){let r=_();U("activeDate",r.activeDate),p("selected",r.selected)("dateFilter",r.dateFilter)("maxDate",r.maxDate)("minDate",r.minDate)("dateClass",r.dateClass)}}function O9(i,e){}var R9=["button"],P9=[[["","matDatepickerToggleIcon",""]]],F9=["[matDatepickerToggleIcon]"];function N9(i,e){i&1&&(pi(),c(0,"svg",2),I(1,"path",3),d())}var Zd=(()=>{let e=class e{constructor(){this.changes=new G,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 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(t,n){return`${t} \u2013 ${n}`}formatYearRangeLabel(t,n){return`${t} to ${n}`}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),L9=0,Qd=class{constructor(e,r,t,n,o={},a=e,s){this.value=e,this.displayValue=r,this.ariaLabel=t,this.enabled=n,this.cssClasses=o,this.compareValue=a,this.rawValue=s,this.id=L9++}},V9=1,EA=Ui({passive:!1,capture:!0}),Aa=Ui({passive:!0,capture:!0}),ag=Ui({passive:!0}),Jl=(()=>{let e=class e{ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}constructor(t,n){this._elementRef=t,this._ngZone=n,this._platform=k(Ve),this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new T,this.previewChange=new T,this.activeDateChange=new T,this.dragStarted=new T,this.dragEnded=new T,this._didDragSinceMouseDown=!1,this._injector=k(Pe),this._trackRow=o=>o,this._enterHandler=o=>{if(this._skipNextFocus&&o.type==="focus"){this._skipNextFocus=!1;return}if(o.target&&this.isRange){let a=this._getCellFromElement(o.target);a&&this._ngZone.run(()=>this.previewChange.emit({value:a.enabled?a:null,event:o}))}},this._touchmoveHandler=o=>{if(!this.isRange)return;let a=IA(o),s=a?this._getCellFromElement(a):null;a!==o.target&&(this._didDragSinceMouseDown=!0),Dw(o.target)&&o.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:s?.enabled?s:null,event:o}))},this._leaveHandler=o=>{this.previewEnd!==null&&this.isRange&&(o.type!=="blur"&&(this._didDragSinceMouseDown=!0),o.target&&this._getCellFromElement(o.target)&&!(o.relatedTarget&&this._getCellFromElement(o.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:o})))},this._mousedownHandler=o=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;let a=o.target&&this._getCellFromElement(o.target);!a||!this._isInRange(a.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:a.rawValue,event:o})})},this._mouseupHandler=o=>{if(!this.isRange)return;let a=Dw(o.target);if(!a){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:o})});return}a.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let s=this._getCellFromElement(a);this.dragEnded.emit({value:s?.rawValue??null,event:o})})},this._touchendHandler=o=>{let a=IA(o);a&&this._mouseupHandler({target:a})},this._id=`mat-calendar-body-${V9++}`,this._startDateLabelId=`${this._id}-start-date`,this._endDateLabelId=`${this._id}-end-date`,n.runOutsideAngular(()=>{let o=t.nativeElement;o.addEventListener("touchmove",this._touchmoveHandler,EA),o.addEventListener("mouseenter",this._enterHandler,Aa),o.addEventListener("focus",this._enterHandler,Aa),o.addEventListener("mouseleave",this._leaveHandler,Aa),o.addEventListener("blur",this._leaveHandler,Aa),o.addEventListener("mousedown",this._mousedownHandler,ag),o.addEventListener("touchstart",this._mousedownHandler,ag),this._platform.isBrowser&&(window.addEventListener("mouseup",this._mouseupHandler),window.addEventListener("touchend",this._touchendHandler))})}_cellClicked(t,n){this._didDragSinceMouseDown||t.enabled&&this.selectedValueChange.emit({value:t.value,event:n})}_emitActiveDateChange(t,n){t.enabled&&this.activeDateChange.emit({value:t.value,event:n})}_isSelected(t){return this.startValue===t||this.endValue===t}ngOnChanges(t){let n=t.numCols,{rows:o,numCols:a}=this;(t.rows||n)&&(this._firstRowOffset=o&&o.length&&o[0].length?a-o[0].length:0),(t.cellAspectRatio||n||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/a}%`),(n||!this._cellWidth)&&(this._cellWidth=`${100/a}%`)}ngOnDestroy(){let t=this._elementRef.nativeElement;t.removeEventListener("touchmove",this._touchmoveHandler,EA),t.removeEventListener("mouseenter",this._enterHandler,Aa),t.removeEventListener("focus",this._enterHandler,Aa),t.removeEventListener("mouseleave",this._leaveHandler,Aa),t.removeEventListener("blur",this._leaveHandler,Aa),t.removeEventListener("mousedown",this._mousedownHandler,ag),t.removeEventListener("touchstart",this._mousedownHandler,ag),this._platform.isBrowser&&(window.removeEventListener("mouseup",this._mouseupHandler),window.removeEventListener("touchend",this._touchendHandler))}_isActiveCell(t,n){let o=t*this.numCols+n;return t&&(o-=this._firstRowOffset),o==this.activeCell}_focusActiveCell(t=!0){ai(()=>{setTimeout(()=>{let n=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");n&&(t||(this._skipNextFocus=!0),n.focus())})},{injector:this._injector})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(t){return Sw(t,this.startValue,this.endValue)}_isRangeEnd(t){return Ew(t,this.startValue,this.endValue)}_isInRange(t){return Iw(t,this.startValue,this.endValue,this.isRange)}_isComparisonStart(t){return Sw(t,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(t,n,o){if(!this._isComparisonStart(t)||this._isRangeStart(t)||!this._isInRange(t))return!1;let a=this.rows[n][o-1];if(!a){let s=this.rows[n-1];a=s&&s[s.length-1]}return a&&!this._isRangeEnd(a.compareValue)}_isComparisonBridgeEnd(t,n,o){if(!this._isComparisonEnd(t)||this._isRangeEnd(t)||!this._isInRange(t))return!1;let a=this.rows[n][o+1];if(!a){let s=this.rows[n+1];a=s&&s[0]}return a&&!this._isRangeStart(a.compareValue)}_isComparisonEnd(t){return Ew(t,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(t){return Iw(t,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(t){return this.comparisonStart===this.comparisonEnd&&t===this.comparisonStart}_isPreviewStart(t){return Sw(t,this.previewStart,this.previewEnd)}_isPreviewEnd(t){return Ew(t,this.previewStart,this.previewEnd)}_isInPreview(t){return Iw(t,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(t){return this.isRange?this.startValue===t&&this.endValue===t?`${this._startDateLabelId} ${this._endDateLabelId}`:this.startValue===t?this._startDateLabelId:this.endValue===t?this._endDateLabelId:null:null}_getCellFromElement(t){let n=Dw(t);if(n){let o=n.getAttribute("data-mat-row"),a=n.getAttribute("data-mat-col");if(o&&a)return this.rows[parseInt(o)][parseInt(a)]}return null}};e.\u0275fac=function(n){return new(n||e)(m(q),m(Z))},e.\u0275cmp=E({type:e,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],standalone:!0,features:[Qe,re],attrs:y9,decls:7,vars:5,consts:[["aria-hidden","true"],["role","row"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],[1,"mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"click","focus","ngClass","tabindex"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(n,o){n&1&&(x(0,C9,3,6,"tr",0),Sr(1,S9,4,1,"tr",1,w9,!0),c(3,"span",2),g(4),d(),c(5,"span",2),g(6),d()),n&2&&(De(o._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:var(--mat-datepicker-calendar-date-disabled-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-disabled-state-outline-color)}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px;color:var(--mat-datepicker-calendar-date-text-color, var(--mat-app-on-surface));border-color:var(--mat-datepicker-calendar-date-outline-color)}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-focus-state-background-color)}@media(hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-hover-state-background-color)}}.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color, var(--mat-app-primary));color:var(--mat-datepicker-calendar-date-selected-state-text-color, var(--mat-app-on-primary))}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-disabled-state-background-color)}.mat-calendar-body-selected.mat-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color, var(--mat-app-primary))}.mat-calendar-body-in-range::before{background:var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-app-primary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-app-tertiary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-app-tertiary-container))}.mat-calendar-body-comparison-bridge-start::before,[dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-app-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-app-tertiary-container)) 50%)}.mat-calendar-body-comparison-bridge-end::before,[dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-app-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-app-tertiary-container)) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color, var(--mat-app-secondary-container))}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color, var(--mat-app-secondary))}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}'],encapsulation:2,changeDetection:0});let i=e;return i})();function xw(i){return i?.nodeName==="TD"}function Dw(i){let e;return xw(i)?e=i:xw(i.parentNode)?e=i.parentNode:xw(i.parentNode?.parentNode)&&(e=i.parentNode.parentNode),e?.getAttribute("data-mat-row")!=null?e:null}function Sw(i,e,r){return r!==null&&e!==r&&i=e&&i===r}function Iw(i,e,r,t){return t&&e!==null&&r!==null&&e!==r&&i>=e&&i<=r}function IA(i){let e=i.changedTouches[0];return document.elementFromPoint(e.clientX,e.clientY)}var fo=class{constructor(e,r){this.start=e,this.end=r}},Kd=(()=>{let e=class e{constructor(t,n){this.selection=t,this._adapter=n,this._selectionChanged=new G,this.selectionChanged=this._selectionChanged,this.selection=t}updateSelection(t,n){let o=this.selection;this.selection=t,this._selectionChanged.next({selection:t,source:n,oldValue:o})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(t){return this._adapter.isDateInstance(t)&&this._adapter.isValid(t)}};e.\u0275fac=function(n){ts()},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),j9=(()=>{let e=class e extends Kd{constructor(t){super(null,t)}add(t){super.updateSelection(t,this)}isValid(){return this.selection!=null&&this._isValidDateInstance(this.selection)}isComplete(){return this.selection!=null}clone(){let t=new e(this._adapter);return t.updateSelection(this.selection,this),t}};e.\u0275fac=function(n){return new(n||e)(M(Ri))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();function B9(i,e){return i||new j9(e)}var PA={provide:Kd,deps:[[new to,new Do,Kd],Ri],useFactory:B9};var FA=new R("MAT_DATE_RANGE_SELECTION_STRATEGY");var Mw=7,z9=0,MA=(()=>{let e=class e{get activeDate(){return this._activeDate}set activeDate(t){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._hasSameMonthAndYear(n,this._activeDate)||this._init()}get selected(){return this._selected}set selected(t){t instanceof fo?this._selected=t:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}constructor(t,n,o,a,s){this._changeDetectorRef=t,this._dateFormats=n,this._dateAdapter=o,this._dir=a,this._rangeStrategy=s,this._rerenderSubscription=ve.EMPTY,this.activeDrag=null,this.selectedChange=new T,this._userSelection=new T,this.dragStarted=new T,this.dragEnded=new T,this.activeDateChange=new T,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Rt(null)).subscribe(()=>this._init())}ngOnChanges(t){let n=t.comparisonStart||t.comparisonEnd;n&&!n.firstChange&&this._setRanges(this.selected),t.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(t){let n=t.value,o=this._getDateFromDayOfMonth(n),a,s;this._selected instanceof fo?(a=this._getDateInCurrentMonth(this._selected.start),s=this._getDateInCurrentMonth(this._selected.end)):a=s=this._getDateInCurrentMonth(this._selected),(a!==n||s!==n)&&this.selectedChange.emit(o),this._userSelection.emit({value:o,event:t.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(t){let n=t.value,o=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(t){let n=this._activeDate,o=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,o?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,o?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:this._selectionKeyPressed=!0,this._canSelect(this._activeDate)&&t.preventDefault();return;case 27:this._previewEnd!=null&&!Pt(t)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:t}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:t})),t.preventDefault(),t.stopPropagation());return;default:return}this._dateAdapter.compareDate(n,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),t.preventDefault()}_handleCalendarBodyKeyup(t){(t.keyCode===32||t.keyCode===13)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:t}),this._selectionKeyPressed=!1)}_init(){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();let t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(Mw+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%Mw,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(t){this._matCalendarBody._focusActiveCell(t)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:t,value:n}){if(this._rangeStrategy){let o=n?n.rawValue:null,a=this._rangeStrategy.createPreview(o,this.selected,t);if(this._previewStart=this._getCellCompareValue(a.start),this._previewEnd=this._getCellCompareValue(a.end),this.activeDrag&&o){let s=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,o,t);s&&(this._previewStart=this._getCellCompareValue(s.start),this._previewEnd=this._getCellCompareValue(s.end))}this._changeDetectorRef.detectChanges()}}_dragEnded(t){if(this.activeDrag)if(t.value){let n=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,t.value,t.event);this.dragEnded.emit({value:n??null,event:t.event})}else this.dragEnded.emit({value:null,event:t.event})}_getDateFromDayOfMonth(t){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),t)}_initWeekdays(){let t=this._dateAdapter.getFirstDayOfWeek(),n=this._dateAdapter.getDayOfWeekNames("narrow"),a=this._dateAdapter.getDayOfWeekNames("long").map((s,l)=>({long:s,narrow:n[l],id:z9++}));this._weekdays=a.slice(t).concat(a.slice(0,t))}_createWeekCells(){let t=this._dateAdapter.getNumDaysInMonth(this.activeDate),n=this._dateAdapter.getDateNames();this._weeks=[[]];for(let o=0,a=this._firstWeekOffset;o=0)&&(!this.maxDate||this._dateAdapter.compareDate(t,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(t))}_getDateInCurrentMonth(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null}_hasSameMonthAndYear(t,n){return!!(t&&n&&this._dateAdapter.getMonth(t)==this._dateAdapter.getMonth(n)&&this._dateAdapter.getYear(t)==this._dateAdapter.getYear(n))}_getCellCompareValue(t){if(t){let n=this._dateAdapter.getYear(t),o=this._dateAdapter.getMonth(t),a=this._dateAdapter.getDate(t);return new Date(n,o,a).getTime()}return null}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setRanges(t){t instanceof fo?(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)}_canSelect(t){return!this.dateFilter||this.dateFilter(t)}_clearPreview(){this._previewStart=this._previewEnd=null}};e.\u0275fac=function(n){return new(n||e)(m(he),m(ba,8),m(Ri,8),m(Nt,8),m(FA,8))},e.\u0275cmp=E({type:e,selectors:[["mat-month-view"]],viewQuery:function(n,o){if(n&1&&ce(Jl,5),n&2){let a;Q(a=K())&&(o._matCalendarBody=a.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],standalone:!0,features:[Qe,re],decls:8,vars:14,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col"],["aria-hidden","true"],["colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown","label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName"],[1,"cdk-visually-hidden"]],template:function(n,o){n&1&&(c(0,"table",0)(1,"thead",1)(2,"tr"),Sr(3,E9,5,2,"th",2,RA),d(),c(5,"tr",3),I(6,"th",4),d()(),c(7,"tbody",5),b("selectedValueChange",function(s){return o._dateSelected(s)})("activeDateChange",function(s){return o._updateActiveDate(s)})("previewChange",function(s){return o._previewChanged(s)})("dragStarted",function(s){return o.dragStarted.emit(s)})("dragEnded",function(s){return o._dragEnded(s)})("keyup",function(s){return o._handleCalendarBodyKeyup(s)})("keydown",function(s){return o._handleCalendarBodyKeydown(s)}),d()()),n&2&&(h(3),Er(o._weekdays),h(4),p("label",o._monthLabel)("rows",o._weeks)("todayValue",o._todayDate)("startValue",o._rangeStart)("endValue",o._rangeEnd)("comparisonStart",o._comparisonRangeStart)("comparisonEnd",o._comparisonRangeEnd)("previewStart",o._previewStart)("previewEnd",o._previewEnd)("isRange",o._isRange)("labelMinRequiredCells",3)("activeCell",o._dateAdapter.getDate(o.activeDate)-1)("startDateAccessibleName",o.startDateAccessibleName)("endDateAccessibleName",o.endDateAccessibleName))},dependencies:[Jl],encapsulation:2,changeDetection:0});let i=e;return i})(),Gn=24,Tw=4,TA=(()=>{let e=class e{get activeDate(){return this._activeDate}set activeDate(t){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),NA(this._dateAdapter,n,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(t){t instanceof fo?this._selected=t:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedYear(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}constructor(t,n,o){this._changeDetectorRef=t,this._dateAdapter=n,this._dir=o,this._rerenderSubscription=ve.EMPTY,this.selectedChange=new T,this.yearSelected=new T,this.activeDateChange=new T,this._dateAdapter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Rt(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());let n=this._dateAdapter.getYear(this._activeDate)-Yd(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let o=0,a=[];othis._createCellForYear(s))),a=[]);this._changeDetectorRef.markForCheck()}_yearSelected(t){let n=t.value,o=this._dateAdapter.createDate(n,0,1),a=this._getDateFromYear(n);this.yearSelected.emit(o),this.selectedChange.emit(a)}_updateActiveDate(t){let n=t.value,o=this._activeDate;this.activeDate=this._getDateFromYear(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(t){let n=this._activeDate,o=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,o?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,o?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Tw);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Tw);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Yd(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Gn-Yd(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-Gn*10:-Gn);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?Gn*10:Gn);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(n,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),t.preventDefault()}_handleCalendarBodyKeyup(t){(t.keyCode===32||t.keyCode===13)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:t}),this._selectionKeyPressed=!1)}_getActiveCell(){return Yd(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(t){let n=this._dateAdapter.getMonth(this.activeDate),o=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(t,n,1));return this._dateAdapter.createDate(t,n,Math.min(this._dateAdapter.getDate(this.activeDate),o))}_createCellForYear(t){let n=this._dateAdapter.createDate(t,0,1),o=this._dateAdapter.getYearName(n),a=this.dateClass?this.dateClass(n,"multi-year"):void 0;return new Qd(t,o,o,this._shouldEnableYear(t),a)}_shouldEnableYear(t){if(t==null||this.maxDate&&t>this._dateAdapter.getYear(this.maxDate)||this.minDate&&t{let e=class e{get activeDate(){return this._activeDate}set activeDate(t){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._dateAdapter.getYear(n)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(t){t instanceof fo?this._selected=t:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedMonth(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}constructor(t,n,o,a){this._changeDetectorRef=t,this._dateFormats=n,this._dateAdapter=o,this._dir=a,this._rerenderSubscription=ve.EMPTY,this.selectedChange=new T,this.monthSelected=new T,this.activeDateChange=new T,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Rt(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(t){let n=t.value,o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),n,1);this.monthSelected.emit(o);let a=this._getDateFromMonth(n);this.selectedChange.emit(a)}_updateActiveDate(t){let n=t.value,o=this._activeDate;this.activeDate=this._getDateFromMonth(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(t){let n=this._activeDate,o=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,o?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,o?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(n,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),t.preventDefault()}_handleCalendarBodyKeyup(t){(t.keyCode===32||t.keyCode===13)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:t}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let t=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(n=>n.map(o=>this._createCellForMonth(o,t[o]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(t){return t&&this._dateAdapter.getYear(t)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(t):null}_getDateFromMonth(t){let n=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),o=this._dateAdapter.getNumDaysInMonth(n);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,Math.min(this._dateAdapter.getDate(this.activeDate),o))}_createCellForMonth(t,n){let o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),a=this._dateAdapter.format(o,this._dateFormats.display.monthYearA11yLabel),s=this.dateClass?this.dateClass(o,"year"):void 0;return new Qd(t,n.toLocaleUpperCase(),a,this._shouldEnableMonth(t),s)}_shouldEnableMonth(t){let n=this._dateAdapter.getYear(this.activeDate);if(t==null||this._isYearAndMonthAfterMaxDate(n,t)||this._isYearAndMonthBeforeMinDate(n,t))return!1;if(!this.dateFilter)return!0;let o=this._dateAdapter.createDate(n,t,1);for(let a=o;this._dateAdapter.getMonth(a)==t;a=this._dateAdapter.addCalendarDays(a,1))if(this.dateFilter(a))return!0;return!1}_isYearAndMonthAfterMaxDate(t,n){if(this.maxDate){let o=this._dateAdapter.getYear(this.maxDate),a=this._dateAdapter.getMonth(this.maxDate);return t>o||t===o&&n>a}return!1}_isYearAndMonthBeforeMinDate(t,n){if(this.minDate){let o=this._dateAdapter.getYear(this.minDate),a=this._dateAdapter.getMonth(this.minDate);return t{let e=class e{constructor(t,n,o,a,s){this._intl=t,this.calendar=n,this._dateAdapter=o,this._dateFormats=a,this._id=`mat-calendar-header-${H9++}`,this._periodButtonLabelId=`${this._id}-period-label`,this.calendar.stateChanges.subscribe(()=>s.markForCheck())}get periodButtonText(){return this.calendar.currentView=="month"?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():this.calendar.currentView=="year"?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRange(...this._formatMinAndMaxYearLabels())}get periodButtonDescription(){return this.calendar.currentView=="month"?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():this.calendar.currentView=="year"?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRangeLabel(...this._formatMinAndMaxYearLabels())}get periodButtonLabel(){return this.calendar.currentView=="month"?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView=this.calendar.currentView=="month"?"multi-year":"month"}previousClicked(){this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?-1:-Gn)}nextClicked(){this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?1:Gn)}previousEnabled(){return this.calendar.minDate?!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate):!0}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(t,n){return this.calendar.currentView=="month"?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(n)&&this._dateAdapter.getMonth(t)==this._dateAdapter.getMonth(n):this.calendar.currentView=="year"?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(n):NA(this._dateAdapter,t,n,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let n=this._dateAdapter.getYear(this.calendar.activeDate)-Yd(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),o=n+Gn-1,a=this._dateAdapter.getYearName(this._dateAdapter.createDate(n,0,1)),s=this._dateAdapter.getYearName(this._dateAdapter.createDate(o,0,1));return[a,s]}};e.\u0275fac=function(n){return new(n||e)(m(Zd),m(Xt(()=>kw)),m(Ri,8),m(ba,8),m(he))},e.\u0275cmp=E({type:e,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],standalone:!0,features:[re],ngContentSelectors:I9,decls:17,vars:11,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["mat-button","","type","button",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"click","disabled"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"click","disabled"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"]],template:function(n,o){n&1&&(He(),c(0,"div",0)(1,"div",1)(2,"span",2),g(3),d(),c(4,"button",3),b("click",function(){return o.currentPeriodClicked()}),c(5,"span",4),g(6),d(),pi(),c(7,"svg",5),I(8,"polygon",6),d()(),yr(),I(9,"div",7),ae(10),c(11,"button",8),b("click",function(){return o.previousClicked()}),pi(),c(12,"svg",9),I(13,"path",10),d()(),yr(),c(14,"button",11),b("click",function(){return o.nextClicked()}),pi(),c(15,"svg",9),I(16,"path",12),d()()()()),n&2&&(h(2),p("id",o._periodButtonLabelId),h(),$e(o.periodButtonDescription),h(),ie("aria-label",o.periodButtonLabel)("aria-describedby",o._periodButtonLabelId),h(2),$e(o.periodButtonText),h(),ne("mat-calendar-invert",o.calendar.currentView!=="month"),h(4),p("disabled",!o.previousEnabled()),ie("aria-label",o.prevButtonLabel),h(3),p("disabled",!o.nextEnabled()),ie("aria-label",o.nextButtonLabel))},dependencies:[ke,Qi],encapsulation:2,changeDetection:0});let i=e;return i})(),kw=(()=>{let e=class e{get startAt(){return this._startAt}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get selected(){return this._selected}set selected(t){t instanceof fo?this._selected=t:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get activeDate(){return this._clampedActiveDate}set activeDate(t){this._clampedActiveDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(t){let n=this._currentView!==t?t:null;this._currentView=t,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),n&&this.viewChanged.emit(n)}constructor(t,n,o,a){this._dateAdapter=n,this._dateFormats=o,this._changeDetectorRef=a,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new T,this.yearSelected=new T,this.monthSelected=new T,this.viewChanged=new T(!0),this._userSelection=new T,this._userDragDrop=new T,this._activeDrag=null,this.stateChanges=new G,this._intlChanges=t.changes.subscribe(()=>{a.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new In(this.headerComponent||VA),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(t){let n=t.minDate&&!this._dateAdapter.sameDate(t.minDate.previousValue,t.minDate.currentValue)?t.minDate:void 0,o=t.maxDate&&!this._dateAdapter.sameDate(t.maxDate.previousValue,t.maxDate.currentValue)?t.maxDate:void 0,a=n||o||t.dateFilter;if(a&&!a.firstChange){let s=this._getCurrentViewComponent();s&&(this._moveFocusOnNextTick=!0,this._changeDetectorRef.detectChanges(),s._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(t){let n=t.value;(this.selected instanceof fo||n&&!this._dateAdapter.sameDate(n,this.selected))&&this.selectedChange.emit(n),this._userSelection.emit(t)}_yearSelectedInMultiYearView(t){this.yearSelected.emit(t)}_monthSelectedInYearView(t){this.monthSelected.emit(t)}_goToDateInView(t,n){this.activeDate=t,this.currentView=n}_dragStarted(t){this._activeDrag=t}_dragEnded(t){this._activeDrag&&(t.value&&this._userDragDrop.emit(t),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}};e.\u0275fac=function(n){return new(n||e)(m(Zd),m(Ri,8),m(ba,8),m(he))},e.\u0275cmp=E({type:e,selectors:[["mat-calendar"]],viewQuery:function(n,o){if(n&1&&(ce(MA,5),ce(kA,5),ce(TA,5)),n&2){let a;Q(a=K())&&(o.monthView=a.first),Q(a=K())&&(o.yearView=a.first),Q(a=K())&&(o.multiYearView=a.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],standalone:!0,features:[Ce([PA]),Qe,re],decls:5,vars:2,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","_userSelection","dragStarted","dragEnded","activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDateChange","monthSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","yearSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"]],template:function(n,o){if(n&1&&(x(0,M9,0,0,"ng-template",0),c(1,"div",1),x(2,T9,1,11,"mat-month-view",2)(3,k9,1,6,"mat-year-view",3)(4,A9,1,6,"mat-multi-year-view",3),d()),n&2){let a;p("cdkPortalOutlet",o._calendarHeaderPortal),h(2),De((a=o.currentView)==="month"?2:a==="year"?3:a==="multi-year"?4:-1)}},dependencies:[rn,up,MA,kA,TA],styles:['.mat-calendar{display:block;line-height:normal;font-family:var(--mat-datepicker-calendar-text-font, var(--mat-app-body-medium-font));font-size:var(--mat-datepicker-calendar-text-size, var(--mat-app-body-medium-size))}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size, var(--mat-app-title-small-size));font-weight:var(--mat-datepicker-calendar-period-button-text-weight, var(--mat-app-title-small-weight));--mdc-text-button-label-text-color:var(--mat-datepicker-calendar-period-button-text-color, var(--mat-app-on-surface-variant))}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color, var(--mat-app-on-surface-variant))}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-datepicker-content .mat-calendar-previous-button:not(.mat-mdc-button-disabled),.mat-datepicker-content .mat-calendar-next-button:not(.mat-mdc-button-disabled){color:var(--mat-datepicker-calendar-navigation-button-icon-color, var(--mat-app-on-surface-variant))}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color, var(--mat-app-on-surface-variant));font-size:var(--mat-datepicker-calendar-header-text-size, var(--mat-app-title-small-size));font-weight:var(--mat-datepicker-calendar-header-text-weight, var(--mat-app-title-small-weight))}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px;background:var(--mat-datepicker-calendar-header-divider-color)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let i=e;return i})(),AA={transformPanel:ui("transformPanel",[St("void => enter-dropdown",Mt("120ms cubic-bezier(0, 0, 0.2, 1)",wa([Me({opacity:0,transform:"scale(1, 0.8)"}),Me({opacity:1,transform:"scale(1, 1)"})]))),St("void => enter-dialog",Mt("150ms cubic-bezier(0, 0, 0.2, 1)",wa([Me({opacity:0,transform:"scale(0.7)"}),Me({transform:"none",opacity:1})]))),St("* => void",Mt("100ms linear",Me({opacity:0})))]),fadeInCalendar:ui("fadeInCalendar",[Lt("void",Me({opacity:0})),Lt("enter",Me({opacity:1})),St("void => *",Mt("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},$9=0,jA=new R("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let i=k(xt);return()=>i.scrollStrategies.reposition()}});function W9(i){return()=>i.scrollStrategies.reposition()}var G9={provide:jA,deps:[xt],useFactory:W9},BA=(()=>{let e=class e{constructor(t,n,o,a,s,l){this._elementRef=t,this._changeDetectorRef=n,this._globalModel=o,this._dateAdapter=a,this._rangeSelectionStrategy=s,this._subscriptions=new ve,this._animationDone=new G,this._isAnimating=!1,this._actionsPortal=null,this._closeButtonText=l.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(t){let n=this._model.selection,o=t.value,a=n instanceof fo;if(a&&this._rangeSelectionStrategy){let s=this._rangeSelectionStrategy.selectionFinished(o,n,t.event);this._model.updateSelection(s,this)}else o&&(a||!this._dateAdapter.sameDate(o,n))&&this._model.add(o);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(t){this._model.updateSelection(t.value,this)}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_handleAnimationEvent(t){this._isAnimating=t.phaseName==="start",this._isAnimating||this._animationDone.next()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(t,n){this._model=t?this._globalModel.clone():this._globalModel,this._actionsPortal=t,n&&this._changeDetectorRef.detectChanges()}};e.\u0275fac=function(n){return new(n||e)(m(q),m(he),m(Kd),m(Ri),m(FA,8),m(Zd))},e.\u0275cmp=E({type:e,selectors:[["mat-datepicker-content"]],viewQuery:function(n,o){if(n&1&&ce(kw,5),n&2){let a;Q(a=K())&&(o._calendar=a.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:5,hostBindings:function(n,o){n&1&&Fc("@transformPanel.start",function(s){return o._handleAnimationEvent(s)})("@transformPanel.done",function(s){return o._handleAnimationEvent(s)}),n&2&&(Pc("@transformPanel",o._animationState),Yt(o.color?"mat-"+o.color:""),ne("mat-datepicker-content-touch",o.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],standalone:!0,features:[re],decls:5,vars:27,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop","id","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(n,o){if(n&1&&(c(0,"div",0)(1,"mat-calendar",1),b("yearSelected",function(s){return o.datepicker._selectYear(s)})("monthSelected",function(s){return o.datepicker._selectMonth(s)})("viewChanged",function(s){return o.datepicker._viewChanged(s)})("_userSelection",function(s){return o._handleUserSelection(s)})("_userDragDrop",function(s){return o._handleUserDragDrop(s)}),d(),x(2,O9,0,0,"ng-template",2),c(3,"button",3),b("focus",function(){return o._closeButtonFocused=!0})("blur",function(){return o._closeButtonFocused=!1})("click",function(){return o.datepicker.close()}),g(4),d()()),n&2){let a;ne("mat-datepicker-content-container-with-custom-header",o.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",o._actionsPortal),ie("aria-modal",!0)("aria-labelledby",(a=o._dialogLabelId)!==null&&a!==void 0?a:void 0),h(),Yt(o.datepicker.panelClass),p("id",o.datepicker.id)("startAt",o.datepicker.startAt)("startView",o.datepicker.startView)("minDate",o.datepicker._getMinDate())("maxDate",o.datepicker._getMaxDate())("dateFilter",o.datepicker._getDateFilter())("headerComponent",o.datepicker.calendarHeaderComponent)("selected",o._getSelected())("dateClass",o.datepicker.dateClass)("comparisonStart",o.comparisonStart)("comparisonEnd",o.comparisonEnd)("@fadeInCalendar","enter")("startDateAccessibleName",o.startDateAccessibleName)("endDateAccessibleName",o.endDateAccessibleName),h(),p("cdkPortalOutlet",o._actionsPortal),h(),ne("cdk-visually-hidden",!o._closeButtonFocused),p("color",o.color||"primary"),h(),$e(o._closeButtonText)}},dependencies:[m1,kw,rn,ke],styles:[".mat-datepicker-content{display:block;border-radius:4px;background-color:var(--mat-datepicker-calendar-container-background-color, var(--mat-app-surface-container-high));color:var(--mat-datepicker-calendar-container-text-color, var(--mat-app-on-surface));box-shadow:var(--mat-datepicker-calendar-container-elevation-shadow);border-radius:var(--mat-datepicker-calendar-container-shape, var(--mat-app-corner-large))}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.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;box-shadow:var(--mat-datepicker-calendar-container-touch-elevation-shadow);border-radius:var(--mat-datepicker-calendar-container-touch-shape, var(--mat-app-corner-extra-large));position:relative;overflow:visible}.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}}"],encapsulation:2,data:{animation:[AA.transformPanel,AA.fadeInCalendar]},changeDetection:0});let i=e;return i})(),OA=(()=>{let e=class e{get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(t){this._color=t}get disabled(){return this._disabled===void 0&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(t){t!==this._disabled&&(this._disabled=t,this.stateChanges.next(void 0))}get panelClass(){return this._panelClass}set panelClass(t){this._panelClass=HM(t)}get opened(){return this._opened}set opened(t){t?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}constructor(t,n,o,a,s,l,u){this._overlay=t,this._viewContainerRef=o,this._dateAdapter=s,this._dir=l,this._model=u,this._inputStateChanges=ve.EMPTY,this._document=k(se),this.startView="month",this.touchUi=!1,this.xPosition="start",this.yPosition="below",this.restoreFocus=!0,this.yearSelected=new T,this.monthSelected=new T,this.viewChanged=new T(!0),this.openedStream=new T,this.closedStream=new T,this._opened=!1,this.id=`mat-datepicker-${$9++}`,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new G,this._injector=k(Pe),this._changeDetectorRef=k(he),this._dateAdapter,this._scrollStrategy=a,this._model.selectionChanged.subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnChanges(t){let n=t.xPosition||t.yPosition;if(n&&!n.firstChange&&this._overlayRef){let o=this._overlayRef.getConfig().positionStrategy;o instanceof bd&&(this._setConnectedPositions(o),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(t){this._model.add(t)}_selectYear(t){this.yearSelected.emit(t)}_selectMonth(t){this.monthSelected.emit(t)}_viewChanged(t){this.viewChanged.emit(t)}registerInput(t){return this.datepickerInput,this._inputStateChanges.unsubscribe(),this.datepickerInput=t,this._inputStateChanges=t.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(t){this._actionsPortal,this._actionsPortal=t,this._componentRef?.instance._assignActions(t,!0)}removeActions(t){t===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this.datepickerInput,this._focusedElementBeforeOpen=pa(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;let t=this.restoreFocus&&this._focusedElementBeforeOpen&&typeof this._focusedElementBeforeOpen.focus=="function",n=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){let{instance:o,location:a}=this._componentRef;o._startExitAnimation(),o._animationDone.pipe(Ot(1)).subscribe(()=>{let s=this._document.activeElement;t&&(!s||s===this._document.activeElement||a.nativeElement.contains(s))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}t?setTimeout(n):n()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(t){t.datepicker=this,t.color=this.color,t._dialogLabelId=this.datepickerInput.getOverlayLabelId(),t._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();let t=this.touchUi,n=new In(BA,this._viewContainerRef),o=this._overlayRef=this._overlay.create(new Mn({positionStrategy:t?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[t?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:t?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:`mat-datepicker-${t?"dialog":"popup"}`}));this._getCloseStream(o).subscribe(a=>{a&&a.preventDefault(),this.close()}),o.keydownEvents().subscribe(a=>{let s=a.keyCode;(s===38||s===40||s===37||s===39||s===33||s===34)&&a.preventDefault()}),this._componentRef=o.attach(n),this._forwardContentValues(this._componentRef.instance),t||ai(()=>{o.updatePosition()},{injector:this._injector})}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){let t=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(t)}_setConnectedPositions(t){let n=this.xPosition==="end"?"end":"start",o=n==="start"?"end":"start",a=this.yPosition==="above"?"bottom":"top",s=a==="top"?"bottom":"top";return t.withPositions([{originX:n,originY:s,overlayX:n,overlayY:a},{originX:n,originY:a,overlayX:n,overlayY:s},{originX:o,originY:s,overlayX:o,overlayY:a},{originX:o,originY:a,overlayX:o,overlayY:s}])}_getCloseStream(t){let n=["ctrlKey","shiftKey","metaKey"];return wt(t.backdropClick(),t.detachments(),t.keydownEvents().pipe(Ye(o=>o.keyCode===27&&!Pt(o)||this.datepickerInput&&Pt(o,"altKey")&&o.keyCode===38&&n.every(a=>!Pt(o,a)))))}};e.\u0275fac=function(n){return new(n||e)(m(xt),m(Z),m(Ct),m(jA),m(Ri,8),m(Nt,8),m(Kd))},e.\u0275dir=L({type:e,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",Y],disabled:[2,"disabled","disabled",Y],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",Y],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",Y]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[ge,Qe]});let i=e;return i})(),sg=(()=>{let e=class e extends OA{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=jt(e)))(o||e)}})(),e.\u0275cmp=E({type:e,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],standalone:!0,features:[Ce([PA,{provide:OA,useExisting:e}]),be,re],decls:0,vars:0,template:function(n,o){},encapsulation:2,changeDetection:0});let i=e;return i})(),Xl=class{constructor(e,r){this.target=e,this.targetElement=r,this.value=this.target.value}},q9=(()=>{let e=class e{get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(t){this._assignValueProgrammatically(t)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(t){let n=t,o=this._elementRef.nativeElement;this._disabled!==n&&(this._disabled=n,this.stateChanges.next(void 0)),n&&this._isInitialized&&o.blur&&o.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(t){this._model=t,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(n=>{if(this._shouldHandleChangeEvent(n)){let o=this._getValueFromModel(n.selection);this._lastValueValid=this._isValidValue(o),this._cvaOnChange(o),this._onTouched(),this._formatValue(o),this.dateInput.emit(new Xl(this,this._elementRef.nativeElement)),this.dateChange.emit(new Xl(this,this._elementRef.nativeElement))}})}constructor(t,n,o){this._elementRef=t,this._dateAdapter=n,this._dateFormats=o,this.dateChange=new T,this.dateInput=new T,this.stateChanges=new G,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=ve.EMPTY,this._localeSubscription=ve.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=a=>{let s=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(a.value));return!s||this._matchesFilter(s)?null:{matDatepickerFilter:!0}},this._minValidator=a=>{let s=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(a.value)),l=this._getMinDate();return!l||!s||this._dateAdapter.compareDate(l,s)<=0?null:{matDatepickerMin:{min:l,actual:s}}},this._maxValidator=a=>{let s=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(a.value)),l=this._getMaxDate();return!l||!s||this._dateAdapter.compareDate(l,s)>=0?null:{matDatepickerMax:{max:l,actual:s}}},this._lastValueValid=!1,this._localeSubscription=n.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(t){Y9(t,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(t){this._validatorOnChange=t}validate(t){return this._validator?this._validator(t):null}writeValue(t){this._assignValueProgrammatically(t)}registerOnChange(t){this._cvaOnChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_onKeydown(t){let n=["ctrlKey","shiftKey","metaKey"];Pt(t,"altKey")&&t.keyCode===40&&n.every(a=>!Pt(t,a))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),t.preventDefault())}_onInput(t){let n=this._lastValueValid,o=this._dateAdapter.parse(t,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(o),o=this._dateAdapter.getValidDateOrNull(o);let a=!this._dateAdapter.sameDate(o,this.value);!o||a?this._cvaOnChange(o):(t&&!this.value&&this._cvaOnChange(o),n!==this._lastValueValid&&this._validatorOnChange()),a&&(this._assignValue(o),this.dateInput.emit(new Xl(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Xl(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(t){this._elementRef.nativeElement.value=t!=null?this._dateAdapter.format(t,this._dateFormats.display.dateInput):""}_assignValue(t){this._model?(this._assignValueToModel(t),this._pendingValue=null):this._pendingValue=t}_isValidValue(t){return!t||this._dateAdapter.isValid(t)}_parentDisabled(){return!1}_assignValueProgrammatically(t){t=this._dateAdapter.deserialize(t),this._lastValueValid=this._isValidValue(t),t=this._dateAdapter.getValidDateOrNull(t),this._assignValue(t),this._formatValue(t)}_matchesFilter(t){let n=this._getDateFilter();return!n||n(t)}};e.\u0275fac=function(n){return new(n||e)(m(q),m(Ri,8),m(ba,8))},e.\u0275dir=L({type:e,inputs:{value:"value",disabled:[2,"disabled","disabled",Y]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},standalone:!0,features:[ge,Qe]});let i=e;return i})();function Y9(i,e){let r=Object.keys(i);for(let t of r){let{previousValue:n,currentValue:o}=i[t];if(e.isDateInstance(n)&&e.isDateInstance(o)){if(!e.sameDate(n,o))return!0}else return!0}return!1}var Q9={provide:vn,useExisting:Xt(()=>ec),multi:!0},K9={provide:co,useExisting:Xt(()=>ec),multi:!0},ec=(()=>{let e=class e extends q9{set matDatepicker(t){t&&(this._datepicker=t,this._ariaOwns.set(t.opened?t.id:null),this._closedSubscription=t.closedStream.subscribe(()=>{this._onTouched(),this._ariaOwns.set(null)}),this._openedSubscription=t.openedStream.subscribe(()=>{this._ariaOwns.set(t.id)}),this._registerModel(t.registerInput(this)))}get min(){return this._min}set min(t){let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(n,this._min)||(this._min=n,this._validatorOnChange())}get max(){return this._max}set max(t){let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(n,this._max)||(this._max=n,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(t){let n=this._matchesFilter(this.value);this._dateFilter=t,this._matchesFilter(this.value)!==n&&this._validatorOnChange()}constructor(t,n,o,a){super(t,n,o),this._formField=a,this._closedSubscription=ve.EMPTY,this._openedSubscription=ve.EMPTY,this._ariaOwns=Dr(null),this._validator=sr.compose(super._getValidators())}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe(),this._openedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(t){return t}_assignValueToModel(t){this._model&&this._model.updateSelection(t,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(t){return t.source!==this}};e.\u0275fac=function(n){return new(n||e)(m(q),m(Ri,8),m(ba,8),m(Ro,8))},e.\u0275dir=L({type:e,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(n,o){n&1&&b("input",function(s){return o._onInput(s.target.value)})("change",function(){return o._onChange()})("blur",function(){return o._onBlur()})("keydown",function(s){return o._onKeydown(s)}),n&2&&(Si("disabled",o.disabled),ie("aria-haspopup",o._datepicker?"dialog":null)("aria-owns",o._ariaOwns())("min",o.min?o._dateAdapter.toIso8601(o.min):null)("max",o.max?o._dateAdapter.toIso8601(o.max):null)("data-mat-calendar",o._datepicker?o._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:[0,"matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],standalone:!0,features:[Ce([Q9,K9,{provide:iw,useExisting:e}]),be]});let i=e;return i})(),Z9=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e,selectors:[["","matDatepickerToggleIcon",""]],standalone:!0});let i=e;return i})(),Xd=(()=>{let e=class e{get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(t){this._disabled=t}constructor(t,n,o){this._intl=t,this._changeDetectorRef=n,this._stateChanges=ve.EMPTY;let a=Number(o);this.tabIndex=a||a===0?a:null}ngOnChanges(t){t.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(t){this.datepicker&&!this.disabled&&(this.datepicker.open(),t.stopPropagation())}_watchStateChanges(){let t=this.datepicker?this.datepicker.stateChanges:oe(),n=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:oe(),o=this.datepicker?wt(this.datepicker.openedStream,this.datepicker.closedStream):oe();this._stateChanges.unsubscribe(),this._stateChanges=wt(this._intl.changes,t,n,o).subscribe(()=>this._changeDetectorRef.markForCheck())}};e.\u0275fac=function(n){return new(n||e)(m(Zd),m(he),vi("tabindex"))},e.\u0275cmp=E({type:e,selectors:[["mat-datepicker-toggle"]],contentQueries:function(n,o,a){if(n&1&&Be(a,Z9,5),n&2){let s;Q(s=K())&&(o._customIcon=s.first)}},viewQuery:function(n,o){if(n&1&&ce(R9,5),n&2){let a;Q(a=K())&&(o._button=a.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(n,o){n&1&&b("click",function(s){return o._open(s)}),n&2&&(ie("tabindex",null)("data-mat-calendar",o.datepicker?o.datepicker.id:null),ne("mat-datepicker-toggle-active",o.datepicker&&o.datepicker.opened)("mat-accent",o.datepicker&&o.datepicker.color==="accent")("mat-warn",o.datepicker&&o.datepicker.color==="warn"))},inputs:{datepicker:[0,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[0,"aria-label","ariaLabel"],disabled:[2,"disabled","disabled",Y],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],standalone:!0,features:[ge,Qe,re],ngContentSelectors:F9,decls:4,vars:6,consts:[["button",""],["mat-icon-button","","type","button",3,"disabled","disableRipple"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(n,o){n&1&&(He(P9),c(0,"button",1,0),x(2,N9,2,0,":svg:svg",2),ae(3),d()),n&2&&(p("disabled",o.disabled)("disableRipple",o.disableRipple),ie("aria-haspopup",o.datepicker?"dialog":null)("aria-label",o.ariaLabel||o._intl.openCalendarLabel)("tabindex",o.disabled?-1:o.tabIndex),h(2),De(o._customIcon?-1:2))},dependencies:[Qi],styles:[".mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color, var(--mat-app-on-surface-variant))}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color, var(--mat-app-on-surface-variant))}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0});let i=e;return i})();var zA=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({providers:[Zd,G9],imports:[Ei,ar,an,Ll,zn,pe,BA,Xd,VA,so]});let i=e;return i})();function X9(i,e){i&1&&(c(0,"uds-translate"),g(1,"Edit rule"),d())}function J9(i,e){i&1&&(c(0,"uds-translate"),g(1,"New rule"),d())}function eq(i,e){if(i&1&&(c(0,"mat-option",21),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),h(),F(" ",r.value," ")}}function tq(i,e){if(i&1&&(c(0,"mat-option",21),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),h(),F(" ",r.value," ")}}function iq(i,e){if(i&1&&(c(0,"mat-option",21),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),h(),F(" ",r.value," ")}}function nq(i,e){if(i&1){let r=A();c(0,"mat-form-field",11)(1,"mat-label")(2,"uds-translate"),g(3,"Week days"),d()(),c(4,"mat-select",22),H("ngModelChange",function(n){y(r);let o=_();return $(o.wDays,n)||(o.wDays=n),w(n)}),x(5,iq,2,2,"mat-option",10),d()()}if(i&2){let r=_();h(4),U("ngModel",r.wDays),h(),p("ngForOf",r.weekDays)}}function oq(i,e){if(i&1){let r=A();c(0,"mat-form-field",11)(1,"mat-label")(2,"uds-translate"),g(3,"Repeat every"),d()(),c(4,"input",8),H("ngModelChange",function(n){y(r);let o=_();return $(o.rule.interval,n)||(o.rule.interval=n),w(n)}),d(),c(5,"div",23),g(6),d()()}if(i&2){let r=_();h(4),U("ngModel",r.rule.interval),h(2),F("\xA0",r.frequency(),"")}}var lg={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")],NEVER:["","",django.gettext("Never")]},cg={MINUTES:django.gettext("Minutes"),HOURS:django.gettext("Hours"),DAYS:django.gettext("Days"),WEEKS:django.gettext("Weeks")},HA=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],$A=(i,e=!1)=>{let r=new Array;for(let t=0;t<7;t++)i&1&&r.push(HA[t].substr(0,e?100:3)),i>>=1;return r.length?r.join(", "):django.gettext("(no days)")},WA=i=>{i.frequency==="WEEKDAYS"?i.interval=$A(i.interval):i.interval=i.interval+" "+lg[i.frequency][django.pluralidx(i.interval)],i.duration=i.duration+" "+cg[i.duration_unit]},Ow=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.dunits=Object.keys(cg).map(s=>({id:s,value:cg[s]})),this.freqs=Object.keys(lg).map(s=>({id:s,value:lg[s][2]})),this.weekDays=HA.map((s,l)=>({id:1<{if(this.rule=t,this.startDate=new Date(this.rule.start*1e3),this.startTime=this.startDate.toTimeString().split(":").splice(0,2).join(":"),this.endDate=this.rule.end?new Date(this.rule.end*1e3):null,this.rule.frequency==="WEEKDAYS"){let n=[];for(let o=0;o<7;o++){let a=1<this.rule.interval+=n),this.rule.interval===0)?django.gettext("Week days"):null}summary(){let t=django.gettext("Invalid or incomplete rule. Please, fix field $FIELD"),n=hy(django.get_format("SHORT_DATE_FORMAT")),o=this.updateRuleData();if(o===null){t=django.gettext("This rule will be valid every"),this.rule.frequency==="WEEKDAYS"?t+=" "+$A(this.rule.interval,!0)+" "+django.gettext("of any week"):t+=" "+ +this.rule.interval+" "+this.frequency();let a=new Date(this.rule.start*1e3);t+=", "+django.gettext("from")+" "+Ca(n,a),this.rule.end?t+=" "+django.gettext("until")+" "+Ca(n,new Date(this.rule.end*1e3)):t+=" "+django.gettext("onwards"),t+=", "+django.gettext("starting at")+" "+a.toTimeString().split(":").slice(0,2).join(":"),+this.rule.duration>0?t+=" "+django.gettext("and every event will be active for")+" "+this.rule.duration+" "+cg[this.rule.duration_unit]:t+=django.gettext("with no duration")}return t.replace("$FIELD",o)}save(){this.rules.save(this.rule).then(()=>{this.dialogRef.close(),this.onSave.emit(!0)})}};e.\u0275fac=function(n){return new(n||e)(m(B),m(X),m(Ne),m(Ke))},e.\u0275cmp=E({type:e,selectors:[["uds-calendar-rule"]],decls:75,vars:25,consts:[["startDatePicker",""],["endDatePicker",""],["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","text",3,"ngModelChange","ngModel"],[1,"oneThird"],["matInput","","type","time",3,"ngModelChange","ngModel"],["matInput","","type","number",3,"ngModelChange","ngModel"],[3,"ngModelChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],[1,"oneHalf"],["matInput","",3,"ngModelChange","matDatepicker","ngModel"],["matSuffix","",3,"for"],["matInput","",3,"ngModelChange","matDatepicker","ngModel","placeholder"],[1,"weekdays"],[3,"ngModelChange","valueChange","ngModel"],["class","oneHalf",4,"ngIf"],[1,"info"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click","disabled"],[3,"value"],["multiple","",3,"ngModelChange","ngModel"],["matSuffix",""]],template:function(n,o){if(n&1){let a=A();c(0,"h4",2),x(1,X9,2,0,"uds-translate",3),_t(2,"notEmpty"),x(3,J9,2,0,"uds-translate",3),_t(4,"isEmpty"),d(),c(5,"mat-dialog-content")(6,"div",4)(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),g(10,"Name"),d()(),c(11,"input",5),H("ngModelChange",function(l){return y(a),$(o.rule.name,l)||(o.rule.name=l),w(l)}),d()(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),g(15,"Comments"),d()(),c(16,"input",5),H("ngModelChange",function(l){return y(a),$(o.rule.comments,l)||(o.rule.comments=l),w(l)}),d()(),c(17,"h3")(18,"uds-translate"),g(19,"Event"),d()(),c(20,"mat-form-field",6)(21,"mat-label")(22,"uds-translate"),g(23,"Start time"),d()(),c(24,"input",7),H("ngModelChange",function(l){return y(a),$(o.startTime,l)||(o.startTime=l),w(l)}),d()(),c(25,"mat-form-field",6)(26,"mat-label")(27,"uds-translate"),g(28,"Duration"),d()(),c(29,"input",8),H("ngModelChange",function(l){return y(a),$(o.rule.duration,l)||(o.rule.duration=l),w(l)}),d()(),c(30,"mat-form-field",6)(31,"mat-label")(32,"uds-translate"),g(33,"Duration units"),d()(),c(34,"mat-select",9),H("ngModelChange",function(l){return y(a),$(o.rule.duration_unit,l)||(o.rule.duration_unit=l),w(l)}),x(35,eq,2,2,"mat-option",10),d()(),c(36,"h3"),g(37," Repetition "),d(),c(38,"mat-form-field",11)(39,"mat-label")(40,"uds-translate"),g(41," Start date "),d()(),c(42,"input",12),H("ngModelChange",function(l){return y(a),$(o.startDate,l)||(o.startDate=l),w(l)}),d(),I(43,"mat-datepicker-toggle",13)(44,"mat-datepicker",null,0),d(),c(46,"mat-form-field",11)(47,"mat-label")(48,"uds-translate"),g(49," Repeat until date "),d()(),c(50,"input",14),H("ngModelChange",function(l){return y(a),$(o.endDate,l)||(o.endDate=l),w(l)}),d(),I(51,"mat-datepicker-toggle",13)(52,"mat-datepicker",null,1),d(),c(54,"div",15)(55,"mat-form-field",11)(56,"mat-label")(57,"uds-translate"),g(58,"Frequency"),d()(),c(59,"mat-select",16),H("ngModelChange",function(l){return y(a),$(o.rule.frequency,l)||(o.rule.frequency=l),w(l)}),b("valueChange",function(){return y(a),w(o.rule.interval=1)}),x(60,tq,2,2,"mat-option",10),d()(),x(61,nq,6,2,"mat-form-field",17)(62,oq,7,2,"mat-form-field",17),d(),c(63,"h3")(64,"uds-translate"),g(65,"Summary"),d()(),c(66,"div",18),g(67),d()()(),c(68,"mat-dialog-actions")(69,"button",19)(70,"uds-translate"),g(71,"Cancel"),d()(),c(72,"button",20),b("click",function(){return y(a),w(o.save())}),c(73,"uds-translate"),g(74,"Ok"),d()()()}if(n&2){let a=we(45),s=we(53);h(),p("ngIf",Dt(2,21,o.rule.id)),h(2),p("ngIf",Dt(4,23,o.rule.id)),h(8),U("ngModel",o.rule.name),h(5),U("ngModel",o.rule.comments),h(8),U("ngModel",o.startTime),h(5),U("ngModel",o.rule.duration),h(5),U("ngModel",o.rule.duration_unit),h(),p("ngForOf",o.dunits),h(7),p("matDatepicker",a),U("ngModel",o.startDate),h(),p("for",a),h(7),p("matDatepicker",s),U("ngModel",o.endDate),p("placeholder",o.FOREVER_STRING),h(),p("for",s),h(8),U("ngModel",o.rule.frequency),h(),p("ngForOf",o.freqs),h(),p("ngIf",o.rule.frequency==="WEEKDAYS"),h(),p("ngIf",o.rule.frequency!=="WEEKDAYS"&&o.rule.frequency!=="NEVER"),h(5),F(" ",o.summary()," "),h(5),p("disabled",o.updateRuleData()!==null||o.rule.name==="")}},dependencies:[We,me,lt,$n,xe,Se,ke,Qt,Je,tt,et,_e,Ae,uo,ft,bt,nt,sg,ec,Xd,le,nA,yi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]:not(.oneThird):not(.oneHalf){width:100%}.mat-mdc-form-field.oneThird[_ngcontent-%COMP%]{width:31%;margin-right:2%}.mat-mdc-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:#0009;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:0px 0px;white-space:nowrap}.mat-datepicker-toggle[_ngcontent-%COMP%]{color:#00f}.mat-button-toggle-checked[_ngcontent-%COMP%]{background-color:#23238580;color:#fff}"]});let i=e;return i})();var rq=i=>["/pools","calendars",i];function aq(i,e){i&1&&(c(0,"uds-translate"),g(1,"Rules"),d())}function sq(i,e){if(i&1){let r=A();c(0,"div",6)(1,"div",7)(2,"mat-tab-group",8)(3,"mat-tab"),x(4,aq,2,0,"ng-template",9),c(5,"div",10)(6,"uds-table",11),b("newAction",function(n){y(r);let o=_();return w(o.onNewRule(n))})("editAction",function(n){y(r);let o=_();return w(o.onEditRule(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteRule(n))}),d()()()()()()}if(i&2){let r=_();h(2),p("@.disabled",!0),h(4),p("rest",r.calendarRules)("multiSelect",!0)("allowExport",!0)("onItem",r.processElement)("tableId","calendars-d-rules"+r.calendar.id)("pageSize",r.api.config.admin.page_size)}}var GA=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o,this.calendarRules={}}ngOnInit(){let t=this.route.snapshot.paramMap.get("calendar");t&&this.rest.calendars.get(t).then(n=>{this.calendar=n,this.calendarRules=this.rest.calendars.detail(n.id,"rules")})}onNewRule(t){Ow.launch(this.api,this.calendarRules).subscribe(()=>t.table.overview())}onEditRule(t){Ow.launch(this.api,this.calendarRules,t.table.selection.selected[0]).subscribe(()=>t.table.overview())}onDeleteRule(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete calendar rule"))}processElement(t){WA(t)}};e.\u0275fac=function(n){return new(n||e)(m(Oe),m(X),m(B))},e.\u0275cmp=E({type:e,selectors:[["uds-calendars-detail"]],decls:10,vars:8,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,"newAction","editAction","deleteAction","rest","multiSelect","allowExport","onItem","tableId","pageSize"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),g(4,"arrow_back"),d()(),g(5," \xA0"),I(6,"img",4),g(7),d(),x(8,sq,7,7,"div",5),_t(9,"notEmpty"),d()),n&2&&(h(2),p("routerLink",Bi(6,rq,o.calendar?o.calendar.id:"")),h(4),p("src",o.api.staticURL("admin/img/icons/calendars.png"),Ie),h(),F(" ",o.calendar==null?null:o.calendar.name," "),h(),p("ngIf",Dt(9,4,o.calendar)))},dependencies:[me,bi,ei,ti,oi,le,Te,yi],styles:[".mat-column-start, .mat-column-end{max-width:9rem} .mat-column-frequency{max-width:9rem} .mat-column-interval, .mat-column-duration{max-width:11rem}"]});let i=e;return i})();var lq='event'+django.gettext("Set time mark")+"",Rw=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o,this.cButtons=[{id:"timemark",html:lq,type:ut.SINGLE_SELECT}]}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New account"))}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit account"))}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete account"))}onTimeMark(t){let n=t.table.selection.selected[0];this.api.gui.questionDialog(django.gettext("Time mark"),django.gettext("Set time mark for $NAME to current date/time?").replace("$NAME",n.name)).then(o=>{o&&this.rest.accounts.timemark(n.id).then(()=>{this.api.gui.snackbar.open(django.gettext("Time mark stablished"),django.gettext("dismiss"),{duration:2e3}),t.table.overview()})})}onDetail(t){this.api.navigation.gotoAccountDetail(t.param.id)}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("account"))}processElement(t){t.time_mark=t.time_mark===78793200?django.gettext("No time mark"):$i("SHORT_DATE_FORMAT",t.time_mark)}};e.\u0275fac=function(n){return new(n||e)(m(Oe),m(X),m(B))},e.\u0275cmp=E({type:e,selectors:[["uds-accounts"]],decls:1,vars:7,consts:[["icon","accounts",3,"customButtonAction","newAction","editAction","deleteAction","detailAction","loaded","rest","multiSelect","allowExport","hasPermissions","customButtons","pageSize","onItem"]],template:function(n,o){n&1&&(c(0,"uds-table",0),b("customButtonAction",function(s){return o.onTimeMark(s)})("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("detailAction",function(s){return o.onDetail(s)})("loaded",function(s){return o.onLoad(s)}),d()),n&2&&p("rest",o.rest.accounts)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)("onItem",o.processElement)},dependencies:[Te]});let i=e;return i})();var cq=i=>["/pools","accounts",i];function dq(i,e){i&1&&(c(0,"uds-translate"),g(1,"Account usage"),d())}function uq(i,e){if(i&1){let r=A();c(0,"div",6)(1,"div",7)(2,"mat-tab-group",8)(3,"mat-tab"),x(4,dq,2,0,"ng-template",9),c(5,"div",10)(6,"uds-table",11),b("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteUsage(n))}),d()()()()()()}if(i&2){let r=_();h(2),p("@.disabled",!0),h(4),p("rest",r.accountUsage)("multiSelect",!0)("allowExport",!0)("onItem",r.processElement)("tableId","account-d-usage"+r.account.id)}}var qA=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o,this.accountUsage={}}ngOnInit(){let t=this.route.snapshot.paramMap.get("account");t&&this.rest.accounts.get(t).then(n=>{this.account=n,this.accountUsage=this.rest.accounts.detail(n.id,"usage")})}onDeleteUsage(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete account usage"))}processElement(t){t.running=this.api.boolAsHumanString(t.running)}};e.\u0275fac=function(n){return new(n||e)(m(Oe),m(X),m(B))},e.\u0275cmp=E({type:e,selectors:[["uds-accounts-detail"]],decls:10,vars:8,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,"deleteAction","rest","multiSelect","allowExport","onItem","tableId"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),g(4,"arrow_back"),d()(),g(5," \xA0"),I(6,"img",4),g(7),d(),x(8,uq,7,6,"div",5),_t(9,"notEmpty"),d()),n&2&&(h(2),p("routerLink",Bi(6,cq,o.account?o.account.id:"")),h(4),p("src",o.api.staticURL("admin/img/icons/accounts.png"),Ie),h(),F(" ",o.account==null?null:o.account.name," "),h(),p("ngIf",Dt(9,4,o.account)))},dependencies:[me,bi,ei,ti,oi,le,Te,yi]});let i=e;return i})();function hq(i,e){i&1&&(c(0,"uds-translate"),g(1,"New image for"),d())}function mq(i,e){i&1&&(c(0,"uds-translate"),g(1,"Edit for"),d())}var Pw=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.onSave=new T(!0),this.preview="",this.image={id:void 0,data:"",name:""},a.image&&(this.image.id=a.image.id)}static launch(t,n=null){let o=window.innerWidth<800?"60%":"40%";return t.gui.dialog.open(e,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{image:n},disableClose:!0}).componentInstance.onSave}onFileChanged(t){let n=t.target;if(!n.files||n.files.length===0)return;let o=n.files[0];if(o.size>256*1024){this.api.gui.alert(django.gettext("Error"),django.gettext("Image is too big (max. upload size is 256Kb)"));return}if(!["image/jpeg","image/png","image/gif"].includes(o.type)){this.api.gui.alert(django.gettext("Error"),django.gettext("Invalid image type (only supports JPEG, PNG and GIF"));return}let a=new FileReader;a.onload=s=>{let l=a.result;this.preview=l,this.image.data=l.substr(l.indexOf("base64,")+7),this.image.name||(this.image.name=o.name)},a.readAsDataURL(o)}ngOnInit(){this.image.id&&this.rest.gallery.get(this.image.id).then(t=>{switch(this.image=t,this.image.data.substr(2)){case"iV":this.preview="data:image/png;base64,"+this.image.data;break;case"/9":this.preview="data:image/jpeg;base64,"+this.image.data;break;default:this.preview="data:image/gif;base64,"+this.image.data}})}background(){let t=this.api.config.image_size[0],n=this.api.config.image_size[1],o={"width.px":t,"height.px":n,"background-size":t+"px "+n+"px","background-image":"none"};return this.preview&&(o["background-image"]="url("+this.preview+")"),o}save(){if(!this.image.name||!this.image.data){this.api.gui.alert(django.gettext("Error"),django.gettext("Please, provide a name and a image"));return}this.rest.gallery.save(this.image).then(()=>{this.api.gui.snackbar.open(django.gettext("Successfully saved"),django.gettext("dismiss"),{duration:2e3}),this.dialogRef.close(),this.onSave.emit(!0)})}};e.\u0275fac=function(n){return new(n||e)(m(B),m(X),m(Ne),m(Ke))},e.\u0275cmp=E({type:e,selectors:[["uds-gallery-image"]],decls:32,vars:7,consts:[["fileInput",""],["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","text",3,"ngModelChange","ngModel"],["type","file",2,"display","none",3,"change"],["matInput","","type","text",3,"click","hidden"],[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(n,o){if(n&1){let a=A();c(0,"h4",1),x(1,hq,2,0,"uds-translate",2)(2,mq,2,0,"uds-translate",2),d(),c(3,"mat-dialog-content")(4,"div",3)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),g(8,"Image name"),d()(),c(9,"input",4),H("ngModelChange",function(l){return y(a),$(o.image.name,l)||(o.image.name=l),w(l)}),d()(),c(10,"input",5,0),b("change",function(l){return y(a),w(o.onFileChanged(l))}),d(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),g(15,"Image (click to change)"),d()(),c(16,"input",6),b("click",function(){y(a);let l=we(11);return w(l.click())}),d(),c(17,"div",7),b("click",function(){y(a);let l=we(11);return w(l.click())}),I(18,"div",8),d()(),c(19,"div",9)(20,"uds-translate"),g(21,' For optimal results, use "squared" images. '),d(),c(22,"uds-translate"),g(23," The image will be resized on upload to "),d(),g(24),d()()(),c(25,"mat-dialog-actions")(26,"button",10)(27,"uds-translate"),g(28,"Cancel"),d()(),c(29,"button",11),b("click",function(){return y(a),w(o.save())}),c(30,"uds-translate"),g(31,"Ok"),d()()()}n&2&&(h(),p("ngIf",!o.image.id),h(),p("ngIf",o.image.id),h(7),U("ngModel",o.image.name),h(7),p("hidden",!0),h(2),p("ngStyle",o.background()),h(6),Ir(" ",o.api.config.image_size[0],"x",o.api.config.image_size[1]," "))},dependencies:[me,SI,lt,xe,Se,ke,Qt,Je,tt,et,_e,Ae,ft,le],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}.preview[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;width:100%}.image-preview[_ngcontent-%COMP%]{background-color:#0000004d}"]});let i=e;return i})();var Fw=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o}ngOnInit(){}onNew(t){Pw.launch(this.api).subscribe(()=>t.table.overview())}onEdit(t){Pw.launch(this.api,t.table.selection.selected[0]).subscribe(()=>t.table.overview())}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete image"))}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("image"))}};e.\u0275fac=function(n){return new(n||e)(m(Oe),m(X),m(B))},e.\u0275cmp=E({type:e,selectors:[["uds-gallery"]],decls:1,vars:5,consts:[["icon","gallery",3,"newAction","editAction","deleteAction","loaded","rest","multiSelect","allowExport","hasPermissions","pageSize"]],template:function(n,o){n&1&&(c(0,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("loaded",function(s){return o.onLoad(s)}),d()),n&2&&p("rest",o.rest.gallery)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",o.api.config.admin.page_size)},dependencies:[Te],styles:[".mat-column-thumb{max-width:7rem;justify-content:center} .mat-column-name{max-width:32rem}"]});let i=e;return i})();var YA=su(Qf());var pq='assessment'+django.gettext("Generate report")+"",QA=(()=>{let e=class e{constructor(t,n){this.rest=t,this.api=n,this.customButtons=[{id:"genreport",html:pq,type:ut.SINGLE_SELECT}]}ngOnInit(){}generateReport(t){return W(this,null,function*(){let n=new Jt;this.api.gui.forms.typedForm(t,django.gettext("Generate report"),!1,[],void 0,t.table.selection.selected[0].id,{save:n});let o=yield n;this.api.gui.snackbar.open(django.gettext("Generating report..."));let a=yield this.rest.reports.save(o,t.table.selection.selected[0].id),s=a.encoded?window.atob(a.data):a.data,l=s.length,u=new Uint8Array(l);for(let v=0;v{(0,YA.saveAs)(f,a.filename,{autoBom:!1})})})}};e.\u0275fac=function(n){return new(n||e)(m(X),m(B))},e.\u0275cmp=E({type:e,selectors:[["uds-reports"]],decls:1,vars:6,consts:[["icon","reports",3,"customButtonAction","rest","multiSelect","allowExport","hasPermissions","customButtons","pageSize"]],template:function(n,o){n&1&&(c(0,"uds-table",0),b("customButtonAction",function(s){return o.generateReport(s)}),d()),n&2&&p("rest",o.rest.reports)("multiSelect",!1)("allowExport",!1)("hasPermissions",!1)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)},dependencies:[Te],styles:[".mat-column-group{max-width:16rem} .mat-column-name{max-width:32rem}"]});let i=e;return i})();var KA=(()=>{let e=class e{constructor(t,n){this.api=t,this.rest=n}ngOnInit(){}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New Notifier"),!1)}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit Notifier"),!1)}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"))}};e.\u0275fac=function(n){return new(n||e)(m(B),m(X))},e.\u0275cmp=E({type:e,selectors:[["uds-notifiers"]],decls:2,vars:4,consts:[["icon","accounts",3,"newAction","editAction","deleteAction","rest","multiSelect","allowExport","pageSize"]],template:function(n,o){n&1&&(c(0,"div")(1,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)}),d()()),n&2&&(h(),p("rest",o.rest.notifiers)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Te]});let i=e;return i})();function fq(i,e){if(i&1&&g(0),i&2){let r=_().$implicit;F(" ",r," ")}}function gq(i,e){if(i&1){let r=A();c(0,"div")(1,"mat-form-field")(2,"mat-label"),g(3),d(),c(4,"input",18),H("ngModelChange",function(n){y(r);let o=_(2).$implicit,a=_().$implicit,s=_(2);return $(s.config[a][o].value,n)||(s.config[a][o].value=n),w(n)}),d()()()}if(i&2){let r=_(2).$implicit,t=_().$implicit,n=_(2);h(3),$e(r),h(),p("type",n.config[t][r].crypt?"password":"text"),U("ngModel",n.config[t][r].value),p("matTooltip",n.config[t][r].help)}}function _q(i,e){if(i&1){let r=A();c(0,"div")(1,"mat-form-field")(2,"mat-label"),g(3),d(),c(4,"textarea",19),H("ngModelChange",function(n){y(r);let o=_(2).$implicit,a=_().$implicit,s=_(2);return $(s.config[a][o].value,n)||(s.config[a][o].value=n),w(n)}),d()()()}if(i&2){let r=_(2).$implicit,t=_().$implicit,n=_(2);h(3),$e(r),h(),U("ngModel",n.config[t][r].value),p("matTooltip",n.config[t][r].help)}}function vq(i,e){if(i&1){let r=A();c(0,"div")(1,"mat-form-field")(2,"mat-label"),g(3),d(),c(4,"input",20),H("ngModelChange",function(n){y(r);let o=_(2).$implicit,a=_().$implicit,s=_(2);return $(s.config[a][o].value,n)||(s.config[a][o].value=n),w(n)}),d()()()}if(i&2){let r=_(2).$implicit,t=_().$implicit,n=_(2);h(3),$e(r),h(),U("ngModel",n.config[t][r].value),p("matTooltip",n.config[t][r].help)}}function bq(i,e){if(i&1){let r=A();c(0,"div")(1,"div",21)(2,"mat-slide-toggle",22),H("ngModelChange",function(n){y(r);let o=_(2).$implicit,a=_().$implicit,s=_(2);return $(s.config[a][o].value,n)||(s.config[a][o].value=n),w(n)}),g(3),d()()()}if(i&2){let r=_(2).$implicit,t=_().$implicit,n=_(2);h(2),U("ngModel",n.config[t][r].value),p("matTooltip",n.config[t][r].help),h(),F(" ",r," ")}}function yq(i,e){if(i&1&&(c(0,"mat-option",24),g(1),d()),i&2){let r=e.$implicit;p("value",r),h(),F(" ",r," ")}}function wq(i,e){if(i&1){let r=A();c(0,"div")(1,"mat-form-field")(2,"mat-label"),g(3),d(),c(4,"mat-select",22),H("ngModelChange",function(n){y(r);let o=_(2).$implicit,a=_().$implicit,s=_(2);return $(s.config[a][o].value,n)||(s.config[a][o].value=n),w(n)}),x(5,yq,2,2,"mat-option",23),d()()()}if(i&2){let r=_(2).$implicit,t=_().$implicit,n=_(2);h(3),F(" ",r," "),h(),U("ngModel",n.config[t][r].value),p("matTooltip",n.config[t][r].help),h(),p("ngForOf",n.config[t][r].params)}}function Cq(i,e){if(i&1){let r=A();c(0,"div")(1,"mat-form-field")(2,"mat-label"),g(3),d(),c(4,"input",25),H("ngModelChange",function(n){y(r);let o=_(2).$implicit,a=_().$implicit,s=_(2);return $(s.config[a][o].value,n)||(s.config[a][o].value=n),w(n)}),d()()()}if(i&2){let r=_(2).$implicit,t=_().$implicit,n=_(2);h(3),$e(r),h(),U("ngModel",n.config[t][r].value),p("matTooltip",n.config[t][r].help)}}function xq(i,e){i&1&&Ci(0)}function Dq(i,e){if(i&1){let r=A();c(0,"div")(1,"mat-form-field")(2,"mat-label"),g(3),d(),c(4,"input",26),H("ngModelChange",function(n){y(r);let o=_(2).$implicit,a=_().$implicit,s=_(2);return $(s.config[a][o].value,n)||(s.config[a][o].value=n),w(n)}),d()()()}if(i&2){let r=_(2).$implicit,t=_().$implicit,n=_(2);h(3),$e(r),h(),U("ngModel",n.config[t][r].value),p("matTooltip",n.config[t][r].help)}}function Sq(i,e){if(i&1){let r=A();c(0,"div")(1,"mat-form-field")(2,"mat-label"),g(3),d(),c(4,"input",27),H("ngModelChange",function(n){y(r);let o=_(2).$implicit,a=_().$implicit,s=_(2);return $(s.config[a][o].value,n)||(s.config[a][o].value=n),w(n)}),d()()()}if(i&2){let r=_(2).$implicit,t=_().$implicit,n=_(2);h(3),$e(r),h(),U("ngModel",n.config[t][r].value),p("matTooltip",n.config[t][r].help)}}function Eq(i,e){if(i&1&&(mt(0,15),x(1,gq,5,4,"div",16)(2,_q,5,3,"div",16)(3,vq,5,3,"div",16)(4,bq,4,3,"div",16)(5,wq,6,4,"div",16)(6,Cq,5,3,"div",16)(7,xq,1,0,"ng-container",16)(8,Dq,5,3,"div",16)(9,Sq,5,3,"div",17),pt()),i&2){let r=_().$implicit,t=_().$implicit,n=_(2);p("ngSwitch",n.config[t][r].type),h(),p("ngSwitchCase",0),h(),p("ngSwitchCase",1),h(),p("ngSwitchCase",2),h(),p("ngSwitchCase",3),h(),p("ngSwitchCase",4),h(),p("ngSwitchCase",5),h(),p("ngSwitchCase",6),h(),p("ngSwitchCase",7)}}function Iq(i,e){if(i&1&&(c(0,"div",13),x(1,Eq,10,9,"ng-container",14),d()),i&2){let r=e.$implicit,t=_().$implicit,n=_(2);h(),p("ngIf",n.config[t][r])}}function Mq(i,e){if(i&1&&(c(0,"mat-tab"),x(1,fq,1,1,"ng-template",10),c(2,"div",11),x(3,Iq,2,1,"div",12),d()()),i&2){let r=e.$implicit,t=_(2);h(3),p("ngForOf",t.configElements(r))}}function Tq(i,e){if(i&1){let r=A();c(0,"div",4)(1,"div",5)(2,"mat-tab-group",6),x(3,Mq,4,1,"mat-tab",7),d(),c(4,"div",8)(5,"button",9),b("click",function(){y(r);let n=_();return w(n.save())}),c(6,"uds-translate"),g(7,"Save"),d()()()()()}if(i&2){let r=_();h(2),p("@.disabled",!0),h(),p("ngForOf",r.sections())}}var ZA=["UDS","Security"],XA=["UDS ID"],JA=(()=>{let e=class e{constructor(t,n){this.rest=t,this.api=n}ngOnInit(){this.rest.configuration.overview().then(t=>{this.config=t;for(let n in this.config)if(this.config.hasOwnProperty(n)){for(let o in this.config[n])if(this.config[n].hasOwnProperty(o)){let a=this.config[n][o];a.type===7?a.value='\u20ACfa{}#42123~#||23|\xDF\xF0\u0111\xE6"':a.type===3&&(a.value=!!["1",1,!0].includes(a.value)),a.original_value=a.value}}})}sections(){let t=[];for(let n in this.config)this.config.hasOwnProperty(n)&&!ZA.includes(n)&&t.push(n);return t=t.sort((n,o)=>n.localeCompare(o)),t.unshift.apply(t,ZA),t}configElements(t){let n=[],o=this.config[t];if(o)for(let a in o)o.hasOwnProperty(a)&&!(t==="UDS"&&XA.includes(a))&&n.push(a);return n=n.sort((a,s)=>a.localeCompare(s)),t==="UDS"&&n.unshift.apply(n,XA),n}save(){let t={};for(let n in this.config)if(this.config.hasOwnProperty(n)){for(let o in this.config[n])if(this.config[n].hasOwnProperty(o)){let a=this.config[n][o];if(a.original_value!==a.value){a.original_value=a.value,t[n]||(t[n]={});let s=a.value;a.type===3&&(s=["1",1,!0].includes(a.value)?"1":"0"),t[n][o]={value:s}}}}this.rest.configuration.save(t).then(()=>{this.api.gui.snackbar.open(django.gettext("Configuration saved"),django.gettext("dismiss"),{duration:2e3})})}};e.\u0275fac=function(n){return new(n||e)(m(X),m(B))},e.\u0275cmp=E({type:e,selectors:[["uds-configuration"]],decls:8,vars:4,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],[4,"ngFor","ngForOf"],[1,"config-footer"],["mat-raised-button","","color","primary",3,"click"],["mat-tab-label",""],[1,"content"],["class","field",4,"ngFor","ngForOf"],[1,"field"],[3,"ngSwitch",4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["matInput","",3,"ngModelChange","type","ngModel","matTooltip"],["matInput","",3,"ngModelChange","ngModel","matTooltip"],["matInput","","type","number",3,"ngModelChange","ngModel","matTooltip"],[1,"toggle"],[3,"ngModelChange","ngModel","matTooltip"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["matInput","","type","text","readonly","readonly",3,"ngModelChange","ngModel","matTooltip"],["matInput","","type","password",3,"ngModelChange","ngModel","matTooltip"],["matInput","","type","text",3,"ngModelChange","ngModel","matTooltip"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1),I(2,"img",2),g(3,"\xA0"),c(4,"uds-translate"),g(5,"UDS Configuration"),d()(),x(6,Tq,8,2,"div",3),_t(7,"notEmpty"),d()),n&2&&(h(2),p("src",o.api.staticURL("admin/img/icons/configuration.png"),Ie),h(4),p("ngIf",Dt(7,2,o.config)))},dependencies:[We,me,ul,bm,DI,lt,$n,xe,Se,ke,lr,_e,Ae,ft,bt,nt,ei,ti,oi,cr,le,yi],styles:[".content[_ngcontent-%COMP%]{margin-top:2rem}.field[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%}.field[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:50%}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}input[readonly][_ngcontent-%COMP%]{background-color:#e0e0e0}.slider-label[_ngcontent-%COMP%]{color:#0009;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:0px 0px;white-space:nowrap}.config-footer[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%;margin-top:2rem;margin-bottom:2rem}"]});let i=e;return i})();var eO=(()=>{let e=class e{constructor(t,n,o){this.api=t,this.route=n,this.rest=o}ngOnInit(){}onDelete(t){return W(this,null,function*(){yield this.api.gui.forms.deleteForm(t,django.gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"))})}};e.\u0275fac=function(n){return new(n||e)(m(B),m(Oe),m(X))},e.\u0275cmp=E({type:e,selectors:[["uds-actor-tokens"]],decls:2,vars:4,consts:[["icon","accounts",3,"deleteAction","rest","multiSelect","allowExport","pageSize"]],template:function(n,o){n&1&&(c(0,"div")(1,"uds-table",0),b("deleteAction",function(s){return o.onDelete(s)}),d()()),n&2&&(h(),p("rest",o.rest.actorToken)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Te]});let i=e;return i})();var tO=(()=>{let e=class e{constructor(t,n,o){this.api=t,this.route=n,this.rest=o}ngOnInit(){}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete servers token - USE WITH EXTREME CAUTION!!!"))}};e.\u0275fac=function(n){return new(n||e)(m(B),m(Oe),m(X))},e.\u0275cmp=E({type:e,selectors:[["uds-servers-tokens"]],decls:2,vars:4,consts:[["icon","proxy",3,"deleteAction","rest","multiSelect","allowExport","pageSize"]],template:function(n,o){n&1&&(c(0,"div")(1,"uds-table",0),b("deleteAction",function(s){return o.onDelete(s)}),d()()),n&2&&(h(),p("rest",o.rest.serversTokens)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Te]});let i=e;return i})();var kq=[{path:"",canActivate:[HT],children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:qT},{path:"services/providers",component:nw},{path:"services/providers/:provider/detail",component:ow},{path:"services/providers/:provider",component:nw},{path:"services/providers/:provider/detail/:service",component:ow},{path:"services/servers",component:rw},{path:"services/servers/:server/detail",component:cA},{path:"services/servers/:server",component:rw},{path:"authenticators",component:aw},{path:"authenticators/:authenticator/detail",component:Jf},{path:"authenticators/:authenticator",component:aw},{path:"authenticators/:authenticator/detail/groups/:group",component:Jf},{path:"authenticators/:authenticator/detail/users/:user",component:Jf},{path:"mfas",component:sw},{path:"mfas/:mfa",component:sw},{path:"osmanagers",component:hw},{path:"osmanagers/:osmanager",component:hw},{path:"connectivity/transports",component:mw},{path:"connectivity/transports/:transport",component:mw},{path:"connectivity/networks",component:pw},{path:"connectivity/networks/:network",component:pw},{path:"connectivity/tunnels",component:fw},{path:"connectivity/tunnels/:tunnel",component:fw},{path:"connectivity/tunnels/:tunnel/detail",component:_A},{path:"pools/service-pools",component:gw},{path:"pools/service-pools/:pool",component:gw},{path:"pools/service-pools/:pool/detail",component:rg},{path:"pools/meta-pools",component:bw},{path:"pools/meta-pools/:metapool",component:bw},{path:"pools/meta-pools/:metapool/detail",component:SA},{path:"pools/pool-groups",component:ww},{path:"pools/pool-groups/:poolgroup",component:ww},{path:"pools/calendars",component:Cw},{path:"pools/calendars/:calendar",component:Cw},{path:"pools/calendars/:calendar/detail",component:GA},{path:"pools/accounts",component:Rw},{path:"pools/accounts/:account",component:Rw},{path:"pools/accounts/:account/detail",component:qA},{path:"tools/gallery",component:Fw},{path:"tools/gallery/:image",component:Fw},{path:"tools/reports",component:QA},{path:"tools/notifiers",component:KA},{path:"tools/tokens/actor",component:eO},{path:"tools/tokens/server",component:tO},{path:"tools/configuration",component:JA}]}],iO=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({imports:[F0.forRoot(kq,{}),F0]});let i=e;return i})();function nO(i){return new J(3e3,!1)}function Aq(){return new J(3100,!1)}function Oq(){return new J(3101,!1)}function Rq(i){return new J(3001,!1)}function Pq(i){return new J(3003,!1)}function Fq(i){return new J(3004,!1)}function Nq(i,e){return new J(3005,!1)}function Lq(){return new J(3006,!1)}function Vq(){return new J(3007,!1)}function jq(i,e){return new J(3008,!1)}function Bq(i){return new J(3002,!1)}function zq(i,e,r,t,n){return new J(3010,!1)}function Uq(){return new J(3011,!1)}function Hq(){return new J(3012,!1)}function $q(){return new J(3200,!1)}function Wq(){return new J(3202,!1)}function Gq(){return new J(3013,!1)}function qq(i){return new J(3014,!1)}function Yq(i){return new J(3015,!1)}function Qq(i){return new J(3016,!1)}function Kq(i,e){return new J(3404,!1)}function Zq(i){return new J(3502,!1)}function Xq(i){return new J(3503,!1)}function Jq(){return new J(3300,!1)}function eY(i){return new J(3504,!1)}function tY(i){return new J(3301,!1)}function iY(i,e){return new J(3302,!1)}function nY(i){return new J(3303,!1)}function oY(i,e){return new J(3400,!1)}function rY(i){return new J(3401,!1)}function aY(i){return new J(3402,!1)}function sY(i,e){return new J(3505,!1)}function Oa(i){switch(i.length){case 0:return new ya;case 1:return i[0];default:return new Ad(i)}}function _O(i,e,r=new Map,t=new Map){let n=[],o=[],a=-1,s=null;if(e.forEach(l=>{let u=l.get("offset"),f=u==a,v=f&&s||new Map;l.forEach((C,D)=>{let S=D,P=C;if(D!=="offset")switch(S=i.normalizePropertyName(S,n),P){case yp:P=r.get(D);break;case or:P=t.get(D);break;default:P=i.normalizeStyleValue(D,S,P,n);break}v.set(S,P)}),f||o.push(v),s=v,a=u}),n.length)throw Zq(n);return o}function oC(i,e,r,t){switch(e){case"start":i.onStart(()=>t(r&&Nw(r,"start",i)));break;case"done":i.onDone(()=>t(r&&Nw(r,"done",i)));break;case"destroy":i.onDestroy(()=>t(r&&Nw(r,"destroy",i)));break}}function Nw(i,e,r){let t=r.totalTime,n=!!r.disabled,o=rC(i.element,i.triggerName,i.fromState,i.toState,e||i.phaseName,t??i.totalTime,n),a=i._data;return a!=null&&(o._data=a),o}function rC(i,e,r,t,n="",o=0,a){return{element:i,triggerName:e,fromState:r,toState:t,phaseName:n,totalTime:o,disabled:!!a}}function Yn(i,e,r){let t=i.get(e);return t||i.set(e,t=r),t}function oO(i){let e=i.indexOf(":"),r=i.substring(1,e),t=i.slice(e+1);return[r,t]}var lY=typeof document>"u"?null:document.documentElement;function aC(i){let e=i.parentNode||i.host||null;return e===lY?null:e}function cY(i){return i.substring(1,6)=="ebkit"}var xs=null,rO=!1;function dY(i){xs||(xs=uY()||{},rO=xs.style?"WebkitAppearance"in xs.style:!1);let e=!0;return xs.style&&!cY(i)&&(e=i in xs.style,!e&&rO&&(e="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in xs.style)),e}function uY(){return typeof document<"u"?document.body:null}function vO(i,e){for(;e;){if(e===i)return!0;e=aC(e)}return!1}function bO(i,e,r){if(r)return Array.from(i.querySelectorAll(e));let t=i.querySelector(e);return t?[t]:[]}var sC=(()=>{let e=class e{validateStyleProperty(t){return dY(t)}containsElement(t,n){return vO(t,n)}getParentElement(t){return aC(t)}query(t,n,o){return bO(t,n,o)}computeStyle(t,n,o){return o||""}animate(t,n,o,a,s,l=[],u){return new ya(o,a)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),uC=class uC{};uC.NOOP=new sC;var Es=uC,Is=class{};var hY=1e3,yO="{{",mY="}}",wO="ng-enter",Uw="ng-leave",dg="ng-trigger",fg=".ng-trigger",aO="ng-animating",Hw=".ng-animating";function Ur(i){if(typeof i=="number")return i;let e=i.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:$w(parseFloat(e[1]),e[2])}function $w(i,e){switch(e){case"s":return i*hY;default:return i}}function gg(i,e,r){return i.hasOwnProperty("duration")?i:pY(i,e,r)}function pY(i,e,r){let t=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,n,o=0,a="";if(typeof i=="string"){let s=i.match(t);if(s===null)return e.push(nO(i)),{duration:0,delay:0,easing:""};n=$w(parseFloat(s[1]),s[2]);let l=s[3];l!=null&&(o=$w(parseFloat(l),s[4]));let u=s[5];u&&(a=u)}else n=i;if(!r){let s=!1,l=e.length;n<0&&(e.push(Aq()),s=!0),o<0&&(e.push(Oq()),s=!0),s&&e.splice(l,0,nO(i))}return{duration:n,delay:o,easing:a}}function fY(i){return i.length?i[0]instanceof Map?i:i.map(e=>new Map(Object.entries(e))):[]}function dr(i,e,r){e.forEach((t,n)=>{let o=lC(n);r&&!r.has(n)&&r.set(n,i.style[o]),i.style[o]=t})}function Ss(i,e){e.forEach((r,t)=>{let n=lC(t);i.style[n]=""})}function Jd(i){return Array.isArray(i)?i.length==1?i[0]:M1(i):i}function gY(i,e,r){let t=e.params||{},n=CO(i);n.length&&n.forEach(o=>{t.hasOwnProperty(o)||r.push(Rq(o))})}var Ww=new RegExp(`${yO}\\s*(.+?)\\s*${mY}`,"g");function CO(i){let e=[];if(typeof i=="string"){let r;for(;r=Ww.exec(i);)e.push(r[1]);Ww.lastIndex=0}return e}function tu(i,e,r){let t=`${i}`,n=t.replace(Ww,(o,a)=>{let s=e[a];return s==null&&(r.push(Pq(a)),s=""),s.toString()});return n==t?i:n}var _Y=/-+([a-z0-9])/g;function lC(i){return i.replace(_Y,(...e)=>e[1].toUpperCase())}function vY(i,e){return i===0||e===0}function bY(i,e,r){if(r.size&&e.length){let t=e[0],n=[];if(r.forEach((o,a)=>{t.has(a)||n.push(a),t.set(a,o)}),n.length)for(let o=1;oa.set(s,cC(i,s)))}}return e}function qn(i,e,r){switch(e.type){case ot.Trigger:return i.visitTrigger(e,r);case ot.State:return i.visitState(e,r);case ot.Transition:return i.visitTransition(e,r);case ot.Sequence:return i.visitSequence(e,r);case ot.Group:return i.visitGroup(e,r);case ot.Animate:return i.visitAnimate(e,r);case ot.Keyframes:return i.visitKeyframes(e,r);case ot.Style:return i.visitStyle(e,r);case ot.Reference:return i.visitReference(e,r);case ot.AnimateChild:return i.visitAnimateChild(e,r);case ot.AnimateRef:return i.visitAnimateRef(e,r);case ot.Query:return i.visitQuery(e,r);case ot.Stagger:return i.visitStagger(e,r);default:throw Fq(e.type)}}function cC(i,e){return window.getComputedStyle(i)[e]}var yY=new Set(["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"]),_g=class extends Is{normalizePropertyName(e,r){return lC(e)}normalizeStyleValue(e,r,t,n){let o="",a=t.toString().trim();if(yY.has(r)&&t!==0&&t!=="0")if(typeof t=="number")o="px";else{let s=t.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&s[1].length==0&&n.push(Nq(e,t))}return a+o}};var vg="*";function wY(i,e){let r=[];return typeof i=="string"?i.split(/\s*,\s*/).forEach(t=>CY(t,r,e)):r.push(i),r}function CY(i,e,r){if(i[0]==":"){let l=xY(i,r);if(typeof l=="function"){e.push(l);return}i=l}let t=i.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(t==null||t.length<4)return r.push(Yq(i)),e;let n=t[1],o=t[2],a=t[3];e.push(sO(n,a));let s=n==vg&&a==vg;o[0]=="<"&&!s&&e.push(sO(a,n))}function xY(i,e){switch(i){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(r,t)=>parseFloat(t)>parseFloat(r);case":decrement":return(r,t)=>parseFloat(t) *"}}var ug=new Set(["true","1"]),hg=new Set(["false","0"]);function sO(i,e){let r=ug.has(i)||hg.has(i),t=ug.has(e)||hg.has(e);return(n,o)=>{let a=i==vg||i==n,s=e==vg||e==o;return!a&&r&&typeof n=="boolean"&&(a=n?ug.has(i):hg.has(i)),!s&&t&&typeof o=="boolean"&&(s=o?ug.has(e):hg.has(e)),a&&s}}var xO=":self",DY=new RegExp(`s*${xO}s*,?`,"g");function DO(i,e,r,t){return new Gw(i).build(e,r,t)}var lO="",Gw=class{constructor(e){this._driver=e}build(e,r,t){let n=new qw(r);return this._resetContextStyleTimingState(n),qn(this,Jd(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector=lO,e.collectedStyles=new Map,e.collectedStyles.set(lO,new Map),e.currentTime=0}visitTrigger(e,r){let t=r.queryCount=0,n=r.depCount=0,o=[],a=[];return e.name.charAt(0)=="@"&&r.errors.push(Lq()),e.definitions.forEach(s=>{if(this._resetContextStyleTimingState(r),s.type==ot.State){let l=s,u=l.name;u.toString().split(/\s*,\s*/).forEach(f=>{l.name=f,o.push(this.visitState(l,r))}),l.name=u}else if(s.type==ot.Transition){let l=this.visitTransition(s,r);t+=l.queryCount,n+=l.depCount,a.push(l)}else r.errors.push(Vq())}),{type:ot.Trigger,name:e.name,states:o,transitions:a,queryCount:t,depCount:n,options:null}}visitState(e,r){let t=this.visitStyle(e.styles,r),n=e.options&&e.options.params||null;if(t.containsDynamicStyles){let o=new Set,a=n||{};t.styles.forEach(s=>{s instanceof Map&&s.forEach(l=>{CO(l).forEach(u=>{a.hasOwnProperty(u)||o.add(u)})})}),o.size&&r.errors.push(jq(e.name,[...o.values()]))}return{type:ot.State,name:e.name,style:t,options:n?{params:n}:null}}visitTransition(e,r){r.queryCount=0,r.depCount=0;let t=qn(this,Jd(e.animation),r),n=wY(e.expr,r.errors);return{type:ot.Transition,matchers:n,animation:t,queryCount:r.queryCount,depCount:r.depCount,options:Ds(e.options)}}visitSequence(e,r){return{type:ot.Sequence,steps:e.steps.map(t=>qn(this,t,r)),options:Ds(e.options)}}visitGroup(e,r){let t=r.currentTime,n=0,o=e.steps.map(a=>{r.currentTime=t;let s=qn(this,a,r);return n=Math.max(n,r.currentTime),s});return r.currentTime=n,{type:ot.Group,steps:o,options:Ds(e.options)}}visitAnimate(e,r){let t=MY(e.timings,r.errors);r.currentAnimateTimings=t;let n,o=e.styles?e.styles:Me({});if(o.type==ot.Keyframes)n=this.visitKeyframes(o,r);else{let a=e.styles,s=!1;if(!a){s=!0;let u={};t.easing&&(u.easing=t.easing),a=Me(u)}r.currentTime+=t.duration+t.delay;let l=this.visitStyle(a,r);l.isEmptyStep=s,n=l}return r.currentAnimateTimings=null,{type:ot.Animate,timings:t,style:n,options:null}}visitStyle(e,r){let t=this._makeStyleAst(e,r);return this._validateStyleAst(t,r),t}_makeStyleAst(e,r){let t=[],n=Array.isArray(e.styles)?e.styles:[e.styles];for(let s of n)typeof s=="string"?s===or?t.push(s):r.errors.push(Bq(s)):t.push(new Map(Object.entries(s)));let o=!1,a=null;return t.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(a=s.get("easing"),s.delete("easing")),!o)){for(let l of s.values())if(l.toString().indexOf(yO)>=0){o=!0;break}}}),{type:ot.Style,styles:t,easing:a,offset:e.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(e,r){let t=r.currentAnimateTimings,n=r.currentTime,o=r.currentTime;t&&o>0&&(o-=t.duration+t.delay),e.styles.forEach(a=>{typeof a!="string"&&a.forEach((s,l)=>{let u=r.collectedStyles.get(r.currentQuerySelector),f=u.get(l),v=!0;f&&(o!=n&&o>=f.startTime&&n<=f.endTime&&(r.errors.push(zq(l,f.startTime,f.endTime,o,n)),v=!1),o=f.startTime),v&&u.set(l,{startTime:o,endTime:n}),r.options&&gY(s,r.options,r.errors)})})}visitKeyframes(e,r){let t={type:ot.Keyframes,styles:[],options:null};if(!r.currentAnimateTimings)return r.errors.push(Uq()),t;let n=1,o=0,a=[],s=!1,l=!1,u=0,f=e.steps.map(O=>{let de=this._makeStyleAst(O,r),ht=de.offset!=null?de.offset:IY(de.styles),it=0;return ht!=null&&(o++,it=de.offset=ht),l=l||it<0||it>1,s=s||it0&&o{let ht=C>0?de==D?1:C*de:a[de],it=ht*z;r.currentTime=S+P.delay+it,P.duration=it,this._validateStyleAst(O,r),O.offset=ht,t.styles.push(O)}),t}visitReference(e,r){return{type:ot.Reference,animation:qn(this,Jd(e.animation),r),options:Ds(e.options)}}visitAnimateChild(e,r){return r.depCount++,{type:ot.AnimateChild,options:Ds(e.options)}}visitAnimateRef(e,r){return{type:ot.AnimateRef,animation:this.visitReference(e.animation,r),options:Ds(e.options)}}visitQuery(e,r){let t=r.currentQuerySelector,n=e.options||{};r.queryCount++,r.currentQuery=e;let[o,a]=SY(e.selector);r.currentQuerySelector=t.length?t+" "+o:o,Yn(r.collectedStyles,r.currentQuerySelector,new Map);let s=qn(this,Jd(e.animation),r);return r.currentQuery=null,r.currentQuerySelector=t,{type:ot.Query,selector:o,limit:n.limit||0,optional:!!n.optional,includeSelf:a,animation:s,originalSelector:e.selector,options:Ds(e.options)}}visitStagger(e,r){r.currentQuery||r.errors.push(Gq());let t=e.timings==="full"?{duration:0,delay:0,easing:"full"}:gg(e.timings,r.errors,!0);return{type:ot.Stagger,animation:qn(this,Jd(e.animation),r),timings:t,options:null}}};function SY(i){let e=!!i.split(/\s*,\s*/).find(r=>r==xO);return e&&(i=i.replace(DY,"")),i=i.replace(/@\*/g,fg).replace(/@\w+/g,r=>fg+"-"+r.slice(1)).replace(/:animating/g,Hw),[i,e]}function EY(i){return i?j({},i):null}var qw=class{constructor(e){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=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function IY(i){if(typeof i=="string")return null;let e=null;if(Array.isArray(i))i.forEach(r=>{if(r instanceof Map&&r.has("offset")){let t=r;e=parseFloat(t.get("offset")),t.delete("offset")}});else if(i instanceof Map&&i.has("offset")){let r=i;e=parseFloat(r.get("offset")),r.delete("offset")}return e}function MY(i,e){if(i.hasOwnProperty("duration"))return i;if(typeof i=="number"){let o=gg(i,e).duration;return Lw(o,0,"")}let r=i;if(r.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=Lw(0,0,"");return o.dynamic=!0,o.strValue=r,o}let n=gg(r,e);return Lw(n.duration,n.delay,n.easing)}function Ds(i){return i?(i=j({},i),i.params&&(i.params=EY(i.params))):i={},i}function Lw(i,e,r){return{duration:i,delay:e,easing:r}}function dC(i,e,r,t,n,o,a=null,s=!1){return{type:1,element:i,keyframes:e,preStyleProps:r,postStyleProps:t,duration:n,delay:o,totalTime:n+o,easing:a,subTimeline:s}}var iu=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,r){let t=this._map.get(e);t||this._map.set(e,t=[]),t.push(...r)}has(e){return this._map.has(e)}clear(){this._map.clear()}},TY=1,kY=":enter",AY=new RegExp(kY,"g"),OY=":leave",RY=new RegExp(OY,"g");function SO(i,e,r,t,n,o=new Map,a=new Map,s,l,u=[]){return new Yw().buildKeyframes(i,e,r,t,n,o,a,s,l,u)}var Yw=class{buildKeyframes(e,r,t,n,o,a,s,l,u,f=[]){u=u||new iu;let v=new Qw(e,r,u,n,o,f,[]);v.options=l;let C=l.delay?Ur(l.delay):0;v.currentTimeline.delayNextStep(C),v.currentTimeline.setStyles([a],null,v.errors,l),qn(this,t,v);let D=v.timelines.filter(S=>S.containsAnimation());if(D.length&&s.size){let S;for(let P=D.length-1;P>=0;P--){let z=D[P];if(z.element===r){S=z;break}}S&&!S.allowOnlyTimelineStyles()&&S.setStyles([s],null,v.errors,l)}return D.length?D.map(S=>S.buildKeyframes()):[dC(r,[],[],[],0,C,"",!1)]}visitTrigger(e,r){}visitState(e,r){}visitTransition(e,r){}visitAnimateChild(e,r){let t=r.subInstructions.get(r.element);if(t){let n=r.createSubContext(e.options),o=r.currentTimeline.currentTime,a=this._visitSubInstructions(t,n,n.options);o!=a&&r.transformIntoNewTimeline(a)}r.previousNode=e}visitAnimateRef(e,r){let t=r.createSubContext(e.options);t.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],r,t),this.visitReference(e.animation,t),r.transformIntoNewTimeline(t.currentTimeline.currentTime),r.previousNode=e}_applyAnimationRefDelays(e,r,t){for(let n of e){let o=n?.delay;if(o){let a=typeof o=="number"?o:Ur(tu(o,n?.params??{},r.errors));t.delayNextStep(a)}}}_visitSubInstructions(e,r,t){let o=r.currentTimeline.currentTime,a=t.duration!=null?Ur(t.duration):null,s=t.delay!=null?Ur(t.delay):null;return a!==0&&e.forEach(l=>{let u=r.appendInstructionToTimeline(l,a,s);o=Math.max(o,u.duration+u.delay)}),o}visitReference(e,r){r.updateOptions(e.options,!0),qn(this,e.animation,r),r.previousNode=e}visitSequence(e,r){let t=r.subContextCount,n=r,o=e.options;if(o&&(o.params||o.delay)&&(n=r.createSubContext(o),n.transformIntoNewTimeline(),o.delay!=null)){n.previousNode.type==ot.Style&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=bg);let a=Ur(o.delay);n.delayNextStep(a)}e.steps.length&&(e.steps.forEach(a=>qn(this,a,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>t&&n.transformIntoNewTimeline()),r.previousNode=e}visitGroup(e,r){let t=[],n=r.currentTimeline.currentTime,o=e.options&&e.options.delay?Ur(e.options.delay):0;e.steps.forEach(a=>{let s=r.createSubContext(e.options);o&&s.delayNextStep(o),qn(this,a,s),n=Math.max(n,s.currentTimeline.currentTime),t.push(s.currentTimeline)}),t.forEach(a=>r.currentTimeline.mergeTimelineCollectedStyles(a)),r.transformIntoNewTimeline(n),r.previousNode=e}_visitTiming(e,r){if(e.dynamic){let t=e.strValue,n=r.params?tu(t,r.params,r.errors):t;return gg(n,r.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,r){let t=r.currentAnimateTimings=this._visitTiming(e.timings,r),n=r.currentTimeline;t.delay&&(r.incrementTime(t.delay),n.snapshotCurrentStyles());let o=e.style;o.type==ot.Keyframes?this.visitKeyframes(o,r):(r.incrementTime(t.duration),this.visitStyle(o,r),n.applyStylesToKeyframe()),r.currentAnimateTimings=null,r.previousNode=e}visitStyle(e,r){let t=r.currentTimeline,n=r.currentAnimateTimings;!n&&t.hasCurrentStyleProperties()&&t.forwardFrame();let o=n&&n.easing||e.easing;e.isEmptyStep?t.applyEmptyStep(o):t.setStyles(e.styles,o,r.errors,r.options),r.previousNode=e}visitKeyframes(e,r){let t=r.currentAnimateTimings,n=r.currentTimeline.duration,o=t.duration,s=r.createSubContext().currentTimeline;s.easing=t.easing,e.styles.forEach(l=>{let u=l.offset||0;s.forwardTime(u*o),s.setStyles(l.styles,l.easing,r.errors,r.options),s.applyStylesToKeyframe()}),r.currentTimeline.mergeTimelineCollectedStyles(s),r.transformIntoNewTimeline(n+o),r.previousNode=e}visitQuery(e,r){let t=r.currentTimeline.currentTime,n=e.options||{},o=n.delay?Ur(n.delay):0;o&&(r.previousNode.type===ot.Style||t==0&&r.currentTimeline.hasCurrentStyleProperties())&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=bg);let a=t,s=r.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!n.optional,r.errors);r.currentQueryTotal=s.length;let l=null;s.forEach((u,f)=>{r.currentQueryIndex=f;let v=r.createSubContext(e.options,u);o&&v.delayNextStep(o),u===r.element&&(l=v.currentTimeline),qn(this,e.animation,v),v.currentTimeline.applyStylesToKeyframe();let C=v.currentTimeline.currentTime;a=Math.max(a,C)}),r.currentQueryIndex=0,r.currentQueryTotal=0,r.transformIntoNewTimeline(a),l&&(r.currentTimeline.mergeTimelineCollectedStyles(l),r.currentTimeline.snapshotCurrentStyles()),r.previousNode=e}visitStagger(e,r){let t=r.parentContext,n=r.currentTimeline,o=e.timings,a=Math.abs(o.duration),s=a*(r.currentQueryTotal-1),l=a*r.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=s-l;break;case"full":l=t.currentStaggerTime;break}let f=r.currentTimeline;l&&f.delayNextStep(l);let v=f.currentTime;qn(this,e.animation,r),r.previousNode=e,t.currentStaggerTime=n.currentTime-v+(n.startTime-t.currentTimeline.startTime)}},bg={},Qw=class i{constructor(e,r,t,n,o,a,s,l){this._driver=e,this.element=r,this.subInstructions=t,this._enterClassName=n,this._leaveClassName=o,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=bg,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new yg(this._driver,r,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,r){if(!e)return;let t=e,n=this.options;t.duration!=null&&(n.duration=Ur(t.duration)),t.delay!=null&&(n.delay=Ur(t.delay));let o=t.params;if(o){let a=n.params;a||(a=this.options.params={}),Object.keys(o).forEach(s=>{(!r||!a.hasOwnProperty(s))&&(a[s]=tu(o[s],a,this.errors))})}}_copyOptions(){let e={};if(this.options){let r=this.options.params;if(r){let t=e.params={};Object.keys(r).forEach(n=>{t[n]=r[n]})}}return e}createSubContext(e=null,r,t){let n=r||this.element,o=new i(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,t||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(e){return this.previousNode=bg,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,r,t){let n={duration:r??e.duration,delay:this.currentTimeline.currentTime+(t??0)+e.delay,easing:""},o=new Kw(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,n,e.stretchStartingKeyframe);return this.timelines.push(o),n}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,r,t,n,o,a){let s=[];if(n&&s.push(this.element),e.length>0){e=e.replace(AY,"."+this._enterClassName),e=e.replace(RY,"."+this._leaveClassName);let l=t!=1,u=this._driver.query(this.element,e,l);t!==0&&(u=t<0?u.slice(u.length+t,u.length):u.slice(0,t)),s.push(...u)}return!o&&s.length==0&&a.push(qq(r)),s}},yg=class i{constructor(e,r,t,n){this._driver=e,this.element=r,this.startTime=t,this._elementTimelineStylesLookup=n,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(r),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(r,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let r=this._keyframes.size===1&&this._pendingStyles.size;this.duration||r?(this.forwardTime(this.currentTime+e),r&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,r){return this.applyStylesToKeyframe(),new i(this._driver,e,r||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=TY,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,r){this._localTimelineStyles.set(e,r),this._globalTimelineStyles.set(e,r),this._styleSummary.set(e,{time:this.currentTime,value:r})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[r,t]of this._globalTimelineStyles)this._backFill.set(r,t||or),this._currentKeyframe.set(r,or);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,r,t,n){r&&this._previousKeyframe.set("easing",r);let o=n&&n.params||{},a=PY(e,this._globalTimelineStyles);for(let[s,l]of a){let u=tu(l,o,t);this._pendingStyles.set(s,u),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??or),this._updateStyle(s,u)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,r)=>{this._currentKeyframe.set(r,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,r)=>{this._currentKeyframe.has(r)||this._currentKeyframe.set(r,e)}))}snapshotCurrentStyles(){for(let[e,r]of this._localTimelineStyles)this._pendingStyles.set(e,r),this._updateStyle(e,r)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let r in this._currentKeyframe)e.push(r);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((r,t)=>{let n=this._styleSummary.get(t);(!n||r.time>n.time)&&this._updateStyle(t,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,r=new Set,t=this._keyframes.size===1&&this.duration===0,n=[];this._keyframes.forEach((s,l)=>{let u=new Map([...this._backFill,...s]);u.forEach((f,v)=>{f===yp?e.add(v):f===or&&r.add(v)}),t||u.set("offset",l/this.duration),n.push(u)});let o=[...e.values()],a=[...r.values()];if(t){let s=n[0],l=new Map(s);s.set("offset",0),l.set("offset",1),n=[s,l]}return dC(this.element,n,o,a,this.duration,this.startTime,this.easing,!1)}},Kw=class extends yg{constructor(e,r,t,n,o,a,s=!1){super(e,r,a.delay),this.keyframes=t,this.preStyleProps=n,this.postStyleProps=o,this._stretchStartingKeyframe=s,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:r,duration:t,easing:n}=this.timings;if(this._stretchStartingKeyframe&&r){let o=[],a=t+r,s=r/a,l=new Map(e[0]);l.set("offset",0),o.push(l);let u=new Map(e[0]);u.set("offset",cO(s)),o.push(u);let f=e.length-1;for(let v=1;v<=f;v++){let C=new Map(e[v]),D=C.get("offset"),S=r+D*t;C.set("offset",cO(S/a)),o.push(C)}t=a,r=0,n="",e=o}return dC(this.element,e,this.preStyleProps,this.postStyleProps,t,r,n,!0)}};function cO(i,e=3){let r=Math.pow(10,e-1);return Math.round(i*r)/r}function PY(i,e){let r=new Map,t;return i.forEach(n=>{if(n==="*"){t??=e.keys();for(let o of t)r.set(o,or)}else for(let[o,a]of n)r.set(o,a)}),r}function dO(i,e,r,t,n,o,a,s,l,u,f,v,C){return{type:0,element:i,triggerName:e,isRemovalTransition:n,fromState:r,fromStyles:o,toState:t,toStyles:a,timelines:s,queriedElements:l,preStyleProps:u,postStyleProps:f,totalTime:v,errors:C}}var Vw={},wg=class{constructor(e,r,t){this._triggerName=e,this.ast=r,this._stateStyles=t}match(e,r,t,n){return FY(this.ast.matchers,e,r,t,n)}buildStyles(e,r,t){let n=this._stateStyles.get("*");return e!==void 0&&(n=this._stateStyles.get(e?.toString())||n),n?n.buildStyles(r,t):new Map}build(e,r,t,n,o,a,s,l,u,f){let v=[],C=this.ast.options&&this.ast.options.params||Vw,D=s&&s.params||Vw,S=this.buildStyles(t,D,v),P=l&&l.params||Vw,z=this.buildStyles(n,P,v),O=new Set,de=new Map,ht=new Map,it=n==="void",Ti={params:EO(P,C),delay:this.ast.options?.delay},Ft=f?[]:SO(e,r,this.ast.animation,o,a,S,z,Ti,u,v),Wt=0;return Ft.forEach(wi=>{Wt=Math.max(wi.duration+wi.delay,Wt)}),v.length?dO(r,this._triggerName,t,n,it,S,z,[],[],de,ht,Wt,v):(Ft.forEach(wi=>{let ur=wi.element,Ms=Yn(de,ur,new Set);wi.preStyleProps.forEach(Ra=>Ms.add(Ra));let bC=Yn(ht,ur,new Set);wi.postStyleProps.forEach(Ra=>bC.add(Ra)),ur!==r&&O.add(ur)}),dO(r,this._triggerName,t,n,it,S,z,Ft,[...O.values()],de,ht,Wt))}};function FY(i,e,r,t,n){return i.some(o=>o(e,r,t,n))}function EO(i,e){let r=j({},e);return Object.entries(i).forEach(([t,n])=>{n!=null&&(r[t]=n)}),r}var Zw=class{constructor(e,r,t){this.styles=e,this.defaultParams=r,this.normalizer=t}buildStyles(e,r){let t=new Map,n=EO(e,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,s)=>{a&&(a=tu(a,n,r));let l=this.normalizer.normalizePropertyName(s,r);a=this.normalizer.normalizeStyleValue(s,l,a,r),t.set(s,a)})}),t}};function NY(i,e,r){return new Xw(i,e,r)}var Xw=class{constructor(e,r,t){this.name=e,this.ast=r,this._normalizer=t,this.transitionFactories=[],this.states=new Map,r.states.forEach(n=>{let o=n.options&&n.options.params||{};this.states.set(n.name,new Zw(n.style,o,t))}),uO(this.states,"true","1"),uO(this.states,"false","0"),r.transitions.forEach(n=>{this.transitionFactories.push(new wg(e,n,this.states))}),this.fallbackTransition=LY(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,r,t,n){return this.transitionFactories.find(a=>a.match(e,r,t,n))||null}matchStyles(e,r,t){return this.fallbackTransition.buildStyles(e,r,t)}};function LY(i,e,r){let t=[(a,s)=>!0],n={type:ot.Sequence,steps:[],options:null},o={type:ot.Transition,animation:n,matchers:t,options:null,queryCount:0,depCount:0};return new wg(i,o,e)}function uO(i,e,r){i.has(e)?i.has(r)||i.set(r,i.get(e)):i.has(r)&&i.set(e,i.get(r))}var VY=new iu,Jw=class{constructor(e,r,t){this.bodyNode=e,this._driver=r,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,r){let t=[],n=[],o=DO(this._driver,r,t,n);if(t.length)throw Xq(t);n.length&&void 0,this._animations.set(e,o)}_buildPlayer(e,r,t){let n=e.element,o=_O(this._normalizer,e.keyframes,r,t);return this._driver.animate(n,o,e.duration,e.delay,e.easing,[],!0)}create(e,r,t={}){let n=[],o=this._animations.get(e),a,s=new Map;if(o?(a=SO(this._driver,r,o,wO,Uw,new Map,new Map,t,VY,n),a.forEach(f=>{let v=Yn(s,f.element,new Map);f.postStyleProps.forEach(C=>v.set(C,null))})):(n.push(Jq()),a=[]),n.length)throw eY(n);s.forEach((f,v)=>{f.forEach((C,D)=>{f.set(D,this._driver.computeStyle(v,D,or))})});let l=a.map(f=>{let v=s.get(f.element);return this._buildPlayer(f,new Map,v)}),u=Oa(l);return this._playersById.set(e,u),u.onDestroy(()=>this.destroy(e)),this.players.push(u),u}destroy(e){let r=this._getPlayer(e);r.destroy(),this._playersById.delete(e);let t=this.players.indexOf(r);t>=0&&this.players.splice(t,1)}_getPlayer(e){let r=this._playersById.get(e);if(!r)throw tY(e);return r}listen(e,r,t,n){let o=rC(r,"","","");return oC(this._getPlayer(e),t,o,n),()=>{}}command(e,r,t,n){if(t=="register"){this.register(e,n[0]);return}if(t=="create"){let a=n[0]||{};this.create(e,r,a);return}let o=this._getPlayer(e);switch(t){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(e);break}}},hO="ng-animate-queued",jY=".ng-animate-queued",jw="ng-animate-disabled",BY=".ng-animate-disabled",zY="ng-star-inserted",UY=".ng-star-inserted",HY=[],IO={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},$Y={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},No="__ng_removed",nu=class{get params(){return this.options.params}constructor(e,r=""){this.namespaceId=r;let t=e&&e.hasOwnProperty("value"),n=t?e.value:e;if(this.value=GY(n),t){let o=e,{value:a}=o,s=Tg(o,["value"]);this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let r=e.params;if(r){let t=this.options.params;Object.keys(r).forEach(n=>{t[n]==null&&(t[n]=r[n])})}}},eu="void",Bw=new nu(eu),eC=class{constructor(e,r,t){this.id=e,this.hostElement=r,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,go(r,this._hostClassName)}listen(e,r,t,n){if(!this._triggers.has(r))throw iY(t,r);if(t==null||t.length==0)throw nY(r);if(!qY(t))throw oY(t,r);let o=Yn(this._elementListeners,e,[]),a={name:r,phase:t,callback:n};o.push(a);let s=Yn(this._engine.statesByElement,e,new Map);return s.has(r)||(go(e,dg),go(e,dg+"-"+r),s.set(r,Bw)),()=>{this._engine.afterFlush(()=>{let l=o.indexOf(a);l>=0&&o.splice(l,1),this._triggers.has(r)||s.delete(r)})}}register(e,r){return this._triggers.has(e)?!1:(this._triggers.set(e,r),!0)}_getTrigger(e){let r=this._triggers.get(e);if(!r)throw rY(e);return r}trigger(e,r,t,n=!0){let o=this._getTrigger(r),a=new ou(this.id,r,e),s=this._engine.statesByElement.get(e);s||(go(e,dg),go(e,dg+"-"+r),this._engine.statesByElement.set(e,s=new Map));let l=s.get(r),u=new nu(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),s.set(r,u),l||(l=Bw),!(u.value===eu)&&l.value===u.value){if(!KY(l.params,u.params)){let P=[],z=o.matchStyles(l.value,l.params,P),O=o.matchStyles(u.value,u.params,P);P.length?this._engine.reportError(P):this._engine.afterFlush(()=>{Ss(e,z),dr(e,O)})}return}let C=Yn(this._engine.playersByElement,e,[]);C.forEach(P=>{P.namespaceId==this.id&&P.triggerName==r&&P.queued&&P.destroy()});let D=o.matchTransition(l.value,u.value,e,u.params),S=!1;if(!D){if(!n)return;D=o.fallbackTransition,S=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:r,transition:D,fromState:l,toState:u,player:a,isFallbackTransition:S}),S||(go(e,hO),a.onStart(()=>{tc(e,hO)})),a.onDone(()=>{let P=this.players.indexOf(a);P>=0&&this.players.splice(P,1);let z=this._engine.playersByElement.get(e);if(z){let O=z.indexOf(a);O>=0&&z.splice(O,1)}}),this.players.push(a),C.push(a),a}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(r=>r.delete(e)),this._elementListeners.forEach((r,t)=>{this._elementListeners.set(t,r.filter(n=>n.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let r=this._engine.playersByElement.get(e);r&&(r.forEach(t=>t.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,r){let t=this._engine.driver.query(e,fg,!0);t.forEach(n=>{if(n[No])return;let o=this._engine.fetchNamespacesByElement(n);o.size?o.forEach(a=>a.triggerLeaveAnimation(n,r,!1,!0)):this.clearElementCache(n)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(n=>this.clearElementCache(n)))}triggerLeaveAnimation(e,r,t,n){let o=this._engine.statesByElement.get(e),a=new Map;if(o){let s=[];if(o.forEach((l,u)=>{if(a.set(u,l.value),this._triggers.has(u)){let f=this.trigger(e,u,eu,n);f&&s.push(f)}}),s.length)return this._engine.markElementAsRemoved(this.id,e,!0,r,a),t&&Oa(s).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let r=this._elementListeners.get(e),t=this._engine.statesByElement.get(e);if(r&&t){let n=new Set;r.forEach(o=>{let a=o.name;if(n.has(a))return;n.add(a);let l=this._triggers.get(a).fallbackTransition,u=t.get(a)||Bw,f=new nu(eu),v=new ou(this.id,a,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:a,transition:l,fromState:u,toState:f,player:v,isFallbackTransition:!0})})}}removeNode(e,r){let t=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,r),this.triggerLeaveAnimation(e,r,!0))return;let n=!1;if(t.totalAnimations){let o=t.players.length?t.playersByQueriedElement.get(e):[];if(o&&o.length)n=!0;else{let a=e;for(;a=a.parentNode;)if(t.statesByElement.get(a)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(e),n)t.markElementAsRemoved(this.id,e,!1,r);else{let o=e[No];(!o||o===IO)&&(t.afterFlush(()=>this.clearElementCache(e)),t.destroyInnerAnimations(e),t._onRemovalComplete(e,r))}}insertNode(e,r){go(e,this._hostClassName)}drainQueuedTransitions(e){let r=[];return this._queue.forEach(t=>{let n=t.player;if(n.destroyed)return;let o=t.element,a=this._elementListeners.get(o);a&&a.forEach(s=>{if(s.name==t.triggerName){let l=rC(o,t.triggerName,t.fromState.value,t.toState.value);l._data=e,oC(t.player,s.phase,l,s.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):r.push(t)}),this._queue=[],r.sort((t,n)=>{let o=t.transition.ast.depCount,a=n.transition.ast.depCount;return o==0||a==0?o-a:this._engine.driver.containsElement(t.element,n.element)?1:-1})}destroy(e){this.players.forEach(r=>r.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},tC=class{_onRemovalComplete(e,r){this.onRemovalComplete(e,r)}constructor(e,r,t){this.bodyNode=e,this.driver=r,this._normalizer=t,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=(n,o)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(r=>{r.players.forEach(t=>{t.queued&&e.push(t)})}),e}createNamespace(e,r){let t=new eC(e,r,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,r)?this._balanceNamespaceList(t,r):(this.newHostElements.set(r,t),this.collectEnterElement(r)),this._namespaceLookup[e]=t}_balanceNamespaceList(e,r){let t=this._namespaceList,n=this.namespacesByHostElement;if(t.length-1>=0){let a=!1,s=this.driver.getParentElement(r);for(;s;){let l=n.get(s);if(l){let u=t.indexOf(l);t.splice(u+1,0,e),a=!0;break}s=this.driver.getParentElement(s)}a||t.unshift(e)}else t.push(e);return n.set(r,e),e}register(e,r){let t=this._namespaceLookup[e];return t||(t=this.createNamespace(e,r)),t}registerTrigger(e,r,t){let n=this._namespaceLookup[e];n&&n.register(r,t)&&this.totalAnimations++}destroy(e,r){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let t=this._fetchNamespace(e);this.namespacesByHostElement.delete(t.hostElement);let n=this._namespaceList.indexOf(t);n>=0&&this._namespaceList.splice(n,1),t.destroy(r),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let r=new Set,t=this.statesByElement.get(e);if(t){for(let n of t.values())if(n.namespaceId){let o=this._fetchNamespace(n.namespaceId);o&&r.add(o)}}return r}trigger(e,r,t,n){if(mg(r)){let o=this._fetchNamespace(e);if(o)return o.trigger(r,t,n),!0}return!1}insertNode(e,r,t,n){if(!mg(r))return;let o=r[No];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;let a=this.collectedLeaveElements.indexOf(r);a>=0&&this.collectedLeaveElements.splice(a,1)}if(e){let a=this._fetchNamespace(e);a&&a.insertNode(r,t)}n&&this.collectEnterElement(r)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,r){r?this.disabledNodes.has(e)||(this.disabledNodes.add(e),go(e,jw)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),tc(e,jw))}removeNode(e,r,t){if(mg(r)){let n=e?this._fetchNamespace(e):null;n?n.removeNode(r,t):this.markElementAsRemoved(e,r,!1,t);let o=this.namespacesByHostElement.get(r);o&&o.id!==e&&o.removeNode(r,t)}else this._onRemovalComplete(r,t)}markElementAsRemoved(e,r,t,n,o){this.collectedLeaveElements.push(r),r[No]={namespaceId:e,setForRemoval:n,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:o}}listen(e,r,t,n,o){return mg(r)?this._fetchNamespace(e).listen(r,t,n,o):()=>{}}_buildInstruction(e,r,t,n,o){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,t,n,e.fromState.options,e.toState.options,r,o)}destroyInnerAnimations(e){let r=this.driver.query(e,fg,!0);r.forEach(t=>this.destroyActiveAnimationsForElement(t)),this.playersByQueriedElement.size!=0&&(r=this.driver.query(e,Hw,!0),r.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(e){let r=this.playersByElement.get(e);r&&r.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(e){let r=this.playersByQueriedElement.get(e);r&&r.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Oa(this.players).onDone(()=>e());e()})}processLeaveNode(e){let r=e[No];if(r&&r.setForRemoval){if(e[No]=IO,r.namespaceId){this.destroyInnerAnimations(e);let t=this._fetchNamespace(r.namespaceId);t&&t.clearElementCache(e)}this._onRemovalComplete(e,r.setForRemoval)}e.classList?.contains(jw)&&this.markElementAsDisabled(e,!1),this.driver.query(e,BY,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(e=-1){let r=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,n)=>this._balanceNamespaceList(t,n)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;tt()),this._flushFns=[],this._whenQuietFns.length){let t=this._whenQuietFns;this._whenQuietFns=[],r.length?Oa(r).onDone(()=>{t.forEach(n=>n())}):t.forEach(n=>n())}}reportError(e){throw aY(e)}_flushAnimations(e,r){let t=new iu,n=[],o=new Map,a=[],s=new Map,l=new Map,u=new Map,f=new Set;this.disabledNodes.forEach(ye=>{f.add(ye);let Fe=this.driver.query(ye,jY,!0);for(let qe=0;qe{let qe=wO+P++;S.set(Fe,qe),ye.forEach(At=>go(At,qe))});let z=[],O=new Set,de=new Set;for(let ye=0;yeO.add(At)):de.add(Fe))}let ht=new Map,it=fO(C,Array.from(O));it.forEach((ye,Fe)=>{let qe=Uw+P++;ht.set(Fe,qe),ye.forEach(At=>go(At,qe))}),e.push(()=>{D.forEach((ye,Fe)=>{let qe=S.get(Fe);ye.forEach(At=>tc(At,qe))}),it.forEach((ye,Fe)=>{let qe=ht.get(Fe);ye.forEach(At=>tc(At,qe))}),z.forEach(ye=>{this.processLeaveNode(ye)})});let Ti=[],Ft=[];for(let ye=this._namespaceList.length-1;ye>=0;ye--)this._namespaceList[ye].drainQueuedTransitions(r).forEach(qe=>{let At=qe.player,Ni=qe.element;if(Ti.push(At),this.collectedEnterElements.length){let Xi=Ni[No];if(Xi&&Xi.setForMove){if(Xi.previousTriggersValues&&Xi.previousTriggersValues.has(qe.triggerName)){let Pa=Xi.previousTriggersValues.get(qe.triggerName),Qn=this.statesByElement.get(qe.element);if(Qn&&Qn.has(qe.triggerName)){let au=Qn.get(qe.triggerName);au.value=Pa,Qn.set(qe.triggerName,au)}}At.destroy();return}}let Lo=!v||!this.driver.containsElement(v,Ni),On=ht.get(Ni),Hr=S.get(Ni),mi=this._buildInstruction(qe,t,Hr,On,Lo);if(mi.errors&&mi.errors.length){Ft.push(mi);return}if(Lo){At.onStart(()=>Ss(Ni,mi.fromStyles)),At.onDestroy(()=>dr(Ni,mi.toStyles)),n.push(At);return}if(qe.isFallbackTransition){At.onStart(()=>Ss(Ni,mi.fromStyles)),At.onDestroy(()=>dr(Ni,mi.toStyles)),n.push(At);return}let CC=[];mi.timelines.forEach(Xi=>{Xi.stretchStartingKeyframe=!0,this.disabledNodes.has(Xi.element)||CC.push(Xi)}),mi.timelines=CC,t.append(Ni,mi.timelines);let _R={instruction:mi,player:At,element:Ni};a.push(_R),mi.queriedElements.forEach(Xi=>Yn(s,Xi,[]).push(At)),mi.preStyleProps.forEach((Xi,Pa)=>{if(Xi.size){let Qn=l.get(Pa);Qn||l.set(Pa,Qn=new Set),Xi.forEach((au,Mg)=>Qn.add(Mg))}}),mi.postStyleProps.forEach((Xi,Pa)=>{let Qn=u.get(Pa);Qn||u.set(Pa,Qn=new Set),Xi.forEach((au,Mg)=>Qn.add(Mg))})});if(Ft.length){let ye=[];Ft.forEach(Fe=>{ye.push(sY(Fe.triggerName,Fe.errors))}),Ti.forEach(Fe=>Fe.destroy()),this.reportError(ye)}let Wt=new Map,wi=new Map;a.forEach(ye=>{let Fe=ye.element;t.has(Fe)&&(wi.set(Fe,Fe),this._beforeAnimationBuild(ye.player.namespaceId,ye.instruction,Wt))}),n.forEach(ye=>{let Fe=ye.element;this._getPreviousPlayers(Fe,!1,ye.namespaceId,ye.triggerName,null).forEach(At=>{Yn(Wt,Fe,[]).push(At),At.destroy()})});let ur=z.filter(ye=>gO(ye,l,u)),Ms=new Map;pO(Ms,this.driver,de,u,or).forEach(ye=>{gO(ye,l,u)&&ur.push(ye)});let Ra=new Map;D.forEach((ye,Fe)=>{pO(Ra,this.driver,new Set(ye),l,yp)}),ur.forEach(ye=>{let Fe=Ms.get(ye),qe=Ra.get(ye);Ms.set(ye,new Map([...Fe?.entries()??[],...qe?.entries()??[]]))});let Ig=[],yC=[],wC={};a.forEach(ye=>{let{element:Fe,player:qe,instruction:At}=ye;if(t.has(Fe)){if(f.has(Fe)){qe.onDestroy(()=>dr(Fe,At.toStyles)),qe.disabled=!0,qe.overrideTotalTime(At.totalTime),n.push(qe);return}let Ni=wC;if(wi.size>1){let On=Fe,Hr=[];for(;On=On.parentNode;){let mi=wi.get(On);if(mi){Ni=mi;break}Hr.push(On)}Hr.forEach(mi=>wi.set(mi,Ni))}let Lo=this._buildAnimation(qe.namespaceId,At,Wt,o,Ra,Ms);if(qe.setRealPlayer(Lo),Ni===wC)Ig.push(qe);else{let On=this.playersByElement.get(Ni);On&&On.length&&(qe.parentPlayer=Oa(On)),n.push(qe)}}else Ss(Fe,At.fromStyles),qe.onDestroy(()=>dr(Fe,At.toStyles)),yC.push(qe),f.has(Fe)&&n.push(qe)}),yC.forEach(ye=>{let Fe=o.get(ye.element);if(Fe&&Fe.length){let qe=Oa(Fe);ye.setRealPlayer(qe)}}),n.forEach(ye=>{ye.parentPlayer?ye.syncPlayerEvents(ye.parentPlayer):ye.destroy()});for(let ye=0;ye!Lo.destroyed);Ni.length?YY(this,Fe,Ni):this.processLeaveNode(Fe)}return z.length=0,Ig.forEach(ye=>{this.players.push(ye),ye.onDone(()=>{ye.destroy();let Fe=this.players.indexOf(ye);this.players.splice(Fe,1)}),ye.play()}),Ig}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,r,t,n,o){let a=[];if(r){let s=this.playersByQueriedElement.get(e);s&&(a=s)}else{let s=this.playersByElement.get(e);if(s){let l=!o||o==eu;s.forEach(u=>{u.queued||!l&&u.triggerName!=n||a.push(u)})}}return(t||n)&&(a=a.filter(s=>!(t&&t!=s.namespaceId||n&&n!=s.triggerName))),a}_beforeAnimationBuild(e,r,t){let n=r.triggerName,o=r.element,a=r.isRemovalTransition?void 0:e,s=r.isRemovalTransition?void 0:n;for(let l of r.timelines){let u=l.element,f=u!==o,v=Yn(t,u,[]);this._getPreviousPlayers(u,f,a,s,r.toState).forEach(D=>{let S=D.getRealPlayer();S.beforeDestroy&&S.beforeDestroy(),D.destroy(),v.push(D)})}Ss(o,r.fromStyles)}_buildAnimation(e,r,t,n,o,a){let s=r.triggerName,l=r.element,u=[],f=new Set,v=new Set,C=r.timelines.map(S=>{let P=S.element;f.add(P);let z=P[No];if(z&&z.removedBeforeQueried)return new ya(S.duration,S.delay);let O=P!==l,de=QY((t.get(P)||HY).map(Wt=>Wt.getRealPlayer())).filter(Wt=>{let wi=Wt;return wi.element?wi.element===P:!1}),ht=o.get(P),it=a.get(P),Ti=_O(this._normalizer,S.keyframes,ht,it),Ft=this._buildPlayer(S,Ti,de);if(S.subTimeline&&n&&v.add(P),O){let Wt=new ou(e,s,P);Wt.setRealPlayer(Ft),u.push(Wt)}return Ft});u.forEach(S=>{Yn(this.playersByQueriedElement,S.element,[]).push(S),S.onDone(()=>WY(this.playersByQueriedElement,S.element,S))}),f.forEach(S=>go(S,aO));let D=Oa(C);return D.onDestroy(()=>{f.forEach(S=>tc(S,aO)),dr(l,r.toStyles)}),v.forEach(S=>{Yn(n,S,[]).push(D)}),D}_buildPlayer(e,r,t){return r.length>0?this.driver.animate(e.element,r,e.duration,e.delay,e.easing,t):new ya(e.duration,e.delay)}},ou=class{constructor(e,r,t){this.namespaceId=e,this.triggerName=r,this.element=t,this._player=new ya,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((r,t)=>{r.forEach(n=>oC(e,t,void 0,n))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let r=this._player;r.triggerCallback&&e.onStart(()=>r.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,r){Yn(this._queuedCallbacks,e,[]).push(r)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let r=this._player;r.triggerCallback&&r.triggerCallback(e)}};function WY(i,e,r){let t=i.get(e);if(t){if(t.length){let n=t.indexOf(r);t.splice(n,1)}t.length==0&&i.delete(e)}return t}function GY(i){return i??null}function mg(i){return i&&i.nodeType===1}function qY(i){return i=="start"||i=="done"}function mO(i,e){let r=i.style.display;return i.style.display=e??"none",r}function pO(i,e,r,t,n){let o=[];r.forEach(l=>o.push(mO(l)));let a=[];t.forEach((l,u)=>{let f=new Map;l.forEach(v=>{let C=e.computeStyle(u,v,n);f.set(v,C),(!C||C.length==0)&&(u[No]=$Y,a.push(u))}),i.set(u,f)});let s=0;return r.forEach(l=>mO(l,o[s++])),a}function fO(i,e){let r=new Map;if(i.forEach(s=>r.set(s,[])),e.length==0)return r;let t=1,n=new Set(e),o=new Map;function a(s){if(!s)return t;let l=o.get(s);if(l)return l;let u=s.parentNode;return r.has(u)?l=u:n.has(u)?l=t:l=a(u),o.set(s,l),l}return e.forEach(s=>{let l=a(s);l!==t&&r.get(l).push(s)}),r}function go(i,e){i.classList?.add(e)}function tc(i,e){i.classList?.remove(e)}function YY(i,e,r){Oa(r).onDone(()=>i.processLeaveNode(e))}function QY(i){let e=[];return MO(i,e),e}function MO(i,e){for(let r=0;rn.add(o)):e.set(i,t),r.delete(i),!0}var nc=class{constructor(e,r,t){this._driver=r,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(n,o)=>{},this._transitionEngine=new tC(e.body,r,t),this._timelineEngine=new Jw(e.body,r,t),this._transitionEngine.onRemovalComplete=(n,o)=>this.onRemovalComplete(n,o)}registerTrigger(e,r,t,n,o){let a=e+"-"+n,s=this._triggerCache[a];if(!s){let l=[],u=[],f=DO(this._driver,o,l,u);if(l.length)throw Kq(n,l);u.length&&void 0,s=NY(n,f,this._normalizer),this._triggerCache[a]=s}this._transitionEngine.registerTrigger(r,n,s)}register(e,r){this._transitionEngine.register(e,r)}destroy(e,r){this._transitionEngine.destroy(e,r)}onInsert(e,r,t,n){this._transitionEngine.insertNode(e,r,t,n)}onRemove(e,r,t){this._transitionEngine.removeNode(e,r,t)}disableAnimations(e,r){this._transitionEngine.markElementAsDisabled(e,r)}process(e,r,t,n){if(t.charAt(0)=="@"){let[o,a]=oO(t),s=n;this._timelineEngine.command(o,r,a,s)}else this._transitionEngine.trigger(e,r,t,n)}listen(e,r,t,n,o){if(t.charAt(0)=="@"){let[a,s]=oO(t);return this._timelineEngine.listen(a,r,s,o)}return this._transitionEngine.listen(e,r,t,n,o)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function ZY(i,e){let r=null,t=null;return Array.isArray(e)&&e.length?(r=zw(e[0]),e.length>1&&(t=zw(e[e.length-1]))):e instanceof Map&&(r=zw(e)),r||t?new iC(i,r,t):null}var ic=class ic{constructor(e,r,t){this._element=e,this._startStyles=r,this._endStyles=t,this._state=0;let n=ic.initialStylesByElement.get(e);n||ic.initialStylesByElement.set(e,n=new Map),this._initialStyles=n}start(){this._state<1&&(this._startStyles&&dr(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(dr(this._element,this._initialStyles),this._endStyles&&(dr(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(ic.initialStylesByElement.delete(this._element),this._startStyles&&(Ss(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ss(this._element,this._endStyles),this._endStyles=null),dr(this._element,this._initialStyles),this._state=3)}};ic.initialStylesByElement=new WeakMap;var iC=ic;function zw(i){let e=null;return i.forEach((r,t)=>{XY(t)&&(e=e||new Map,e.set(t,r))}),e}function XY(i){return i==="display"||i==="position"}var Cg=class{constructor(e,r,t,n){this.element=e,this.keyframes=r,this.options=t,this._specialStyles=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=t.duration,this._delay=t.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let r=()=>this._onFinish();this.domPlayer.addEventListener("finish",r),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",r)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let r=[];return e.forEach(t=>{r.push(Object.fromEntries(t))}),r}_triggerWebAnimation(e,r,t){return e.animate(this._convertKeyframesToObject(r),t)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,n)=>{n!=="offset"&&e.set(n,this._finished?t:cC(this.element,n))}),this.currentSnapshot=e}triggerCallback(e){let r=e==="start"?this._onStartFns:this._onDoneFns;r.forEach(t=>t()),r.length=0}},xg=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,r){return vO(e,r)}getParentElement(e){return aC(e)}query(e,r,t){return bO(e,r,t)}computeStyle(e,r,t){return cC(e,r)}animate(e,r,t,n,o,a=[]){let s=n==0?"both":"forwards",l={duration:t,delay:n,fill:s};o&&(l.easing=o);let u=new Map,f=a.filter(D=>D instanceof Cg);vY(t,n)&&f.forEach(D=>{D.currentSnapshot.forEach((S,P)=>u.set(P,S))});let v=fY(r).map(D=>new Map(D));v=bY(e,v,u);let C=ZY(e,v);return new Cg(e,v,l,C)}};var pg="@",TO="@.disabled",Dg=class{constructor(e,r,t,n){this.namespaceId=e,this.delegate=r,this.engine=t,this._onDestroy=n,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,r){return this.delegate.createElement(e,r)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,r){this.delegate.appendChild(e,r),this.engine.onInsert(this.namespaceId,r,e,!1)}insertBefore(e,r,t,n=!0){this.delegate.insertBefore(e,r,t),this.engine.onInsert(this.namespaceId,r,e,n)}removeChild(e,r,t){this.parentNode(r)&&this.engine.onRemove(this.namespaceId,r,this.delegate)}selectRootElement(e,r){return this.delegate.selectRootElement(e,r)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,r,t,n){this.delegate.setAttribute(e,r,t,n)}removeAttribute(e,r,t){this.delegate.removeAttribute(e,r,t)}addClass(e,r){this.delegate.addClass(e,r)}removeClass(e,r){this.delegate.removeClass(e,r)}setStyle(e,r,t,n){this.delegate.setStyle(e,r,t,n)}removeStyle(e,r,t){this.delegate.removeStyle(e,r,t)}setProperty(e,r,t){r.charAt(0)==pg&&r==TO?this.disableAnimations(e,!!t):this.delegate.setProperty(e,r,t)}setValue(e,r){this.delegate.setValue(e,r)}listen(e,r,t){return this.delegate.listen(e,r,t)}disableAnimations(e,r){this.engine.disableAnimations(e,r)}},nC=class extends Dg{constructor(e,r,t,n,o){super(r,t,n,o),this.factory=e,this.namespaceId=r}setProperty(e,r,t){r.charAt(0)==pg?r.charAt(1)=="."&&r==TO?(t=t===void 0?!0:!!t,this.disableAnimations(e,t)):this.engine.process(this.namespaceId,e,r.slice(1),t):this.delegate.setProperty(e,r,t)}listen(e,r,t){if(r.charAt(0)==pg){let n=JY(e),o=r.slice(1),a="";return o.charAt(0)!=pg&&([o,a]=eQ(o)),this.engine.listen(this.namespaceId,n,o,a,s=>{let l=s._data||-1;this.factory.scheduleListenerCallback(l,t,s)})}return this.delegate.listen(e,r,t)}};function JY(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i}}function eQ(i){let e=i.indexOf("."),r=i.substring(0,e),t=i.slice(e+1);return[r,t]}var Sg=class{constructor(e,r,t){this.delegate=e,this.engine=r,this._zone=t,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,r.onRemovalComplete=(n,o)=>{o?.removeChild(null,n)}}createRenderer(e,r){let t="",n=this.delegate.createRenderer(e,r);if(!e||!r?.data?.animation){let u=this._rendererCache,f=u.get(n);if(!f){let v=()=>u.delete(n);f=new Dg(t,n,this.engine,v),u.set(n,f)}return f}let o=r.id,a=r.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);let s=u=>{Array.isArray(u)?u.forEach(s):this.engine.registerTrigger(o,a,e,u.name,u)};return r.data.animation.forEach(s),new nC(this,a,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,r,t){if(e>=0&&er(t));return}let n=this._animationCallbacksBuffer;n.length==0&&queueMicrotask(()=>{this._zone.run(()=>{n.forEach(o=>{let[a,s]=o;a(s)}),this._animationCallbacksBuffer=[]})}),n.push([r,t])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var iQ=(()=>{let e=class e extends nc{constructor(t,n,o){super(t,n,o)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(n){return new(n||e)(M(se),M(Es),M(Is))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();function nQ(){return new _g}function oQ(i,e,r){return new Sg(i,e,r)}var AO=[{provide:Is,useFactory:nQ},{provide:nc,useClass:iQ},{provide:na,useFactory:oQ,deps:[Im,nc,Z]}],kO=[{provide:Es,useFactory:()=>new xg},{provide:kt,useValue:"BrowserAnimations"},...AO],rQ=[{provide:Es,useClass:sC},{provide:kt,useValue:"NoopAnimations"},...AO],OO=(()=>{let e=class e{static withConfig(t){return{ngModule:e,providers:t.disableAnimations?rQ:kO}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({providers:kO,imports:[Tm]});let i=e;return i})();var aQ=["button"],sQ=["*"];function lQ(i,e){if(i&1&&I(0,"mat-pseudo-checkbox",3),i&2){let r=_();p("disabled",r.disabled)}}function cQ(i,e){if(i&1&&I(0,"mat-pseudo-checkbox",3),i&2){let r=_();p("disabled",r.disabled)}}var dQ=new R("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:uQ});function uQ(){return{hideSingleSelectionIndicator:!1,hideMultipleSelectionIndicator:!1,disabledInteractive:!1}}var hQ=new R("MatButtonToggleGroup");var mQ=0,hC=class{constructor(e,r){this.source=e,this.value=r}};var pQ=(()=>{let e=class e{get buttonId(){return`${this.id}-button`}get tabIndex(){return this._tabIndex}set tabIndex(t){this._tabIndex=t,this._markForCheck()}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(t){this._appearance=t}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(t){t!==this._checked&&(this._checked=t,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(t){this._disabled=t}get disabledInteractive(){return this._disabledInteractive||this.buttonToggleGroup!==null&&this.buttonToggleGroup.disabledInteractive}set disabledInteractive(t){this._disabledInteractive=t}constructor(t,n,o,a,s,l){this._changeDetectorRef=n,this._elementRef=o,this._focusMonitor=a,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new T;let u=Number(s);this.tabIndex=u||u===0?u:null,this.buttonToggleGroup=t,this.appearance=l&&l.appearance?l.appearance:"standard",this.disabledInteractive=l?.disabledInteractive??!1}ngOnInit(){let t=this.buttonToggleGroup;this.id=this.id||`mat-button-toggle-${mQ++}`,t&&(t._isPrechecked(this)?this.checked=!0:t._isSelected(this)!==this._checked&&t._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){let t=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),t&&t._isSelected(this)&&t._syncButtonToggle(this,!1,!1,!0)}focus(t){this._buttonElement.nativeElement.focus(t)}_onButtonClick(){if(this.disabled)return;let t=this.isSingleSelector()?!0:!this._checked;if(t!==this._checked&&(this._checked=t,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.isSingleSelector()){let n=this.buttonToggleGroup._buttonToggles.find(o=>o.tabIndex===0);n&&(n.tabIndex=-1),this.tabIndex=0}this.change.emit(new hC(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this.isSingleSelector()?this.buttonToggleGroup.name:this.name||null}isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}};e.\u0275fac=function(n){return new(n||e)(m(hQ,8),m(he),m(q),m(Di),vi("tabindex"),m(dQ,8))},e.\u0275cmp=E({type:e,selectors:[["mat-button-toggle"]],viewQuery:function(n,o){if(n&1&&ce(aQ,5),n&2){let a;Q(a=K())&&(o._buttonElement=a.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:14,hostBindings:function(n,o){n&1&&b("focus",function(){return o.focus()}),n&2&&(ie("aria-label",null)("aria-labelledby",null)("id",o.id)("name",null),ne("mat-button-toggle-standalone",!o.buttonToggleGroup)("mat-button-toggle-checked",o.checked)("mat-button-toggle-disabled",o.disabled)("mat-button-toggle-disabled-interactive",o.disabledInteractive)("mat-button-toggle-appearance-standard",o.appearance==="standard"))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",disableRipple:[2,"disableRipple","disableRipple",Y],appearance:"appearance",checked:[2,"checked","checked",Y],disabled:[2,"disabled","disabled",Y],disabledInteractive:[2,"disabledInteractive","disabledInteractive",Y]},outputs:{change:"change"},exportAs:["matButtonToggle"],standalone:!0,features:[ge,re],ngContentSelectors:sQ,decls:8,vars:14,consts:[["button",""],["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"click","id","disabled"],[1,"mat-button-toggle-label-content"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(n,o){if(n&1){let a=A();He(),c(0,"button",1,0),b("click",function(){return y(a),w(o._onButtonClick())}),c(2,"span",2),x(3,lQ,1,1,"mat-pseudo-checkbox",3)(4,cQ,1,1,"mat-pseudo-checkbox",3),ae(5),d()(),I(6,"span",4)(7,"span",5)}if(n&2){let a=we(1);p("id",o.buttonId)("disabled",o.disabled&&!o.disabledInteractive||null),ie("role",o.isSingleSelector()?"radio":"button")("tabindex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex)("aria-pressed",o.isSingleSelector()?null:o.checked)("aria-checked",o.isSingleSelector()?o.checked:null)("name",o._getButtonName())("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledby)("aria-disabled",o.disabled&&o.disabledInteractive?"true":null),h(3),De(o.buttonToggleGroup&&o.checked&&!o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideSingleSelectionIndicator?3:-1),h(),De(o.buttonToggleGroup&&o.checked&&o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideMultipleSelectionIndicator?4:-1),h(3),p("matRippleTrigger",a)("matRippleDisabled",o.disableRipple||o.disabled)}},dependencies:[Tn,dy],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);transform:translateZ(0);border-radius:var(--mat-legacy-button-toggle-shape)}.mat-button-toggle-standalone:not([class*=mat-elevation-z]),.mat-button-toggle-group:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.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:var(--mat-standard-button-toggle-shape, var(--mat-app-corner-full));border:solid 1px var(--mat-standard-button-toggle-divider-color, var(--mat-app-outline))}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard .mat-pseudo-checkbox,.mat-button-toggle-group-appearance-standard .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-standard-button-toggle-selected-state-text-color, var(--mat-app-on-secondary-container))}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard:not([class*=mat-elevation-z]),.mat-button-toggle-group-appearance-standard:not([class*=mat-elevation-z]){box-shadow:none}.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;color:var(--mat-legacy-button-toggle-text-color);font-family:var(--mat-legacy-button-toggle-label-text-font);font-size:var(--mat-legacy-button-toggle-label-text-size);line-height:var(--mat-legacy-button-toggle-label-text-line-height);font-weight:var(--mat-legacy-button-toggle-label-text-weight);letter-spacing:var(--mat-legacy-button-toggle-label-text-tracking);--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-legacy-button-toggle-selected-state-text-color)}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-legacy-button-toggle-focus-state-layer-opacity)}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle .mat-pseudo-checkbox{margin-right:12px}[dir=rtl] .mat-button-toggle .mat-pseudo-checkbox{margin-right:0;margin-left:12px}.mat-button-toggle-checked{color:var(--mat-legacy-button-toggle-selected-state-text-color);background-color:var(--mat-legacy-button-toggle-selected-state-background-color)}.mat-button-toggle-disabled{pointer-events:none;color:var(--mat-legacy-button-toggle-disabled-state-text-color);background-color:var(--mat-legacy-button-toggle-disabled-state-background-color);--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: var(--mat-legacy-button-toggle-disabled-state-text-color)}.mat-button-toggle-disabled.mat-button-toggle-checked{background-color:var(--mat-legacy-button-toggle-disabled-selected-state-background-color)}.mat-button-toggle-disabled-interactive{pointer-events:auto}.mat-button-toggle-appearance-standard{color:var(--mat-standard-button-toggle-text-color, var(--mat-app-on-surface));background-color:var(--mat-standard-button-toggle-background-color);font-family:var(--mat-standard-button-toggle-label-text-font, var(--mat-app-label-large-font));font-size:var(--mat-standard-button-toggle-label-text-size, var(--mat-app-label-large-size));line-height:var(--mat-standard-button-toggle-label-text-line-height, var(--mat-app-label-large-line-height));font-weight:var(--mat-standard-button-toggle-label-text-weight, var(--mat-app-label-large-weight));letter-spacing:var(--mat-standard-button-toggle-label-text-tracking, var(--mat-app-label-large-tracking))}.mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:solid 1px var(--mat-standard-button-toggle-divider-color, var(--mat-app-outline))}[dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:solid 1px var(--mat-standard-button-toggle-divider-color, var(--mat-app-outline))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:none;border-top:solid 1px var(--mat-standard-button-toggle-divider-color, var(--mat-app-outline))}.mat-button-toggle-appearance-standard.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-selected-state-text-color, var(--mat-app-on-secondary-container));background-color:var(--mat-standard-button-toggle-selected-state-background-color, var(--mat-app-secondary-container))}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled{color:var(--mat-standard-button-toggle-disabled-state-text-color);background-color:var(--mat-standard-button-toggle-disabled-state-background-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: var(--mat-standard-button-toggle-disabled-selected-state-text-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-disabled-selected-state-text-color);background-color:var(--mat-standard-button-toggle-disabled-selected-state-background-color)}.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:var(--mat-standard-button-toggle-state-layer-color, var(--mat-app-on-surface))}.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-button-toggle-appearance-standard.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}@media(hover: none){.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;padding:0 16px;line-height:var(--mat-legacy-button-toggle-height);position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px;line-height:var(--mat-standard-button-toggle-height)}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0;background-color:var(--mat-legacy-button-toggle-state-layer-color)}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 500px;opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.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}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard{--mat-focus-indicator-border-radius:var(--mat-standard-button-toggle-shape, var(--mat-app-corner-full))}.mat-button-toggle-group-appearance-standard .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-standard-button-toggle-shape, var(--mat-app-corner-full));border-bottom-right-radius:var(--mat-standard-button-toggle-shape, var(--mat-app-corner-full))}.mat-button-toggle-group-appearance-standard .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-left-radius:var(--mat-standard-button-toggle-shape, var(--mat-app-corner-full));border-bottom-left-radius:var(--mat-standard-button-toggle-shape, var(--mat-app-corner-full))}"],encapsulation:2,changeDetection:0});let i=e;return i})(),RO=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({imports:[pe,Lr,pQ,pe]});let i=e;return i})();var gQ=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],_Q=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function vQ(i,e){i&1&&(c(0,"span",3),ae(1,1),d())}function bQ(i,e){i&1&&(c(0,"span",6),ae(1,2),d())}var yQ='.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{flex-basis:100%;overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit;overflow-x:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-outline-width);border-radius:var(--mdc-chip-container-shape-radius);box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1;border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-outline-color, var(--mat-app-outline))}.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before{border-color:var(--mdc-chip-focus-outline-color, var(--mat-app-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-disabled-outline-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-flat-selected-outline-width)}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color, var(--mat-app-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color, var(--mat-app-on-surface))}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip__text-label{-webkit-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font, var(--mat-app-label-large-font));line-height:var(--mdc-chip-label-text-line-height, var(--mat-app-label-large-line-height));font-size:var(--mdc-chip-label-text-size, var(--mat-app-label-large-size));font-weight:var(--mdc-chip-label-text-weight, var(--mat-app-label-large-weight));letter-spacing:var(--mdc-chip-label-text-tracking, var(--mat-app-label-large-tracking))}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color, var(--mat-app-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-selected-label-text-color, var(--mat-app-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{width:var(--mdc-chip-with-avatar-avatar-size);height:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%;height:20px;width:20px}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, var(--mat-app-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color, var(--mat-app-on-surface))}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.cdk-high-contrast-active .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity))}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-selected-container-color, var(--mat-app-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-flat-disabled-selected-container-color)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius);width:var(--mdc-chip-with-icon-icon-size);height:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color, var(--mat-app-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color, var(--mat-app-on-surface))}.mat-mdc-chip-highlighted{--mdc-chip-with-icon-icon-color:var(--mdc-chip-with-icon-selected-icon-color, var(--mat-app-on-secondary-container));--mdc-chip-elevated-container-color:var(--mdc-chip-elevated-selected-container-color, var(--mat-app-secondary-container));--mdc-chip-label-text-color:var(--mdc-chip-selected-label-text-color, var(--mat-app-on-secondary-container));--mdc-chip-outline-width:var(--mdc-chip-flat-selected-outline-width)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color, var(--mat-app-on-secondary-container))}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-hover-state-layer-color, var(--mat-app-on-surface-variant));opacity:var(--mdc-chip-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-hover-state-layer-color, var(--mat-app-on-secondary-container));opacity:var(--mdc-chip-selected-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color, var(--mat-app-on-surface-variant));opacity:var(--mdc-chip-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color, var(--mat-app-on-secondary-container));opacity:var(--mdc-chip-selected-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mdc-chip-with-avatar-disabled-avatar-opacity)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mdc-chip-with-icon-disabled-icon-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color, var(--mat-app-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color, var(--mat-app-on-surface))}.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity)}.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity)}.mat-mdc-chip-remove::after{background-color:var(--mat-chip-trailing-action-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-chip-remove:hover::after{opacity:var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-chip-remove:focus::after{opacity:var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background-color:var(--mat-chip-selected-trailing-action-state-layer-color, var(--mat-app-on-secondary-container))}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-3px;bottom:-3px;left:5px;right:5px;border-radius:50%;box-sizing:border-box;padding:12px;margin:-12px;background-clip:content-box}.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}',wQ=[[["mat-chip-avatar"],["","matChipAvatar",""]],[["","matChipEditInput",""]],"*",[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],CQ=["mat-chip-avatar, [matChipAvatar]","[matChipEditInput]","*","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function xQ(i,e){i&1&&I(0,"span",0)}function DQ(i,e){i&1&&(c(0,"span",2),ae(1),d())}function SQ(i,e){i&1&&ae(0,1)}function EQ(i,e){i&1&&I(0,"span",7)}function IQ(i,e){if(i&1&&x(0,SQ,1,0)(1,EQ,1,0,"span",7),i&2){let r=_();De(r.contentEditInput?0:1)}}function MQ(i,e){i&1&&ae(0,2)}function TQ(i,e){i&1&&(c(0,"span",5),ae(1,3),d())}var NO=["*"],kQ=".mat-mdc-chip-set{display:flex}.mat-mdc-chip-set:focus{outline:none}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%;margin-left:-8px;margin-right:0}.mat-mdc-chip-set .mdc-evolution-chip{margin:4px 0 4px 8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip-set__chips{margin-left:0;margin-right:-8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip{margin-left:0;margin-right:8px}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}",LO=new R("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[13]})}),PO=new R("MatChipAvatar"),FO=new R("MatChipTrailingIcon"),pC=new R("MatChipRemove"),_C=new R("MatChip"),Eg=(()=>{let e=class e{get disabled(){return this._disabled||this._parentChip.disabled}set disabled(t){this._disabled=t}_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(t,n){this._elementRef=t,this._parentChip=n,this.isInteractive=!0,this._isPrimary=!0,this._disabled=!1,this.tabIndex=-1,this._allowFocusWhenDisabled=!1,t.nativeElement.nodeName==="BUTTON"&&t.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(t){!this.disabled&&this.isInteractive&&this._isPrimary&&(t.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(t){(t.keyCode===13||t.keyCode===32)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(t.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}};e.\u0275fac=function(n){return new(n||e)(m(q),m(_C))},e.\u0275dir=L({type:e,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(n,o){n&1&&b("click",function(s){return o._handleClick(s)})("keydown",function(s){return o._handleKeydown(s)}),n&2&&(ie("tabindex",o._getTabindex())("disabled",o._getDisabledAttribute())("aria-disabled",o.disabled),ne("mdc-evolution-chip__action--primary",o._isPrimary)("mdc-evolution-chip__action--presentational",!o.isInteractive)("mdc-evolution-chip__action--trailing",!o._isPrimary))},inputs:{isInteractive:"isInteractive",disabled:[2,"disabled","disabled",Y],tabIndex:[2,"tabIndex","tabIndex",t=>t==null?-1:ni(t)],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"},standalone:!0,features:[ge]});let i=e;return i})();var VO=(()=>{let e=class e extends Eg{constructor(){super(...arguments),this._isPrimary=!1}_handleClick(t){this.disabled||(t.stopPropagation(),t.preventDefault(),this._parentChip.remove())}_handleKeydown(t){(t.keyCode===13||t.keyCode===32)&&!this.disabled&&(t.stopPropagation(),t.preventDefault(),this._parentChip.remove())}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=jt(e)))(o||e)}})(),e.\u0275dir=L({type:e,selectors:[["","matChipRemove",""]],hostAttrs:["role","button",1,"mat-mdc-chip-remove","mat-mdc-chip-trailing-icon","mat-mdc-focus-indicator","mdc-evolution-chip__icon","mdc-evolution-chip__icon--trailing"],hostVars:1,hostBindings:function(n,o){n&2&&ie("aria-hidden",null)},standalone:!0,features:[Ce([{provide:pC,useExisting:e}]),be]});let i=e;return i})(),AQ=0,fC=(()=>{let e=class e{_hasFocus(){return this._hasFocusInternal}get value(){return this._value!==void 0?this._value:this._textElement.textContent.trim()}set value(t){this._value=t}get disabled(){return this._disabled||this._chipListDisabled}set disabled(t){this._disabled=t}get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(t){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,t)}constructor(t,n,o,a,s,l,u){this._changeDetectorRef=t,this._elementRef=n,this._ngZone=o,this._focusMonitor=a,this._globalRippleOptions=u,this._onFocus=new G,this._onBlur=new G,this.role=null,this._hasFocusInternal=!1,this.id=`mat-mdc-chip-${AQ++}`,this.ariaLabel=null,this.ariaDescription=null,this._ariaDescriptionId=`${this.id}-aria-description`,this._chipListDisabled=!1,this.removable=!0,this.highlighted=!1,this.disableRipple=!1,this._disabled=!1,this.removed=new T,this.destroyed=new T,this.basicChipAttrName="mat-basic-chip",this._rippleLoader=k(gp),this._injector=k(Pe),this._document=s,this._animationsDisabled=l==="NoopAnimations",this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){let t=this._elementRef.nativeElement;this._isBasicChip=t.hasAttribute(this.basicChipAttrName)||t.tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=wt(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&this.removed.emit({chip:this})}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!!(this.trailingIcon||this.removeIcon)}_handleKeydown(t){(t.keyCode===8&&!t.repeat||t.keyCode===46)&&(t.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(t){return this._getActions().find(n=>{let o=n._elementRef.nativeElement;return o===t||o.contains(t)})}_getActions(){let t=[];return this.primaryAction&&t.push(this.primaryAction),this.removeIcon&&t.push(this.removeIcon),this.trailingIcon&&t.push(this.trailingIcon),t}_handlePrimaryActionInteraction(){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{let n=t!==null;n!==this._hasFocusInternal&&(this._hasFocusInternal=n,n?this._onFocus.next({chip:this}):ai(()=>this._ngZone.run(()=>this._onBlur.next({chip:this})),{injector:this._injector}))})}};e.\u0275fac=function(n){return new(n||e)(m(he),m(q),m(Z),m(Di),m(se),m(kt,8),m(Vl,8))},e.\u0275cmp=E({type:e,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(n,o,a){if(n&1&&(Be(a,PO,5),Be(a,FO,5),Be(a,pC,5),Be(a,PO,5),Be(a,FO,5),Be(a,pC,5)),n&2){let s;Q(s=K())&&(o.leadingIcon=s.first),Q(s=K())&&(o.trailingIcon=s.first),Q(s=K())&&(o.removeIcon=s.first),Q(s=K())&&(o._allLeadingIcons=s),Q(s=K())&&(o._allTrailingIcons=s),Q(s=K())&&(o._allRemoveIcons=s)}},viewQuery:function(n,o){if(n&1&&ce(Eg,5),n&2){let a;Q(a=K())&&(o.primaryAction=a.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:31,hostBindings:function(n,o){n&1&&b("keydown",function(s){return o._handleKeydown(s)}),n&2&&(Si("id",o.id),ie("role",o.role)("aria-label",o.ariaLabel),Yt("mat-"+(o.color||"primary")),ne("mdc-evolution-chip",!o._isBasicChip)("mdc-evolution-chip--disabled",o.disabled)("mdc-evolution-chip--with-trailing-action",o._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",o.leadingIcon)("mdc-evolution-chip--with-primary-icon",o.leadingIcon)("mdc-evolution-chip--with-avatar",o.leadingIcon)("mat-mdc-chip-with-avatar",o.leadingIcon)("mat-mdc-chip-highlighted",o.highlighted)("mat-mdc-chip-disabled",o.disabled)("mat-mdc-basic-chip",o._isBasicChip)("mat-mdc-standard-chip",!o._isBasicChip)("mat-mdc-chip-with-trailing-icon",o._hasTrailingIcon())("_mat-animation-noopable",o._animationsDisabled))},inputs:{role:"role",id:"id",ariaLabel:[0,"aria-label","ariaLabel"],ariaDescription:[0,"aria-description","ariaDescription"],value:"value",color:"color",removable:[2,"removable","removable",Y],highlighted:[2,"highlighted","highlighted",Y],disableRipple:[2,"disableRipple","disableRipple",Y],disabled:[2,"disabled","disabled",Y]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],standalone:!0,features:[Ce([{provide:_C,useExisting:e}]),ge,re],ngContentSelectors:_Q,decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(n,o){n&1&&(He(gQ),I(0,"span",0),c(1,"span",1)(2,"span",2),x(3,vQ,2,0,"span",3),c(4,"span",4),ae(5),I(6,"span",5),d()()(),x(7,bQ,2,0,"span",6)),n&2&&(h(2),p("isInteractive",!1),h(),De(o.leadingIcon?3:-1),h(4),De(o._hasTrailingIcon()?7:-1))},dependencies:[Eg],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{flex-basis:100%;overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit;overflow-x:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-outline-width);border-radius:var(--mdc-chip-container-shape-radius);box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1;border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-outline-color, var(--mat-app-outline))}.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before{border-color:var(--mdc-chip-focus-outline-color, var(--mat-app-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-disabled-outline-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-flat-selected-outline-width)}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color, var(--mat-app-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color, var(--mat-app-on-surface))}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip__text-label{-webkit-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font, var(--mat-app-label-large-font));line-height:var(--mdc-chip-label-text-line-height, var(--mat-app-label-large-line-height));font-size:var(--mdc-chip-label-text-size, var(--mat-app-label-large-size));font-weight:var(--mdc-chip-label-text-weight, var(--mat-app-label-large-weight));letter-spacing:var(--mdc-chip-label-text-tracking, var(--mat-app-label-large-tracking))}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color, var(--mat-app-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-selected-label-text-color, var(--mat-app-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{width:var(--mdc-chip-with-avatar-avatar-size);height:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%;height:20px;width:20px}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, var(--mat-app-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color, var(--mat-app-on-surface))}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.cdk-high-contrast-active .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity))}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-selected-container-color, var(--mat-app-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-flat-disabled-selected-container-color)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius);width:var(--mdc-chip-with-icon-icon-size);height:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color, var(--mat-app-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color, var(--mat-app-on-surface))}.mat-mdc-chip-highlighted{--mdc-chip-with-icon-icon-color:var(--mdc-chip-with-icon-selected-icon-color, var(--mat-app-on-secondary-container));--mdc-chip-elevated-container-color:var(--mdc-chip-elevated-selected-container-color, var(--mat-app-secondary-container));--mdc-chip-label-text-color:var(--mdc-chip-selected-label-text-color, var(--mat-app-on-secondary-container));--mdc-chip-outline-width:var(--mdc-chip-flat-selected-outline-width)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color, var(--mat-app-on-secondary-container))}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-hover-state-layer-color, var(--mat-app-on-surface-variant));opacity:var(--mdc-chip-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-hover-state-layer-color, var(--mat-app-on-secondary-container));opacity:var(--mdc-chip-selected-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color, var(--mat-app-on-surface-variant));opacity:var(--mdc-chip-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color, var(--mat-app-on-secondary-container));opacity:var(--mdc-chip-selected-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mdc-chip-with-avatar-disabled-avatar-opacity)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mdc-chip-with-icon-disabled-icon-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color, var(--mat-app-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color, var(--mat-app-on-surface))}.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity)}.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity)}.mat-mdc-chip-remove::after{background-color:var(--mat-chip-trailing-action-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-chip-remove:hover::after{opacity:var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-chip-remove:focus::after{opacity:var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background-color:var(--mat-chip-selected-trailing-action-state-layer-color, var(--mat-app-on-secondary-container))}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-3px;bottom:-3px;left:5px;right:5px;border-radius:50%;box-sizing:border-box;padding:12px;margin:-12px;background-clip:content-box}.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let i=e;return i})();var mC=(()=>{let e=class e{constructor(t,n){this._elementRef=t,this._document=n}initialize(t){this.getNativeElement().focus(),this.setValue(t)}getNativeElement(){return this._elementRef.nativeElement}setValue(t){this.getNativeElement().textContent=t,this._moveCursorToEndOfInput()}getValue(){return this.getNativeElement().textContent||""}_moveCursorToEndOfInput(){let t=this._document.createRange();t.selectNodeContents(this.getNativeElement()),t.collapse(!1);let n=window.getSelection();n.removeAllRanges(),n.addRange(t)}};e.\u0275fac=function(n){return new(n||e)(m(q),m(se))},e.\u0275dir=L({type:e,selectors:[["span","matChipEditInput",""]],hostAttrs:["role","textbox","tabindex","-1","contenteditable","true",1,"mat-chip-edit-input"],standalone:!0});let i=e;return i})(),vC=(()=>{let e=class e extends fC{constructor(t,n,o,a,s,l,u,f){super(t,n,o,a,s,l,u),this.basicChipAttrName="mat-basic-chip-row",this._editStartPending=!1,this.editable=!1,this.edited=new T,this._isEditing=!1,this.role="row",this._onBlur.pipe(fe(this.destroyed)).subscribe(()=>{this._isEditing&&!this._editStartPending&&this._onEditFinish()})}_hasTrailingIcon(){return!this._isEditing&&super._hasTrailingIcon()}_handleFocus(){!this._isEditing&&!this.disabled&&this.focus()}_handleKeydown(t){t.keyCode===13&&!this.disabled?this._isEditing?(t.preventDefault(),this._onEditFinish()):this.editable&&this._startEditing(t):this._isEditing?t.stopPropagation():super._handleKeydown(t)}_handleDoubleclick(t){!this.disabled&&this.editable&&this._startEditing(t)}_startEditing(t){if(!this.primaryAction||this.removeIcon&&this._getSourceAction(t.target)===this.removeIcon)return;let n=this.value;this._isEditing=this._editStartPending=!0,ai(()=>{this._getEditInput().initialize(n),this._editStartPending=!1},{injector:this._injector})}_onEditFinish(){this._isEditing=this._editStartPending=!1,this.edited.emit({chip:this,value:this._getEditInput().getValue()}),(this._document.activeElement===this._getEditInput().getNativeElement()||this._document.activeElement===this._document.body)&&this.primaryAction.focus()}_isRippleDisabled(){return super._isRippleDisabled()||this._isEditing}_getEditInput(){return this.contentEditInput||this.defaultEditInput}};e.\u0275fac=function(n){return new(n||e)(m(he),m(q),m(Z),m(Di),m(se),m(kt,8),m(Vl,8),vi("tabindex"))},e.\u0275cmp=E({type:e,selectors:[["mat-chip-row"],["","mat-chip-row",""],["mat-basic-chip-row"],["","mat-basic-chip-row",""]],contentQueries:function(n,o,a){if(n&1&&Be(a,mC,5),n&2){let s;Q(s=K())&&(o.contentEditInput=s.first)}},viewQuery:function(n,o){if(n&1&&ce(mC,5),n&2){let a;Q(a=K())&&(o.defaultEditInput=a.first)}},hostAttrs:[1,"mat-mdc-chip","mat-mdc-chip-row","mdc-evolution-chip"],hostVars:27,hostBindings:function(n,o){n&1&&b("focus",function(s){return o._handleFocus(s)})("dblclick",function(s){return o._handleDoubleclick(s)}),n&2&&(Si("id",o.id),ie("tabindex",o.disabled?null:-1)("aria-label",null)("aria-description",null)("role",o.role),ne("mat-mdc-chip-with-avatar",o.leadingIcon)("mat-mdc-chip-disabled",o.disabled)("mat-mdc-chip-editing",o._isEditing)("mat-mdc-chip-editable",o.editable)("mdc-evolution-chip--disabled",o.disabled)("mdc-evolution-chip--with-trailing-action",o._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",o.leadingIcon)("mdc-evolution-chip--with-primary-icon",o.leadingIcon)("mdc-evolution-chip--with-avatar",o.leadingIcon)("mat-mdc-chip-highlighted",o.highlighted)("mat-mdc-chip-with-trailing-icon",o._hasTrailingIcon()))},inputs:{editable:"editable"},outputs:{edited:"edited"},standalone:!0,features:[Ce([{provide:fC,useExisting:e},{provide:_C,useExisting:e}]),be,re],ngContentSelectors:CQ,decls:10,vars:9,consts:[[1,"mat-mdc-chip-focus-overlay"],["role","gridcell","matChipAction","",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary",3,"disabled"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],["aria-hidden","true",1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"],[1,"cdk-visually-hidden",3,"id"],["matChipEditInput",""]],template:function(n,o){n&1&&(He(wQ),x(0,xQ,1,0,"span",0),c(1,"span",1),x(2,DQ,2,0,"span",2),c(3,"span",3),x(4,IQ,2,1)(5,MQ,1,0),I(6,"span",4),d()(),x(7,TQ,2,0,"span",5),c(8,"span",6),g(9),d()),n&2&&(De(o._isEditing?-1:0),h(),p("disabled",o.disabled),ie("aria-label",o.ariaLabel)("aria-describedby",o._ariaDescriptionId),h(),De(o.leadingIcon?2:-1),h(2),De(o._isEditing?4:5),h(3),De(o._hasTrailingIcon()?7:-1),h(),p("id",o._ariaDescriptionId),h(),$e(o.ariaDescription))},dependencies:[Eg,mC],styles:[yQ],encapsulation:2,changeDetection:0});let i=e;return i})(),OQ=(()=>{let e=class e{get chipFocusChanges(){return this._getChipStream(t=>t._onFocus)}get chipDestroyedChanges(){return this._getChipStream(t=>t.destroyed)}get chipRemovedChanges(){return this._getChipStream(t=>t.removed)}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._syncChipsState()}get empty(){return!this._chips||this._chips.length===0}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}set role(t){this._explicitRole=t}get focused(){return this._hasFocusedChip()}constructor(t,n,o){this._elementRef=t,this._changeDetectorRef=n,this._dir=o,this._lastDestroyedFocusedChipIndex=null,this._destroyed=new G,this._defaultRole="presentation",this._disabled=!1,this.tabIndex=0,this._explicitRole=null,this._chipActions=new eo}ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){this._keyManager?.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(t=>t._hasFocus())}_syncChipsState(){this._chips?.forEach(t=>{t._chipListDisabled=this._disabled,t._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(t){this._originatesFromChip(t)&&this._keyManager.onKeydown(t)}_isValidIndex(t){return t>=0&&tthis._elementRef.nativeElement.tabIndex=t))}_getChipStream(t){return this._chips.changes.pipe(Rt(null),Tt(()=>wt(...this._chips.map(t))))}_originatesFromChip(t){let n=t.target;for(;n&&n!==this._elementRef.nativeElement;){if(n.classList.contains("mat-mdc-chip"))return!0;n=n.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe(Rt(this._chips)).subscribe(t=>{let n=[];t.forEach(o=>o._getActions().forEach(a=>n.push(a))),this._chipActions.reset(n),this._chipActions.notifyOnChanges()}),this._keyManager=new _a(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(t=>this._skipPredicate(t)),this.chipFocusChanges.pipe(fe(this._destroyed)).subscribe(({chip:t})=>{let n=t._getSourceAction(document.activeElement);n&&this._keyManager.updateActiveItem(n)}),this._dir?.change.pipe(fe(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t))}_skipPredicate(t){return!t.isInteractive||t.disabled}_trackChipSetChanges(){this._chips.changes.pipe(Rt(null),fe(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(fe(this._destroyed)).subscribe(t=>{let o=this._chips.toArray().indexOf(t.chip);this._isValidIndex(o)&&t.chip._hasFocus()&&(this._lastDestroyedFocusedChipIndex=o)})}_redirectDestroyedChipFocus(){if(this._lastDestroyedFocusedChipIndex!=null){if(this._chips.length){let t=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),n=this._chips.toArray()[t];n.disabled?this._chips.length===1?this.focus():this._keyManager.setPreviousItemActive():n.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}};e.\u0275fac=function(n){return new(n||e)(m(q),m(he),m(Nt,8))},e.\u0275cmp=E({type:e,selectors:[["mat-chip-set"]],contentQueries:function(n,o,a){if(n&1&&Be(a,fC,5),n&2){let s;Q(s=K())&&(o._chips=s)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(n,o){n&1&&b("keydown",function(s){return o._handleKeydown(s)}),n&2&&ie("role",o.role)},inputs:{disabled:[2,"disabled","disabled",Y],role:"role",tabIndex:[2,"tabIndex","tabIndex",t=>t==null?0:ni(t)]},standalone:!0,features:[ge,re],ngContentSelectors:NO,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(n,o){n&1&&(He(),c(0,"div",0),ae(1),d())},styles:[".mat-mdc-chip-set{display:flex}.mat-mdc-chip-set:focus{outline:none}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%;margin-left:-8px;margin-right:0}.mat-mdc-chip-set .mdc-evolution-chip{margin:4px 0 4px 8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip-set__chips{margin-left:0;margin-right:-8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip{margin-left:0;margin-right:8px}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0});let i=e;return i})();var gC=class{constructor(e,r){this.source=e,this.value=r}},jO=(()=>{let e=class e extends OQ{get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=t,this._syncChipsState()}get id(){return this._chipInput.id}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this._chips||this._chips.length===0)}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get focused(){return this._chipInput.focused||this._hasFocusedChip()}get required(){return this._required??this.ngControl?.control?.hasValidator(sr.required)??!1}set required(t){this._required=t,this.stateChanges.next()}get shouldLabelFloat(){return!this.empty||this.focused}get value(){return this._value}set value(t){this._value=t}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(t){this._errorStateTracker.matcher=t}get chipBlurChanges(){return this._getChipStream(t=>t._onBlur)}get errorState(){return this._errorStateTracker.errorState}set errorState(t){this._errorStateTracker.errorState=t}constructor(t,n,o,a,s,l,u){super(t,n,o),this.ngControl=u,this.controlType="mat-chip-grid",this._defaultRole="grid",this._ariaDescribedbyIds=[],this._onTouched=()=>{},this._onChange=()=>{},this._value=[],this.change=new T,this.valueChange=new T,this._chips=void 0,this.stateChanges=new G,this.ngControl&&(this.ngControl.valueAccessor=this),this._errorStateTracker=new Fr(l,u,s,a,this.stateChanges)}ngAfterContentInit(){this.chipBlurChanges.pipe(fe(this._destroyed)).subscribe(()=>{this._blur(),this.stateChanges.next()}),wt(this.chipFocusChanges,this._chips.changes).pipe(fe(this._destroyed)).subscribe(()=>this.stateChanges.next())}ngAfterViewInit(){super.ngAfterViewInit(),this._chipInput}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnDestroy(){super.ngOnDestroy(),this.stateChanges.complete()}registerInput(t){this._chipInput=t,this._chipInput.setDescribedByIds(this._ariaDescribedbyIds)}onContainerClick(t){!this.disabled&&!this._originatesFromChip(t)&&this.focus()}focus(){if(!(this.disabled||this._chipInput.focused)){if(!this._chips.length||this._chips.first.disabled)Promise.resolve().then(()=>this._chipInput.focus());else{let t=this._keyManager.activeItem;t?t.focus():this._keyManager.setFirstItemActive()}this.stateChanges.next()}}setDescribedByIds(t){this._ariaDescribedbyIds=t,this._chipInput?.setDescribedByIds(t)}writeValue(t){this._value=t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this.stateChanges.next()}updateErrorState(){this._errorStateTracker.updateErrorState()}_blur(){this.disabled||setTimeout(()=>{this.focused||(this._propagateChanges(),this._markAsTouched())})}_allowFocusEscape(){this._chipInput.focused||super._allowFocusEscape()}_handleKeydown(t){let n=t.keyCode,o=this._keyManager.activeItem;if(n===9)this._chipInput.focused&&Pt(t,"shiftKey")&&this._chips.length&&!this._chips.last.disabled?(t.preventDefault(),o?this._keyManager.setActiveItem(o):this._focusLastChip()):super._allowFocusEscape();else if(!this._chipInput.focused)if((n===38||n===40)&&o){let a=this._chipActions.filter(u=>u._isPrimary===o._isPrimary&&!this._skipPredicate(u)),s=a.indexOf(o),l=t.keyCode===38?-1:1;t.preventDefault(),s>-1&&this._isValidIndex(s+l)&&this._keyManager.setActiveItem(a[s+l])}else super._handleKeydown(t);this.stateChanges.next()}_focusLastChip(){this._chips.length&&this._chips.last.focus()}_propagateChanges(){let t=this._chips.length?this._chips.toArray().map(n=>n.value):[];this._value=t,this.change.emit(new gC(this,t)),this.valueChange.emit(t),this._onChange(t),this._changeDetectorRef.markForCheck()}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}};e.\u0275fac=function(n){return new(n||e)(m(q),m(he),m(Nt,8),m(Oo,8),m(gs,8),m(Nr),m(kn,10))},e.\u0275cmp=E({type:e,selectors:[["mat-chip-grid"]],contentQueries:function(n,o,a){if(n&1&&Be(a,vC,5),n&2){let s;Q(s=K())&&(o._chips=s)}},hostAttrs:[1,"mat-mdc-chip-set","mat-mdc-chip-grid","mdc-evolution-chip-set"],hostVars:10,hostBindings:function(n,o){n&1&&b("focus",function(){return o.focus()})("blur",function(){return o._blur()}),n&2&&(ie("role",o.role)("tabindex",o.disabled||o._chips&&o._chips.length===0?-1:o.tabIndex)("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState),ne("mat-mdc-chip-list-disabled",o.disabled)("mat-mdc-chip-list-invalid",o.errorState)("mat-mdc-chip-list-required",o.required))},inputs:{disabled:[2,"disabled","disabled",Y],placeholder:"placeholder",required:[2,"required","required",Y],value:"value",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},standalone:!0,features:[Ce([{provide:Ia,useExisting:e}]),ge,be,re],ngContentSelectors:NO,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(n,o){n&1&&(He(),c(0,"div",0),ae(1),d())},styles:[kQ],encapsulation:2,changeDetection:0});let i=e;return i})(),RQ=0,BO=(()=>{let e=class e{get chipGrid(){return this._chipGrid}set chipGrid(t){t&&(this._chipGrid=t,this._chipGrid.registerInput(this))}get disabled(){return this._disabled||this._chipGrid&&this._chipGrid.disabled}set disabled(t){this._disabled=t}get empty(){return!this.inputElement.value}constructor(t,n,o){this._elementRef=t,this.focused=!1,this.addOnBlur=!1,this.chipEnd=new T,this.placeholder="",this.id=`mat-mdc-chip-list-input-${RQ++}`,this._disabled=!1,this.inputElement=this._elementRef.nativeElement,this.separatorKeyCodes=n.separatorKeyCodes,o&&this.inputElement.classList.add("mat-mdc-form-field-input-control")}ngOnChanges(){this._chipGrid.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}_keydown(t){this.empty&&t.keyCode===8?(t.repeat||this._chipGrid._focusLastChip(),t.preventDefault()):this._emitChipEnd(t)}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipGrid.focused||this._chipGrid._blur(),this._chipGrid.stateChanges.next()}_focus(){this.focused=!0,this._chipGrid.stateChanges.next()}_emitChipEnd(t){(!t||this._isSeparatorKey(t)&&!t.repeat)&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),t?.preventDefault())}_onInput(){this._chipGrid.stateChanges.next()}focus(){this.inputElement.focus()}clear(){this.inputElement.value=""}setDescribedByIds(t){let n=this._elementRef.nativeElement;t.length?n.setAttribute("aria-describedby",t.join(" ")):n.removeAttribute("aria-describedby")}_isSeparatorKey(t){return!Pt(t)&&new Set(this.separatorKeyCodes).has(t.keyCode)}};e.\u0275fac=function(n){return new(n||e)(m(q),m(LO),m(Ro,8))},e.\u0275dir=L({type:e,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-mdc-chip-input","mat-mdc-input-element","mdc-text-field__input","mat-input-element"],hostVars:6,hostBindings:function(n,o){n&1&&b("keydown",function(s){return o._keydown(s)})("blur",function(){return o._blur()})("focus",function(){return o._focus()})("input",function(){return o._onInput()}),n&2&&(Si("id",o.id),ie("disabled",o.disabled||null)("placeholder",o.placeholder||null)("aria-invalid",o._chipGrid&&o._chipGrid.ngControl?o._chipGrid.ngControl.invalid:null)("aria-required",o._chipGrid&&o._chipGrid.required||null)("required",o._chipGrid&&o._chipGrid.required||null))},inputs:{chipGrid:[0,"matChipInputFor","chipGrid"],addOnBlur:[2,"matChipInputAddOnBlur","addOnBlur",Y],separatorKeyCodes:[0,"matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:[2,"disabled","disabled",Y]},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],standalone:!0,features:[ge,Qe]});let i=e;return i})();var zO=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({providers:[Nr,{provide:LO,useValue:{separatorKeyCodes:[13]}}],imports:[pe,Lr,pe]});let i=e;return i})();var UO=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({});let i=e;return i})();var HO=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({imports:[pe,UO,zn]});let i=e;return i})();var FQ=["*",[["mat-toolbar-row"]]],NQ=["*","mat-toolbar-row"],LQ=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"],standalone:!0});let i=e;return i})(),$O=(()=>{let e=class e{constructor(t,n,o){this._elementRef=t,this._platform=n,this._document=o}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}};e.\u0275fac=function(n){return new(n||e)(m(q),m(Ve),m(se))},e.\u0275cmp=E({type:e,selectors:[["mat-toolbar"]],contentQueries:function(n,o,a){if(n&1&&Be(a,LQ,5),n&2){let s;Q(s=K())&&(o._toolbarRows=s)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(n,o){n&2&&(Yt(o.color?"mat-"+o.color:""),ne("mat-toolbar-multiple-rows",o._toolbarRows.length>0)("mat-toolbar-single-row",o._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],standalone:!0,features:[re],ngContentSelectors:NQ,decls:2,vars:0,template:function(n,o){n&1&&(He(FQ),ae(0),ae(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color, var(--mat-app-surface));color:var(--mat-toolbar-container-text-color, var(--mat-app-on-surface))}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font, var(--mat-app-title-large-font));font-size:var(--mat-toolbar-title-text-size, var(--mat-app-title-large-size));line-height:var(--mat-toolbar-title-text-line-height, var(--mat-app-title-large-line-height));font-weight:var(--mat-toolbar-title-text-weight, var(--mat-app-title-large-weight));letter-spacing:var(--mat-toolbar-title-text-tracking, var(--mat-app-title-large-tracking));margin:0}.cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color:var(--mat-toolbar-container-text-color, var(--mat-app-on-surface));--mdc-outlined-button-label-text-color:var(--mat-toolbar-container-text-color, var(--mat-app-on-surface))}.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;height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height)}}"],encapsulation:2,changeDetection:0});let i=e;return i})();var WO=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({imports:[pe,pe]});let i=e;return i})();var GO=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({providers:[{provide:Vy,useValue:{floatLabel:"always",appearance:"outline"}},{provide:mp,useValue:udsData.language}],imports:[Ei,MT,Up,WO,ar,Zk,Wl,HO,N1,vs,iA,bf,zA,E1,xk,uk,pk,Gf,Uf,FT,zO,RO,wA,hA,BT,Yf,Gk,Vk]});let i=e;return i})();function jQ(i,e){if(i&1){let r=A();c(0,"button",7),b("click",function(){let n=y(r).$implicit,o=_();return w(o.changeLang(n))}),g(1),d()}if(i&2){let r=e.$implicit;h(),$e(r.name)}}function BQ(i,e){if(i&1&&(c(0,"button",12)(1,"i",8),g(2,"face"),d(),g(3),d()),i&2){let r=_(),t=we(7);p("matMenuTriggerFor",t),h(3),$e(r.api.user.user)}}function zQ(i,e){if(i&1&&(c(0,"button",18),g(1),c(2,"i",8),g(3,"arrow_drop_down"),d()()),i&2){let r=_(),t=we(7);p("matMenuTriggerFor",t),h(),F("",r.api.user.user," ")}}var qO=(()=>{let e=class e{constructor(t){this.api=t,this.lang={id:"",name:""},this.isNavbarCollapsed=!0;let n=t.config.language;this.langs=[];for(let o of t.config.available_languages)o.id===n?this.lang=o:this.langs.push(o)}ngOnInit(){}changeLang(t){this.lang=t;let n=document.getElementById("id_language");return n&&n.setAttribute("value",t.id),document.getElementById("form_language").submit(),!1}user(){this.api.gotoUser()}logout(){this.api.logout()}};e.\u0275fac=function(n){return new(n||e)(m(B))},e.\u0275cmp=E({type:e,selectors:[["uds-navbar"]],decls:39,vars:13,consts:[["appMenu","matMenu"],["userMenu","matMenu"],["shrink","matMenu"],["id","form_language","method","post",3,"action"],["type","hidden",3,"name","value"],["id","id_language","type","hidden","name","language",3,"value"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"],[1,"material-icons"],[1,"material-icons","highlight"],["x-position","before"],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor"],["color","primary",1,"uds-nav"],["mat-button","","routerLink","/"],["alt","Universal Desktop Services",1,"udsicon",3,"src"],[1,"fill-remaining-space"],[1,"expanded"],["mat-button","",3,"matMenuTriggerFor"],["mat-button","",3,"matMenuTriggerFor",4,"ngIf"],[1,"shrinked"],["mat-icon-button","",3,"matMenuTriggerFor"]],template:function(n,o){if(n&1){let a=A();c(0,"form",3),I(1,"input",4)(2,"input",5),d(),c(3,"mat-menu",null,0),x(5,jQ,2,1,"button",6),d(),c(6,"mat-menu",null,1)(8,"button",7),b("click",function(){return y(a),w(o.user())}),c(9,"i",8),g(10,"home"),d(),c(11,"uds-translate"),g(12,"User mode"),d()(),c(13,"button",7),b("click",function(){return y(a),w(o.logout())}),c(14,"i",9),g(15,"exit_to_app"),d(),c(16,"uds-translate"),g(17,"Logout"),d()()(),c(18,"mat-menu",10,2),x(20,BQ,4,2,"button",11),c(21,"button",12)(22,"i",8),g(23,"language"),d(),g(24),d()(),c(25,"mat-toolbar",13)(26,"button",14),I(27,"img",15),d(),I(28,"span",16),c(29,"div",17)(30,"button",18),g(31),c(32,"i",8),g(33,"arrow_drop_down"),d()(),x(34,zQ,4,2,"button",19),d(),c(35,"div",20)(36,"button",21)(37,"i",8),g(38,"menu"),d()()()()}if(n&2){let a=we(4),s=we(19);sa("action",o.api.config.urls.change_language,Ie),h(),sa("name",o.api.csrfField),sa("value",o.api.csrfToken),h(),sa("value",o.lang.id),h(3),p("ngForOf",o.langs),h(15),p("ngIf",o.api.user.isLogged),h(),p("matMenuTriggerFor",a),h(3),$e(o.lang.name),h(3),p("src",o.api.staticURL("admin/img/udsicon.png"),Ie),h(3),p("matMenuTriggerFor",a),h(),F("",o.lang.name," "),h(3),p("ngIf",o.api.user.isLogged),h(2),p("matMenuTriggerFor",s)}},dependencies:[We,me,bi,zp,Lp,Oo,$O,ke,Qi,ka,ys,Xf,le],styles:['.mat-ripple[_ngcontent-%COMP%]{overflow:hidden;position:relative}.mat-ripple[_ngcontent-%COMP%]:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded[_ngcontent-%COMP%]{overflow:visible}.mat-ripple-element[_ngcontent-%COMP%]{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale3d(0,0,0);background-color:var(--mat-ripple-color, rgba(0, 0, 0, .1))}.cdk-high-contrast-active[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%], .cdk-drag-placeholder[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%]{display:none}.cdk-visually-hidden[_ngcontent-%COMP%]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl][_ngcontent-%COMP%] .cdk-visually-hidden[_ngcontent-%COMP%]{left:auto;right:0}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_ngcontent-%COMP%]{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container[_ngcontent-%COMP%]{position:fixed;z-index:1000}.cdk-overlay-container[_ngcontent-%COMP%]:empty{display:none}.cdk-global-overlay-wrapper[_ngcontent-%COMP%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:1}.cdk-high-contrast-active[_ngcontent-%COMP%] .cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:.6}.cdk-overlay-dark-backdrop[_ngcontent-%COMP%]{background:#00000052}.cdk-overlay-transparent-backdrop[_ngcontent-%COMP%]{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation[_ngcontent-%COMP%]{transition:none}.cdk-overlay-connected-position-bounding-box[_ngcontent-%COMP%]{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock[_ngcontent-%COMP%]{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize[_ngcontent-%COMP%]{resize:none}textarea.cdk-textarea-autosize-measuring[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-start{}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{animation:_ngcontent-%COMP%_cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){animation:_ngcontent-%COMP%_cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border:var(--mat-focus-indicator-border-width, 3px) var(--mat-focus-indicator-border-style, solid) var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-focus-indicator-display: block}.mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-mdc-focus-indicator-display, none);border:var(--mat-mdc-focus-indicator-border-width, 3px) var(--mat-mdc-focus-indicator-border-style, solid) var(--mat-mdc-focus-indicator-border-color, transparent);border-radius:var(--mat-mdc-focus-indicator-border-radius, 4px)}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-mdc-focus-indicator-display: block}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-app-background, transparent));color:var(--mat-app-text-color, var(--mat-app-on-background, inherit))}.mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, none)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, none)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, none)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, none)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, none)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, none)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, none)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, none)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, none)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, none)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, none)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, none)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, none)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, none)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, none)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, none)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, none)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, none)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, none)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, none)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, none)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, none)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, none)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, none)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, none)}.uds-nav[_ngcontent-%COMP%]{position:fixed;top:0;z-index:1000}.fill-remaining-space[_ngcontent-%COMP%]{flex:1 1 auto}.material-icons[_ngcontent-%COMP%]{margin-right:.3rem}.udsicon[_ngcontent-%COMP%]{width:2rem}.mat-mdc-button[_ngcontent-%COMP%]{font-weight:300}.uds-nav[_ngcontent-%COMP%] .expanded[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#000}@media only screen and (max-width: 744px){.expanded[_ngcontent-%COMP%]{display:none;visibility:hidden}.shrinked[_ngcontent-%COMP%]{visibility:visible}}@media only screen and (min-width: 745px){.expanded[_ngcontent-%COMP%]{visibility:visible}.shrinked[_ngcontent-%COMP%]{display:none;visibility:hidden}} .dark-theme .uds-nav .expanded button{color:#fff!important}']});let i=e;return i})();var YO=(()=>{let e=class e{constructor(){}ngOnInit(){}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=E({type:e,selectors:[["uds-footer"]],decls:4,vars:0,consts:[["href","https://www.udsenterprise.com"]],template:function(n,o){n&1&&(c(0,"div"),g(1,"\xA9 2012-2023 "),c(2,"a",0),g(3,"Virtual Cable S.L.U."),d()())},styles:['.mat-ripple[_ngcontent-%COMP%]{overflow:hidden;position:relative}.mat-ripple[_ngcontent-%COMP%]:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded[_ngcontent-%COMP%]{overflow:visible}.mat-ripple-element[_ngcontent-%COMP%]{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale3d(0,0,0);background-color:var(--mat-ripple-color, rgba(0, 0, 0, .1))}.cdk-high-contrast-active[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%], .cdk-drag-placeholder[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%]{display:none}.cdk-visually-hidden[_ngcontent-%COMP%]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl][_ngcontent-%COMP%] .cdk-visually-hidden[_ngcontent-%COMP%]{left:auto;right:0}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_ngcontent-%COMP%]{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container[_ngcontent-%COMP%]{position:fixed;z-index:1000}.cdk-overlay-container[_ngcontent-%COMP%]:empty{display:none}.cdk-global-overlay-wrapper[_ngcontent-%COMP%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:1}.cdk-high-contrast-active[_ngcontent-%COMP%] .cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:.6}.cdk-overlay-dark-backdrop[_ngcontent-%COMP%]{background:#00000052}.cdk-overlay-transparent-backdrop[_ngcontent-%COMP%]{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation[_ngcontent-%COMP%]{transition:none}.cdk-overlay-connected-position-bounding-box[_ngcontent-%COMP%]{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock[_ngcontent-%COMP%]{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize[_ngcontent-%COMP%]{resize:none}textarea.cdk-textarea-autosize-measuring[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-start{}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{animation:_ngcontent-%COMP%_cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){animation:_ngcontent-%COMP%_cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border:var(--mat-focus-indicator-border-width, 3px) var(--mat-focus-indicator-border-style, solid) var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-focus-indicator-display: block}.mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-mdc-focus-indicator-display, none);border:var(--mat-mdc-focus-indicator-border-width, 3px) var(--mat-mdc-focus-indicator-border-style, solid) var(--mat-mdc-focus-indicator-border-color, transparent);border-radius:var(--mat-mdc-focus-indicator-border-radius, 4px)}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-mdc-focus-indicator-display: block}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-app-background, transparent));color:var(--mat-app-text-color, var(--mat-app-on-background, inherit))}.mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, none)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, none)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, none)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, none)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, none)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, none)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, none)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, none)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, none)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, none)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, none)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, none)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, none)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, none)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, none)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, none)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, none)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, none)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, none)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, none)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, none)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, none)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, none)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, none)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, none)}a[_ngcontent-%COMP%]{text-decoration:none}div[_ngcontent-%COMP%], a[_ngcontent-%COMP%]{color:#000} .dark-theme div, .dark-theme a{color:#fff}']});let i=e;return i})();function $Q(i,e){if(i&1&&(c(0,"a",27),I(1,"img",2),c(2,"uds-translate"),g(3,"Groups"),d()()),i&2){let r=_();h(),p("src",r.icon("groups"),Ie)}}function WQ(i,e){if(i&1){let r=A();c(0,"a",3),b("click",function(){y(r);let n=_();return w(n.toggleConfig())}),I(1,"img",2),c(2,"span")(3,"uds-translate"),g(4,"Tools"),d(),c(5,"i",4),g(6,"arrow_drop_down"),d()()()}if(i&2){let r=_();h(),p("src",r.icon("tools"),Ie)}}var QO=(()=>{let e=class e{constructor(t,n){this.api=t,this.rest=n,this.connectivityShown=!1,this.poolsShown=!1,this.configShown=!1,this.tokensShown=!1,this.authsShown=!1,this.servicesShown=!1}ngOnInit(){}icon(t){return this.api.staticURL("admin/img/icons/"+t+".png")}toggle(t){let n=new Map([["connectivity",o=>this.connectivityShown=o?!this.connectivityShown:!1],["pools",o=>this.poolsShown=o?!this.poolsShown:!1],["config",o=>this.configShown=o?!this.configShown:!1],["tokens",o=>this.tokensShown=o?!this.tokensShown:!1],["auths",o=>this.authsShown=o?!this.authsShown:!1],["services",o=>this.servicesShown=o?!this.servicesShown:!1]]);for(let o of n)o[1](o[0]===t)}toggleConnectivity(){this.toggle("connectivity")}togglePools(){this.toggle("pools")}toggleConfig(){this.toggle("config")}toggleTokens(){this.toggle("tokens")}toggleAuths(){this.toggle("auths")}toggleServices(){this.toggle("services")}flushCache(){this.rest.system.flushCache().then(()=>{this.api.gui.snackbar.open(django.gettext("Cache flushed"),django.gettext("dismiss"),{duration:2e3})})}};e.\u0275fac=function(n){return new(n||e)(m(B),m(X))},e.\u0275cmp=E({type:e,selectors:[["uds-sidebar"]],decls:124,vars:33,consts:[[1,"sidebar","mat-toolbar","mat-primary"],["mat-button","","routerLink","/summary",1,"sidebar-link"],[1,"icon",3,"src"],["mat-button","",1,"sidebar-link",3,"click"],[1,"material-icons"],[1,"submenu",3,"hidden"],["mat-button","","routerLink","/services/providers",1,"sidebar-link"],["mat-button","","routerLink","/services/servers",1,"sidebar-link"],["mat-button","","routerLink","/authenticators",1,"sidebar-link"],["mat-button","","routerLink","/mfas",1,"sidebar-link"],["mat-button","","routerLink","/osmanagers",1,"sidebar-link"],["mat-button","","routerLink","/connectivity/transports",1,"sidebar-link"],["mat-button","","routerLink","/connectivity/networks",1,"sidebar-link"],["mat-button","","routerLink","/connectivity/tunnels",1,"sidebar-link"],["mat-button","","routerLink","/pools/service-pools",1,"sidebar-link"],["mat-button","","routerLink","/pools/meta-pools",1,"sidebar-link"],["mat-button","","routerLink","/pools/pool-groups","class","sidebar-link",4,"ngIf"],["mat-button","","routerLink","/pools/calendars",1,"sidebar-link"],["mat-button","","routerLink","/pools/accounts",1,"sidebar-link"],["mat-button","","class","sidebar-link",3,"click",4,"ngIf"],["mat-button","","routerLink","/tools/gallery",1,"sidebar-link"],["mat-button","","routerLink","/tools/reports",1,"sidebar-link"],["mat-button","","routerLink","/tools/notifiers",1,"sidebar-link"],[1,"submenu2",3,"hidden"],["mat-button","","routerLink","/tools/tokens/actor",1,"sidebar-link"],["mat-button","","routerLink","/tools/tokens/server",1,"sidebar-link"],["mat-button","","routerLink","/tools/configuration",1,"sidebar-link"],["mat-button","","routerLink","/pools/pool-groups",1,"sidebar-link"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"a",1),I(2,"img",2),c(3,"uds-translate"),g(4,"Summary"),d()(),c(5,"a",3),b("click",function(){return o.toggleServices()}),I(6,"img",2),c(7,"span")(8,"uds-translate"),g(9,"Services"),d(),c(10,"i",4),g(11,"arrow_drop_down"),d()()(),c(12,"div",5)(13,"a",6),I(14,"img",2),c(15,"uds-translate"),g(16,"Providers"),d()(),c(17,"a",7),I(18,"img",2),c(19,"uds-translate"),g(20,"Servers"),d()()(),c(21,"a",3),b("click",function(){return o.toggleAuths()}),I(22,"img",2),c(23,"span")(24,"uds-translate"),g(25,"Authentication"),d(),c(26,"i",4),g(27,"arrow_drop_down"),d()()(),c(28,"div",5)(29,"a",8),I(30,"img",2),c(31,"uds-translate"),g(32,"Authenticators"),d()(),c(33,"a",9),I(34,"img",2),c(35,"uds-translate"),g(36,"Multi Factor"),d()()(),c(37,"a",10),I(38,"img",2),c(39,"uds-translate"),g(40,"Os Managers"),d()(),c(41,"a",3),b("click",function(){return o.toggleConnectivity()}),I(42,"img",2),c(43,"span")(44,"uds-translate"),g(45,"Connectivity"),d(),c(46,"i",4),g(47,"arrow_drop_down"),d()()(),c(48,"div",5)(49,"a",11),I(50,"img",2),c(51,"uds-translate"),g(52,"Transports"),d()(),c(53,"a",12),I(54,"img",2),c(55,"uds-translate"),g(56,"Networks"),d()(),c(57,"a",13),I(58,"img",2),c(59,"uds-translate"),g(60,"Tunnels"),d()()(),c(61,"a",3),b("click",function(){return o.togglePools()}),I(62,"img",2),c(63,"span")(64,"uds-translate"),g(65,"Pools"),d(),c(66,"i",4),g(67,"arrow_drop_down"),d()()(),c(68,"div",5)(69,"a",14),I(70,"img",2),c(71,"uds-translate"),g(72,"Service pools"),d()(),c(73,"a",15),I(74,"img",2),c(75,"uds-translate"),g(76,"Meta pools"),d()(),x(77,$Q,4,1,"a",16),c(78,"a",17),I(79,"img",2),c(80,"uds-translate"),g(81,"Calendars"),d()(),c(82,"a",18),I(83,"img",2),c(84,"uds-translate"),g(85,"Accounting"),d()()(),x(86,WQ,7,1,"a",19),c(87,"div",5)(88,"a",20),I(89,"img",2),c(90,"uds-translate"),g(91,"Gallery"),d()(),c(92,"a",21),I(93,"img",2),c(94,"uds-translate"),g(95,"Reports"),d()(),c(96,"a",22),I(97,"img",2),c(98,"uds-translate"),g(99,"Notifiers"),d()(),c(100,"a",3),b("click",function(){return o.tokensShown=!o.tokensShown}),I(101,"img",2),c(102,"span")(103,"uds-translate"),g(104,"Tokens"),d(),c(105,"i",4),g(106,"arrow_drop_down"),d()()(),c(107,"div",23)(108,"a",24),I(109,"img",2),c(110,"uds-translate"),g(111,"Actor"),d()(),c(112,"a",25),I(113,"img",2),c(114,"uds-translate"),g(115,"Servers"),d()()(),c(116,"a",26),I(117,"img",2),c(118,"uds-translate"),g(119,"Configuration"),d()(),c(120,"a",3),b("click",function(){return o.flushCache()}),I(121,"img",2),c(122,"uds-translate"),g(123,"Flush Cache"),d()()()()),n&2&&(h(2),p("src",o.icon("dashboard-monitor"),Ie),h(4),p("src",o.icon("providers"),Ie),h(6),p("hidden",!o.servicesShown),h(2),p("src",o.icon("providers"),Ie),h(4),p("src",o.icon("servers"),Ie),h(4),p("src",o.icon("authentication"),Ie),h(6),p("hidden",!o.authsShown),h(2),p("src",o.icon("authenticators"),Ie),h(4),p("src",o.icon("mfas"),Ie),h(4),p("src",o.icon("osmanagers"),Ie),h(4),p("src",o.icon("connectivity"),Ie),h(6),p("hidden",!o.connectivityShown),h(2),p("src",o.icon("transports"),Ie),h(4),p("src",o.icon("networks"),Ie),h(4),p("src",o.icon("tunnels"),Ie),h(4),p("src",o.icon("poolsmenu"),Ie),h(6),p("hidden",!o.poolsShown),h(2),p("src",o.icon("pools"),Ie),h(4),p("src",o.icon("metas"),Ie),h(3),p("ngIf",o.api.user.isAdmin),h(2),p("src",o.icon("calendars"),Ie),h(4),p("src",o.icon("accounts"),Ie),h(3),p("ngIf",o.api.user.isAdmin),h(),p("hidden",!o.configShown),h(2),p("src",o.icon("gallery"),Ie),h(4),p("src",o.icon("reports"),Ie),h(4),p("src",o.icon("notifiers"),Ie),h(4),p("src",o.icon("tokens"),Ie),h(6),p("hidden",!o.tokensShown),h(2),p("src",o.icon("actors"),Ie),h(4),p("src",o.icon("servers"),Ie),h(4),p("src",o.icon("configuration"),Ie),h(4),p("src",o.icon("flush-cache"),Ie))},dependencies:[me,bi,xa,le],styles:['.mat-ripple[_ngcontent-%COMP%]{overflow:hidden;position:relative}.mat-ripple[_ngcontent-%COMP%]:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded[_ngcontent-%COMP%]{overflow:visible}.mat-ripple-element[_ngcontent-%COMP%]{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale3d(0,0,0);background-color:var(--mat-ripple-color, rgba(0, 0, 0, .1))}.cdk-high-contrast-active[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%], .cdk-drag-placeholder[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%]{display:none}.cdk-visually-hidden[_ngcontent-%COMP%]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl][_ngcontent-%COMP%] .cdk-visually-hidden[_ngcontent-%COMP%]{left:auto;right:0}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_ngcontent-%COMP%]{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container[_ngcontent-%COMP%]{position:fixed;z-index:1000}.cdk-overlay-container[_ngcontent-%COMP%]:empty{display:none}.cdk-global-overlay-wrapper[_ngcontent-%COMP%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:1}.cdk-high-contrast-active[_ngcontent-%COMP%] .cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:.6}.cdk-overlay-dark-backdrop[_ngcontent-%COMP%]{background:#00000052}.cdk-overlay-transparent-backdrop[_ngcontent-%COMP%]{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation[_ngcontent-%COMP%]{transition:none}.cdk-overlay-connected-position-bounding-box[_ngcontent-%COMP%]{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock[_ngcontent-%COMP%]{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize[_ngcontent-%COMP%]{resize:none}textarea.cdk-textarea-autosize-measuring[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-start{}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{animation:_ngcontent-%COMP%_cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){animation:_ngcontent-%COMP%_cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border:var(--mat-focus-indicator-border-width, 3px) var(--mat-focus-indicator-border-style, solid) var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-focus-indicator-display: block}.mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-mdc-focus-indicator-display, none);border:var(--mat-mdc-focus-indicator-border-width, 3px) var(--mat-mdc-focus-indicator-border-style, solid) var(--mat-mdc-focus-indicator-border-color, transparent);border-radius:var(--mat-mdc-focus-indicator-border-radius, 4px)}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-mdc-focus-indicator-display: block}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-app-background, transparent));color:var(--mat-app-text-color, var(--mat-app-on-background, inherit))}.mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, none)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, none)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, none)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, none)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, none)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, none)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, none)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, none)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, none)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, none)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, none)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, none)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, none)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, none)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, none)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, none)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, none)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, none)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, none)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, none)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, none)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, none)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, none)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, none)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, none)}.sidebar[_ngcontent-%COMP%]{position:fixed;top:4rem;padding-top:12px;bottom:0;display:flex;flex-direction:column;overflow-y:auto;width:3.7rem;-moz-transition:all .5s cubic-bezier(.86,0,.07,1);transition:all .3s cubic-bezier(.86,0,.07,1);box-shadow:0 16px 38px -12px #fafafa8f,0 4px 25px #fafafa1f,0 8px 10px -5px #fafafa33;overflow-x:hidden;z-index:25}.sidebar-link[_ngcontent-%COMP%]{display:flex;width:15rem;color:transparent;-moz-transition:color .5s cubic-bezier(.86,0,.07,1);transition:color .3s cubic-bezier(.86,0,.07,1);font-weight:300;font-size:1rem;justify-content:left;justify-items:center;padding-left:1rem;text-decoration:none}.sidebar[_ngcontent-%COMP%]:hover{width:15rem;-moz-transition:all .5s cubic-bezier(.86,0,.07,1);transition:all .3s cubic-bezier(.86,0,.07,1)}.sidebar[_ngcontent-%COMP%]:hover .sidebar-link[_ngcontent-%COMP%]{color:#000}.submenu[_ngcontent-%COMP%] > .mat-mdc-button[_ngcontent-%COMP%]{padding-left:1.5rem}.submenu2[_ngcontent-%COMP%] > .mat-mdc-button[_ngcontent-%COMP%]{padding-left:1.8rem}.icon[_ngcontent-%COMP%]{width:24px;margin:0 1em -.5rem 0} .dark-theme .sidebar{box-shadow:0 16px 38px -12px #3030308f,0 4px 25px #3030301f,0 8px 10px -5px #30303033} .dark-theme .sidebar:hover .sidebar-link{color:#fff!important}']});let i=e;return i})();function qQ(i,e){if(i&1&&I(0,"div",1),i&2){let r=_();p("innerHTML",r.messages,qt)}}var KO=(()=>{let e=class e{constructor(t){this.api=t,this.messages="",this.visible=!1}ngOnInit(){let t=n=>n.replace(/ /gm," ").replace(/([A-Z]+[A-Z]+)/gm,"$1").replace(/([0-9]+)/gm,"$1");if(this.api.notices.length>0){let n='
';this.messages='
'+n+this.api.notices.map(t).join("
"+n)+"
",this.api.gui.alert("",this.messages,0,"80%").then(()=>{this.visible=!0})}}};e.\u0275fac=function(n){return new(n||e)(m(B))},e.\u0275cmp=E({type:e,selectors:[["uds-notices"]],decls:1,vars:1,consts:[["class","notice",3,"innerHTML",4,"ngIf"],[1,"notice",3,"innerHTML"]],template:function(n,o){n&1&&x(0,qQ,1,1,"div",0),n&2&&p("ngIf",o.visible)},dependencies:[me],styles:[".notice[_ngcontent-%COMP%]{display:block} .warn-notice-container{background:#4682b4;border-radius:3px;box-shadow:#00000024 0 4px 20px,#465d9c66 0 7px 10px -5px;box-sizing:border-box;color:#fff;margin:1rem 2rem 0rem;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}"]});let i=e;return i})();var ZO=(()=>{let e=class e{constructor(t){this.api=t,this.title="UDS Admin"}get blackTheme(){return this.api.getFromStorage("blackTheme")==="true"}set blackTheme(t){this.api.putOnStorage("blackTheme",t.toString())}handleKeyboardEvent(t){t.altKey&&t.ctrlKey&&t.key==="b"&&(this.blackTheme=!this.blackTheme,this.api.switchTheme(this.blackTheme))}ngOnInit(){this.api.switchTheme(this.blackTheme)}};e.\u0275fac=function(n){return new(n||e)(m(B))},e.\u0275cmp=E({type:e,selectors:[["uds-root"]],hostBindings:function(n,o){n&1&&b("keydown",function(s){return o.handleKeyboardEvent(s)},!1,VS)},decls:8,vars:0,consts:[[1,"page"],[1,"content"],[1,"footer"]],template:function(n,o){n&1&&(I(0,"uds-navbar")(1,"uds-sidebar"),c(2,"div",0)(3,"div",1),I(4,"uds-notices")(5,"router-outlet"),d(),c(6,"div",2),I(7,"uds-footer"),d()())},dependencies:[T0,qO,YO,QO,KO],styles:[".page[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.footer[_ngcontent-%COMP%]{flex-shrink:0;margin:1em;height:1em;display:flex;flex-direction:row;justify-content:flex-end}.content[_ngcontent-%COMP%]{flex:1 0 auto;width:calc(100% - 64px);margin:4rem auto auto 56px;padding-left:8px;overflow-x:hidden}"]});let i=e;return i})();var XO=(()=>{let e=class e extends Ma{constructor(){super(),this.itemsPerPageLabel=django.gettext("Items per page")}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();var JO=(()=>{let e=class e{constructor(){this.field={},this.changed=new T}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=E({type:e,selectors:[["uds-field-text"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:7,consts:[["matInput","","type","text",3,"ngModelChange","change","ngModel","placeholder","required","disabled","maxlength","autocomplete"]],template:function(n,o){n&1&&(c(0,"mat-form-field")(1,"mat-label"),g(2),d(),c(3,"input",0),H("ngModelChange",function(s){return $(o.field.value,s)||(o.field.value=s),s}),b("change",function(){return o.changed.emit(o)}),d()()),n&2&&(h(2),F(" ",o.field.gui.label," "),h(),U("ngModel",o.field.value),p("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0)("maxlength",o.field.gui.length||128)("autocomplete","new-"+o.field.name))},dependencies:[lt,xe,Fi,_s,Se,_e,Ae,ft],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]});let i=e;return i})();function QQ(i,e){if(i&1&&(c(0,"mat-option",3),g(1),d()),i&2){let r=e.$implicit;p("value",r),h(),F(" ",r," ")}}var eR=(()=>{let e=class e{constructor(){this.field={},this.changed=new T,this.values=[]}ngOnInit(){let t=this.field.gui.choices||[];this.field.value=this.field.value||this.field.gui.default||"",this.values=t.map(n=>n.text)}_filter(){let t=this.field.value.toLowerCase();return this.values.filter(n=>n.toLowerCase().includes(t))}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=E({type:e,selectors:[["uds-field-autocomplete"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:9,consts:[["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","text",3,"ngModelChange","change","ngModel","placeholder","required","disabled","maxlength","matAutocomplete","autocomplete"],[3,"value"]],template:function(n,o){if(n&1){let a=A();c(0,"mat-form-field")(1,"mat-label"),g(2),d(),c(3,"mat-autocomplete",null,0),x(5,QQ,2,2,"mat-option",1),d(),c(6,"input",2),H("ngModelChange",function(l){return y(a),$(o.field.value,l)||(o.field.value=l),w(l)}),b("change",function(){return y(a),w(o.changed.emit(o))}),d()()}if(n&2){let a=we(4);h(2),F(" ",o.field.gui.label," "),h(3),p("ngForOf",o._filter()),h(),U("ngModel",o.field.value),p("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0)("maxlength",o.field.gui.length||128)("matAutocomplete",a)("autocomplete","new-"+o.field.name)}},dependencies:[We,lt,xe,Fi,_s,Se,_e,Ae,ft,nt,Kl,Cs],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]});let i=e;return i})();var tR=(()=>{let e=class e{constructor(){this.field={},this.changed=new T}ngOnInit(){!this.field.value&&this.field.value!==0&&(this.field.value=this.field.gui.default||0)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=E({type:e,selectors:[["uds-field-numeric"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:5,consts:[["floatLabel","always"],["matInput","","type","number",3,"ngModelChange","change","ngModel","placeholder","required","disabled"]],template:function(n,o){n&1&&(c(0,"mat-form-field",0)(1,"mat-label"),g(2),d(),c(3,"input",1),H("ngModelChange",function(s){return $(o.field.value,s)||(o.field.value=s),s}),b("change",function(){return o.changed.emit(o)}),d()()),n&2&&(h(2),F(" ",o.field.gui.label," "),h(),U("ngModel",o.field.value),p("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0))},dependencies:[lt,$n,xe,Fi,Se,_e,Ae,ft]});let i=e;return i})();var iR=(()=>{let e=class e{constructor(){this.field={},this.changed=new T,this.passwordType="password"}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=E({type:e,selectors:[["uds-field-password"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:7,consts:[["floatLabel","always"],["matInput","","autocomplete","new-password",3,"ngModelChange","change","ngModel","placeholder","required","disabled","type"],["matSuffix","","mat-icon-button","",3,"click"],[1,"material-icons"]],template:function(n,o){n&1&&(c(0,"mat-form-field",0)(1,"mat-label"),g(2),d(),c(3,"input",1),H("ngModelChange",function(s){return $(o.field.value,s)||(o.field.value=s),s}),b("change",function(){return o.changed.emit(o)}),d(),c(4,"button",2),b("click",function(){return o.passwordType=o.passwordType==="text"?"password":"text"}),c(5,"i",3),g(6),d()()()),n&2&&(h(2),F(" ",o.field.gui.label," "),h(),U("ngModel",o.field.value),p("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0)("type",o.passwordType),h(3),$e(o.passwordType==="text"?"visibility_off":"visibility"))},dependencies:[lt,xe,Fi,Se,Qi,_e,Ae,uo,ft],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]});let i=e;return i})();var nR=(()=>{let e=class e{constructor(){this.field={}}ngOnInit(){(this.field.value===""||this.field.value===void 0)&&(this.field.value=this.field.gui.default||"")}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=E({type:e,selectors:[["uds-field-hidden"]],inputs:{field:"field"},decls:0,vars:0,template:function(n,o){}});let i=e;return i})();var oR=(()=>{let e=class e{constructor(){this.field={}}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=E({type:e,selectors:[["uds-field-textbox"]],inputs:{field:"field",value:"value"},decls:4,vars:7,consts:[["floatLabel","auto"],["matInput","",3,"ngModelChange","ngModel","placeholder","required","readonly","rows","maxlength"]],template:function(n,o){n&1&&(c(0,"mat-form-field",0)(1,"mat-label"),g(2),d(),c(3,"textarea",1),H("ngModelChange",function(s){return $(o.field.value,s)||(o.field.value=s),s}),d()()),n&2&&(h(2),F(" ",o.field.gui.label," "),h(),U("ngModel",o.field.value),p("placeholder",o.field.gui.tooltip)("required",!!o.field.gui.required)("readonly",o.field.gui.readonly===!0)("rows",o.field.gui.lines||3)("maxlength",o.field.gui.length||255))},dependencies:[lt,xe,Fi,_s,Se,_e,Ae,ft]});let i=e;return i})();function KQ(i,e){if(i&1&&(c(0,"mat-option",3),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),h(),F(" ",r.text," ")}}var rR=(()=>{let e=class e{constructor(){this.field={},this.changed=new T,this.placeholderLabel=django.gettext("Search"),this.noEntriesFoundLabel=django.gettext("No entries found"),this.filter=""}setValue(){let t=this.field.gui.choices||[];this.field.value=this.field.value||this.field.gui.default||"",t.length>0&&!t.find(n=>n.id===this.field.value)&&(this.field.value=""),this.field.value===""&&t.length>0&&(this.field.value=t[0].id)}ngOnInit(){this.setValue()}filteredValues(){let t=this.field.gui.choices||[];if(this.setValue(),!this.filter)return t;let n=this.filter.toLocaleLowerCase();return t.filter(o=>o.text.toLocaleLowerCase().includes(n))}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=E({type:e,selectors:[["uds-field-choice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:6,vars:9,consts:[[3,"ngModelChange","valueChange","ngModel","placeholder","required","disabled"],[3,"changed","options","placeholderLabel","noEntriesFoundLabel"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(n,o){n&1&&(c(0,"mat-form-field")(1,"mat-label"),g(2),d(),c(3,"mat-select",0),H("ngModelChange",function(s){return $(o.field.value,s)||(o.field.value=s),s}),b("valueChange",function(){return o.changed.emit(o)}),c(4,"uds-cond-select-search",1),b("changed",function(s){return o.filter=s}),d(),x(5,KQ,2,2,"mat-option",2),d()()),n&2&&(h(2),F(" ",o.field.gui.label," "),h(),U("ngModel",o.field.value),p("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),h(),p("options",o.field.gui.choices)("placeholderLabel",o.placeholderLabel)("noEntriesFoundLabel",o.noEntriesFoundLabel),h(),p("ngForOf",o.filteredValues()))},dependencies:[We,xe,Fi,Se,_e,Ae,bt,nt,hi]});let i=e;return i})();function ZQ(i,e){if(i&1&&(c(0,"mat-option",3),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),h(),F(" ",r.text," ")}}var aR=(()=>{let e=class e{constructor(){this.field={},this.changed=new T,this.filter="",this.placeholderLabel=django.gettext("Search"),this.noEntriesFoundLabel=django.gettext("No entries found")}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||new Array}filteredValues(){let t=this.field.gui.choices||[];if(!this.filter||t.length===0)return t;let n=this.filter.toLocaleLowerCase();return t.filter(o=>o.text.toLocaleLowerCase().includes(n))}selectTriggerString(){let t=this.field.value||[],n="";t.length===0&&(n=this.field.gui.tooltip||django.gettext("Select"));for(let o of t)n!==""&&(n+=", "),n+=this.field.gui.choices?.find(a=>a.id===o)?.text||o;return n}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=E({type:e,selectors:[["uds-field-multichoice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:8,vars:8,consts:[["multiple","",3,"ngModelChange","valueChange","ngModel","placeholder","required","disabled"],[3,"changed","options"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(n,o){n&1&&(c(0,"mat-form-field")(1,"mat-label"),g(2),d(),c(3,"mat-select",0),H("ngModelChange",function(s){return $(o.field.value,s)||(o.field.value=s),s}),b("valueChange",function(){return o.changed.emit(o)}),c(4,"mat-select-trigger"),g(5),d(),c(6,"uds-cond-select-search",1),b("changed",function(s){return o.filter=s}),d(),x(7,ZQ,2,2,"mat-option",2),d()()),n&2&&(h(2),F(" ",o.field.gui.label," "),h(),U("ngModel",o.field.value),p("placeholder",o.selectTriggerString())("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),h(2),F(" ",o.selectTriggerString()," "),h(),p("options",o.field.gui.choices),h(),p("ngForOf",o.filteredValues()))},dependencies:[We,xe,Fi,Se,_e,Ae,bt,vf,nt,hi]});let i=e;return i})();function XQ(i,e){if(i&1){let r=A();c(0,"div",12)(1,"div",13),g(2),d(),c(3,"div",14),g(4," \xA0"),c(5,"a",15),b("click",function(){let n=y(r).index,o=_();return w(o.removeElement(n))}),c(6,"i",16),g(7,"close"),d()()()()}if(i&2){let r=e.$implicit;h(2),F(" ",r," ")}}var sR=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.data=a,this.values=[],this.input="",this.done=new Jt,this.data.values.forEach(s=>this.values.push(s))}static launch(t,n,o){let a=window.innerWidth<800?"50%":"30%";return t.gui.dialog.open(e,{width:a,data:{title:n,values:o},disableClose:!0}).componentInstance.done}addElements(){this.input.split(",").forEach(t=>{this.values.push(t)}),this.input=""}checkKey(t){t.code==="Enter"&&this.addElements()}removeAll(){this.values.length=0}removeElement(t){this.values.splice(t,1)}save(){this.data.values.length=0,this.values.forEach(t=>this.data.values.push(t)),this.dialogRef.close(),this.done.resolve(this.data.values)}cancel(){this.dialogRef.close(),this.done.resolve(null)}ngOnInit(){}};e.\u0275fac=function(n){return new(n||e)(m(B),m(X),m(Ne),m(Ke))},e.\u0275cmp=E({type:e,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,"keyup","ngModelChange","ngModel"],["matSuffix","","mat-icon-button","",3,"click"],["matSuffix","",1,"material-icons"],["mat-raised-button","","color","primary",3,"click"],[1,"elem"],[1,"val"],[1,"remove"],[3,"click"],[1,"material-icons"]],template:function(n,o){n&1&&(c(0,"h4",0),g(1),d(),c(2,"mat-dialog-content")(3,"div",1)(4,"div",2),x(5,XQ,8,1,"div",3),d(),c(6,"div",4)(7,"button",5),b("click",function(){return o.removeAll()}),c(8,"uds-translate"),g(9,"Remove all"),d()()(),c(10,"div",6)(11,"mat-form-field",7)(12,"input",8),b("keyup",function(s){return o.checkKey(s)}),H("ngModelChange",function(s){return $(o.input,s)||(o.input=s),s}),d(),c(13,"button",9),b("click",function(){return o.addElements()}),c(14,"i",10),g(15,"add"),d()()()()()(),c(16,"mat-dialog-actions")(17,"button",5),b("click",function(){return o.cancel()}),c(18,"uds-translate"),g(19,"Cancel"),d()(),c(20,"button",11),b("click",function(){return o.save()}),c(21,"uds-translate"),g(22,"Ok"),d()()()),n&2&&(h(),F(" ",o.data.title,` +`))},dependencies:[Sn],styles:['.mat-calendar-body{min-width:224px}.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-outline-color, var(--mat-app-primary))}.mat-calendar-body-label{height:0;line-height:0;text-align:start;padding-left:4.7142857143%;padding-right:4.7142857143%;font-size:var(--mat-datepicker-calendar-body-label-text-size, var(--mat-app-title-small-size));font-weight:var(--mat-datepicker-calendar-body-label-text-weight, var(--mat-app-title-small-weight));color:var(--mat-datepicker-calendar-body-label-text-color, var(--mat-app-on-surface))}.mat-calendar-body-hidden-label{display:none}.mat-calendar-body-cell-container{position:relative;height:0;line-height:0}.mat-calendar-body-cell{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);position:absolute;top:0;left:0;width:100%;height:100%;background:none;text-align:center;outline:none;font-family:inherit;margin:0;font-family:var(--mat-datepicker-calendar-text-font, var(--mat-app-body-medium-font));font-size:var(--mat-datepicker-calendar-text-size, var(--mat-app-body-medium-size))}.mat-calendar-body-cell::-moz-focus-inner{border:0}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-cell-preview{content:"";position:absolute;top:5%;left:0;z-index:0;box-sizing:border-box;display:block;height:90%;width:100%}.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-start::after,.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,.mat-calendar-body-comparison-start::after,.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:5%;width:95%;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,[dir=rtl] .mat-calendar-body-comparison-start::after,[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:0;border-radius:0;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,.mat-calendar-body-comparison-end::after,.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,[dir=rtl] .mat-calendar-body-comparison-end::after,[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{left:5%;border-radius:0;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after{width:90%}.mat-calendar-body-in-preview{color:var(--mat-datepicker-calendar-date-preview-state-outline-color, var(--mat-app-primary))}.mat-calendar-body-in-preview .mat-calendar-body-cell-preview{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:0;border-right:dashed 1px}.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:0;border-left:dashed 1px}.mat-calendar-body-disabled{cursor:default}.mat-calendar-body-disabled>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:var(--mat-datepicker-calendar-date-disabled-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-disabled-state-outline-color)}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px;color:var(--mat-datepicker-calendar-date-text-color, var(--mat-app-on-surface));border-color:var(--mat-datepicker-calendar-date-outline-color)}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-focus-state-background-color)}@media(hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-hover-state-background-color)}}.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color, var(--mat-app-primary));color:var(--mat-datepicker-calendar-date-selected-state-text-color, var(--mat-app-on-primary))}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-disabled-state-background-color)}.mat-calendar-body-selected.mat-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color, var(--mat-app-primary))}.mat-calendar-body-in-range::before{background:var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-app-primary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-app-tertiary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-app-tertiary-container))}.mat-calendar-body-comparison-bridge-start::before,[dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-app-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-app-tertiary-container)) 50%)}.mat-calendar-body-comparison-bridge-end::before,[dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-app-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-app-tertiary-container)) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color, var(--mat-app-secondary-container))}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color, var(--mat-app-secondary))}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}'],encapsulation:2,changeDetection:0});let i=e;return i})();function xw(i){return i?.nodeName==="TD"}function Dw(i){let e;return xw(i)?e=i:xw(i.parentNode)?e=i.parentNode:xw(i.parentNode?.parentNode)&&(e=i.parentNode.parentNode),e?.getAttribute("data-mat-row")!=null?e:null}function Sw(i,e,r){return r!==null&&e!==r&&i=e&&i===r}function Iw(i,e,r,t){return t&&e!==null&&r!==null&&e!==r&&i>=e&&i<=r}function IA(i){let e=i.changedTouches[0];return document.elementFromPoint(e.clientX,e.clientY)}var fo=class{constructor(e,r){this.start=e,this.end=r}},Kd=(()=>{let e=class e{constructor(t,n){this.selection=t,this._adapter=n,this._selectionChanged=new G,this.selectionChanged=this._selectionChanged,this.selection=t}updateSelection(t,n){let o=this.selection;this.selection=t,this._selectionChanged.next({selection:t,source:n,oldValue:o})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(t){return this._adapter.isDateInstance(t)&&this._adapter.isValid(t)}};e.\u0275fac=function(n){ts()},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),j9=(()=>{let e=class e extends Kd{constructor(t){super(null,t)}add(t){super.updateSelection(t,this)}isValid(){return this.selection!=null&&this._isValidDateInstance(this.selection)}isComplete(){return this.selection!=null}clone(){let t=new e(this._adapter);return t.updateSelection(this.selection,this),t}};e.\u0275fac=function(n){return new(n||e)(M(Ri))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();function B9(i,e){return i||new j9(e)}var PA={provide:Kd,deps:[[new to,new Do,Kd],Ri],useFactory:B9};var FA=new R("MAT_DATE_RANGE_SELECTION_STRATEGY");var Mw=7,z9=0,MA=(()=>{let e=class e{get activeDate(){return this._activeDate}set activeDate(t){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._hasSameMonthAndYear(n,this._activeDate)||this._init()}get selected(){return this._selected}set selected(t){t instanceof fo?this._selected=t:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}constructor(t,n,o,a,s){this._changeDetectorRef=t,this._dateFormats=n,this._dateAdapter=o,this._dir=a,this._rangeStrategy=s,this._rerenderSubscription=ve.EMPTY,this.activeDrag=null,this.selectedChange=new T,this._userSelection=new T,this.dragStarted=new T,this.dragEnded=new T,this.activeDateChange=new T,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Rt(null)).subscribe(()=>this._init())}ngOnChanges(t){let n=t.comparisonStart||t.comparisonEnd;n&&!n.firstChange&&this._setRanges(this.selected),t.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(t){let n=t.value,o=this._getDateFromDayOfMonth(n),a,s;this._selected instanceof fo?(a=this._getDateInCurrentMonth(this._selected.start),s=this._getDateInCurrentMonth(this._selected.end)):a=s=this._getDateInCurrentMonth(this._selected),(a!==n||s!==n)&&this.selectedChange.emit(o),this._userSelection.emit({value:o,event:t.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(t){let n=t.value,o=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(t){let n=this._activeDate,o=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,o?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,o?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:this._selectionKeyPressed=!0,this._canSelect(this._activeDate)&&t.preventDefault();return;case 27:this._previewEnd!=null&&!Pt(t)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:t}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:t})),t.preventDefault(),t.stopPropagation());return;default:return}this._dateAdapter.compareDate(n,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),t.preventDefault()}_handleCalendarBodyKeyup(t){(t.keyCode===32||t.keyCode===13)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:t}),this._selectionKeyPressed=!1)}_init(){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();let t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(Mw+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%Mw,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(t){this._matCalendarBody._focusActiveCell(t)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:t,value:n}){if(this._rangeStrategy){let o=n?n.rawValue:null,a=this._rangeStrategy.createPreview(o,this.selected,t);if(this._previewStart=this._getCellCompareValue(a.start),this._previewEnd=this._getCellCompareValue(a.end),this.activeDrag&&o){let s=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,o,t);s&&(this._previewStart=this._getCellCompareValue(s.start),this._previewEnd=this._getCellCompareValue(s.end))}this._changeDetectorRef.detectChanges()}}_dragEnded(t){if(this.activeDrag)if(t.value){let n=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,t.value,t.event);this.dragEnded.emit({value:n??null,event:t.event})}else this.dragEnded.emit({value:null,event:t.event})}_getDateFromDayOfMonth(t){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),t)}_initWeekdays(){let t=this._dateAdapter.getFirstDayOfWeek(),n=this._dateAdapter.getDayOfWeekNames("narrow"),a=this._dateAdapter.getDayOfWeekNames("long").map((s,l)=>({long:s,narrow:n[l],id:z9++}));this._weekdays=a.slice(t).concat(a.slice(0,t))}_createWeekCells(){let t=this._dateAdapter.getNumDaysInMonth(this.activeDate),n=this._dateAdapter.getDateNames();this._weeks=[[]];for(let o=0,a=this._firstWeekOffset;o=0)&&(!this.maxDate||this._dateAdapter.compareDate(t,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(t))}_getDateInCurrentMonth(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null}_hasSameMonthAndYear(t,n){return!!(t&&n&&this._dateAdapter.getMonth(t)==this._dateAdapter.getMonth(n)&&this._dateAdapter.getYear(t)==this._dateAdapter.getYear(n))}_getCellCompareValue(t){if(t){let n=this._dateAdapter.getYear(t),o=this._dateAdapter.getMonth(t),a=this._dateAdapter.getDate(t);return new Date(n,o,a).getTime()}return null}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setRanges(t){t instanceof fo?(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)}_canSelect(t){return!this.dateFilter||this.dateFilter(t)}_clearPreview(){this._previewStart=this._previewEnd=null}};e.\u0275fac=function(n){return new(n||e)(m(he),m(ba,8),m(Ri,8),m(Nt,8),m(FA,8))},e.\u0275cmp=E({type:e,selectors:[["mat-month-view"]],viewQuery:function(n,o){if(n&1&&ce(Jl,5),n&2){let a;Q(a=K())&&(o._matCalendarBody=a.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],standalone:!0,features:[Qe,re],decls:8,vars:14,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col"],["aria-hidden","true"],["colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown","label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName"],[1,"cdk-visually-hidden"]],template:function(n,o){n&1&&(c(0,"table",0)(1,"thead",1)(2,"tr"),Sr(3,E9,5,2,"th",2,RA),d(),c(5,"tr",3),I(6,"th",4),d()(),c(7,"tbody",5),b("selectedValueChange",function(s){return o._dateSelected(s)})("activeDateChange",function(s){return o._updateActiveDate(s)})("previewChange",function(s){return o._previewChanged(s)})("dragStarted",function(s){return o.dragStarted.emit(s)})("dragEnded",function(s){return o._dragEnded(s)})("keyup",function(s){return o._handleCalendarBodyKeyup(s)})("keydown",function(s){return o._handleCalendarBodyKeydown(s)}),d()()),n&2&&(h(3),Er(o._weekdays),h(4),p("label",o._monthLabel)("rows",o._weeks)("todayValue",o._todayDate)("startValue",o._rangeStart)("endValue",o._rangeEnd)("comparisonStart",o._comparisonRangeStart)("comparisonEnd",o._comparisonRangeEnd)("previewStart",o._previewStart)("previewEnd",o._previewEnd)("isRange",o._isRange)("labelMinRequiredCells",3)("activeCell",o._dateAdapter.getDate(o.activeDate)-1)("startDateAccessibleName",o.startDateAccessibleName)("endDateAccessibleName",o.endDateAccessibleName))},dependencies:[Jl],encapsulation:2,changeDetection:0});let i=e;return i})(),Gn=24,Tw=4,TA=(()=>{let e=class e{get activeDate(){return this._activeDate}set activeDate(t){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),NA(this._dateAdapter,n,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(t){t instanceof fo?this._selected=t:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedYear(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}constructor(t,n,o){this._changeDetectorRef=t,this._dateAdapter=n,this._dir=o,this._rerenderSubscription=ve.EMPTY,this.selectedChange=new T,this.yearSelected=new T,this.activeDateChange=new T,this._dateAdapter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Rt(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());let n=this._dateAdapter.getYear(this._activeDate)-Yd(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let o=0,a=[];othis._createCellForYear(s))),a=[]);this._changeDetectorRef.markForCheck()}_yearSelected(t){let n=t.value,o=this._dateAdapter.createDate(n,0,1),a=this._getDateFromYear(n);this.yearSelected.emit(o),this.selectedChange.emit(a)}_updateActiveDate(t){let n=t.value,o=this._activeDate;this.activeDate=this._getDateFromYear(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(t){let n=this._activeDate,o=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,o?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,o?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Tw);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Tw);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Yd(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Gn-Yd(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-Gn*10:-Gn);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?Gn*10:Gn);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(n,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),t.preventDefault()}_handleCalendarBodyKeyup(t){(t.keyCode===32||t.keyCode===13)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:t}),this._selectionKeyPressed=!1)}_getActiveCell(){return Yd(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(t){let n=this._dateAdapter.getMonth(this.activeDate),o=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(t,n,1));return this._dateAdapter.createDate(t,n,Math.min(this._dateAdapter.getDate(this.activeDate),o))}_createCellForYear(t){let n=this._dateAdapter.createDate(t,0,1),o=this._dateAdapter.getYearName(n),a=this.dateClass?this.dateClass(n,"multi-year"):void 0;return new Qd(t,o,o,this._shouldEnableYear(t),a)}_shouldEnableYear(t){if(t==null||this.maxDate&&t>this._dateAdapter.getYear(this.maxDate)||this.minDate&&t{let e=class e{get activeDate(){return this._activeDate}set activeDate(t){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._dateAdapter.getYear(n)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(t){t instanceof fo?this._selected=t:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedMonth(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}constructor(t,n,o,a){this._changeDetectorRef=t,this._dateFormats=n,this._dateAdapter=o,this._dir=a,this._rerenderSubscription=ve.EMPTY,this.selectedChange=new T,this.monthSelected=new T,this.activeDateChange=new T,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Rt(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(t){let n=t.value,o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),n,1);this.monthSelected.emit(o);let a=this._getDateFromMonth(n);this.selectedChange.emit(a)}_updateActiveDate(t){let n=t.value,o=this._activeDate;this.activeDate=this._getDateFromMonth(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(t){let n=this._activeDate,o=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,o?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,o?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(n,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),t.preventDefault()}_handleCalendarBodyKeyup(t){(t.keyCode===32||t.keyCode===13)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:t}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let t=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(n=>n.map(o=>this._createCellForMonth(o,t[o]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(t){return t&&this._dateAdapter.getYear(t)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(t):null}_getDateFromMonth(t){let n=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),o=this._dateAdapter.getNumDaysInMonth(n);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,Math.min(this._dateAdapter.getDate(this.activeDate),o))}_createCellForMonth(t,n){let o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),a=this._dateAdapter.format(o,this._dateFormats.display.monthYearA11yLabel),s=this.dateClass?this.dateClass(o,"year"):void 0;return new Qd(t,n.toLocaleUpperCase(),a,this._shouldEnableMonth(t),s)}_shouldEnableMonth(t){let n=this._dateAdapter.getYear(this.activeDate);if(t==null||this._isYearAndMonthAfterMaxDate(n,t)||this._isYearAndMonthBeforeMinDate(n,t))return!1;if(!this.dateFilter)return!0;let o=this._dateAdapter.createDate(n,t,1);for(let a=o;this._dateAdapter.getMonth(a)==t;a=this._dateAdapter.addCalendarDays(a,1))if(this.dateFilter(a))return!0;return!1}_isYearAndMonthAfterMaxDate(t,n){if(this.maxDate){let o=this._dateAdapter.getYear(this.maxDate),a=this._dateAdapter.getMonth(this.maxDate);return t>o||t===o&&n>a}return!1}_isYearAndMonthBeforeMinDate(t,n){if(this.minDate){let o=this._dateAdapter.getYear(this.minDate),a=this._dateAdapter.getMonth(this.minDate);return t{let e=class e{constructor(t,n,o,a,s){this._intl=t,this.calendar=n,this._dateAdapter=o,this._dateFormats=a,this._id=`mat-calendar-header-${H9++}`,this._periodButtonLabelId=`${this._id}-period-label`,this.calendar.stateChanges.subscribe(()=>s.markForCheck())}get periodButtonText(){return this.calendar.currentView=="month"?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():this.calendar.currentView=="year"?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRange(...this._formatMinAndMaxYearLabels())}get periodButtonDescription(){return this.calendar.currentView=="month"?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():this.calendar.currentView=="year"?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRangeLabel(...this._formatMinAndMaxYearLabels())}get periodButtonLabel(){return this.calendar.currentView=="month"?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView=this.calendar.currentView=="month"?"multi-year":"month"}previousClicked(){this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?-1:-Gn)}nextClicked(){this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?1:Gn)}previousEnabled(){return this.calendar.minDate?!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate):!0}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(t,n){return this.calendar.currentView=="month"?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(n)&&this._dateAdapter.getMonth(t)==this._dateAdapter.getMonth(n):this.calendar.currentView=="year"?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(n):NA(this._dateAdapter,t,n,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let n=this._dateAdapter.getYear(this.calendar.activeDate)-Yd(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),o=n+Gn-1,a=this._dateAdapter.getYearName(this._dateAdapter.createDate(n,0,1)),s=this._dateAdapter.getYearName(this._dateAdapter.createDate(o,0,1));return[a,s]}};e.\u0275fac=function(n){return new(n||e)(m(Zd),m(Xt(()=>kw)),m(Ri,8),m(ba,8),m(he))},e.\u0275cmp=E({type:e,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],standalone:!0,features:[re],ngContentSelectors:I9,decls:17,vars:11,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["mat-button","","type","button",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"click","disabled"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"click","disabled"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"]],template:function(n,o){n&1&&(He(),c(0,"div",0)(1,"div",1)(2,"span",2),g(3),d(),c(4,"button",3),b("click",function(){return o.currentPeriodClicked()}),c(5,"span",4),g(6),d(),pi(),c(7,"svg",5),I(8,"polygon",6),d()(),yr(),I(9,"div",7),ae(10),c(11,"button",8),b("click",function(){return o.previousClicked()}),pi(),c(12,"svg",9),I(13,"path",10),d()(),yr(),c(14,"button",11),b("click",function(){return o.nextClicked()}),pi(),c(15,"svg",9),I(16,"path",12),d()()()()),n&2&&(h(2),p("id",o._periodButtonLabelId),h(),$e(o.periodButtonDescription),h(),ie("aria-label",o.periodButtonLabel)("aria-describedby",o._periodButtonLabelId),h(2),$e(o.periodButtonText),h(),ne("mat-calendar-invert",o.calendar.currentView!=="month"),h(4),p("disabled",!o.previousEnabled()),ie("aria-label",o.prevButtonLabel),h(3),p("disabled",!o.nextEnabled()),ie("aria-label",o.nextButtonLabel))},dependencies:[ke,Qi],encapsulation:2,changeDetection:0});let i=e;return i})(),kw=(()=>{let e=class e{get startAt(){return this._startAt}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get selected(){return this._selected}set selected(t){t instanceof fo?this._selected=t:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get activeDate(){return this._clampedActiveDate}set activeDate(t){this._clampedActiveDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(t){let n=this._currentView!==t?t:null;this._currentView=t,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),n&&this.viewChanged.emit(n)}constructor(t,n,o,a){this._dateAdapter=n,this._dateFormats=o,this._changeDetectorRef=a,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new T,this.yearSelected=new T,this.monthSelected=new T,this.viewChanged=new T(!0),this._userSelection=new T,this._userDragDrop=new T,this._activeDrag=null,this.stateChanges=new G,this._intlChanges=t.changes.subscribe(()=>{a.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new In(this.headerComponent||VA),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(t){let n=t.minDate&&!this._dateAdapter.sameDate(t.minDate.previousValue,t.minDate.currentValue)?t.minDate:void 0,o=t.maxDate&&!this._dateAdapter.sameDate(t.maxDate.previousValue,t.maxDate.currentValue)?t.maxDate:void 0,a=n||o||t.dateFilter;if(a&&!a.firstChange){let s=this._getCurrentViewComponent();s&&(this._moveFocusOnNextTick=!0,this._changeDetectorRef.detectChanges(),s._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(t){let n=t.value;(this.selected instanceof fo||n&&!this._dateAdapter.sameDate(n,this.selected))&&this.selectedChange.emit(n),this._userSelection.emit(t)}_yearSelectedInMultiYearView(t){this.yearSelected.emit(t)}_monthSelectedInYearView(t){this.monthSelected.emit(t)}_goToDateInView(t,n){this.activeDate=t,this.currentView=n}_dragStarted(t){this._activeDrag=t}_dragEnded(t){this._activeDrag&&(t.value&&this._userDragDrop.emit(t),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}};e.\u0275fac=function(n){return new(n||e)(m(Zd),m(Ri,8),m(ba,8),m(he))},e.\u0275cmp=E({type:e,selectors:[["mat-calendar"]],viewQuery:function(n,o){if(n&1&&(ce(MA,5),ce(kA,5),ce(TA,5)),n&2){let a;Q(a=K())&&(o.monthView=a.first),Q(a=K())&&(o.yearView=a.first),Q(a=K())&&(o.multiYearView=a.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],standalone:!0,features:[Ce([PA]),Qe,re],decls:5,vars:2,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","_userSelection","dragStarted","dragEnded","activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDateChange","monthSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","yearSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"]],template:function(n,o){if(n&1&&(x(0,M9,0,0,"ng-template",0),c(1,"div",1),x(2,T9,1,11,"mat-month-view",2)(3,k9,1,6,"mat-year-view",3)(4,A9,1,6,"mat-multi-year-view",3),d()),n&2){let a;p("cdkPortalOutlet",o._calendarHeaderPortal),h(2),De((a=o.currentView)==="month"?2:a==="year"?3:a==="multi-year"?4:-1)}},dependencies:[rn,up,MA,kA,TA],styles:['.mat-calendar{display:block;line-height:normal;font-family:var(--mat-datepicker-calendar-text-font, var(--mat-app-body-medium-font));font-size:var(--mat-datepicker-calendar-text-size, var(--mat-app-body-medium-size))}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size, var(--mat-app-title-small-size));font-weight:var(--mat-datepicker-calendar-period-button-text-weight, var(--mat-app-title-small-weight));--mdc-text-button-label-text-color:var(--mat-datepicker-calendar-period-button-text-color, var(--mat-app-on-surface-variant))}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color, var(--mat-app-on-surface-variant))}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-datepicker-content .mat-calendar-previous-button:not(.mat-mdc-button-disabled),.mat-datepicker-content .mat-calendar-next-button:not(.mat-mdc-button-disabled){color:var(--mat-datepicker-calendar-navigation-button-icon-color, var(--mat-app-on-surface-variant))}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color, var(--mat-app-on-surface-variant));font-size:var(--mat-datepicker-calendar-header-text-size, var(--mat-app-title-small-size));font-weight:var(--mat-datepicker-calendar-header-text-weight, var(--mat-app-title-small-weight))}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px;background:var(--mat-datepicker-calendar-header-divider-color)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let i=e;return i})(),AA={transformPanel:ui("transformPanel",[St("void => enter-dropdown",Mt("120ms cubic-bezier(0, 0, 0.2, 1)",wa([Me({opacity:0,transform:"scale(1, 0.8)"}),Me({opacity:1,transform:"scale(1, 1)"})]))),St("void => enter-dialog",Mt("150ms cubic-bezier(0, 0, 0.2, 1)",wa([Me({opacity:0,transform:"scale(0.7)"}),Me({transform:"none",opacity:1})]))),St("* => void",Mt("100ms linear",Me({opacity:0})))]),fadeInCalendar:ui("fadeInCalendar",[Lt("void",Me({opacity:0})),Lt("enter",Me({opacity:1})),St("void => *",Mt("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},$9=0,jA=new R("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let i=k(xt);return()=>i.scrollStrategies.reposition()}});function W9(i){return()=>i.scrollStrategies.reposition()}var G9={provide:jA,deps:[xt],useFactory:W9},BA=(()=>{let e=class e{constructor(t,n,o,a,s,l){this._elementRef=t,this._changeDetectorRef=n,this._globalModel=o,this._dateAdapter=a,this._rangeSelectionStrategy=s,this._subscriptions=new ve,this._animationDone=new G,this._isAnimating=!1,this._actionsPortal=null,this._closeButtonText=l.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(t){let n=this._model.selection,o=t.value,a=n instanceof fo;if(a&&this._rangeSelectionStrategy){let s=this._rangeSelectionStrategy.selectionFinished(o,n,t.event);this._model.updateSelection(s,this)}else o&&(a||!this._dateAdapter.sameDate(o,n))&&this._model.add(o);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(t){this._model.updateSelection(t.value,this)}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_handleAnimationEvent(t){this._isAnimating=t.phaseName==="start",this._isAnimating||this._animationDone.next()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(t,n){this._model=t?this._globalModel.clone():this._globalModel,this._actionsPortal=t,n&&this._changeDetectorRef.detectChanges()}};e.\u0275fac=function(n){return new(n||e)(m(q),m(he),m(Kd),m(Ri),m(FA,8),m(Zd))},e.\u0275cmp=E({type:e,selectors:[["mat-datepicker-content"]],viewQuery:function(n,o){if(n&1&&ce(kw,5),n&2){let a;Q(a=K())&&(o._calendar=a.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:5,hostBindings:function(n,o){n&1&&Fc("@transformPanel.start",function(s){return o._handleAnimationEvent(s)})("@transformPanel.done",function(s){return o._handleAnimationEvent(s)}),n&2&&(Pc("@transformPanel",o._animationState),Yt(o.color?"mat-"+o.color:""),ne("mat-datepicker-content-touch",o.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],standalone:!0,features:[re],decls:5,vars:27,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop","id","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(n,o){if(n&1&&(c(0,"div",0)(1,"mat-calendar",1),b("yearSelected",function(s){return o.datepicker._selectYear(s)})("monthSelected",function(s){return o.datepicker._selectMonth(s)})("viewChanged",function(s){return o.datepicker._viewChanged(s)})("_userSelection",function(s){return o._handleUserSelection(s)})("_userDragDrop",function(s){return o._handleUserDragDrop(s)}),d(),x(2,O9,0,0,"ng-template",2),c(3,"button",3),b("focus",function(){return o._closeButtonFocused=!0})("blur",function(){return o._closeButtonFocused=!1})("click",function(){return o.datepicker.close()}),g(4),d()()),n&2){let a;ne("mat-datepicker-content-container-with-custom-header",o.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",o._actionsPortal),ie("aria-modal",!0)("aria-labelledby",(a=o._dialogLabelId)!==null&&a!==void 0?a:void 0),h(),Yt(o.datepicker.panelClass),p("id",o.datepicker.id)("startAt",o.datepicker.startAt)("startView",o.datepicker.startView)("minDate",o.datepicker._getMinDate())("maxDate",o.datepicker._getMaxDate())("dateFilter",o.datepicker._getDateFilter())("headerComponent",o.datepicker.calendarHeaderComponent)("selected",o._getSelected())("dateClass",o.datepicker.dateClass)("comparisonStart",o.comparisonStart)("comparisonEnd",o.comparisonEnd)("@fadeInCalendar","enter")("startDateAccessibleName",o.startDateAccessibleName)("endDateAccessibleName",o.endDateAccessibleName),h(),p("cdkPortalOutlet",o._actionsPortal),h(),ne("cdk-visually-hidden",!o._closeButtonFocused),p("color",o.color||"primary"),h(),$e(o._closeButtonText)}},dependencies:[m1,kw,rn,ke],styles:[".mat-datepicker-content{display:block;border-radius:4px;background-color:var(--mat-datepicker-calendar-container-background-color, var(--mat-app-surface-container-high));color:var(--mat-datepicker-calendar-container-text-color, var(--mat-app-on-surface));box-shadow:var(--mat-datepicker-calendar-container-elevation-shadow);border-radius:var(--mat-datepicker-calendar-container-shape, var(--mat-app-corner-large))}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.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;box-shadow:var(--mat-datepicker-calendar-container-touch-elevation-shadow);border-radius:var(--mat-datepicker-calendar-container-touch-shape, var(--mat-app-corner-extra-large));position:relative;overflow:visible}.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}}"],encapsulation:2,data:{animation:[AA.transformPanel,AA.fadeInCalendar]},changeDetection:0});let i=e;return i})(),OA=(()=>{let e=class e{get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(t){this._color=t}get disabled(){return this._disabled===void 0&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(t){t!==this._disabled&&(this._disabled=t,this.stateChanges.next(void 0))}get panelClass(){return this._panelClass}set panelClass(t){this._panelClass=HM(t)}get opened(){return this._opened}set opened(t){t?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}constructor(t,n,o,a,s,l,u){this._overlay=t,this._viewContainerRef=o,this._dateAdapter=s,this._dir=l,this._model=u,this._inputStateChanges=ve.EMPTY,this._document=k(se),this.startView="month",this.touchUi=!1,this.xPosition="start",this.yPosition="below",this.restoreFocus=!0,this.yearSelected=new T,this.monthSelected=new T,this.viewChanged=new T(!0),this.openedStream=new T,this.closedStream=new T,this._opened=!1,this.id=`mat-datepicker-${$9++}`,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new G,this._injector=k(Pe),this._changeDetectorRef=k(he),this._dateAdapter,this._scrollStrategy=a,this._model.selectionChanged.subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnChanges(t){let n=t.xPosition||t.yPosition;if(n&&!n.firstChange&&this._overlayRef){let o=this._overlayRef.getConfig().positionStrategy;o instanceof bd&&(this._setConnectedPositions(o),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(t){this._model.add(t)}_selectYear(t){this.yearSelected.emit(t)}_selectMonth(t){this.monthSelected.emit(t)}_viewChanged(t){this.viewChanged.emit(t)}registerInput(t){return this.datepickerInput,this._inputStateChanges.unsubscribe(),this.datepickerInput=t,this._inputStateChanges=t.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(t){this._actionsPortal,this._actionsPortal=t,this._componentRef?.instance._assignActions(t,!0)}removeActions(t){t===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this.datepickerInput,this._focusedElementBeforeOpen=pa(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;let t=this.restoreFocus&&this._focusedElementBeforeOpen&&typeof this._focusedElementBeforeOpen.focus=="function",n=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){let{instance:o,location:a}=this._componentRef;o._startExitAnimation(),o._animationDone.pipe(Ot(1)).subscribe(()=>{let s=this._document.activeElement;t&&(!s||s===this._document.activeElement||a.nativeElement.contains(s))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}t?setTimeout(n):n()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(t){t.datepicker=this,t.color=this.color,t._dialogLabelId=this.datepickerInput.getOverlayLabelId(),t._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();let t=this.touchUi,n=new In(BA,this._viewContainerRef),o=this._overlayRef=this._overlay.create(new Mn({positionStrategy:t?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[t?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:t?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:`mat-datepicker-${t?"dialog":"popup"}`}));this._getCloseStream(o).subscribe(a=>{a&&a.preventDefault(),this.close()}),o.keydownEvents().subscribe(a=>{let s=a.keyCode;(s===38||s===40||s===37||s===39||s===33||s===34)&&a.preventDefault()}),this._componentRef=o.attach(n),this._forwardContentValues(this._componentRef.instance),t||ai(()=>{o.updatePosition()},{injector:this._injector})}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){let t=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(t)}_setConnectedPositions(t){let n=this.xPosition==="end"?"end":"start",o=n==="start"?"end":"start",a=this.yPosition==="above"?"bottom":"top",s=a==="top"?"bottom":"top";return t.withPositions([{originX:n,originY:s,overlayX:n,overlayY:a},{originX:n,originY:a,overlayX:n,overlayY:s},{originX:o,originY:s,overlayX:o,overlayY:a},{originX:o,originY:a,overlayX:o,overlayY:s}])}_getCloseStream(t){let n=["ctrlKey","shiftKey","metaKey"];return wt(t.backdropClick(),t.detachments(),t.keydownEvents().pipe(Ye(o=>o.keyCode===27&&!Pt(o)||this.datepickerInput&&Pt(o,"altKey")&&o.keyCode===38&&n.every(a=>!Pt(o,a)))))}};e.\u0275fac=function(n){return new(n||e)(m(xt),m(Z),m(Ct),m(jA),m(Ri,8),m(Nt,8),m(Kd))},e.\u0275dir=L({type:e,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",Y],disabled:[2,"disabled","disabled",Y],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",Y],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",Y]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[ge,Qe]});let i=e;return i})(),sg=(()=>{let e=class e extends OA{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=jt(e)))(o||e)}})(),e.\u0275cmp=E({type:e,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],standalone:!0,features:[Ce([PA,{provide:OA,useExisting:e}]),be,re],decls:0,vars:0,template:function(n,o){},encapsulation:2,changeDetection:0});let i=e;return i})(),Xl=class{constructor(e,r){this.target=e,this.targetElement=r,this.value=this.target.value}},q9=(()=>{let e=class e{get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(t){this._assignValueProgrammatically(t)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(t){let n=t,o=this._elementRef.nativeElement;this._disabled!==n&&(this._disabled=n,this.stateChanges.next(void 0)),n&&this._isInitialized&&o.blur&&o.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(t){this._model=t,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(n=>{if(this._shouldHandleChangeEvent(n)){let o=this._getValueFromModel(n.selection);this._lastValueValid=this._isValidValue(o),this._cvaOnChange(o),this._onTouched(),this._formatValue(o),this.dateInput.emit(new Xl(this,this._elementRef.nativeElement)),this.dateChange.emit(new Xl(this,this._elementRef.nativeElement))}})}constructor(t,n,o){this._elementRef=t,this._dateAdapter=n,this._dateFormats=o,this.dateChange=new T,this.dateInput=new T,this.stateChanges=new G,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=ve.EMPTY,this._localeSubscription=ve.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=a=>{let s=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(a.value));return!s||this._matchesFilter(s)?null:{matDatepickerFilter:!0}},this._minValidator=a=>{let s=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(a.value)),l=this._getMinDate();return!l||!s||this._dateAdapter.compareDate(l,s)<=0?null:{matDatepickerMin:{min:l,actual:s}}},this._maxValidator=a=>{let s=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(a.value)),l=this._getMaxDate();return!l||!s||this._dateAdapter.compareDate(l,s)>=0?null:{matDatepickerMax:{max:l,actual:s}}},this._lastValueValid=!1,this._localeSubscription=n.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(t){Y9(t,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(t){this._validatorOnChange=t}validate(t){return this._validator?this._validator(t):null}writeValue(t){this._assignValueProgrammatically(t)}registerOnChange(t){this._cvaOnChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_onKeydown(t){let n=["ctrlKey","shiftKey","metaKey"];Pt(t,"altKey")&&t.keyCode===40&&n.every(a=>!Pt(t,a))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),t.preventDefault())}_onInput(t){let n=this._lastValueValid,o=this._dateAdapter.parse(t,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(o),o=this._dateAdapter.getValidDateOrNull(o);let a=!this._dateAdapter.sameDate(o,this.value);!o||a?this._cvaOnChange(o):(t&&!this.value&&this._cvaOnChange(o),n!==this._lastValueValid&&this._validatorOnChange()),a&&(this._assignValue(o),this.dateInput.emit(new Xl(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Xl(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(t){this._elementRef.nativeElement.value=t!=null?this._dateAdapter.format(t,this._dateFormats.display.dateInput):""}_assignValue(t){this._model?(this._assignValueToModel(t),this._pendingValue=null):this._pendingValue=t}_isValidValue(t){return!t||this._dateAdapter.isValid(t)}_parentDisabled(){return!1}_assignValueProgrammatically(t){t=this._dateAdapter.deserialize(t),this._lastValueValid=this._isValidValue(t),t=this._dateAdapter.getValidDateOrNull(t),this._assignValue(t),this._formatValue(t)}_matchesFilter(t){let n=this._getDateFilter();return!n||n(t)}};e.\u0275fac=function(n){return new(n||e)(m(q),m(Ri,8),m(ba,8))},e.\u0275dir=L({type:e,inputs:{value:"value",disabled:[2,"disabled","disabled",Y]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},standalone:!0,features:[ge,Qe]});let i=e;return i})();function Y9(i,e){let r=Object.keys(i);for(let t of r){let{previousValue:n,currentValue:o}=i[t];if(e.isDateInstance(n)&&e.isDateInstance(o)){if(!e.sameDate(n,o))return!0}else return!0}return!1}var Q9={provide:vn,useExisting:Xt(()=>ec),multi:!0},K9={provide:co,useExisting:Xt(()=>ec),multi:!0},ec=(()=>{let e=class e extends q9{set matDatepicker(t){t&&(this._datepicker=t,this._ariaOwns.set(t.opened?t.id:null),this._closedSubscription=t.closedStream.subscribe(()=>{this._onTouched(),this._ariaOwns.set(null)}),this._openedSubscription=t.openedStream.subscribe(()=>{this._ariaOwns.set(t.id)}),this._registerModel(t.registerInput(this)))}get min(){return this._min}set min(t){let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(n,this._min)||(this._min=n,this._validatorOnChange())}get max(){return this._max}set max(t){let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(n,this._max)||(this._max=n,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(t){let n=this._matchesFilter(this.value);this._dateFilter=t,this._matchesFilter(this.value)!==n&&this._validatorOnChange()}constructor(t,n,o,a){super(t,n,o),this._formField=a,this._closedSubscription=ve.EMPTY,this._openedSubscription=ve.EMPTY,this._ariaOwns=Dr(null),this._validator=sr.compose(super._getValidators())}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe(),this._openedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(t){return t}_assignValueToModel(t){this._model&&this._model.updateSelection(t,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(t){return t.source!==this}};e.\u0275fac=function(n){return new(n||e)(m(q),m(Ri,8),m(ba,8),m(Ro,8))},e.\u0275dir=L({type:e,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(n,o){n&1&&b("input",function(s){return o._onInput(s.target.value)})("change",function(){return o._onChange()})("blur",function(){return o._onBlur()})("keydown",function(s){return o._onKeydown(s)}),n&2&&(Si("disabled",o.disabled),ie("aria-haspopup",o._datepicker?"dialog":null)("aria-owns",o._ariaOwns())("min",o.min?o._dateAdapter.toIso8601(o.min):null)("max",o.max?o._dateAdapter.toIso8601(o.max):null)("data-mat-calendar",o._datepicker?o._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:[0,"matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],standalone:!0,features:[Ce([Q9,K9,{provide:iw,useExisting:e}]),be]});let i=e;return i})(),Z9=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e,selectors:[["","matDatepickerToggleIcon",""]],standalone:!0});let i=e;return i})(),Xd=(()=>{let e=class e{get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(t){this._disabled=t}constructor(t,n,o){this._intl=t,this._changeDetectorRef=n,this._stateChanges=ve.EMPTY;let a=Number(o);this.tabIndex=a||a===0?a:null}ngOnChanges(t){t.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(t){this.datepicker&&!this.disabled&&(this.datepicker.open(),t.stopPropagation())}_watchStateChanges(){let t=this.datepicker?this.datepicker.stateChanges:oe(),n=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:oe(),o=this.datepicker?wt(this.datepicker.openedStream,this.datepicker.closedStream):oe();this._stateChanges.unsubscribe(),this._stateChanges=wt(this._intl.changes,t,n,o).subscribe(()=>this._changeDetectorRef.markForCheck())}};e.\u0275fac=function(n){return new(n||e)(m(Zd),m(he),vi("tabindex"))},e.\u0275cmp=E({type:e,selectors:[["mat-datepicker-toggle"]],contentQueries:function(n,o,a){if(n&1&&Be(a,Z9,5),n&2){let s;Q(s=K())&&(o._customIcon=s.first)}},viewQuery:function(n,o){if(n&1&&ce(R9,5),n&2){let a;Q(a=K())&&(o._button=a.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(n,o){n&1&&b("click",function(s){return o._open(s)}),n&2&&(ie("tabindex",null)("data-mat-calendar",o.datepicker?o.datepicker.id:null),ne("mat-datepicker-toggle-active",o.datepicker&&o.datepicker.opened)("mat-accent",o.datepicker&&o.datepicker.color==="accent")("mat-warn",o.datepicker&&o.datepicker.color==="warn"))},inputs:{datepicker:[0,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[0,"aria-label","ariaLabel"],disabled:[2,"disabled","disabled",Y],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],standalone:!0,features:[ge,Qe,re],ngContentSelectors:F9,decls:4,vars:6,consts:[["button",""],["mat-icon-button","","type","button",3,"disabled","disableRipple"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(n,o){n&1&&(He(P9),c(0,"button",1,0),x(2,N9,2,0,":svg:svg",2),ae(3),d()),n&2&&(p("disabled",o.disabled)("disableRipple",o.disableRipple),ie("aria-haspopup",o.datepicker?"dialog":null)("aria-label",o.ariaLabel||o._intl.openCalendarLabel)("tabindex",o.disabled?-1:o.tabIndex),h(2),De(o._customIcon?-1:2))},dependencies:[Qi],styles:[".mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color, var(--mat-app-on-surface-variant))}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color, var(--mat-app-on-surface-variant))}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0});let i=e;return i})();var zA=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({providers:[Zd,G9],imports:[Ei,ar,an,Ll,zn,pe,BA,Xd,VA,so]});let i=e;return i})();function X9(i,e){i&1&&(c(0,"uds-translate"),g(1,"Edit rule"),d())}function J9(i,e){i&1&&(c(0,"uds-translate"),g(1,"New rule"),d())}function eq(i,e){if(i&1&&(c(0,"mat-option",21),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),h(),F(" ",r.value," ")}}function tq(i,e){if(i&1&&(c(0,"mat-option",21),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),h(),F(" ",r.value," ")}}function iq(i,e){if(i&1&&(c(0,"mat-option",21),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),h(),F(" ",r.value," ")}}function nq(i,e){if(i&1){let r=A();c(0,"mat-form-field",11)(1,"mat-label")(2,"uds-translate"),g(3,"Week days"),d()(),c(4,"mat-select",22),H("ngModelChange",function(n){y(r);let o=_();return $(o.wDays,n)||(o.wDays=n),w(n)}),x(5,iq,2,2,"mat-option",10),d()()}if(i&2){let r=_();h(4),U("ngModel",r.wDays),h(),p("ngForOf",r.weekDays)}}function oq(i,e){if(i&1){let r=A();c(0,"mat-form-field",11)(1,"mat-label")(2,"uds-translate"),g(3,"Repeat every"),d()(),c(4,"input",8),H("ngModelChange",function(n){y(r);let o=_();return $(o.rule.interval,n)||(o.rule.interval=n),w(n)}),d(),c(5,"div",23),g(6),d()()}if(i&2){let r=_();h(4),U("ngModel",r.rule.interval),h(2),F("\xA0",r.frequency(),"")}}var lg={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")],NEVER:["","",django.gettext("Never")]},cg={MINUTES:django.gettext("Minutes"),HOURS:django.gettext("Hours"),DAYS:django.gettext("Days"),WEEKS:django.gettext("Weeks")},HA=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],$A=(i,e=!1)=>{let r=new Array;for(let t=0;t<7;t++)i&1&&r.push(HA[t].substr(0,e?100:3)),i>>=1;return r.length?r.join(", "):django.gettext("(no days)")},WA=i=>{i.frequency==="WEEKDAYS"?i.interval=$A(i.interval):i.interval=i.interval+" "+lg[i.frequency][django.pluralidx(i.interval)],i.duration=i.duration+" "+cg[i.duration_unit]},Ow=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.dunits=Object.keys(cg).map(s=>({id:s,value:cg[s]})),this.freqs=Object.keys(lg).map(s=>({id:s,value:lg[s][2]})),this.weekDays=HA.map((s,l)=>({id:1<{if(this.rule=t,this.startDate=new Date(this.rule.start*1e3),this.startTime=this.startDate.toTimeString().split(":").splice(0,2).join(":"),this.endDate=this.rule.end?new Date(this.rule.end*1e3):null,this.rule.frequency==="WEEKDAYS"){let n=[];for(let o=0;o<7;o++){let a=1<this.rule.interval+=n),this.rule.interval===0)?django.gettext("Week days"):null}summary(){let t=django.gettext("Invalid or incomplete rule. Please, fix field $FIELD"),n=hy(django.get_format("SHORT_DATE_FORMAT")),o=this.updateRuleData();if(o===null){t=django.gettext("This rule will be valid every"),this.rule.frequency==="WEEKDAYS"?t+=" "+$A(this.rule.interval,!0)+" "+django.gettext("of any week"):t+=" "+ +this.rule.interval+" "+this.frequency();let a=new Date(this.rule.start*1e3);t+=", "+django.gettext("from")+" "+Ca(n,a),this.rule.end?t+=" "+django.gettext("until")+" "+Ca(n,new Date(this.rule.end*1e3)):t+=" "+django.gettext("onwards"),t+=", "+django.gettext("starting at")+" "+a.toTimeString().split(":").slice(0,2).join(":"),+this.rule.duration>0?t+=" "+django.gettext("and every event will be active for")+" "+this.rule.duration+" "+cg[this.rule.duration_unit]:t+=django.gettext("with no duration")}return t.replace("$FIELD",o)}save(){this.rules.save(this.rule).then(()=>{this.dialogRef.close(),this.onSave.emit(!0)})}};e.\u0275fac=function(n){return new(n||e)(m(B),m(X),m(Ne),m(Ke))},e.\u0275cmp=E({type:e,selectors:[["uds-calendar-rule"]],decls:75,vars:25,consts:[["startDatePicker",""],["endDatePicker",""],["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","text",3,"ngModelChange","ngModel"],[1,"oneThird"],["matInput","","type","time",3,"ngModelChange","ngModel"],["matInput","","type","number",3,"ngModelChange","ngModel"],[3,"ngModelChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],[1,"oneHalf"],["matInput","",3,"ngModelChange","matDatepicker","ngModel"],["matSuffix","",3,"for"],["matInput","",3,"ngModelChange","matDatepicker","ngModel","placeholder"],[1,"weekdays"],[3,"ngModelChange","valueChange","ngModel"],["class","oneHalf",4,"ngIf"],[1,"info"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click","disabled"],[3,"value"],["multiple","",3,"ngModelChange","ngModel"],["matSuffix",""]],template:function(n,o){if(n&1){let a=A();c(0,"h4",2),x(1,X9,2,0,"uds-translate",3),_t(2,"notEmpty"),x(3,J9,2,0,"uds-translate",3),_t(4,"isEmpty"),d(),c(5,"mat-dialog-content")(6,"div",4)(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),g(10,"Name"),d()(),c(11,"input",5),H("ngModelChange",function(l){return y(a),$(o.rule.name,l)||(o.rule.name=l),w(l)}),d()(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),g(15,"Comments"),d()(),c(16,"input",5),H("ngModelChange",function(l){return y(a),$(o.rule.comments,l)||(o.rule.comments=l),w(l)}),d()(),c(17,"h3")(18,"uds-translate"),g(19,"Event"),d()(),c(20,"mat-form-field",6)(21,"mat-label")(22,"uds-translate"),g(23,"Start time"),d()(),c(24,"input",7),H("ngModelChange",function(l){return y(a),$(o.startTime,l)||(o.startTime=l),w(l)}),d()(),c(25,"mat-form-field",6)(26,"mat-label")(27,"uds-translate"),g(28,"Duration"),d()(),c(29,"input",8),H("ngModelChange",function(l){return y(a),$(o.rule.duration,l)||(o.rule.duration=l),w(l)}),d()(),c(30,"mat-form-field",6)(31,"mat-label")(32,"uds-translate"),g(33,"Duration units"),d()(),c(34,"mat-select",9),H("ngModelChange",function(l){return y(a),$(o.rule.duration_unit,l)||(o.rule.duration_unit=l),w(l)}),x(35,eq,2,2,"mat-option",10),d()(),c(36,"h3"),g(37," Repetition "),d(),c(38,"mat-form-field",11)(39,"mat-label")(40,"uds-translate"),g(41," Start date "),d()(),c(42,"input",12),H("ngModelChange",function(l){return y(a),$(o.startDate,l)||(o.startDate=l),w(l)}),d(),I(43,"mat-datepicker-toggle",13)(44,"mat-datepicker",null,0),d(),c(46,"mat-form-field",11)(47,"mat-label")(48,"uds-translate"),g(49," Repeat until date "),d()(),c(50,"input",14),H("ngModelChange",function(l){return y(a),$(o.endDate,l)||(o.endDate=l),w(l)}),d(),I(51,"mat-datepicker-toggle",13)(52,"mat-datepicker",null,1),d(),c(54,"div",15)(55,"mat-form-field",11)(56,"mat-label")(57,"uds-translate"),g(58,"Frequency"),d()(),c(59,"mat-select",16),H("ngModelChange",function(l){return y(a),$(o.rule.frequency,l)||(o.rule.frequency=l),w(l)}),b("valueChange",function(){return y(a),w(o.rule.interval=1)}),x(60,tq,2,2,"mat-option",10),d()(),x(61,nq,6,2,"mat-form-field",17)(62,oq,7,2,"mat-form-field",17),d(),c(63,"h3")(64,"uds-translate"),g(65,"Summary"),d()(),c(66,"div",18),g(67),d()()(),c(68,"mat-dialog-actions")(69,"button",19)(70,"uds-translate"),g(71,"Cancel"),d()(),c(72,"button",20),b("click",function(){return y(a),w(o.save())}),c(73,"uds-translate"),g(74,"Ok"),d()()()}if(n&2){let a=we(45),s=we(53);h(),p("ngIf",Dt(2,21,o.rule.id)),h(2),p("ngIf",Dt(4,23,o.rule.id)),h(8),U("ngModel",o.rule.name),h(5),U("ngModel",o.rule.comments),h(8),U("ngModel",o.startTime),h(5),U("ngModel",o.rule.duration),h(5),U("ngModel",o.rule.duration_unit),h(),p("ngForOf",o.dunits),h(7),p("matDatepicker",a),U("ngModel",o.startDate),h(),p("for",a),h(7),p("matDatepicker",s),U("ngModel",o.endDate),p("placeholder",o.FOREVER_STRING),h(),p("for",s),h(8),U("ngModel",o.rule.frequency),h(),p("ngForOf",o.freqs),h(),p("ngIf",o.rule.frequency==="WEEKDAYS"),h(),p("ngIf",o.rule.frequency!=="WEEKDAYS"&&o.rule.frequency!=="NEVER"),h(5),F(" ",o.summary()," "),h(5),p("disabled",o.updateRuleData()!==null||o.rule.name==="")}},dependencies:[We,me,lt,$n,xe,Se,ke,Qt,Je,tt,et,_e,Ae,uo,ft,bt,nt,sg,ec,Xd,le,nA,yi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]:not(.oneThird):not(.oneHalf){width:100%}.mat-mdc-form-field.oneThird[_ngcontent-%COMP%]{width:31%;margin-right:2%}.mat-mdc-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:#0009;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:0px 0px;white-space:nowrap}.mat-datepicker-toggle[_ngcontent-%COMP%]{color:#00f}.mat-button-toggle-checked[_ngcontent-%COMP%]{background-color:#23238580;color:#fff}"]});let i=e;return i})();var rq=i=>["/pools","calendars",i];function aq(i,e){i&1&&(c(0,"uds-translate"),g(1,"Rules"),d())}function sq(i,e){if(i&1){let r=A();c(0,"div",6)(1,"div",7)(2,"mat-tab-group",8)(3,"mat-tab"),x(4,aq,2,0,"ng-template",9),c(5,"div",10)(6,"uds-table",11),b("newAction",function(n){y(r);let o=_();return w(o.onNewRule(n))})("editAction",function(n){y(r);let o=_();return w(o.onEditRule(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteRule(n))}),d()()()()()()}if(i&2){let r=_();h(2),p("@.disabled",!0),h(4),p("rest",r.calendarRules)("multiSelect",!0)("allowExport",!0)("onItem",r.processElement)("tableId","calendars-d-rules"+r.calendar.id)("pageSize",r.api.config.admin.page_size)}}var GA=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o,this.calendarRules={}}ngOnInit(){let t=this.route.snapshot.paramMap.get("calendar");t&&this.rest.calendars.get(t).then(n=>{this.calendar=n,this.calendarRules=this.rest.calendars.detail(n.id,"rules")})}onNewRule(t){Ow.launch(this.api,this.calendarRules).subscribe(()=>t.table.overview())}onEditRule(t){Ow.launch(this.api,this.calendarRules,t.table.selection.selected[0]).subscribe(()=>t.table.overview())}onDeleteRule(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete calendar rule"))}processElement(t){WA(t)}};e.\u0275fac=function(n){return new(n||e)(m(Oe),m(X),m(B))},e.\u0275cmp=E({type:e,selectors:[["uds-calendars-detail"]],decls:10,vars:8,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,"newAction","editAction","deleteAction","rest","multiSelect","allowExport","onItem","tableId","pageSize"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),g(4,"arrow_back"),d()(),g(5," \xA0"),I(6,"img",4),g(7),d(),x(8,sq,7,7,"div",5),_t(9,"notEmpty"),d()),n&2&&(h(2),p("routerLink",Bi(6,rq,o.calendar?o.calendar.id:"")),h(4),p("src",o.api.staticURL("admin/img/icons/calendars.png"),Ie),h(),F(" ",o.calendar==null?null:o.calendar.name," "),h(),p("ngIf",Dt(9,4,o.calendar)))},dependencies:[me,bi,ei,ti,oi,le,Te,yi],styles:[".mat-column-start, .mat-column-end{max-width:9rem} .mat-column-frequency{max-width:9rem} .mat-column-interval, .mat-column-duration{max-width:11rem}"]});let i=e;return i})();var lq='event'+django.gettext("Set time mark")+"",Rw=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o,this.cButtons=[{id:"timemark",html:lq,type:ct.SINGLE_SELECT}]}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New account"))}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit account"))}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete account"))}onTimeMark(t){let n=t.table.selection.selected[0];this.api.gui.questionDialog(django.gettext("Time mark"),django.gettext("Set time mark for $NAME to current date/time?").replace("$NAME",n.name)).then(o=>{o&&this.rest.accounts.timemark(n.id).then(()=>{this.api.gui.snackbar.open(django.gettext("Time mark stablished"),django.gettext("dismiss"),{duration:2e3}),t.table.overview()})})}onDetail(t){this.api.navigation.gotoAccountDetail(t.param.id)}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("account"))}processElement(t){t.time_mark=t.time_mark===78793200?django.gettext("No time mark"):$i("SHORT_DATE_FORMAT",t.time_mark)}};e.\u0275fac=function(n){return new(n||e)(m(Oe),m(X),m(B))},e.\u0275cmp=E({type:e,selectors:[["uds-accounts"]],decls:1,vars:7,consts:[["icon","accounts",3,"customButtonAction","newAction","editAction","deleteAction","detailAction","loaded","rest","multiSelect","allowExport","hasPermissions","customButtons","pageSize","onItem"]],template:function(n,o){n&1&&(c(0,"uds-table",0),b("customButtonAction",function(s){return o.onTimeMark(s)})("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("detailAction",function(s){return o.onDetail(s)})("loaded",function(s){return o.onLoad(s)}),d()),n&2&&p("rest",o.rest.accounts)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)("onItem",o.processElement)},dependencies:[Te]});let i=e;return i})();var cq=i=>["/pools","accounts",i];function dq(i,e){i&1&&(c(0,"uds-translate"),g(1,"Account usage"),d())}function uq(i,e){if(i&1){let r=A();c(0,"div",6)(1,"div",7)(2,"mat-tab-group",8)(3,"mat-tab"),x(4,dq,2,0,"ng-template",9),c(5,"div",10)(6,"uds-table",11),b("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteUsage(n))}),d()()()()()()}if(i&2){let r=_();h(2),p("@.disabled",!0),h(4),p("rest",r.accountUsage)("multiSelect",!0)("allowExport",!0)("onItem",r.processElement)("tableId","account-d-usage"+r.account.id)}}var qA=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o,this.accountUsage={}}ngOnInit(){let t=this.route.snapshot.paramMap.get("account");t&&this.rest.accounts.get(t).then(n=>{this.account=n,this.accountUsage=this.rest.accounts.detail(n.id,"usage")})}onDeleteUsage(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete account usage"))}processElement(t){t.running=this.api.boolAsHumanString(t.running)}};e.\u0275fac=function(n){return new(n||e)(m(Oe),m(X),m(B))},e.\u0275cmp=E({type:e,selectors:[["uds-accounts-detail"]],decls:10,vars:8,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,"deleteAction","rest","multiSelect","allowExport","onItem","tableId"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),g(4,"arrow_back"),d()(),g(5," \xA0"),I(6,"img",4),g(7),d(),x(8,uq,7,6,"div",5),_t(9,"notEmpty"),d()),n&2&&(h(2),p("routerLink",Bi(6,cq,o.account?o.account.id:"")),h(4),p("src",o.api.staticURL("admin/img/icons/accounts.png"),Ie),h(),F(" ",o.account==null?null:o.account.name," "),h(),p("ngIf",Dt(9,4,o.account)))},dependencies:[me,bi,ei,ti,oi,le,Te,yi]});let i=e;return i})();function hq(i,e){i&1&&(c(0,"uds-translate"),g(1,"New image for"),d())}function mq(i,e){i&1&&(c(0,"uds-translate"),g(1,"Edit for"),d())}var Pw=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.onSave=new T(!0),this.preview="",this.image={id:void 0,data:"",name:""},a.image&&(this.image.id=a.image.id)}static launch(t,n=null){let o=window.innerWidth<800?"60%":"40%";return t.gui.dialog.open(e,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{image:n},disableClose:!0}).componentInstance.onSave}onFileChanged(t){let n=t.target;if(!n.files||n.files.length===0)return;let o=n.files[0];if(o.size>256*1024){this.api.gui.alert(django.gettext("Error"),django.gettext("Image is too big (max. upload size is 256Kb)"));return}if(!["image/jpeg","image/png","image/gif"].includes(o.type)){this.api.gui.alert(django.gettext("Error"),django.gettext("Invalid image type (only supports JPEG, PNG and GIF"));return}let a=new FileReader;a.onload=s=>{let l=a.result;this.preview=l,this.image.data=l.substr(l.indexOf("base64,")+7),this.image.name||(this.image.name=o.name)},a.readAsDataURL(o)}ngOnInit(){this.image.id&&this.rest.gallery.get(this.image.id).then(t=>{switch(this.image=t,this.image.data.substr(2)){case"iV":this.preview="data:image/png;base64,"+this.image.data;break;case"/9":this.preview="data:image/jpeg;base64,"+this.image.data;break;default:this.preview="data:image/gif;base64,"+this.image.data}})}background(){let t=this.api.config.image_size[0],n=this.api.config.image_size[1],o={"width.px":t,"height.px":n,"background-size":t+"px "+n+"px","background-image":"none"};return this.preview&&(o["background-image"]="url("+this.preview+")"),o}save(){if(!this.image.name||!this.image.data){this.api.gui.alert(django.gettext("Error"),django.gettext("Please, provide a name and a image"));return}this.rest.gallery.save(this.image).then(()=>{this.api.gui.snackbar.open(django.gettext("Successfully saved"),django.gettext("dismiss"),{duration:2e3}),this.dialogRef.close(),this.onSave.emit(!0)})}};e.\u0275fac=function(n){return new(n||e)(m(B),m(X),m(Ne),m(Ke))},e.\u0275cmp=E({type:e,selectors:[["uds-gallery-image"]],decls:32,vars:7,consts:[["fileInput",""],["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","text",3,"ngModelChange","ngModel"],["type","file",2,"display","none",3,"change"],["matInput","","type","text",3,"click","hidden"],[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(n,o){if(n&1){let a=A();c(0,"h4",1),x(1,hq,2,0,"uds-translate",2)(2,mq,2,0,"uds-translate",2),d(),c(3,"mat-dialog-content")(4,"div",3)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),g(8,"Image name"),d()(),c(9,"input",4),H("ngModelChange",function(l){return y(a),$(o.image.name,l)||(o.image.name=l),w(l)}),d()(),c(10,"input",5,0),b("change",function(l){return y(a),w(o.onFileChanged(l))}),d(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),g(15,"Image (click to change)"),d()(),c(16,"input",6),b("click",function(){y(a);let l=we(11);return w(l.click())}),d(),c(17,"div",7),b("click",function(){y(a);let l=we(11);return w(l.click())}),I(18,"div",8),d()(),c(19,"div",9)(20,"uds-translate"),g(21,' For optimal results, use "squared" images. '),d(),c(22,"uds-translate"),g(23," The image will be resized on upload to "),d(),g(24),d()()(),c(25,"mat-dialog-actions")(26,"button",10)(27,"uds-translate"),g(28,"Cancel"),d()(),c(29,"button",11),b("click",function(){return y(a),w(o.save())}),c(30,"uds-translate"),g(31,"Ok"),d()()()}n&2&&(h(),p("ngIf",!o.image.id),h(),p("ngIf",o.image.id),h(7),U("ngModel",o.image.name),h(7),p("hidden",!0),h(2),p("ngStyle",o.background()),h(6),Ir(" ",o.api.config.image_size[0],"x",o.api.config.image_size[1]," "))},dependencies:[me,SI,lt,xe,Se,ke,Qt,Je,tt,et,_e,Ae,ft,le],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}.preview[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;width:100%}.image-preview[_ngcontent-%COMP%]{background-color:#0000004d}"]});let i=e;return i})();var Fw=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o}ngOnInit(){}onNew(t){Pw.launch(this.api).subscribe(()=>t.table.overview())}onEdit(t){Pw.launch(this.api,t.table.selection.selected[0]).subscribe(()=>t.table.overview())}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete image"))}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("image"))}};e.\u0275fac=function(n){return new(n||e)(m(Oe),m(X),m(B))},e.\u0275cmp=E({type:e,selectors:[["uds-gallery"]],decls:1,vars:5,consts:[["icon","gallery",3,"newAction","editAction","deleteAction","loaded","rest","multiSelect","allowExport","hasPermissions","pageSize"]],template:function(n,o){n&1&&(c(0,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("loaded",function(s){return o.onLoad(s)}),d()),n&2&&p("rest",o.rest.gallery)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",o.api.config.admin.page_size)},dependencies:[Te],styles:[".mat-column-thumb{max-width:7rem;justify-content:center} .mat-column-name{max-width:32rem}"]});let i=e;return i})();var YA=su(Qf());var pq='assessment'+django.gettext("Generate report")+"",QA=(()=>{let e=class e{constructor(t,n){this.rest=t,this.api=n,this.customButtons=[{id:"genreport",html:pq,type:ct.SINGLE_SELECT}]}ngOnInit(){}generateReport(t){return W(this,null,function*(){let n=new Jt;this.api.gui.forms.typedForm(t,django.gettext("Generate report"),!1,[],void 0,t.table.selection.selected[0].id,{save:n});let o=yield n;this.api.gui.snackbar.open(django.gettext("Generating report..."));let a=yield this.rest.reports.save(o,t.table.selection.selected[0].id),s=a.encoded?window.atob(a.data):a.data,l=s.length,u=new Uint8Array(l);for(let v=0;v{(0,YA.saveAs)(f,a.filename,{autoBom:!1})})})}};e.\u0275fac=function(n){return new(n||e)(m(X),m(B))},e.\u0275cmp=E({type:e,selectors:[["uds-reports"]],decls:1,vars:6,consts:[["icon","reports",3,"customButtonAction","rest","multiSelect","allowExport","hasPermissions","customButtons","pageSize"]],template:function(n,o){n&1&&(c(0,"uds-table",0),b("customButtonAction",function(s){return o.generateReport(s)}),d()),n&2&&p("rest",o.rest.reports)("multiSelect",!1)("allowExport",!1)("hasPermissions",!1)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)},dependencies:[Te],styles:[".mat-column-group{max-width:16rem} .mat-column-name{max-width:32rem}"]});let i=e;return i})();var KA=(()=>{let e=class e{constructor(t,n){this.api=t,this.rest=n}ngOnInit(){}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New Notifier"),!1)}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit Notifier"),!1)}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"))}};e.\u0275fac=function(n){return new(n||e)(m(B),m(X))},e.\u0275cmp=E({type:e,selectors:[["uds-notifiers"]],decls:2,vars:4,consts:[["icon","accounts",3,"newAction","editAction","deleteAction","rest","multiSelect","allowExport","pageSize"]],template:function(n,o){n&1&&(c(0,"div")(1,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)}),d()()),n&2&&(h(),p("rest",o.rest.notifiers)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Te]});let i=e;return i})();function fq(i,e){if(i&1&&g(0),i&2){let r=_().$implicit;F(" ",r," ")}}function gq(i,e){if(i&1){let r=A();c(0,"div")(1,"mat-form-field")(2,"mat-label"),g(3),d(),c(4,"input",18),H("ngModelChange",function(n){y(r);let o=_(2).$implicit,a=_().$implicit,s=_(2);return $(s.config[a][o].value,n)||(s.config[a][o].value=n),w(n)}),d()()()}if(i&2){let r=_(2).$implicit,t=_().$implicit,n=_(2);h(3),$e(r),h(),p("type",n.config[t][r].crypt?"password":"text"),U("ngModel",n.config[t][r].value),p("matTooltip",n.config[t][r].help)}}function _q(i,e){if(i&1){let r=A();c(0,"div")(1,"mat-form-field")(2,"mat-label"),g(3),d(),c(4,"textarea",19),H("ngModelChange",function(n){y(r);let o=_(2).$implicit,a=_().$implicit,s=_(2);return $(s.config[a][o].value,n)||(s.config[a][o].value=n),w(n)}),d()()()}if(i&2){let r=_(2).$implicit,t=_().$implicit,n=_(2);h(3),$e(r),h(),U("ngModel",n.config[t][r].value),p("matTooltip",n.config[t][r].help)}}function vq(i,e){if(i&1){let r=A();c(0,"div")(1,"mat-form-field")(2,"mat-label"),g(3),d(),c(4,"input",20),H("ngModelChange",function(n){y(r);let o=_(2).$implicit,a=_().$implicit,s=_(2);return $(s.config[a][o].value,n)||(s.config[a][o].value=n),w(n)}),d()()()}if(i&2){let r=_(2).$implicit,t=_().$implicit,n=_(2);h(3),$e(r),h(),U("ngModel",n.config[t][r].value),p("matTooltip",n.config[t][r].help)}}function bq(i,e){if(i&1){let r=A();c(0,"div")(1,"div",21)(2,"mat-slide-toggle",22),H("ngModelChange",function(n){y(r);let o=_(2).$implicit,a=_().$implicit,s=_(2);return $(s.config[a][o].value,n)||(s.config[a][o].value=n),w(n)}),g(3),d()()()}if(i&2){let r=_(2).$implicit,t=_().$implicit,n=_(2);h(2),U("ngModel",n.config[t][r].value),p("matTooltip",n.config[t][r].help),h(),F(" ",r," ")}}function yq(i,e){if(i&1&&(c(0,"mat-option",24),g(1),d()),i&2){let r=e.$implicit;p("value",r),h(),F(" ",r," ")}}function wq(i,e){if(i&1){let r=A();c(0,"div")(1,"mat-form-field")(2,"mat-label"),g(3),d(),c(4,"mat-select",22),H("ngModelChange",function(n){y(r);let o=_(2).$implicit,a=_().$implicit,s=_(2);return $(s.config[a][o].value,n)||(s.config[a][o].value=n),w(n)}),x(5,yq,2,2,"mat-option",23),d()()()}if(i&2){let r=_(2).$implicit,t=_().$implicit,n=_(2);h(3),F(" ",r," "),h(),U("ngModel",n.config[t][r].value),p("matTooltip",n.config[t][r].help),h(),p("ngForOf",n.config[t][r].params)}}function Cq(i,e){if(i&1){let r=A();c(0,"div")(1,"mat-form-field")(2,"mat-label"),g(3),d(),c(4,"input",25),H("ngModelChange",function(n){y(r);let o=_(2).$implicit,a=_().$implicit,s=_(2);return $(s.config[a][o].value,n)||(s.config[a][o].value=n),w(n)}),d()()()}if(i&2){let r=_(2).$implicit,t=_().$implicit,n=_(2);h(3),$e(r),h(),U("ngModel",n.config[t][r].value),p("matTooltip",n.config[t][r].help)}}function xq(i,e){i&1&&Ci(0)}function Dq(i,e){if(i&1){let r=A();c(0,"div")(1,"mat-form-field")(2,"mat-label"),g(3),d(),c(4,"input",26),H("ngModelChange",function(n){y(r);let o=_(2).$implicit,a=_().$implicit,s=_(2);return $(s.config[a][o].value,n)||(s.config[a][o].value=n),w(n)}),d()()()}if(i&2){let r=_(2).$implicit,t=_().$implicit,n=_(2);h(3),$e(r),h(),U("ngModel",n.config[t][r].value),p("matTooltip",n.config[t][r].help)}}function Sq(i,e){if(i&1){let r=A();c(0,"div")(1,"mat-form-field")(2,"mat-label"),g(3),d(),c(4,"input",27),H("ngModelChange",function(n){y(r);let o=_(2).$implicit,a=_().$implicit,s=_(2);return $(s.config[a][o].value,n)||(s.config[a][o].value=n),w(n)}),d()()()}if(i&2){let r=_(2).$implicit,t=_().$implicit,n=_(2);h(3),$e(r),h(),U("ngModel",n.config[t][r].value),p("matTooltip",n.config[t][r].help)}}function Eq(i,e){if(i&1&&(mt(0,15),x(1,gq,5,4,"div",16)(2,_q,5,3,"div",16)(3,vq,5,3,"div",16)(4,bq,4,3,"div",16)(5,wq,6,4,"div",16)(6,Cq,5,3,"div",16)(7,xq,1,0,"ng-container",16)(8,Dq,5,3,"div",16)(9,Sq,5,3,"div",17),pt()),i&2){let r=_().$implicit,t=_().$implicit,n=_(2);p("ngSwitch",n.config[t][r].type),h(),p("ngSwitchCase",0),h(),p("ngSwitchCase",1),h(),p("ngSwitchCase",2),h(),p("ngSwitchCase",3),h(),p("ngSwitchCase",4),h(),p("ngSwitchCase",5),h(),p("ngSwitchCase",6),h(),p("ngSwitchCase",7)}}function Iq(i,e){if(i&1&&(c(0,"div",13),x(1,Eq,10,9,"ng-container",14),d()),i&2){let r=e.$implicit,t=_().$implicit,n=_(2);h(),p("ngIf",n.config[t][r])}}function Mq(i,e){if(i&1&&(c(0,"mat-tab"),x(1,fq,1,1,"ng-template",10),c(2,"div",11),x(3,Iq,2,1,"div",12),d()()),i&2){let r=e.$implicit,t=_(2);h(3),p("ngForOf",t.configElements(r))}}function Tq(i,e){if(i&1){let r=A();c(0,"div",4)(1,"div",5)(2,"mat-tab-group",6),x(3,Mq,4,1,"mat-tab",7),d(),c(4,"div",8)(5,"button",9),b("click",function(){y(r);let n=_();return w(n.save())}),c(6,"uds-translate"),g(7,"Save"),d()()()()()}if(i&2){let r=_();h(2),p("@.disabled",!0),h(),p("ngForOf",r.sections())}}var ZA=["UDS","Security"],XA=["UDS ID"],JA=(()=>{let e=class e{constructor(t,n){this.rest=t,this.api=n}ngOnInit(){this.rest.configuration.overview().then(t=>{this.config=t;for(let n in this.config)if(this.config.hasOwnProperty(n)){for(let o in this.config[n])if(this.config[n].hasOwnProperty(o)){let a=this.config[n][o];a.type===7?a.value='\u20ACfa{}#42123~#||23|\xDF\xF0\u0111\xE6"':a.type===3&&(a.value=!!["1",1,!0].includes(a.value)),a.original_value=a.value}}})}sections(){let t=[];for(let n in this.config)this.config.hasOwnProperty(n)&&!ZA.includes(n)&&t.push(n);return t=t.sort((n,o)=>n.localeCompare(o)),t.unshift.apply(t,ZA),t}configElements(t){let n=[],o=this.config[t];if(o)for(let a in o)o.hasOwnProperty(a)&&!(t==="UDS"&&XA.includes(a))&&n.push(a);return n=n.sort((a,s)=>a.localeCompare(s)),t==="UDS"&&n.unshift.apply(n,XA),n}save(){let t={};for(let n in this.config)if(this.config.hasOwnProperty(n)){for(let o in this.config[n])if(this.config[n].hasOwnProperty(o)){let a=this.config[n][o];if(a.original_value!==a.value){a.original_value=a.value,t[n]||(t[n]={});let s=a.value;a.type===3&&(s=["1",1,!0].includes(a.value)?"1":"0"),t[n][o]={value:s}}}}this.rest.configuration.save(t).then(()=>{this.api.gui.snackbar.open(django.gettext("Configuration saved"),django.gettext("dismiss"),{duration:2e3})})}};e.\u0275fac=function(n){return new(n||e)(m(X),m(B))},e.\u0275cmp=E({type:e,selectors:[["uds-configuration"]],decls:8,vars:4,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],[4,"ngFor","ngForOf"],[1,"config-footer"],["mat-raised-button","","color","primary",3,"click"],["mat-tab-label",""],[1,"content"],["class","field",4,"ngFor","ngForOf"],[1,"field"],[3,"ngSwitch",4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["matInput","",3,"ngModelChange","type","ngModel","matTooltip"],["matInput","",3,"ngModelChange","ngModel","matTooltip"],["matInput","","type","number",3,"ngModelChange","ngModel","matTooltip"],[1,"toggle"],[3,"ngModelChange","ngModel","matTooltip"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["matInput","","type","text","readonly","readonly",3,"ngModelChange","ngModel","matTooltip"],["matInput","","type","password",3,"ngModelChange","ngModel","matTooltip"],["matInput","","type","text",3,"ngModelChange","ngModel","matTooltip"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1),I(2,"img",2),g(3,"\xA0"),c(4,"uds-translate"),g(5,"UDS Configuration"),d()(),x(6,Tq,8,2,"div",3),_t(7,"notEmpty"),d()),n&2&&(h(2),p("src",o.api.staticURL("admin/img/icons/configuration.png"),Ie),h(4),p("ngIf",Dt(7,2,o.config)))},dependencies:[We,me,ul,bm,DI,lt,$n,xe,Se,ke,lr,_e,Ae,ft,bt,nt,ei,ti,oi,cr,le,yi],styles:[".content[_ngcontent-%COMP%]{margin-top:2rem}.field[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%}.field[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:50%}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}input[readonly][_ngcontent-%COMP%]{background-color:#e0e0e0}.slider-label[_ngcontent-%COMP%]{color:#0009;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:0px 0px;white-space:nowrap}.config-footer[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%;margin-top:2rem;margin-bottom:2rem}"]});let i=e;return i})();var eO=(()=>{let e=class e{constructor(t,n,o){this.api=t,this.route=n,this.rest=o}ngOnInit(){}onDelete(t){return W(this,null,function*(){yield this.api.gui.forms.deleteForm(t,django.gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"))})}};e.\u0275fac=function(n){return new(n||e)(m(B),m(Oe),m(X))},e.\u0275cmp=E({type:e,selectors:[["uds-actor-tokens"]],decls:2,vars:4,consts:[["icon","accounts",3,"deleteAction","rest","multiSelect","allowExport","pageSize"]],template:function(n,o){n&1&&(c(0,"div")(1,"uds-table",0),b("deleteAction",function(s){return o.onDelete(s)}),d()()),n&2&&(h(),p("rest",o.rest.actorToken)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Te]});let i=e;return i})();var tO=(()=>{let e=class e{constructor(t,n,o){this.api=t,this.route=n,this.rest=o}ngOnInit(){}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete servers token - USE WITH EXTREME CAUTION!!!"))}};e.\u0275fac=function(n){return new(n||e)(m(B),m(Oe),m(X))},e.\u0275cmp=E({type:e,selectors:[["uds-servers-tokens"]],decls:2,vars:4,consts:[["icon","proxy",3,"deleteAction","rest","multiSelect","allowExport","pageSize"]],template:function(n,o){n&1&&(c(0,"div")(1,"uds-table",0),b("deleteAction",function(s){return o.onDelete(s)}),d()()),n&2&&(h(),p("rest",o.rest.serversTokens)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Te]});let i=e;return i})();var kq=[{path:"",canActivate:[HT],children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:qT},{path:"services/providers",component:nw},{path:"services/providers/:provider/detail",component:ow},{path:"services/providers/:provider",component:nw},{path:"services/providers/:provider/detail/:service",component:ow},{path:"services/servers",component:rw},{path:"services/servers/:server/detail",component:cA},{path:"services/servers/:server",component:rw},{path:"authenticators",component:aw},{path:"authenticators/:authenticator/detail",component:Jf},{path:"authenticators/:authenticator",component:aw},{path:"authenticators/:authenticator/detail/groups/:group",component:Jf},{path:"authenticators/:authenticator/detail/users/:user",component:Jf},{path:"mfas",component:sw},{path:"mfas/:mfa",component:sw},{path:"osmanagers",component:hw},{path:"osmanagers/:osmanager",component:hw},{path:"connectivity/transports",component:mw},{path:"connectivity/transports/:transport",component:mw},{path:"connectivity/networks",component:pw},{path:"connectivity/networks/:network",component:pw},{path:"connectivity/tunnels",component:fw},{path:"connectivity/tunnels/:tunnel",component:fw},{path:"connectivity/tunnels/:tunnel/detail",component:_A},{path:"pools/service-pools",component:gw},{path:"pools/service-pools/:pool",component:gw},{path:"pools/service-pools/:pool/detail",component:rg},{path:"pools/meta-pools",component:bw},{path:"pools/meta-pools/:metapool",component:bw},{path:"pools/meta-pools/:metapool/detail",component:SA},{path:"pools/pool-groups",component:ww},{path:"pools/pool-groups/:poolgroup",component:ww},{path:"pools/calendars",component:Cw},{path:"pools/calendars/:calendar",component:Cw},{path:"pools/calendars/:calendar/detail",component:GA},{path:"pools/accounts",component:Rw},{path:"pools/accounts/:account",component:Rw},{path:"pools/accounts/:account/detail",component:qA},{path:"tools/gallery",component:Fw},{path:"tools/gallery/:image",component:Fw},{path:"tools/reports",component:QA},{path:"tools/notifiers",component:KA},{path:"tools/tokens/actor",component:eO},{path:"tools/tokens/server",component:tO},{path:"tools/configuration",component:JA}]}],iO=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({imports:[F0.forRoot(kq,{}),F0]});let i=e;return i})();function nO(i){return new J(3e3,!1)}function Aq(){return new J(3100,!1)}function Oq(){return new J(3101,!1)}function Rq(i){return new J(3001,!1)}function Pq(i){return new J(3003,!1)}function Fq(i){return new J(3004,!1)}function Nq(i,e){return new J(3005,!1)}function Lq(){return new J(3006,!1)}function Vq(){return new J(3007,!1)}function jq(i,e){return new J(3008,!1)}function Bq(i){return new J(3002,!1)}function zq(i,e,r,t,n){return new J(3010,!1)}function Uq(){return new J(3011,!1)}function Hq(){return new J(3012,!1)}function $q(){return new J(3200,!1)}function Wq(){return new J(3202,!1)}function Gq(){return new J(3013,!1)}function qq(i){return new J(3014,!1)}function Yq(i){return new J(3015,!1)}function Qq(i){return new J(3016,!1)}function Kq(i,e){return new J(3404,!1)}function Zq(i){return new J(3502,!1)}function Xq(i){return new J(3503,!1)}function Jq(){return new J(3300,!1)}function eY(i){return new J(3504,!1)}function tY(i){return new J(3301,!1)}function iY(i,e){return new J(3302,!1)}function nY(i){return new J(3303,!1)}function oY(i,e){return new J(3400,!1)}function rY(i){return new J(3401,!1)}function aY(i){return new J(3402,!1)}function sY(i,e){return new J(3505,!1)}function Oa(i){switch(i.length){case 0:return new ya;case 1:return i[0];default:return new Ad(i)}}function _O(i,e,r=new Map,t=new Map){let n=[],o=[],a=-1,s=null;if(e.forEach(l=>{let u=l.get("offset"),f=u==a,v=f&&s||new Map;l.forEach((C,D)=>{let S=D,P=C;if(D!=="offset")switch(S=i.normalizePropertyName(S,n),P){case yp:P=r.get(D);break;case or:P=t.get(D);break;default:P=i.normalizeStyleValue(D,S,P,n);break}v.set(S,P)}),f||o.push(v),s=v,a=u}),n.length)throw Zq(n);return o}function oC(i,e,r,t){switch(e){case"start":i.onStart(()=>t(r&&Nw(r,"start",i)));break;case"done":i.onDone(()=>t(r&&Nw(r,"done",i)));break;case"destroy":i.onDestroy(()=>t(r&&Nw(r,"destroy",i)));break}}function Nw(i,e,r){let t=r.totalTime,n=!!r.disabled,o=rC(i.element,i.triggerName,i.fromState,i.toState,e||i.phaseName,t??i.totalTime,n),a=i._data;return a!=null&&(o._data=a),o}function rC(i,e,r,t,n="",o=0,a){return{element:i,triggerName:e,fromState:r,toState:t,phaseName:n,totalTime:o,disabled:!!a}}function Yn(i,e,r){let t=i.get(e);return t||i.set(e,t=r),t}function oO(i){let e=i.indexOf(":"),r=i.substring(1,e),t=i.slice(e+1);return[r,t]}var lY=typeof document>"u"?null:document.documentElement;function aC(i){let e=i.parentNode||i.host||null;return e===lY?null:e}function cY(i){return i.substring(1,6)=="ebkit"}var xs=null,rO=!1;function dY(i){xs||(xs=uY()||{},rO=xs.style?"WebkitAppearance"in xs.style:!1);let e=!0;return xs.style&&!cY(i)&&(e=i in xs.style,!e&&rO&&(e="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in xs.style)),e}function uY(){return typeof document<"u"?document.body:null}function vO(i,e){for(;e;){if(e===i)return!0;e=aC(e)}return!1}function bO(i,e,r){if(r)return Array.from(i.querySelectorAll(e));let t=i.querySelector(e);return t?[t]:[]}var sC=(()=>{let e=class e{validateStyleProperty(t){return dY(t)}containsElement(t,n){return vO(t,n)}getParentElement(t){return aC(t)}query(t,n,o){return bO(t,n,o)}computeStyle(t,n,o){return o||""}animate(t,n,o,a,s,l=[],u){return new ya(o,a)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),uC=class uC{};uC.NOOP=new sC;var Es=uC,Is=class{};var hY=1e3,yO="{{",mY="}}",wO="ng-enter",Uw="ng-leave",dg="ng-trigger",fg=".ng-trigger",aO="ng-animating",Hw=".ng-animating";function Ur(i){if(typeof i=="number")return i;let e=i.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:$w(parseFloat(e[1]),e[2])}function $w(i,e){switch(e){case"s":return i*hY;default:return i}}function gg(i,e,r){return i.hasOwnProperty("duration")?i:pY(i,e,r)}function pY(i,e,r){let t=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,n,o=0,a="";if(typeof i=="string"){let s=i.match(t);if(s===null)return e.push(nO(i)),{duration:0,delay:0,easing:""};n=$w(parseFloat(s[1]),s[2]);let l=s[3];l!=null&&(o=$w(parseFloat(l),s[4]));let u=s[5];u&&(a=u)}else n=i;if(!r){let s=!1,l=e.length;n<0&&(e.push(Aq()),s=!0),o<0&&(e.push(Oq()),s=!0),s&&e.splice(l,0,nO(i))}return{duration:n,delay:o,easing:a}}function fY(i){return i.length?i[0]instanceof Map?i:i.map(e=>new Map(Object.entries(e))):[]}function dr(i,e,r){e.forEach((t,n)=>{let o=lC(n);r&&!r.has(n)&&r.set(n,i.style[o]),i.style[o]=t})}function Ss(i,e){e.forEach((r,t)=>{let n=lC(t);i.style[n]=""})}function Jd(i){return Array.isArray(i)?i.length==1?i[0]:M1(i):i}function gY(i,e,r){let t=e.params||{},n=CO(i);n.length&&n.forEach(o=>{t.hasOwnProperty(o)||r.push(Rq(o))})}var Ww=new RegExp(`${yO}\\s*(.+?)\\s*${mY}`,"g");function CO(i){let e=[];if(typeof i=="string"){let r;for(;r=Ww.exec(i);)e.push(r[1]);Ww.lastIndex=0}return e}function tu(i,e,r){let t=`${i}`,n=t.replace(Ww,(o,a)=>{let s=e[a];return s==null&&(r.push(Pq(a)),s=""),s.toString()});return n==t?i:n}var _Y=/-+([a-z0-9])/g;function lC(i){return i.replace(_Y,(...e)=>e[1].toUpperCase())}function vY(i,e){return i===0||e===0}function bY(i,e,r){if(r.size&&e.length){let t=e[0],n=[];if(r.forEach((o,a)=>{t.has(a)||n.push(a),t.set(a,o)}),n.length)for(let o=1;oa.set(s,cC(i,s)))}}return e}function qn(i,e,r){switch(e.type){case ot.Trigger:return i.visitTrigger(e,r);case ot.State:return i.visitState(e,r);case ot.Transition:return i.visitTransition(e,r);case ot.Sequence:return i.visitSequence(e,r);case ot.Group:return i.visitGroup(e,r);case ot.Animate:return i.visitAnimate(e,r);case ot.Keyframes:return i.visitKeyframes(e,r);case ot.Style:return i.visitStyle(e,r);case ot.Reference:return i.visitReference(e,r);case ot.AnimateChild:return i.visitAnimateChild(e,r);case ot.AnimateRef:return i.visitAnimateRef(e,r);case ot.Query:return i.visitQuery(e,r);case ot.Stagger:return i.visitStagger(e,r);default:throw Fq(e.type)}}function cC(i,e){return window.getComputedStyle(i)[e]}var yY=new Set(["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"]),_g=class extends Is{normalizePropertyName(e,r){return lC(e)}normalizeStyleValue(e,r,t,n){let o="",a=t.toString().trim();if(yY.has(r)&&t!==0&&t!=="0")if(typeof t=="number")o="px";else{let s=t.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&s[1].length==0&&n.push(Nq(e,t))}return a+o}};var vg="*";function wY(i,e){let r=[];return typeof i=="string"?i.split(/\s*,\s*/).forEach(t=>CY(t,r,e)):r.push(i),r}function CY(i,e,r){if(i[0]==":"){let l=xY(i,r);if(typeof l=="function"){e.push(l);return}i=l}let t=i.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(t==null||t.length<4)return r.push(Yq(i)),e;let n=t[1],o=t[2],a=t[3];e.push(sO(n,a));let s=n==vg&&a==vg;o[0]=="<"&&!s&&e.push(sO(a,n))}function xY(i,e){switch(i){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(r,t)=>parseFloat(t)>parseFloat(r);case":decrement":return(r,t)=>parseFloat(t) *"}}var ug=new Set(["true","1"]),hg=new Set(["false","0"]);function sO(i,e){let r=ug.has(i)||hg.has(i),t=ug.has(e)||hg.has(e);return(n,o)=>{let a=i==vg||i==n,s=e==vg||e==o;return!a&&r&&typeof n=="boolean"&&(a=n?ug.has(i):hg.has(i)),!s&&t&&typeof o=="boolean"&&(s=o?ug.has(e):hg.has(e)),a&&s}}var xO=":self",DY=new RegExp(`s*${xO}s*,?`,"g");function DO(i,e,r,t){return new Gw(i).build(e,r,t)}var lO="",Gw=class{constructor(e){this._driver=e}build(e,r,t){let n=new qw(r);return this._resetContextStyleTimingState(n),qn(this,Jd(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector=lO,e.collectedStyles=new Map,e.collectedStyles.set(lO,new Map),e.currentTime=0}visitTrigger(e,r){let t=r.queryCount=0,n=r.depCount=0,o=[],a=[];return e.name.charAt(0)=="@"&&r.errors.push(Lq()),e.definitions.forEach(s=>{if(this._resetContextStyleTimingState(r),s.type==ot.State){let l=s,u=l.name;u.toString().split(/\s*,\s*/).forEach(f=>{l.name=f,o.push(this.visitState(l,r))}),l.name=u}else if(s.type==ot.Transition){let l=this.visitTransition(s,r);t+=l.queryCount,n+=l.depCount,a.push(l)}else r.errors.push(Vq())}),{type:ot.Trigger,name:e.name,states:o,transitions:a,queryCount:t,depCount:n,options:null}}visitState(e,r){let t=this.visitStyle(e.styles,r),n=e.options&&e.options.params||null;if(t.containsDynamicStyles){let o=new Set,a=n||{};t.styles.forEach(s=>{s instanceof Map&&s.forEach(l=>{CO(l).forEach(u=>{a.hasOwnProperty(u)||o.add(u)})})}),o.size&&r.errors.push(jq(e.name,[...o.values()]))}return{type:ot.State,name:e.name,style:t,options:n?{params:n}:null}}visitTransition(e,r){r.queryCount=0,r.depCount=0;let t=qn(this,Jd(e.animation),r),n=wY(e.expr,r.errors);return{type:ot.Transition,matchers:n,animation:t,queryCount:r.queryCount,depCount:r.depCount,options:Ds(e.options)}}visitSequence(e,r){return{type:ot.Sequence,steps:e.steps.map(t=>qn(this,t,r)),options:Ds(e.options)}}visitGroup(e,r){let t=r.currentTime,n=0,o=e.steps.map(a=>{r.currentTime=t;let s=qn(this,a,r);return n=Math.max(n,r.currentTime),s});return r.currentTime=n,{type:ot.Group,steps:o,options:Ds(e.options)}}visitAnimate(e,r){let t=MY(e.timings,r.errors);r.currentAnimateTimings=t;let n,o=e.styles?e.styles:Me({});if(o.type==ot.Keyframes)n=this.visitKeyframes(o,r);else{let a=e.styles,s=!1;if(!a){s=!0;let u={};t.easing&&(u.easing=t.easing),a=Me(u)}r.currentTime+=t.duration+t.delay;let l=this.visitStyle(a,r);l.isEmptyStep=s,n=l}return r.currentAnimateTimings=null,{type:ot.Animate,timings:t,style:n,options:null}}visitStyle(e,r){let t=this._makeStyleAst(e,r);return this._validateStyleAst(t,r),t}_makeStyleAst(e,r){let t=[],n=Array.isArray(e.styles)?e.styles:[e.styles];for(let s of n)typeof s=="string"?s===or?t.push(s):r.errors.push(Bq(s)):t.push(new Map(Object.entries(s)));let o=!1,a=null;return t.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(a=s.get("easing"),s.delete("easing")),!o)){for(let l of s.values())if(l.toString().indexOf(yO)>=0){o=!0;break}}}),{type:ot.Style,styles:t,easing:a,offset:e.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(e,r){let t=r.currentAnimateTimings,n=r.currentTime,o=r.currentTime;t&&o>0&&(o-=t.duration+t.delay),e.styles.forEach(a=>{typeof a!="string"&&a.forEach((s,l)=>{let u=r.collectedStyles.get(r.currentQuerySelector),f=u.get(l),v=!0;f&&(o!=n&&o>=f.startTime&&n<=f.endTime&&(r.errors.push(zq(l,f.startTime,f.endTime,o,n)),v=!1),o=f.startTime),v&&u.set(l,{startTime:o,endTime:n}),r.options&&gY(s,r.options,r.errors)})})}visitKeyframes(e,r){let t={type:ot.Keyframes,styles:[],options:null};if(!r.currentAnimateTimings)return r.errors.push(Uq()),t;let n=1,o=0,a=[],s=!1,l=!1,u=0,f=e.steps.map(O=>{let de=this._makeStyleAst(O,r),ht=de.offset!=null?de.offset:IY(de.styles),it=0;return ht!=null&&(o++,it=de.offset=ht),l=l||it<0||it>1,s=s||it0&&o{let ht=C>0?de==D?1:C*de:a[de],it=ht*z;r.currentTime=S+P.delay+it,P.duration=it,this._validateStyleAst(O,r),O.offset=ht,t.styles.push(O)}),t}visitReference(e,r){return{type:ot.Reference,animation:qn(this,Jd(e.animation),r),options:Ds(e.options)}}visitAnimateChild(e,r){return r.depCount++,{type:ot.AnimateChild,options:Ds(e.options)}}visitAnimateRef(e,r){return{type:ot.AnimateRef,animation:this.visitReference(e.animation,r),options:Ds(e.options)}}visitQuery(e,r){let t=r.currentQuerySelector,n=e.options||{};r.queryCount++,r.currentQuery=e;let[o,a]=SY(e.selector);r.currentQuerySelector=t.length?t+" "+o:o,Yn(r.collectedStyles,r.currentQuerySelector,new Map);let s=qn(this,Jd(e.animation),r);return r.currentQuery=null,r.currentQuerySelector=t,{type:ot.Query,selector:o,limit:n.limit||0,optional:!!n.optional,includeSelf:a,animation:s,originalSelector:e.selector,options:Ds(e.options)}}visitStagger(e,r){r.currentQuery||r.errors.push(Gq());let t=e.timings==="full"?{duration:0,delay:0,easing:"full"}:gg(e.timings,r.errors,!0);return{type:ot.Stagger,animation:qn(this,Jd(e.animation),r),timings:t,options:null}}};function SY(i){let e=!!i.split(/\s*,\s*/).find(r=>r==xO);return e&&(i=i.replace(DY,"")),i=i.replace(/@\*/g,fg).replace(/@\w+/g,r=>fg+"-"+r.slice(1)).replace(/:animating/g,Hw),[i,e]}function EY(i){return i?j({},i):null}var qw=class{constructor(e){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=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function IY(i){if(typeof i=="string")return null;let e=null;if(Array.isArray(i))i.forEach(r=>{if(r instanceof Map&&r.has("offset")){let t=r;e=parseFloat(t.get("offset")),t.delete("offset")}});else if(i instanceof Map&&i.has("offset")){let r=i;e=parseFloat(r.get("offset")),r.delete("offset")}return e}function MY(i,e){if(i.hasOwnProperty("duration"))return i;if(typeof i=="number"){let o=gg(i,e).duration;return Lw(o,0,"")}let r=i;if(r.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=Lw(0,0,"");return o.dynamic=!0,o.strValue=r,o}let n=gg(r,e);return Lw(n.duration,n.delay,n.easing)}function Ds(i){return i?(i=j({},i),i.params&&(i.params=EY(i.params))):i={},i}function Lw(i,e,r){return{duration:i,delay:e,easing:r}}function dC(i,e,r,t,n,o,a=null,s=!1){return{type:1,element:i,keyframes:e,preStyleProps:r,postStyleProps:t,duration:n,delay:o,totalTime:n+o,easing:a,subTimeline:s}}var iu=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,r){let t=this._map.get(e);t||this._map.set(e,t=[]),t.push(...r)}has(e){return this._map.has(e)}clear(){this._map.clear()}},TY=1,kY=":enter",AY=new RegExp(kY,"g"),OY=":leave",RY=new RegExp(OY,"g");function SO(i,e,r,t,n,o=new Map,a=new Map,s,l,u=[]){return new Yw().buildKeyframes(i,e,r,t,n,o,a,s,l,u)}var Yw=class{buildKeyframes(e,r,t,n,o,a,s,l,u,f=[]){u=u||new iu;let v=new Qw(e,r,u,n,o,f,[]);v.options=l;let C=l.delay?Ur(l.delay):0;v.currentTimeline.delayNextStep(C),v.currentTimeline.setStyles([a],null,v.errors,l),qn(this,t,v);let D=v.timelines.filter(S=>S.containsAnimation());if(D.length&&s.size){let S;for(let P=D.length-1;P>=0;P--){let z=D[P];if(z.element===r){S=z;break}}S&&!S.allowOnlyTimelineStyles()&&S.setStyles([s],null,v.errors,l)}return D.length?D.map(S=>S.buildKeyframes()):[dC(r,[],[],[],0,C,"",!1)]}visitTrigger(e,r){}visitState(e,r){}visitTransition(e,r){}visitAnimateChild(e,r){let t=r.subInstructions.get(r.element);if(t){let n=r.createSubContext(e.options),o=r.currentTimeline.currentTime,a=this._visitSubInstructions(t,n,n.options);o!=a&&r.transformIntoNewTimeline(a)}r.previousNode=e}visitAnimateRef(e,r){let t=r.createSubContext(e.options);t.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],r,t),this.visitReference(e.animation,t),r.transformIntoNewTimeline(t.currentTimeline.currentTime),r.previousNode=e}_applyAnimationRefDelays(e,r,t){for(let n of e){let o=n?.delay;if(o){let a=typeof o=="number"?o:Ur(tu(o,n?.params??{},r.errors));t.delayNextStep(a)}}}_visitSubInstructions(e,r,t){let o=r.currentTimeline.currentTime,a=t.duration!=null?Ur(t.duration):null,s=t.delay!=null?Ur(t.delay):null;return a!==0&&e.forEach(l=>{let u=r.appendInstructionToTimeline(l,a,s);o=Math.max(o,u.duration+u.delay)}),o}visitReference(e,r){r.updateOptions(e.options,!0),qn(this,e.animation,r),r.previousNode=e}visitSequence(e,r){let t=r.subContextCount,n=r,o=e.options;if(o&&(o.params||o.delay)&&(n=r.createSubContext(o),n.transformIntoNewTimeline(),o.delay!=null)){n.previousNode.type==ot.Style&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=bg);let a=Ur(o.delay);n.delayNextStep(a)}e.steps.length&&(e.steps.forEach(a=>qn(this,a,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>t&&n.transformIntoNewTimeline()),r.previousNode=e}visitGroup(e,r){let t=[],n=r.currentTimeline.currentTime,o=e.options&&e.options.delay?Ur(e.options.delay):0;e.steps.forEach(a=>{let s=r.createSubContext(e.options);o&&s.delayNextStep(o),qn(this,a,s),n=Math.max(n,s.currentTimeline.currentTime),t.push(s.currentTimeline)}),t.forEach(a=>r.currentTimeline.mergeTimelineCollectedStyles(a)),r.transformIntoNewTimeline(n),r.previousNode=e}_visitTiming(e,r){if(e.dynamic){let t=e.strValue,n=r.params?tu(t,r.params,r.errors):t;return gg(n,r.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,r){let t=r.currentAnimateTimings=this._visitTiming(e.timings,r),n=r.currentTimeline;t.delay&&(r.incrementTime(t.delay),n.snapshotCurrentStyles());let o=e.style;o.type==ot.Keyframes?this.visitKeyframes(o,r):(r.incrementTime(t.duration),this.visitStyle(o,r),n.applyStylesToKeyframe()),r.currentAnimateTimings=null,r.previousNode=e}visitStyle(e,r){let t=r.currentTimeline,n=r.currentAnimateTimings;!n&&t.hasCurrentStyleProperties()&&t.forwardFrame();let o=n&&n.easing||e.easing;e.isEmptyStep?t.applyEmptyStep(o):t.setStyles(e.styles,o,r.errors,r.options),r.previousNode=e}visitKeyframes(e,r){let t=r.currentAnimateTimings,n=r.currentTimeline.duration,o=t.duration,s=r.createSubContext().currentTimeline;s.easing=t.easing,e.styles.forEach(l=>{let u=l.offset||0;s.forwardTime(u*o),s.setStyles(l.styles,l.easing,r.errors,r.options),s.applyStylesToKeyframe()}),r.currentTimeline.mergeTimelineCollectedStyles(s),r.transformIntoNewTimeline(n+o),r.previousNode=e}visitQuery(e,r){let t=r.currentTimeline.currentTime,n=e.options||{},o=n.delay?Ur(n.delay):0;o&&(r.previousNode.type===ot.Style||t==0&&r.currentTimeline.hasCurrentStyleProperties())&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=bg);let a=t,s=r.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!n.optional,r.errors);r.currentQueryTotal=s.length;let l=null;s.forEach((u,f)=>{r.currentQueryIndex=f;let v=r.createSubContext(e.options,u);o&&v.delayNextStep(o),u===r.element&&(l=v.currentTimeline),qn(this,e.animation,v),v.currentTimeline.applyStylesToKeyframe();let C=v.currentTimeline.currentTime;a=Math.max(a,C)}),r.currentQueryIndex=0,r.currentQueryTotal=0,r.transformIntoNewTimeline(a),l&&(r.currentTimeline.mergeTimelineCollectedStyles(l),r.currentTimeline.snapshotCurrentStyles()),r.previousNode=e}visitStagger(e,r){let t=r.parentContext,n=r.currentTimeline,o=e.timings,a=Math.abs(o.duration),s=a*(r.currentQueryTotal-1),l=a*r.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=s-l;break;case"full":l=t.currentStaggerTime;break}let f=r.currentTimeline;l&&f.delayNextStep(l);let v=f.currentTime;qn(this,e.animation,r),r.previousNode=e,t.currentStaggerTime=n.currentTime-v+(n.startTime-t.currentTimeline.startTime)}},bg={},Qw=class i{constructor(e,r,t,n,o,a,s,l){this._driver=e,this.element=r,this.subInstructions=t,this._enterClassName=n,this._leaveClassName=o,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=bg,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new yg(this._driver,r,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,r){if(!e)return;let t=e,n=this.options;t.duration!=null&&(n.duration=Ur(t.duration)),t.delay!=null&&(n.delay=Ur(t.delay));let o=t.params;if(o){let a=n.params;a||(a=this.options.params={}),Object.keys(o).forEach(s=>{(!r||!a.hasOwnProperty(s))&&(a[s]=tu(o[s],a,this.errors))})}}_copyOptions(){let e={};if(this.options){let r=this.options.params;if(r){let t=e.params={};Object.keys(r).forEach(n=>{t[n]=r[n]})}}return e}createSubContext(e=null,r,t){let n=r||this.element,o=new i(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,t||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(e){return this.previousNode=bg,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,r,t){let n={duration:r??e.duration,delay:this.currentTimeline.currentTime+(t??0)+e.delay,easing:""},o=new Kw(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,n,e.stretchStartingKeyframe);return this.timelines.push(o),n}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,r,t,n,o,a){let s=[];if(n&&s.push(this.element),e.length>0){e=e.replace(AY,"."+this._enterClassName),e=e.replace(RY,"."+this._leaveClassName);let l=t!=1,u=this._driver.query(this.element,e,l);t!==0&&(u=t<0?u.slice(u.length+t,u.length):u.slice(0,t)),s.push(...u)}return!o&&s.length==0&&a.push(qq(r)),s}},yg=class i{constructor(e,r,t,n){this._driver=e,this.element=r,this.startTime=t,this._elementTimelineStylesLookup=n,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(r),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(r,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let r=this._keyframes.size===1&&this._pendingStyles.size;this.duration||r?(this.forwardTime(this.currentTime+e),r&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,r){return this.applyStylesToKeyframe(),new i(this._driver,e,r||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=TY,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,r){this._localTimelineStyles.set(e,r),this._globalTimelineStyles.set(e,r),this._styleSummary.set(e,{time:this.currentTime,value:r})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[r,t]of this._globalTimelineStyles)this._backFill.set(r,t||or),this._currentKeyframe.set(r,or);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,r,t,n){r&&this._previousKeyframe.set("easing",r);let o=n&&n.params||{},a=PY(e,this._globalTimelineStyles);for(let[s,l]of a){let u=tu(l,o,t);this._pendingStyles.set(s,u),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??or),this._updateStyle(s,u)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,r)=>{this._currentKeyframe.set(r,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,r)=>{this._currentKeyframe.has(r)||this._currentKeyframe.set(r,e)}))}snapshotCurrentStyles(){for(let[e,r]of this._localTimelineStyles)this._pendingStyles.set(e,r),this._updateStyle(e,r)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let r in this._currentKeyframe)e.push(r);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((r,t)=>{let n=this._styleSummary.get(t);(!n||r.time>n.time)&&this._updateStyle(t,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,r=new Set,t=this._keyframes.size===1&&this.duration===0,n=[];this._keyframes.forEach((s,l)=>{let u=new Map([...this._backFill,...s]);u.forEach((f,v)=>{f===yp?e.add(v):f===or&&r.add(v)}),t||u.set("offset",l/this.duration),n.push(u)});let o=[...e.values()],a=[...r.values()];if(t){let s=n[0],l=new Map(s);s.set("offset",0),l.set("offset",1),n=[s,l]}return dC(this.element,n,o,a,this.duration,this.startTime,this.easing,!1)}},Kw=class extends yg{constructor(e,r,t,n,o,a,s=!1){super(e,r,a.delay),this.keyframes=t,this.preStyleProps=n,this.postStyleProps=o,this._stretchStartingKeyframe=s,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:r,duration:t,easing:n}=this.timings;if(this._stretchStartingKeyframe&&r){let o=[],a=t+r,s=r/a,l=new Map(e[0]);l.set("offset",0),o.push(l);let u=new Map(e[0]);u.set("offset",cO(s)),o.push(u);let f=e.length-1;for(let v=1;v<=f;v++){let C=new Map(e[v]),D=C.get("offset"),S=r+D*t;C.set("offset",cO(S/a)),o.push(C)}t=a,r=0,n="",e=o}return dC(this.element,e,this.preStyleProps,this.postStyleProps,t,r,n,!0)}};function cO(i,e=3){let r=Math.pow(10,e-1);return Math.round(i*r)/r}function PY(i,e){let r=new Map,t;return i.forEach(n=>{if(n==="*"){t??=e.keys();for(let o of t)r.set(o,or)}else for(let[o,a]of n)r.set(o,a)}),r}function dO(i,e,r,t,n,o,a,s,l,u,f,v,C){return{type:0,element:i,triggerName:e,isRemovalTransition:n,fromState:r,fromStyles:o,toState:t,toStyles:a,timelines:s,queriedElements:l,preStyleProps:u,postStyleProps:f,totalTime:v,errors:C}}var Vw={},wg=class{constructor(e,r,t){this._triggerName=e,this.ast=r,this._stateStyles=t}match(e,r,t,n){return FY(this.ast.matchers,e,r,t,n)}buildStyles(e,r,t){let n=this._stateStyles.get("*");return e!==void 0&&(n=this._stateStyles.get(e?.toString())||n),n?n.buildStyles(r,t):new Map}build(e,r,t,n,o,a,s,l,u,f){let v=[],C=this.ast.options&&this.ast.options.params||Vw,D=s&&s.params||Vw,S=this.buildStyles(t,D,v),P=l&&l.params||Vw,z=this.buildStyles(n,P,v),O=new Set,de=new Map,ht=new Map,it=n==="void",Ti={params:EO(P,C),delay:this.ast.options?.delay},Ft=f?[]:SO(e,r,this.ast.animation,o,a,S,z,Ti,u,v),Wt=0;return Ft.forEach(wi=>{Wt=Math.max(wi.duration+wi.delay,Wt)}),v.length?dO(r,this._triggerName,t,n,it,S,z,[],[],de,ht,Wt,v):(Ft.forEach(wi=>{let ur=wi.element,Ms=Yn(de,ur,new Set);wi.preStyleProps.forEach(Ra=>Ms.add(Ra));let bC=Yn(ht,ur,new Set);wi.postStyleProps.forEach(Ra=>bC.add(Ra)),ur!==r&&O.add(ur)}),dO(r,this._triggerName,t,n,it,S,z,Ft,[...O.values()],de,ht,Wt))}};function FY(i,e,r,t,n){return i.some(o=>o(e,r,t,n))}function EO(i,e){let r=j({},e);return Object.entries(i).forEach(([t,n])=>{n!=null&&(r[t]=n)}),r}var Zw=class{constructor(e,r,t){this.styles=e,this.defaultParams=r,this.normalizer=t}buildStyles(e,r){let t=new Map,n=EO(e,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,s)=>{a&&(a=tu(a,n,r));let l=this.normalizer.normalizePropertyName(s,r);a=this.normalizer.normalizeStyleValue(s,l,a,r),t.set(s,a)})}),t}};function NY(i,e,r){return new Xw(i,e,r)}var Xw=class{constructor(e,r,t){this.name=e,this.ast=r,this._normalizer=t,this.transitionFactories=[],this.states=new Map,r.states.forEach(n=>{let o=n.options&&n.options.params||{};this.states.set(n.name,new Zw(n.style,o,t))}),uO(this.states,"true","1"),uO(this.states,"false","0"),r.transitions.forEach(n=>{this.transitionFactories.push(new wg(e,n,this.states))}),this.fallbackTransition=LY(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,r,t,n){return this.transitionFactories.find(a=>a.match(e,r,t,n))||null}matchStyles(e,r,t){return this.fallbackTransition.buildStyles(e,r,t)}};function LY(i,e,r){let t=[(a,s)=>!0],n={type:ot.Sequence,steps:[],options:null},o={type:ot.Transition,animation:n,matchers:t,options:null,queryCount:0,depCount:0};return new wg(i,o,e)}function uO(i,e,r){i.has(e)?i.has(r)||i.set(r,i.get(e)):i.has(r)&&i.set(e,i.get(r))}var VY=new iu,Jw=class{constructor(e,r,t){this.bodyNode=e,this._driver=r,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,r){let t=[],n=[],o=DO(this._driver,r,t,n);if(t.length)throw Xq(t);n.length&&void 0,this._animations.set(e,o)}_buildPlayer(e,r,t){let n=e.element,o=_O(this._normalizer,e.keyframes,r,t);return this._driver.animate(n,o,e.duration,e.delay,e.easing,[],!0)}create(e,r,t={}){let n=[],o=this._animations.get(e),a,s=new Map;if(o?(a=SO(this._driver,r,o,wO,Uw,new Map,new Map,t,VY,n),a.forEach(f=>{let v=Yn(s,f.element,new Map);f.postStyleProps.forEach(C=>v.set(C,null))})):(n.push(Jq()),a=[]),n.length)throw eY(n);s.forEach((f,v)=>{f.forEach((C,D)=>{f.set(D,this._driver.computeStyle(v,D,or))})});let l=a.map(f=>{let v=s.get(f.element);return this._buildPlayer(f,new Map,v)}),u=Oa(l);return this._playersById.set(e,u),u.onDestroy(()=>this.destroy(e)),this.players.push(u),u}destroy(e){let r=this._getPlayer(e);r.destroy(),this._playersById.delete(e);let t=this.players.indexOf(r);t>=0&&this.players.splice(t,1)}_getPlayer(e){let r=this._playersById.get(e);if(!r)throw tY(e);return r}listen(e,r,t,n){let o=rC(r,"","","");return oC(this._getPlayer(e),t,o,n),()=>{}}command(e,r,t,n){if(t=="register"){this.register(e,n[0]);return}if(t=="create"){let a=n[0]||{};this.create(e,r,a);return}let o=this._getPlayer(e);switch(t){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(e);break}}},hO="ng-animate-queued",jY=".ng-animate-queued",jw="ng-animate-disabled",BY=".ng-animate-disabled",zY="ng-star-inserted",UY=".ng-star-inserted",HY=[],IO={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},$Y={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},No="__ng_removed",nu=class{get params(){return this.options.params}constructor(e,r=""){this.namespaceId=r;let t=e&&e.hasOwnProperty("value"),n=t?e.value:e;if(this.value=GY(n),t){let o=e,{value:a}=o,s=Tg(o,["value"]);this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let r=e.params;if(r){let t=this.options.params;Object.keys(r).forEach(n=>{t[n]==null&&(t[n]=r[n])})}}},eu="void",Bw=new nu(eu),eC=class{constructor(e,r,t){this.id=e,this.hostElement=r,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,go(r,this._hostClassName)}listen(e,r,t,n){if(!this._triggers.has(r))throw iY(t,r);if(t==null||t.length==0)throw nY(r);if(!qY(t))throw oY(t,r);let o=Yn(this._elementListeners,e,[]),a={name:r,phase:t,callback:n};o.push(a);let s=Yn(this._engine.statesByElement,e,new Map);return s.has(r)||(go(e,dg),go(e,dg+"-"+r),s.set(r,Bw)),()=>{this._engine.afterFlush(()=>{let l=o.indexOf(a);l>=0&&o.splice(l,1),this._triggers.has(r)||s.delete(r)})}}register(e,r){return this._triggers.has(e)?!1:(this._triggers.set(e,r),!0)}_getTrigger(e){let r=this._triggers.get(e);if(!r)throw rY(e);return r}trigger(e,r,t,n=!0){let o=this._getTrigger(r),a=new ou(this.id,r,e),s=this._engine.statesByElement.get(e);s||(go(e,dg),go(e,dg+"-"+r),this._engine.statesByElement.set(e,s=new Map));let l=s.get(r),u=new nu(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),s.set(r,u),l||(l=Bw),!(u.value===eu)&&l.value===u.value){if(!KY(l.params,u.params)){let P=[],z=o.matchStyles(l.value,l.params,P),O=o.matchStyles(u.value,u.params,P);P.length?this._engine.reportError(P):this._engine.afterFlush(()=>{Ss(e,z),dr(e,O)})}return}let C=Yn(this._engine.playersByElement,e,[]);C.forEach(P=>{P.namespaceId==this.id&&P.triggerName==r&&P.queued&&P.destroy()});let D=o.matchTransition(l.value,u.value,e,u.params),S=!1;if(!D){if(!n)return;D=o.fallbackTransition,S=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:r,transition:D,fromState:l,toState:u,player:a,isFallbackTransition:S}),S||(go(e,hO),a.onStart(()=>{tc(e,hO)})),a.onDone(()=>{let P=this.players.indexOf(a);P>=0&&this.players.splice(P,1);let z=this._engine.playersByElement.get(e);if(z){let O=z.indexOf(a);O>=0&&z.splice(O,1)}}),this.players.push(a),C.push(a),a}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(r=>r.delete(e)),this._elementListeners.forEach((r,t)=>{this._elementListeners.set(t,r.filter(n=>n.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let r=this._engine.playersByElement.get(e);r&&(r.forEach(t=>t.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,r){let t=this._engine.driver.query(e,fg,!0);t.forEach(n=>{if(n[No])return;let o=this._engine.fetchNamespacesByElement(n);o.size?o.forEach(a=>a.triggerLeaveAnimation(n,r,!1,!0)):this.clearElementCache(n)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(n=>this.clearElementCache(n)))}triggerLeaveAnimation(e,r,t,n){let o=this._engine.statesByElement.get(e),a=new Map;if(o){let s=[];if(o.forEach((l,u)=>{if(a.set(u,l.value),this._triggers.has(u)){let f=this.trigger(e,u,eu,n);f&&s.push(f)}}),s.length)return this._engine.markElementAsRemoved(this.id,e,!0,r,a),t&&Oa(s).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let r=this._elementListeners.get(e),t=this._engine.statesByElement.get(e);if(r&&t){let n=new Set;r.forEach(o=>{let a=o.name;if(n.has(a))return;n.add(a);let l=this._triggers.get(a).fallbackTransition,u=t.get(a)||Bw,f=new nu(eu),v=new ou(this.id,a,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:a,transition:l,fromState:u,toState:f,player:v,isFallbackTransition:!0})})}}removeNode(e,r){let t=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,r),this.triggerLeaveAnimation(e,r,!0))return;let n=!1;if(t.totalAnimations){let o=t.players.length?t.playersByQueriedElement.get(e):[];if(o&&o.length)n=!0;else{let a=e;for(;a=a.parentNode;)if(t.statesByElement.get(a)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(e),n)t.markElementAsRemoved(this.id,e,!1,r);else{let o=e[No];(!o||o===IO)&&(t.afterFlush(()=>this.clearElementCache(e)),t.destroyInnerAnimations(e),t._onRemovalComplete(e,r))}}insertNode(e,r){go(e,this._hostClassName)}drainQueuedTransitions(e){let r=[];return this._queue.forEach(t=>{let n=t.player;if(n.destroyed)return;let o=t.element,a=this._elementListeners.get(o);a&&a.forEach(s=>{if(s.name==t.triggerName){let l=rC(o,t.triggerName,t.fromState.value,t.toState.value);l._data=e,oC(t.player,s.phase,l,s.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):r.push(t)}),this._queue=[],r.sort((t,n)=>{let o=t.transition.ast.depCount,a=n.transition.ast.depCount;return o==0||a==0?o-a:this._engine.driver.containsElement(t.element,n.element)?1:-1})}destroy(e){this.players.forEach(r=>r.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},tC=class{_onRemovalComplete(e,r){this.onRemovalComplete(e,r)}constructor(e,r,t){this.bodyNode=e,this.driver=r,this._normalizer=t,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=(n,o)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(r=>{r.players.forEach(t=>{t.queued&&e.push(t)})}),e}createNamespace(e,r){let t=new eC(e,r,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,r)?this._balanceNamespaceList(t,r):(this.newHostElements.set(r,t),this.collectEnterElement(r)),this._namespaceLookup[e]=t}_balanceNamespaceList(e,r){let t=this._namespaceList,n=this.namespacesByHostElement;if(t.length-1>=0){let a=!1,s=this.driver.getParentElement(r);for(;s;){let l=n.get(s);if(l){let u=t.indexOf(l);t.splice(u+1,0,e),a=!0;break}s=this.driver.getParentElement(s)}a||t.unshift(e)}else t.push(e);return n.set(r,e),e}register(e,r){let t=this._namespaceLookup[e];return t||(t=this.createNamespace(e,r)),t}registerTrigger(e,r,t){let n=this._namespaceLookup[e];n&&n.register(r,t)&&this.totalAnimations++}destroy(e,r){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let t=this._fetchNamespace(e);this.namespacesByHostElement.delete(t.hostElement);let n=this._namespaceList.indexOf(t);n>=0&&this._namespaceList.splice(n,1),t.destroy(r),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let r=new Set,t=this.statesByElement.get(e);if(t){for(let n of t.values())if(n.namespaceId){let o=this._fetchNamespace(n.namespaceId);o&&r.add(o)}}return r}trigger(e,r,t,n){if(mg(r)){let o=this._fetchNamespace(e);if(o)return o.trigger(r,t,n),!0}return!1}insertNode(e,r,t,n){if(!mg(r))return;let o=r[No];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;let a=this.collectedLeaveElements.indexOf(r);a>=0&&this.collectedLeaveElements.splice(a,1)}if(e){let a=this._fetchNamespace(e);a&&a.insertNode(r,t)}n&&this.collectEnterElement(r)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,r){r?this.disabledNodes.has(e)||(this.disabledNodes.add(e),go(e,jw)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),tc(e,jw))}removeNode(e,r,t){if(mg(r)){let n=e?this._fetchNamespace(e):null;n?n.removeNode(r,t):this.markElementAsRemoved(e,r,!1,t);let o=this.namespacesByHostElement.get(r);o&&o.id!==e&&o.removeNode(r,t)}else this._onRemovalComplete(r,t)}markElementAsRemoved(e,r,t,n,o){this.collectedLeaveElements.push(r),r[No]={namespaceId:e,setForRemoval:n,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:o}}listen(e,r,t,n,o){return mg(r)?this._fetchNamespace(e).listen(r,t,n,o):()=>{}}_buildInstruction(e,r,t,n,o){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,t,n,e.fromState.options,e.toState.options,r,o)}destroyInnerAnimations(e){let r=this.driver.query(e,fg,!0);r.forEach(t=>this.destroyActiveAnimationsForElement(t)),this.playersByQueriedElement.size!=0&&(r=this.driver.query(e,Hw,!0),r.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(e){let r=this.playersByElement.get(e);r&&r.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(e){let r=this.playersByQueriedElement.get(e);r&&r.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Oa(this.players).onDone(()=>e());e()})}processLeaveNode(e){let r=e[No];if(r&&r.setForRemoval){if(e[No]=IO,r.namespaceId){this.destroyInnerAnimations(e);let t=this._fetchNamespace(r.namespaceId);t&&t.clearElementCache(e)}this._onRemovalComplete(e,r.setForRemoval)}e.classList?.contains(jw)&&this.markElementAsDisabled(e,!1),this.driver.query(e,BY,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(e=-1){let r=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,n)=>this._balanceNamespaceList(t,n)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;tt()),this._flushFns=[],this._whenQuietFns.length){let t=this._whenQuietFns;this._whenQuietFns=[],r.length?Oa(r).onDone(()=>{t.forEach(n=>n())}):t.forEach(n=>n())}}reportError(e){throw aY(e)}_flushAnimations(e,r){let t=new iu,n=[],o=new Map,a=[],s=new Map,l=new Map,u=new Map,f=new Set;this.disabledNodes.forEach(ye=>{f.add(ye);let Fe=this.driver.query(ye,jY,!0);for(let qe=0;qe{let qe=wO+P++;S.set(Fe,qe),ye.forEach(At=>go(At,qe))});let z=[],O=new Set,de=new Set;for(let ye=0;yeO.add(At)):de.add(Fe))}let ht=new Map,it=fO(C,Array.from(O));it.forEach((ye,Fe)=>{let qe=Uw+P++;ht.set(Fe,qe),ye.forEach(At=>go(At,qe))}),e.push(()=>{D.forEach((ye,Fe)=>{let qe=S.get(Fe);ye.forEach(At=>tc(At,qe))}),it.forEach((ye,Fe)=>{let qe=ht.get(Fe);ye.forEach(At=>tc(At,qe))}),z.forEach(ye=>{this.processLeaveNode(ye)})});let Ti=[],Ft=[];for(let ye=this._namespaceList.length-1;ye>=0;ye--)this._namespaceList[ye].drainQueuedTransitions(r).forEach(qe=>{let At=qe.player,Ni=qe.element;if(Ti.push(At),this.collectedEnterElements.length){let Xi=Ni[No];if(Xi&&Xi.setForMove){if(Xi.previousTriggersValues&&Xi.previousTriggersValues.has(qe.triggerName)){let Pa=Xi.previousTriggersValues.get(qe.triggerName),Qn=this.statesByElement.get(qe.element);if(Qn&&Qn.has(qe.triggerName)){let au=Qn.get(qe.triggerName);au.value=Pa,Qn.set(qe.triggerName,au)}}At.destroy();return}}let Lo=!v||!this.driver.containsElement(v,Ni),On=ht.get(Ni),Hr=S.get(Ni),mi=this._buildInstruction(qe,t,Hr,On,Lo);if(mi.errors&&mi.errors.length){Ft.push(mi);return}if(Lo){At.onStart(()=>Ss(Ni,mi.fromStyles)),At.onDestroy(()=>dr(Ni,mi.toStyles)),n.push(At);return}if(qe.isFallbackTransition){At.onStart(()=>Ss(Ni,mi.fromStyles)),At.onDestroy(()=>dr(Ni,mi.toStyles)),n.push(At);return}let CC=[];mi.timelines.forEach(Xi=>{Xi.stretchStartingKeyframe=!0,this.disabledNodes.has(Xi.element)||CC.push(Xi)}),mi.timelines=CC,t.append(Ni,mi.timelines);let _R={instruction:mi,player:At,element:Ni};a.push(_R),mi.queriedElements.forEach(Xi=>Yn(s,Xi,[]).push(At)),mi.preStyleProps.forEach((Xi,Pa)=>{if(Xi.size){let Qn=l.get(Pa);Qn||l.set(Pa,Qn=new Set),Xi.forEach((au,Mg)=>Qn.add(Mg))}}),mi.postStyleProps.forEach((Xi,Pa)=>{let Qn=u.get(Pa);Qn||u.set(Pa,Qn=new Set),Xi.forEach((au,Mg)=>Qn.add(Mg))})});if(Ft.length){let ye=[];Ft.forEach(Fe=>{ye.push(sY(Fe.triggerName,Fe.errors))}),Ti.forEach(Fe=>Fe.destroy()),this.reportError(ye)}let Wt=new Map,wi=new Map;a.forEach(ye=>{let Fe=ye.element;t.has(Fe)&&(wi.set(Fe,Fe),this._beforeAnimationBuild(ye.player.namespaceId,ye.instruction,Wt))}),n.forEach(ye=>{let Fe=ye.element;this._getPreviousPlayers(Fe,!1,ye.namespaceId,ye.triggerName,null).forEach(At=>{Yn(Wt,Fe,[]).push(At),At.destroy()})});let ur=z.filter(ye=>gO(ye,l,u)),Ms=new Map;pO(Ms,this.driver,de,u,or).forEach(ye=>{gO(ye,l,u)&&ur.push(ye)});let Ra=new Map;D.forEach((ye,Fe)=>{pO(Ra,this.driver,new Set(ye),l,yp)}),ur.forEach(ye=>{let Fe=Ms.get(ye),qe=Ra.get(ye);Ms.set(ye,new Map([...Fe?.entries()??[],...qe?.entries()??[]]))});let Ig=[],yC=[],wC={};a.forEach(ye=>{let{element:Fe,player:qe,instruction:At}=ye;if(t.has(Fe)){if(f.has(Fe)){qe.onDestroy(()=>dr(Fe,At.toStyles)),qe.disabled=!0,qe.overrideTotalTime(At.totalTime),n.push(qe);return}let Ni=wC;if(wi.size>1){let On=Fe,Hr=[];for(;On=On.parentNode;){let mi=wi.get(On);if(mi){Ni=mi;break}Hr.push(On)}Hr.forEach(mi=>wi.set(mi,Ni))}let Lo=this._buildAnimation(qe.namespaceId,At,Wt,o,Ra,Ms);if(qe.setRealPlayer(Lo),Ni===wC)Ig.push(qe);else{let On=this.playersByElement.get(Ni);On&&On.length&&(qe.parentPlayer=Oa(On)),n.push(qe)}}else Ss(Fe,At.fromStyles),qe.onDestroy(()=>dr(Fe,At.toStyles)),yC.push(qe),f.has(Fe)&&n.push(qe)}),yC.forEach(ye=>{let Fe=o.get(ye.element);if(Fe&&Fe.length){let qe=Oa(Fe);ye.setRealPlayer(qe)}}),n.forEach(ye=>{ye.parentPlayer?ye.syncPlayerEvents(ye.parentPlayer):ye.destroy()});for(let ye=0;ye!Lo.destroyed);Ni.length?YY(this,Fe,Ni):this.processLeaveNode(Fe)}return z.length=0,Ig.forEach(ye=>{this.players.push(ye),ye.onDone(()=>{ye.destroy();let Fe=this.players.indexOf(ye);this.players.splice(Fe,1)}),ye.play()}),Ig}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,r,t,n,o){let a=[];if(r){let s=this.playersByQueriedElement.get(e);s&&(a=s)}else{let s=this.playersByElement.get(e);if(s){let l=!o||o==eu;s.forEach(u=>{u.queued||!l&&u.triggerName!=n||a.push(u)})}}return(t||n)&&(a=a.filter(s=>!(t&&t!=s.namespaceId||n&&n!=s.triggerName))),a}_beforeAnimationBuild(e,r,t){let n=r.triggerName,o=r.element,a=r.isRemovalTransition?void 0:e,s=r.isRemovalTransition?void 0:n;for(let l of r.timelines){let u=l.element,f=u!==o,v=Yn(t,u,[]);this._getPreviousPlayers(u,f,a,s,r.toState).forEach(D=>{let S=D.getRealPlayer();S.beforeDestroy&&S.beforeDestroy(),D.destroy(),v.push(D)})}Ss(o,r.fromStyles)}_buildAnimation(e,r,t,n,o,a){let s=r.triggerName,l=r.element,u=[],f=new Set,v=new Set,C=r.timelines.map(S=>{let P=S.element;f.add(P);let z=P[No];if(z&&z.removedBeforeQueried)return new ya(S.duration,S.delay);let O=P!==l,de=QY((t.get(P)||HY).map(Wt=>Wt.getRealPlayer())).filter(Wt=>{let wi=Wt;return wi.element?wi.element===P:!1}),ht=o.get(P),it=a.get(P),Ti=_O(this._normalizer,S.keyframes,ht,it),Ft=this._buildPlayer(S,Ti,de);if(S.subTimeline&&n&&v.add(P),O){let Wt=new ou(e,s,P);Wt.setRealPlayer(Ft),u.push(Wt)}return Ft});u.forEach(S=>{Yn(this.playersByQueriedElement,S.element,[]).push(S),S.onDone(()=>WY(this.playersByQueriedElement,S.element,S))}),f.forEach(S=>go(S,aO));let D=Oa(C);return D.onDestroy(()=>{f.forEach(S=>tc(S,aO)),dr(l,r.toStyles)}),v.forEach(S=>{Yn(n,S,[]).push(D)}),D}_buildPlayer(e,r,t){return r.length>0?this.driver.animate(e.element,r,e.duration,e.delay,e.easing,t):new ya(e.duration,e.delay)}},ou=class{constructor(e,r,t){this.namespaceId=e,this.triggerName=r,this.element=t,this._player=new ya,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((r,t)=>{r.forEach(n=>oC(e,t,void 0,n))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let r=this._player;r.triggerCallback&&e.onStart(()=>r.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,r){Yn(this._queuedCallbacks,e,[]).push(r)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let r=this._player;r.triggerCallback&&r.triggerCallback(e)}};function WY(i,e,r){let t=i.get(e);if(t){if(t.length){let n=t.indexOf(r);t.splice(n,1)}t.length==0&&i.delete(e)}return t}function GY(i){return i??null}function mg(i){return i&&i.nodeType===1}function qY(i){return i=="start"||i=="done"}function mO(i,e){let r=i.style.display;return i.style.display=e??"none",r}function pO(i,e,r,t,n){let o=[];r.forEach(l=>o.push(mO(l)));let a=[];t.forEach((l,u)=>{let f=new Map;l.forEach(v=>{let C=e.computeStyle(u,v,n);f.set(v,C),(!C||C.length==0)&&(u[No]=$Y,a.push(u))}),i.set(u,f)});let s=0;return r.forEach(l=>mO(l,o[s++])),a}function fO(i,e){let r=new Map;if(i.forEach(s=>r.set(s,[])),e.length==0)return r;let t=1,n=new Set(e),o=new Map;function a(s){if(!s)return t;let l=o.get(s);if(l)return l;let u=s.parentNode;return r.has(u)?l=u:n.has(u)?l=t:l=a(u),o.set(s,l),l}return e.forEach(s=>{let l=a(s);l!==t&&r.get(l).push(s)}),r}function go(i,e){i.classList?.add(e)}function tc(i,e){i.classList?.remove(e)}function YY(i,e,r){Oa(r).onDone(()=>i.processLeaveNode(e))}function QY(i){let e=[];return MO(i,e),e}function MO(i,e){for(let r=0;rn.add(o)):e.set(i,t),r.delete(i),!0}var nc=class{constructor(e,r,t){this._driver=r,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(n,o)=>{},this._transitionEngine=new tC(e.body,r,t),this._timelineEngine=new Jw(e.body,r,t),this._transitionEngine.onRemovalComplete=(n,o)=>this.onRemovalComplete(n,o)}registerTrigger(e,r,t,n,o){let a=e+"-"+n,s=this._triggerCache[a];if(!s){let l=[],u=[],f=DO(this._driver,o,l,u);if(l.length)throw Kq(n,l);u.length&&void 0,s=NY(n,f,this._normalizer),this._triggerCache[a]=s}this._transitionEngine.registerTrigger(r,n,s)}register(e,r){this._transitionEngine.register(e,r)}destroy(e,r){this._transitionEngine.destroy(e,r)}onInsert(e,r,t,n){this._transitionEngine.insertNode(e,r,t,n)}onRemove(e,r,t){this._transitionEngine.removeNode(e,r,t)}disableAnimations(e,r){this._transitionEngine.markElementAsDisabled(e,r)}process(e,r,t,n){if(t.charAt(0)=="@"){let[o,a]=oO(t),s=n;this._timelineEngine.command(o,r,a,s)}else this._transitionEngine.trigger(e,r,t,n)}listen(e,r,t,n,o){if(t.charAt(0)=="@"){let[a,s]=oO(t);return this._timelineEngine.listen(a,r,s,o)}return this._transitionEngine.listen(e,r,t,n,o)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function ZY(i,e){let r=null,t=null;return Array.isArray(e)&&e.length?(r=zw(e[0]),e.length>1&&(t=zw(e[e.length-1]))):e instanceof Map&&(r=zw(e)),r||t?new iC(i,r,t):null}var ic=class ic{constructor(e,r,t){this._element=e,this._startStyles=r,this._endStyles=t,this._state=0;let n=ic.initialStylesByElement.get(e);n||ic.initialStylesByElement.set(e,n=new Map),this._initialStyles=n}start(){this._state<1&&(this._startStyles&&dr(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(dr(this._element,this._initialStyles),this._endStyles&&(dr(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(ic.initialStylesByElement.delete(this._element),this._startStyles&&(Ss(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ss(this._element,this._endStyles),this._endStyles=null),dr(this._element,this._initialStyles),this._state=3)}};ic.initialStylesByElement=new WeakMap;var iC=ic;function zw(i){let e=null;return i.forEach((r,t)=>{XY(t)&&(e=e||new Map,e.set(t,r))}),e}function XY(i){return i==="display"||i==="position"}var Cg=class{constructor(e,r,t,n){this.element=e,this.keyframes=r,this.options=t,this._specialStyles=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=t.duration,this._delay=t.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let r=()=>this._onFinish();this.domPlayer.addEventListener("finish",r),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",r)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let r=[];return e.forEach(t=>{r.push(Object.fromEntries(t))}),r}_triggerWebAnimation(e,r,t){return e.animate(this._convertKeyframesToObject(r),t)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,n)=>{n!=="offset"&&e.set(n,this._finished?t:cC(this.element,n))}),this.currentSnapshot=e}triggerCallback(e){let r=e==="start"?this._onStartFns:this._onDoneFns;r.forEach(t=>t()),r.length=0}},xg=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,r){return vO(e,r)}getParentElement(e){return aC(e)}query(e,r,t){return bO(e,r,t)}computeStyle(e,r,t){return cC(e,r)}animate(e,r,t,n,o,a=[]){let s=n==0?"both":"forwards",l={duration:t,delay:n,fill:s};o&&(l.easing=o);let u=new Map,f=a.filter(D=>D instanceof Cg);vY(t,n)&&f.forEach(D=>{D.currentSnapshot.forEach((S,P)=>u.set(P,S))});let v=fY(r).map(D=>new Map(D));v=bY(e,v,u);let C=ZY(e,v);return new Cg(e,v,l,C)}};var pg="@",TO="@.disabled",Dg=class{constructor(e,r,t,n){this.namespaceId=e,this.delegate=r,this.engine=t,this._onDestroy=n,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,r){return this.delegate.createElement(e,r)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,r){this.delegate.appendChild(e,r),this.engine.onInsert(this.namespaceId,r,e,!1)}insertBefore(e,r,t,n=!0){this.delegate.insertBefore(e,r,t),this.engine.onInsert(this.namespaceId,r,e,n)}removeChild(e,r,t){this.parentNode(r)&&this.engine.onRemove(this.namespaceId,r,this.delegate)}selectRootElement(e,r){return this.delegate.selectRootElement(e,r)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,r,t,n){this.delegate.setAttribute(e,r,t,n)}removeAttribute(e,r,t){this.delegate.removeAttribute(e,r,t)}addClass(e,r){this.delegate.addClass(e,r)}removeClass(e,r){this.delegate.removeClass(e,r)}setStyle(e,r,t,n){this.delegate.setStyle(e,r,t,n)}removeStyle(e,r,t){this.delegate.removeStyle(e,r,t)}setProperty(e,r,t){r.charAt(0)==pg&&r==TO?this.disableAnimations(e,!!t):this.delegate.setProperty(e,r,t)}setValue(e,r){this.delegate.setValue(e,r)}listen(e,r,t){return this.delegate.listen(e,r,t)}disableAnimations(e,r){this.engine.disableAnimations(e,r)}},nC=class extends Dg{constructor(e,r,t,n,o){super(r,t,n,o),this.factory=e,this.namespaceId=r}setProperty(e,r,t){r.charAt(0)==pg?r.charAt(1)=="."&&r==TO?(t=t===void 0?!0:!!t,this.disableAnimations(e,t)):this.engine.process(this.namespaceId,e,r.slice(1),t):this.delegate.setProperty(e,r,t)}listen(e,r,t){if(r.charAt(0)==pg){let n=JY(e),o=r.slice(1),a="";return o.charAt(0)!=pg&&([o,a]=eQ(o)),this.engine.listen(this.namespaceId,n,o,a,s=>{let l=s._data||-1;this.factory.scheduleListenerCallback(l,t,s)})}return this.delegate.listen(e,r,t)}};function JY(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i}}function eQ(i){let e=i.indexOf("."),r=i.substring(0,e),t=i.slice(e+1);return[r,t]}var Sg=class{constructor(e,r,t){this.delegate=e,this.engine=r,this._zone=t,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,r.onRemovalComplete=(n,o)=>{o?.removeChild(null,n)}}createRenderer(e,r){let t="",n=this.delegate.createRenderer(e,r);if(!e||!r?.data?.animation){let u=this._rendererCache,f=u.get(n);if(!f){let v=()=>u.delete(n);f=new Dg(t,n,this.engine,v),u.set(n,f)}return f}let o=r.id,a=r.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);let s=u=>{Array.isArray(u)?u.forEach(s):this.engine.registerTrigger(o,a,e,u.name,u)};return r.data.animation.forEach(s),new nC(this,a,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,r,t){if(e>=0&&er(t));return}let n=this._animationCallbacksBuffer;n.length==0&&queueMicrotask(()=>{this._zone.run(()=>{n.forEach(o=>{let[a,s]=o;a(s)}),this._animationCallbacksBuffer=[]})}),n.push([r,t])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var iQ=(()=>{let e=class e extends nc{constructor(t,n,o){super(t,n,o)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(n){return new(n||e)(M(se),M(Es),M(Is))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();function nQ(){return new _g}function oQ(i,e,r){return new Sg(i,e,r)}var AO=[{provide:Is,useFactory:nQ},{provide:nc,useClass:iQ},{provide:na,useFactory:oQ,deps:[Im,nc,Z]}],kO=[{provide:Es,useFactory:()=>new xg},{provide:kt,useValue:"BrowserAnimations"},...AO],rQ=[{provide:Es,useClass:sC},{provide:kt,useValue:"NoopAnimations"},...AO],OO=(()=>{let e=class e{static withConfig(t){return{ngModule:e,providers:t.disableAnimations?rQ:kO}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({providers:kO,imports:[Tm]});let i=e;return i})();var aQ=["button"],sQ=["*"];function lQ(i,e){if(i&1&&I(0,"mat-pseudo-checkbox",3),i&2){let r=_();p("disabled",r.disabled)}}function cQ(i,e){if(i&1&&I(0,"mat-pseudo-checkbox",3),i&2){let r=_();p("disabled",r.disabled)}}var dQ=new R("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:uQ});function uQ(){return{hideSingleSelectionIndicator:!1,hideMultipleSelectionIndicator:!1,disabledInteractive:!1}}var hQ=new R("MatButtonToggleGroup");var mQ=0,hC=class{constructor(e,r){this.source=e,this.value=r}};var pQ=(()=>{let e=class e{get buttonId(){return`${this.id}-button`}get tabIndex(){return this._tabIndex}set tabIndex(t){this._tabIndex=t,this._markForCheck()}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(t){this._appearance=t}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(t){t!==this._checked&&(this._checked=t,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(t){this._disabled=t}get disabledInteractive(){return this._disabledInteractive||this.buttonToggleGroup!==null&&this.buttonToggleGroup.disabledInteractive}set disabledInteractive(t){this._disabledInteractive=t}constructor(t,n,o,a,s,l){this._changeDetectorRef=n,this._elementRef=o,this._focusMonitor=a,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new T;let u=Number(s);this.tabIndex=u||u===0?u:null,this.buttonToggleGroup=t,this.appearance=l&&l.appearance?l.appearance:"standard",this.disabledInteractive=l?.disabledInteractive??!1}ngOnInit(){let t=this.buttonToggleGroup;this.id=this.id||`mat-button-toggle-${mQ++}`,t&&(t._isPrechecked(this)?this.checked=!0:t._isSelected(this)!==this._checked&&t._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){let t=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),t&&t._isSelected(this)&&t._syncButtonToggle(this,!1,!1,!0)}focus(t){this._buttonElement.nativeElement.focus(t)}_onButtonClick(){if(this.disabled)return;let t=this.isSingleSelector()?!0:!this._checked;if(t!==this._checked&&(this._checked=t,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.isSingleSelector()){let n=this.buttonToggleGroup._buttonToggles.find(o=>o.tabIndex===0);n&&(n.tabIndex=-1),this.tabIndex=0}this.change.emit(new hC(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this.isSingleSelector()?this.buttonToggleGroup.name:this.name||null}isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}};e.\u0275fac=function(n){return new(n||e)(m(hQ,8),m(he),m(q),m(Di),vi("tabindex"),m(dQ,8))},e.\u0275cmp=E({type:e,selectors:[["mat-button-toggle"]],viewQuery:function(n,o){if(n&1&&ce(aQ,5),n&2){let a;Q(a=K())&&(o._buttonElement=a.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:14,hostBindings:function(n,o){n&1&&b("focus",function(){return o.focus()}),n&2&&(ie("aria-label",null)("aria-labelledby",null)("id",o.id)("name",null),ne("mat-button-toggle-standalone",!o.buttonToggleGroup)("mat-button-toggle-checked",o.checked)("mat-button-toggle-disabled",o.disabled)("mat-button-toggle-disabled-interactive",o.disabledInteractive)("mat-button-toggle-appearance-standard",o.appearance==="standard"))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",disableRipple:[2,"disableRipple","disableRipple",Y],appearance:"appearance",checked:[2,"checked","checked",Y],disabled:[2,"disabled","disabled",Y],disabledInteractive:[2,"disabledInteractive","disabledInteractive",Y]},outputs:{change:"change"},exportAs:["matButtonToggle"],standalone:!0,features:[ge,re],ngContentSelectors:sQ,decls:8,vars:14,consts:[["button",""],["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"click","id","disabled"],[1,"mat-button-toggle-label-content"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(n,o){if(n&1){let a=A();He(),c(0,"button",1,0),b("click",function(){return y(a),w(o._onButtonClick())}),c(2,"span",2),x(3,lQ,1,1,"mat-pseudo-checkbox",3)(4,cQ,1,1,"mat-pseudo-checkbox",3),ae(5),d()(),I(6,"span",4)(7,"span",5)}if(n&2){let a=we(1);p("id",o.buttonId)("disabled",o.disabled&&!o.disabledInteractive||null),ie("role",o.isSingleSelector()?"radio":"button")("tabindex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex)("aria-pressed",o.isSingleSelector()?null:o.checked)("aria-checked",o.isSingleSelector()?o.checked:null)("name",o._getButtonName())("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledby)("aria-disabled",o.disabled&&o.disabledInteractive?"true":null),h(3),De(o.buttonToggleGroup&&o.checked&&!o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideSingleSelectionIndicator?3:-1),h(),De(o.buttonToggleGroup&&o.checked&&o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideMultipleSelectionIndicator?4:-1),h(3),p("matRippleTrigger",a)("matRippleDisabled",o.disableRipple||o.disabled)}},dependencies:[Tn,dy],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);transform:translateZ(0);border-radius:var(--mat-legacy-button-toggle-shape)}.mat-button-toggle-standalone:not([class*=mat-elevation-z]),.mat-button-toggle-group:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.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:var(--mat-standard-button-toggle-shape, var(--mat-app-corner-full));border:solid 1px var(--mat-standard-button-toggle-divider-color, var(--mat-app-outline))}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard .mat-pseudo-checkbox,.mat-button-toggle-group-appearance-standard .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-standard-button-toggle-selected-state-text-color, var(--mat-app-on-secondary-container))}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard:not([class*=mat-elevation-z]),.mat-button-toggle-group-appearance-standard:not([class*=mat-elevation-z]){box-shadow:none}.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;color:var(--mat-legacy-button-toggle-text-color);font-family:var(--mat-legacy-button-toggle-label-text-font);font-size:var(--mat-legacy-button-toggle-label-text-size);line-height:var(--mat-legacy-button-toggle-label-text-line-height);font-weight:var(--mat-legacy-button-toggle-label-text-weight);letter-spacing:var(--mat-legacy-button-toggle-label-text-tracking);--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-legacy-button-toggle-selected-state-text-color)}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-legacy-button-toggle-focus-state-layer-opacity)}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle .mat-pseudo-checkbox{margin-right:12px}[dir=rtl] .mat-button-toggle .mat-pseudo-checkbox{margin-right:0;margin-left:12px}.mat-button-toggle-checked{color:var(--mat-legacy-button-toggle-selected-state-text-color);background-color:var(--mat-legacy-button-toggle-selected-state-background-color)}.mat-button-toggle-disabled{pointer-events:none;color:var(--mat-legacy-button-toggle-disabled-state-text-color);background-color:var(--mat-legacy-button-toggle-disabled-state-background-color);--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: var(--mat-legacy-button-toggle-disabled-state-text-color)}.mat-button-toggle-disabled.mat-button-toggle-checked{background-color:var(--mat-legacy-button-toggle-disabled-selected-state-background-color)}.mat-button-toggle-disabled-interactive{pointer-events:auto}.mat-button-toggle-appearance-standard{color:var(--mat-standard-button-toggle-text-color, var(--mat-app-on-surface));background-color:var(--mat-standard-button-toggle-background-color);font-family:var(--mat-standard-button-toggle-label-text-font, var(--mat-app-label-large-font));font-size:var(--mat-standard-button-toggle-label-text-size, var(--mat-app-label-large-size));line-height:var(--mat-standard-button-toggle-label-text-line-height, var(--mat-app-label-large-line-height));font-weight:var(--mat-standard-button-toggle-label-text-weight, var(--mat-app-label-large-weight));letter-spacing:var(--mat-standard-button-toggle-label-text-tracking, var(--mat-app-label-large-tracking))}.mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:solid 1px var(--mat-standard-button-toggle-divider-color, var(--mat-app-outline))}[dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:solid 1px var(--mat-standard-button-toggle-divider-color, var(--mat-app-outline))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:none;border-top:solid 1px var(--mat-standard-button-toggle-divider-color, var(--mat-app-outline))}.mat-button-toggle-appearance-standard.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-selected-state-text-color, var(--mat-app-on-secondary-container));background-color:var(--mat-standard-button-toggle-selected-state-background-color, var(--mat-app-secondary-container))}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled{color:var(--mat-standard-button-toggle-disabled-state-text-color);background-color:var(--mat-standard-button-toggle-disabled-state-background-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: var(--mat-standard-button-toggle-disabled-selected-state-text-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-disabled-selected-state-text-color);background-color:var(--mat-standard-button-toggle-disabled-selected-state-background-color)}.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:var(--mat-standard-button-toggle-state-layer-color, var(--mat-app-on-surface))}.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-button-toggle-appearance-standard.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}@media(hover: none){.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;padding:0 16px;line-height:var(--mat-legacy-button-toggle-height);position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px;line-height:var(--mat-standard-button-toggle-height)}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0;background-color:var(--mat-legacy-button-toggle-state-layer-color)}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 500px;opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.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}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard{--mat-focus-indicator-border-radius:var(--mat-standard-button-toggle-shape, var(--mat-app-corner-full))}.mat-button-toggle-group-appearance-standard .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-standard-button-toggle-shape, var(--mat-app-corner-full));border-bottom-right-radius:var(--mat-standard-button-toggle-shape, var(--mat-app-corner-full))}.mat-button-toggle-group-appearance-standard .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-left-radius:var(--mat-standard-button-toggle-shape, var(--mat-app-corner-full));border-bottom-left-radius:var(--mat-standard-button-toggle-shape, var(--mat-app-corner-full))}"],encapsulation:2,changeDetection:0});let i=e;return i})(),RO=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({imports:[pe,Lr,pQ,pe]});let i=e;return i})();var gQ=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],_Q=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function vQ(i,e){i&1&&(c(0,"span",3),ae(1,1),d())}function bQ(i,e){i&1&&(c(0,"span",6),ae(1,2),d())}var yQ='.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{flex-basis:100%;overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit;overflow-x:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-outline-width);border-radius:var(--mdc-chip-container-shape-radius);box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1;border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-outline-color, var(--mat-app-outline))}.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before{border-color:var(--mdc-chip-focus-outline-color, var(--mat-app-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-disabled-outline-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-flat-selected-outline-width)}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color, var(--mat-app-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color, var(--mat-app-on-surface))}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip__text-label{-webkit-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font, var(--mat-app-label-large-font));line-height:var(--mdc-chip-label-text-line-height, var(--mat-app-label-large-line-height));font-size:var(--mdc-chip-label-text-size, var(--mat-app-label-large-size));font-weight:var(--mdc-chip-label-text-weight, var(--mat-app-label-large-weight));letter-spacing:var(--mdc-chip-label-text-tracking, var(--mat-app-label-large-tracking))}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color, var(--mat-app-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-selected-label-text-color, var(--mat-app-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{width:var(--mdc-chip-with-avatar-avatar-size);height:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%;height:20px;width:20px}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, var(--mat-app-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color, var(--mat-app-on-surface))}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.cdk-high-contrast-active .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity))}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-selected-container-color, var(--mat-app-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-flat-disabled-selected-container-color)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius);width:var(--mdc-chip-with-icon-icon-size);height:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color, var(--mat-app-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color, var(--mat-app-on-surface))}.mat-mdc-chip-highlighted{--mdc-chip-with-icon-icon-color:var(--mdc-chip-with-icon-selected-icon-color, var(--mat-app-on-secondary-container));--mdc-chip-elevated-container-color:var(--mdc-chip-elevated-selected-container-color, var(--mat-app-secondary-container));--mdc-chip-label-text-color:var(--mdc-chip-selected-label-text-color, var(--mat-app-on-secondary-container));--mdc-chip-outline-width:var(--mdc-chip-flat-selected-outline-width)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color, var(--mat-app-on-secondary-container))}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-hover-state-layer-color, var(--mat-app-on-surface-variant));opacity:var(--mdc-chip-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-hover-state-layer-color, var(--mat-app-on-secondary-container));opacity:var(--mdc-chip-selected-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color, var(--mat-app-on-surface-variant));opacity:var(--mdc-chip-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color, var(--mat-app-on-secondary-container));opacity:var(--mdc-chip-selected-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mdc-chip-with-avatar-disabled-avatar-opacity)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mdc-chip-with-icon-disabled-icon-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color, var(--mat-app-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color, var(--mat-app-on-surface))}.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity)}.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity)}.mat-mdc-chip-remove::after{background-color:var(--mat-chip-trailing-action-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-chip-remove:hover::after{opacity:var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-chip-remove:focus::after{opacity:var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background-color:var(--mat-chip-selected-trailing-action-state-layer-color, var(--mat-app-on-secondary-container))}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-3px;bottom:-3px;left:5px;right:5px;border-radius:50%;box-sizing:border-box;padding:12px;margin:-12px;background-clip:content-box}.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}',wQ=[[["mat-chip-avatar"],["","matChipAvatar",""]],[["","matChipEditInput",""]],"*",[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],CQ=["mat-chip-avatar, [matChipAvatar]","[matChipEditInput]","*","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function xQ(i,e){i&1&&I(0,"span",0)}function DQ(i,e){i&1&&(c(0,"span",2),ae(1),d())}function SQ(i,e){i&1&&ae(0,1)}function EQ(i,e){i&1&&I(0,"span",7)}function IQ(i,e){if(i&1&&x(0,SQ,1,0)(1,EQ,1,0,"span",7),i&2){let r=_();De(r.contentEditInput?0:1)}}function MQ(i,e){i&1&&ae(0,2)}function TQ(i,e){i&1&&(c(0,"span",5),ae(1,3),d())}var NO=["*"],kQ=".mat-mdc-chip-set{display:flex}.mat-mdc-chip-set:focus{outline:none}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%;margin-left:-8px;margin-right:0}.mat-mdc-chip-set .mdc-evolution-chip{margin:4px 0 4px 8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip-set__chips{margin-left:0;margin-right:-8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip{margin-left:0;margin-right:8px}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}",LO=new R("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[13]})}),PO=new R("MatChipAvatar"),FO=new R("MatChipTrailingIcon"),pC=new R("MatChipRemove"),_C=new R("MatChip"),Eg=(()=>{let e=class e{get disabled(){return this._disabled||this._parentChip.disabled}set disabled(t){this._disabled=t}_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(t,n){this._elementRef=t,this._parentChip=n,this.isInteractive=!0,this._isPrimary=!0,this._disabled=!1,this.tabIndex=-1,this._allowFocusWhenDisabled=!1,t.nativeElement.nodeName==="BUTTON"&&t.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(t){!this.disabled&&this.isInteractive&&this._isPrimary&&(t.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(t){(t.keyCode===13||t.keyCode===32)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(t.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}};e.\u0275fac=function(n){return new(n||e)(m(q),m(_C))},e.\u0275dir=L({type:e,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(n,o){n&1&&b("click",function(s){return o._handleClick(s)})("keydown",function(s){return o._handleKeydown(s)}),n&2&&(ie("tabindex",o._getTabindex())("disabled",o._getDisabledAttribute())("aria-disabled",o.disabled),ne("mdc-evolution-chip__action--primary",o._isPrimary)("mdc-evolution-chip__action--presentational",!o.isInteractive)("mdc-evolution-chip__action--trailing",!o._isPrimary))},inputs:{isInteractive:"isInteractive",disabled:[2,"disabled","disabled",Y],tabIndex:[2,"tabIndex","tabIndex",t=>t==null?-1:ni(t)],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"},standalone:!0,features:[ge]});let i=e;return i})();var VO=(()=>{let e=class e extends Eg{constructor(){super(...arguments),this._isPrimary=!1}_handleClick(t){this.disabled||(t.stopPropagation(),t.preventDefault(),this._parentChip.remove())}_handleKeydown(t){(t.keyCode===13||t.keyCode===32)&&!this.disabled&&(t.stopPropagation(),t.preventDefault(),this._parentChip.remove())}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=jt(e)))(o||e)}})(),e.\u0275dir=L({type:e,selectors:[["","matChipRemove",""]],hostAttrs:["role","button",1,"mat-mdc-chip-remove","mat-mdc-chip-trailing-icon","mat-mdc-focus-indicator","mdc-evolution-chip__icon","mdc-evolution-chip__icon--trailing"],hostVars:1,hostBindings:function(n,o){n&2&&ie("aria-hidden",null)},standalone:!0,features:[Ce([{provide:pC,useExisting:e}]),be]});let i=e;return i})(),AQ=0,fC=(()=>{let e=class e{_hasFocus(){return this._hasFocusInternal}get value(){return this._value!==void 0?this._value:this._textElement.textContent.trim()}set value(t){this._value=t}get disabled(){return this._disabled||this._chipListDisabled}set disabled(t){this._disabled=t}get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(t){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,t)}constructor(t,n,o,a,s,l,u){this._changeDetectorRef=t,this._elementRef=n,this._ngZone=o,this._focusMonitor=a,this._globalRippleOptions=u,this._onFocus=new G,this._onBlur=new G,this.role=null,this._hasFocusInternal=!1,this.id=`mat-mdc-chip-${AQ++}`,this.ariaLabel=null,this.ariaDescription=null,this._ariaDescriptionId=`${this.id}-aria-description`,this._chipListDisabled=!1,this.removable=!0,this.highlighted=!1,this.disableRipple=!1,this._disabled=!1,this.removed=new T,this.destroyed=new T,this.basicChipAttrName="mat-basic-chip",this._rippleLoader=k(gp),this._injector=k(Pe),this._document=s,this._animationsDisabled=l==="NoopAnimations",this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){let t=this._elementRef.nativeElement;this._isBasicChip=t.hasAttribute(this.basicChipAttrName)||t.tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=wt(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&this.removed.emit({chip:this})}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!!(this.trailingIcon||this.removeIcon)}_handleKeydown(t){(t.keyCode===8&&!t.repeat||t.keyCode===46)&&(t.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(t){return this._getActions().find(n=>{let o=n._elementRef.nativeElement;return o===t||o.contains(t)})}_getActions(){let t=[];return this.primaryAction&&t.push(this.primaryAction),this.removeIcon&&t.push(this.removeIcon),this.trailingIcon&&t.push(this.trailingIcon),t}_handlePrimaryActionInteraction(){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{let n=t!==null;n!==this._hasFocusInternal&&(this._hasFocusInternal=n,n?this._onFocus.next({chip:this}):ai(()=>this._ngZone.run(()=>this._onBlur.next({chip:this})),{injector:this._injector}))})}};e.\u0275fac=function(n){return new(n||e)(m(he),m(q),m(Z),m(Di),m(se),m(kt,8),m(Vl,8))},e.\u0275cmp=E({type:e,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(n,o,a){if(n&1&&(Be(a,PO,5),Be(a,FO,5),Be(a,pC,5),Be(a,PO,5),Be(a,FO,5),Be(a,pC,5)),n&2){let s;Q(s=K())&&(o.leadingIcon=s.first),Q(s=K())&&(o.trailingIcon=s.first),Q(s=K())&&(o.removeIcon=s.first),Q(s=K())&&(o._allLeadingIcons=s),Q(s=K())&&(o._allTrailingIcons=s),Q(s=K())&&(o._allRemoveIcons=s)}},viewQuery:function(n,o){if(n&1&&ce(Eg,5),n&2){let a;Q(a=K())&&(o.primaryAction=a.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:31,hostBindings:function(n,o){n&1&&b("keydown",function(s){return o._handleKeydown(s)}),n&2&&(Si("id",o.id),ie("role",o.role)("aria-label",o.ariaLabel),Yt("mat-"+(o.color||"primary")),ne("mdc-evolution-chip",!o._isBasicChip)("mdc-evolution-chip--disabled",o.disabled)("mdc-evolution-chip--with-trailing-action",o._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",o.leadingIcon)("mdc-evolution-chip--with-primary-icon",o.leadingIcon)("mdc-evolution-chip--with-avatar",o.leadingIcon)("mat-mdc-chip-with-avatar",o.leadingIcon)("mat-mdc-chip-highlighted",o.highlighted)("mat-mdc-chip-disabled",o.disabled)("mat-mdc-basic-chip",o._isBasicChip)("mat-mdc-standard-chip",!o._isBasicChip)("mat-mdc-chip-with-trailing-icon",o._hasTrailingIcon())("_mat-animation-noopable",o._animationsDisabled))},inputs:{role:"role",id:"id",ariaLabel:[0,"aria-label","ariaLabel"],ariaDescription:[0,"aria-description","ariaDescription"],value:"value",color:"color",removable:[2,"removable","removable",Y],highlighted:[2,"highlighted","highlighted",Y],disableRipple:[2,"disableRipple","disableRipple",Y],disabled:[2,"disabled","disabled",Y]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],standalone:!0,features:[Ce([{provide:_C,useExisting:e}]),ge,re],ngContentSelectors:_Q,decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(n,o){n&1&&(He(gQ),I(0,"span",0),c(1,"span",1)(2,"span",2),x(3,vQ,2,0,"span",3),c(4,"span",4),ae(5),I(6,"span",5),d()()(),x(7,bQ,2,0,"span",6)),n&2&&(h(2),p("isInteractive",!1),h(),De(o.leadingIcon?3:-1),h(4),De(o._hasTrailingIcon()?7:-1))},dependencies:[Eg],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{flex-basis:100%;overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit;overflow-x:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-outline-width);border-radius:var(--mdc-chip-container-shape-radius);box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1;border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-outline-color, var(--mat-app-outline))}.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before{border-color:var(--mdc-chip-focus-outline-color, var(--mat-app-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-disabled-outline-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-flat-selected-outline-width)}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color, var(--mat-app-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color, var(--mat-app-on-surface))}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip__text-label{-webkit-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font, var(--mat-app-label-large-font));line-height:var(--mdc-chip-label-text-line-height, var(--mat-app-label-large-line-height));font-size:var(--mdc-chip-label-text-size, var(--mat-app-label-large-size));font-weight:var(--mdc-chip-label-text-weight, var(--mat-app-label-large-weight));letter-spacing:var(--mdc-chip-label-text-tracking, var(--mat-app-label-large-tracking))}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color, var(--mat-app-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-selected-label-text-color, var(--mat-app-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{width:var(--mdc-chip-with-avatar-avatar-size);height:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%;height:20px;width:20px}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, var(--mat-app-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color, var(--mat-app-on-surface))}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.cdk-high-contrast-active .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity))}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-selected-container-color, var(--mat-app-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-flat-disabled-selected-container-color)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius);width:var(--mdc-chip-with-icon-icon-size);height:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color, var(--mat-app-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color, var(--mat-app-on-surface))}.mat-mdc-chip-highlighted{--mdc-chip-with-icon-icon-color:var(--mdc-chip-with-icon-selected-icon-color, var(--mat-app-on-secondary-container));--mdc-chip-elevated-container-color:var(--mdc-chip-elevated-selected-container-color, var(--mat-app-secondary-container));--mdc-chip-label-text-color:var(--mdc-chip-selected-label-text-color, var(--mat-app-on-secondary-container));--mdc-chip-outline-width:var(--mdc-chip-flat-selected-outline-width)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color, var(--mat-app-on-secondary-container))}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-hover-state-layer-color, var(--mat-app-on-surface-variant));opacity:var(--mdc-chip-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-hover-state-layer-color, var(--mat-app-on-secondary-container));opacity:var(--mdc-chip-selected-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color, var(--mat-app-on-surface-variant));opacity:var(--mdc-chip-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color, var(--mat-app-on-secondary-container));opacity:var(--mdc-chip-selected-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mdc-chip-with-avatar-disabled-avatar-opacity)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mdc-chip-with-icon-disabled-icon-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color, var(--mat-app-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color, var(--mat-app-on-surface))}.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity)}.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity)}.mat-mdc-chip-remove::after{background-color:var(--mat-chip-trailing-action-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-chip-remove:hover::after{opacity:var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-chip-remove:focus::after{opacity:var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background-color:var(--mat-chip-selected-trailing-action-state-layer-color, var(--mat-app-on-secondary-container))}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-3px;bottom:-3px;left:5px;right:5px;border-radius:50%;box-sizing:border-box;padding:12px;margin:-12px;background-clip:content-box}.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let i=e;return i})();var mC=(()=>{let e=class e{constructor(t,n){this._elementRef=t,this._document=n}initialize(t){this.getNativeElement().focus(),this.setValue(t)}getNativeElement(){return this._elementRef.nativeElement}setValue(t){this.getNativeElement().textContent=t,this._moveCursorToEndOfInput()}getValue(){return this.getNativeElement().textContent||""}_moveCursorToEndOfInput(){let t=this._document.createRange();t.selectNodeContents(this.getNativeElement()),t.collapse(!1);let n=window.getSelection();n.removeAllRanges(),n.addRange(t)}};e.\u0275fac=function(n){return new(n||e)(m(q),m(se))},e.\u0275dir=L({type:e,selectors:[["span","matChipEditInput",""]],hostAttrs:["role","textbox","tabindex","-1","contenteditable","true",1,"mat-chip-edit-input"],standalone:!0});let i=e;return i})(),vC=(()=>{let e=class e extends fC{constructor(t,n,o,a,s,l,u,f){super(t,n,o,a,s,l,u),this.basicChipAttrName="mat-basic-chip-row",this._editStartPending=!1,this.editable=!1,this.edited=new T,this._isEditing=!1,this.role="row",this._onBlur.pipe(fe(this.destroyed)).subscribe(()=>{this._isEditing&&!this._editStartPending&&this._onEditFinish()})}_hasTrailingIcon(){return!this._isEditing&&super._hasTrailingIcon()}_handleFocus(){!this._isEditing&&!this.disabled&&this.focus()}_handleKeydown(t){t.keyCode===13&&!this.disabled?this._isEditing?(t.preventDefault(),this._onEditFinish()):this.editable&&this._startEditing(t):this._isEditing?t.stopPropagation():super._handleKeydown(t)}_handleDoubleclick(t){!this.disabled&&this.editable&&this._startEditing(t)}_startEditing(t){if(!this.primaryAction||this.removeIcon&&this._getSourceAction(t.target)===this.removeIcon)return;let n=this.value;this._isEditing=this._editStartPending=!0,ai(()=>{this._getEditInput().initialize(n),this._editStartPending=!1},{injector:this._injector})}_onEditFinish(){this._isEditing=this._editStartPending=!1,this.edited.emit({chip:this,value:this._getEditInput().getValue()}),(this._document.activeElement===this._getEditInput().getNativeElement()||this._document.activeElement===this._document.body)&&this.primaryAction.focus()}_isRippleDisabled(){return super._isRippleDisabled()||this._isEditing}_getEditInput(){return this.contentEditInput||this.defaultEditInput}};e.\u0275fac=function(n){return new(n||e)(m(he),m(q),m(Z),m(Di),m(se),m(kt,8),m(Vl,8),vi("tabindex"))},e.\u0275cmp=E({type:e,selectors:[["mat-chip-row"],["","mat-chip-row",""],["mat-basic-chip-row"],["","mat-basic-chip-row",""]],contentQueries:function(n,o,a){if(n&1&&Be(a,mC,5),n&2){let s;Q(s=K())&&(o.contentEditInput=s.first)}},viewQuery:function(n,o){if(n&1&&ce(mC,5),n&2){let a;Q(a=K())&&(o.defaultEditInput=a.first)}},hostAttrs:[1,"mat-mdc-chip","mat-mdc-chip-row","mdc-evolution-chip"],hostVars:27,hostBindings:function(n,o){n&1&&b("focus",function(s){return o._handleFocus(s)})("dblclick",function(s){return o._handleDoubleclick(s)}),n&2&&(Si("id",o.id),ie("tabindex",o.disabled?null:-1)("aria-label",null)("aria-description",null)("role",o.role),ne("mat-mdc-chip-with-avatar",o.leadingIcon)("mat-mdc-chip-disabled",o.disabled)("mat-mdc-chip-editing",o._isEditing)("mat-mdc-chip-editable",o.editable)("mdc-evolution-chip--disabled",o.disabled)("mdc-evolution-chip--with-trailing-action",o._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",o.leadingIcon)("mdc-evolution-chip--with-primary-icon",o.leadingIcon)("mdc-evolution-chip--with-avatar",o.leadingIcon)("mat-mdc-chip-highlighted",o.highlighted)("mat-mdc-chip-with-trailing-icon",o._hasTrailingIcon()))},inputs:{editable:"editable"},outputs:{edited:"edited"},standalone:!0,features:[Ce([{provide:fC,useExisting:e},{provide:_C,useExisting:e}]),be,re],ngContentSelectors:CQ,decls:10,vars:9,consts:[[1,"mat-mdc-chip-focus-overlay"],["role","gridcell","matChipAction","",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary",3,"disabled"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],["aria-hidden","true",1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"],[1,"cdk-visually-hidden",3,"id"],["matChipEditInput",""]],template:function(n,o){n&1&&(He(wQ),x(0,xQ,1,0,"span",0),c(1,"span",1),x(2,DQ,2,0,"span",2),c(3,"span",3),x(4,IQ,2,1)(5,MQ,1,0),I(6,"span",4),d()(),x(7,TQ,2,0,"span",5),c(8,"span",6),g(9),d()),n&2&&(De(o._isEditing?-1:0),h(),p("disabled",o.disabled),ie("aria-label",o.ariaLabel)("aria-describedby",o._ariaDescriptionId),h(),De(o.leadingIcon?2:-1),h(2),De(o._isEditing?4:5),h(3),De(o._hasTrailingIcon()?7:-1),h(),p("id",o._ariaDescriptionId),h(),$e(o.ariaDescription))},dependencies:[Eg,mC],styles:[yQ],encapsulation:2,changeDetection:0});let i=e;return i})(),OQ=(()=>{let e=class e{get chipFocusChanges(){return this._getChipStream(t=>t._onFocus)}get chipDestroyedChanges(){return this._getChipStream(t=>t.destroyed)}get chipRemovedChanges(){return this._getChipStream(t=>t.removed)}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._syncChipsState()}get empty(){return!this._chips||this._chips.length===0}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}set role(t){this._explicitRole=t}get focused(){return this._hasFocusedChip()}constructor(t,n,o){this._elementRef=t,this._changeDetectorRef=n,this._dir=o,this._lastDestroyedFocusedChipIndex=null,this._destroyed=new G,this._defaultRole="presentation",this._disabled=!1,this.tabIndex=0,this._explicitRole=null,this._chipActions=new eo}ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){this._keyManager?.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(t=>t._hasFocus())}_syncChipsState(){this._chips?.forEach(t=>{t._chipListDisabled=this._disabled,t._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(t){this._originatesFromChip(t)&&this._keyManager.onKeydown(t)}_isValidIndex(t){return t>=0&&tthis._elementRef.nativeElement.tabIndex=t))}_getChipStream(t){return this._chips.changes.pipe(Rt(null),Tt(()=>wt(...this._chips.map(t))))}_originatesFromChip(t){let n=t.target;for(;n&&n!==this._elementRef.nativeElement;){if(n.classList.contains("mat-mdc-chip"))return!0;n=n.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe(Rt(this._chips)).subscribe(t=>{let n=[];t.forEach(o=>o._getActions().forEach(a=>n.push(a))),this._chipActions.reset(n),this._chipActions.notifyOnChanges()}),this._keyManager=new _a(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(t=>this._skipPredicate(t)),this.chipFocusChanges.pipe(fe(this._destroyed)).subscribe(({chip:t})=>{let n=t._getSourceAction(document.activeElement);n&&this._keyManager.updateActiveItem(n)}),this._dir?.change.pipe(fe(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t))}_skipPredicate(t){return!t.isInteractive||t.disabled}_trackChipSetChanges(){this._chips.changes.pipe(Rt(null),fe(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(fe(this._destroyed)).subscribe(t=>{let o=this._chips.toArray().indexOf(t.chip);this._isValidIndex(o)&&t.chip._hasFocus()&&(this._lastDestroyedFocusedChipIndex=o)})}_redirectDestroyedChipFocus(){if(this._lastDestroyedFocusedChipIndex!=null){if(this._chips.length){let t=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),n=this._chips.toArray()[t];n.disabled?this._chips.length===1?this.focus():this._keyManager.setPreviousItemActive():n.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}};e.\u0275fac=function(n){return new(n||e)(m(q),m(he),m(Nt,8))},e.\u0275cmp=E({type:e,selectors:[["mat-chip-set"]],contentQueries:function(n,o,a){if(n&1&&Be(a,fC,5),n&2){let s;Q(s=K())&&(o._chips=s)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(n,o){n&1&&b("keydown",function(s){return o._handleKeydown(s)}),n&2&&ie("role",o.role)},inputs:{disabled:[2,"disabled","disabled",Y],role:"role",tabIndex:[2,"tabIndex","tabIndex",t=>t==null?0:ni(t)]},standalone:!0,features:[ge,re],ngContentSelectors:NO,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(n,o){n&1&&(He(),c(0,"div",0),ae(1),d())},styles:[".mat-mdc-chip-set{display:flex}.mat-mdc-chip-set:focus{outline:none}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%;margin-left:-8px;margin-right:0}.mat-mdc-chip-set .mdc-evolution-chip{margin:4px 0 4px 8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip-set__chips{margin-left:0;margin-right:-8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip{margin-left:0;margin-right:8px}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0});let i=e;return i})();var gC=class{constructor(e,r){this.source=e,this.value=r}},jO=(()=>{let e=class e extends OQ{get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=t,this._syncChipsState()}get id(){return this._chipInput.id}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this._chips||this._chips.length===0)}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get focused(){return this._chipInput.focused||this._hasFocusedChip()}get required(){return this._required??this.ngControl?.control?.hasValidator(sr.required)??!1}set required(t){this._required=t,this.stateChanges.next()}get shouldLabelFloat(){return!this.empty||this.focused}get value(){return this._value}set value(t){this._value=t}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(t){this._errorStateTracker.matcher=t}get chipBlurChanges(){return this._getChipStream(t=>t._onBlur)}get errorState(){return this._errorStateTracker.errorState}set errorState(t){this._errorStateTracker.errorState=t}constructor(t,n,o,a,s,l,u){super(t,n,o),this.ngControl=u,this.controlType="mat-chip-grid",this._defaultRole="grid",this._ariaDescribedbyIds=[],this._onTouched=()=>{},this._onChange=()=>{},this._value=[],this.change=new T,this.valueChange=new T,this._chips=void 0,this.stateChanges=new G,this.ngControl&&(this.ngControl.valueAccessor=this),this._errorStateTracker=new Fr(l,u,s,a,this.stateChanges)}ngAfterContentInit(){this.chipBlurChanges.pipe(fe(this._destroyed)).subscribe(()=>{this._blur(),this.stateChanges.next()}),wt(this.chipFocusChanges,this._chips.changes).pipe(fe(this._destroyed)).subscribe(()=>this.stateChanges.next())}ngAfterViewInit(){super.ngAfterViewInit(),this._chipInput}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnDestroy(){super.ngOnDestroy(),this.stateChanges.complete()}registerInput(t){this._chipInput=t,this._chipInput.setDescribedByIds(this._ariaDescribedbyIds)}onContainerClick(t){!this.disabled&&!this._originatesFromChip(t)&&this.focus()}focus(){if(!(this.disabled||this._chipInput.focused)){if(!this._chips.length||this._chips.first.disabled)Promise.resolve().then(()=>this._chipInput.focus());else{let t=this._keyManager.activeItem;t?t.focus():this._keyManager.setFirstItemActive()}this.stateChanges.next()}}setDescribedByIds(t){this._ariaDescribedbyIds=t,this._chipInput?.setDescribedByIds(t)}writeValue(t){this._value=t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this.stateChanges.next()}updateErrorState(){this._errorStateTracker.updateErrorState()}_blur(){this.disabled||setTimeout(()=>{this.focused||(this._propagateChanges(),this._markAsTouched())})}_allowFocusEscape(){this._chipInput.focused||super._allowFocusEscape()}_handleKeydown(t){let n=t.keyCode,o=this._keyManager.activeItem;if(n===9)this._chipInput.focused&&Pt(t,"shiftKey")&&this._chips.length&&!this._chips.last.disabled?(t.preventDefault(),o?this._keyManager.setActiveItem(o):this._focusLastChip()):super._allowFocusEscape();else if(!this._chipInput.focused)if((n===38||n===40)&&o){let a=this._chipActions.filter(u=>u._isPrimary===o._isPrimary&&!this._skipPredicate(u)),s=a.indexOf(o),l=t.keyCode===38?-1:1;t.preventDefault(),s>-1&&this._isValidIndex(s+l)&&this._keyManager.setActiveItem(a[s+l])}else super._handleKeydown(t);this.stateChanges.next()}_focusLastChip(){this._chips.length&&this._chips.last.focus()}_propagateChanges(){let t=this._chips.length?this._chips.toArray().map(n=>n.value):[];this._value=t,this.change.emit(new gC(this,t)),this.valueChange.emit(t),this._onChange(t),this._changeDetectorRef.markForCheck()}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}};e.\u0275fac=function(n){return new(n||e)(m(q),m(he),m(Nt,8),m(Oo,8),m(gs,8),m(Nr),m(kn,10))},e.\u0275cmp=E({type:e,selectors:[["mat-chip-grid"]],contentQueries:function(n,o,a){if(n&1&&Be(a,vC,5),n&2){let s;Q(s=K())&&(o._chips=s)}},hostAttrs:[1,"mat-mdc-chip-set","mat-mdc-chip-grid","mdc-evolution-chip-set"],hostVars:10,hostBindings:function(n,o){n&1&&b("focus",function(){return o.focus()})("blur",function(){return o._blur()}),n&2&&(ie("role",o.role)("tabindex",o.disabled||o._chips&&o._chips.length===0?-1:o.tabIndex)("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState),ne("mat-mdc-chip-list-disabled",o.disabled)("mat-mdc-chip-list-invalid",o.errorState)("mat-mdc-chip-list-required",o.required))},inputs:{disabled:[2,"disabled","disabled",Y],placeholder:"placeholder",required:[2,"required","required",Y],value:"value",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},standalone:!0,features:[Ce([{provide:Ia,useExisting:e}]),ge,be,re],ngContentSelectors:NO,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(n,o){n&1&&(He(),c(0,"div",0),ae(1),d())},styles:[kQ],encapsulation:2,changeDetection:0});let i=e;return i})(),RQ=0,BO=(()=>{let e=class e{get chipGrid(){return this._chipGrid}set chipGrid(t){t&&(this._chipGrid=t,this._chipGrid.registerInput(this))}get disabled(){return this._disabled||this._chipGrid&&this._chipGrid.disabled}set disabled(t){this._disabled=t}get empty(){return!this.inputElement.value}constructor(t,n,o){this._elementRef=t,this.focused=!1,this.addOnBlur=!1,this.chipEnd=new T,this.placeholder="",this.id=`mat-mdc-chip-list-input-${RQ++}`,this._disabled=!1,this.inputElement=this._elementRef.nativeElement,this.separatorKeyCodes=n.separatorKeyCodes,o&&this.inputElement.classList.add("mat-mdc-form-field-input-control")}ngOnChanges(){this._chipGrid.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}_keydown(t){this.empty&&t.keyCode===8?(t.repeat||this._chipGrid._focusLastChip(),t.preventDefault()):this._emitChipEnd(t)}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipGrid.focused||this._chipGrid._blur(),this._chipGrid.stateChanges.next()}_focus(){this.focused=!0,this._chipGrid.stateChanges.next()}_emitChipEnd(t){(!t||this._isSeparatorKey(t)&&!t.repeat)&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),t?.preventDefault())}_onInput(){this._chipGrid.stateChanges.next()}focus(){this.inputElement.focus()}clear(){this.inputElement.value=""}setDescribedByIds(t){let n=this._elementRef.nativeElement;t.length?n.setAttribute("aria-describedby",t.join(" ")):n.removeAttribute("aria-describedby")}_isSeparatorKey(t){return!Pt(t)&&new Set(this.separatorKeyCodes).has(t.keyCode)}};e.\u0275fac=function(n){return new(n||e)(m(q),m(LO),m(Ro,8))},e.\u0275dir=L({type:e,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-mdc-chip-input","mat-mdc-input-element","mdc-text-field__input","mat-input-element"],hostVars:6,hostBindings:function(n,o){n&1&&b("keydown",function(s){return o._keydown(s)})("blur",function(){return o._blur()})("focus",function(){return o._focus()})("input",function(){return o._onInput()}),n&2&&(Si("id",o.id),ie("disabled",o.disabled||null)("placeholder",o.placeholder||null)("aria-invalid",o._chipGrid&&o._chipGrid.ngControl?o._chipGrid.ngControl.invalid:null)("aria-required",o._chipGrid&&o._chipGrid.required||null)("required",o._chipGrid&&o._chipGrid.required||null))},inputs:{chipGrid:[0,"matChipInputFor","chipGrid"],addOnBlur:[2,"matChipInputAddOnBlur","addOnBlur",Y],separatorKeyCodes:[0,"matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:[2,"disabled","disabled",Y]},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],standalone:!0,features:[ge,Qe]});let i=e;return i})();var zO=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({providers:[Nr,{provide:LO,useValue:{separatorKeyCodes:[13]}}],imports:[pe,Lr,pe]});let i=e;return i})();var UO=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({});let i=e;return i})();var HO=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({imports:[pe,UO,zn]});let i=e;return i})();var FQ=["*",[["mat-toolbar-row"]]],NQ=["*","mat-toolbar-row"],LQ=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"],standalone:!0});let i=e;return i})(),$O=(()=>{let e=class e{constructor(t,n,o){this._elementRef=t,this._platform=n,this._document=o}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}};e.\u0275fac=function(n){return new(n||e)(m(q),m(Ve),m(se))},e.\u0275cmp=E({type:e,selectors:[["mat-toolbar"]],contentQueries:function(n,o,a){if(n&1&&Be(a,LQ,5),n&2){let s;Q(s=K())&&(o._toolbarRows=s)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(n,o){n&2&&(Yt(o.color?"mat-"+o.color:""),ne("mat-toolbar-multiple-rows",o._toolbarRows.length>0)("mat-toolbar-single-row",o._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],standalone:!0,features:[re],ngContentSelectors:NQ,decls:2,vars:0,template:function(n,o){n&1&&(He(FQ),ae(0),ae(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color, var(--mat-app-surface));color:var(--mat-toolbar-container-text-color, var(--mat-app-on-surface))}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font, var(--mat-app-title-large-font));font-size:var(--mat-toolbar-title-text-size, var(--mat-app-title-large-size));line-height:var(--mat-toolbar-title-text-line-height, var(--mat-app-title-large-line-height));font-weight:var(--mat-toolbar-title-text-weight, var(--mat-app-title-large-weight));letter-spacing:var(--mat-toolbar-title-text-tracking, var(--mat-app-title-large-tracking));margin:0}.cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color:var(--mat-toolbar-container-text-color, var(--mat-app-on-surface));--mdc-outlined-button-label-text-color:var(--mat-toolbar-container-text-color, var(--mat-app-on-surface))}.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;height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height)}}"],encapsulation:2,changeDetection:0});let i=e;return i})();var WO=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({imports:[pe,pe]});let i=e;return i})();var GO=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({providers:[{provide:Vy,useValue:{floatLabel:"always",appearance:"outline"}},{provide:mp,useValue:udsData.language}],imports:[Ei,MT,Up,WO,ar,Zk,Wl,HO,N1,vs,iA,bf,zA,E1,xk,uk,pk,Gf,Uf,FT,zO,RO,wA,hA,BT,Yf,Gk,Vk]});let i=e;return i})();function jQ(i,e){if(i&1){let r=A();c(0,"button",7),b("click",function(){let n=y(r).$implicit,o=_();return w(o.changeLang(n))}),g(1),d()}if(i&2){let r=e.$implicit;h(),$e(r.name)}}function BQ(i,e){if(i&1&&(c(0,"button",12)(1,"i",8),g(2,"face"),d(),g(3),d()),i&2){let r=_(),t=we(7);p("matMenuTriggerFor",t),h(3),$e(r.api.user.user)}}function zQ(i,e){if(i&1&&(c(0,"button",18),g(1),c(2,"i",8),g(3,"arrow_drop_down"),d()()),i&2){let r=_(),t=we(7);p("matMenuTriggerFor",t),h(),F("",r.api.user.user," ")}}var qO=(()=>{let e=class e{constructor(t){this.api=t,this.lang={id:"",name:""},this.isNavbarCollapsed=!0;let n=t.config.language;this.langs=[];for(let o of t.config.available_languages)o.id===n?this.lang=o:this.langs.push(o)}ngOnInit(){}changeLang(t){this.lang=t;let n=document.getElementById("id_language");return n&&n.setAttribute("value",t.id),document.getElementById("form_language").submit(),!1}user(){this.api.gotoUser()}logout(){this.api.logout()}};e.\u0275fac=function(n){return new(n||e)(m(B))},e.\u0275cmp=E({type:e,selectors:[["uds-navbar"]],decls:39,vars:13,consts:[["appMenu","matMenu"],["userMenu","matMenu"],["shrink","matMenu"],["id","form_language","method","post",3,"action"],["type","hidden",3,"name","value"],["id","id_language","type","hidden","name","language",3,"value"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"],[1,"material-icons"],[1,"material-icons","highlight"],["x-position","before"],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor"],["color","primary",1,"uds-nav"],["mat-button","","routerLink","/"],["alt","Universal Desktop Services",1,"udsicon",3,"src"],[1,"fill-remaining-space"],[1,"expanded"],["mat-button","",3,"matMenuTriggerFor"],["mat-button","",3,"matMenuTriggerFor",4,"ngIf"],[1,"shrinked"],["mat-icon-button","",3,"matMenuTriggerFor"]],template:function(n,o){if(n&1){let a=A();c(0,"form",3),I(1,"input",4)(2,"input",5),d(),c(3,"mat-menu",null,0),x(5,jQ,2,1,"button",6),d(),c(6,"mat-menu",null,1)(8,"button",7),b("click",function(){return y(a),w(o.user())}),c(9,"i",8),g(10,"home"),d(),c(11,"uds-translate"),g(12,"User mode"),d()(),c(13,"button",7),b("click",function(){return y(a),w(o.logout())}),c(14,"i",9),g(15,"exit_to_app"),d(),c(16,"uds-translate"),g(17,"Logout"),d()()(),c(18,"mat-menu",10,2),x(20,BQ,4,2,"button",11),c(21,"button",12)(22,"i",8),g(23,"language"),d(),g(24),d()(),c(25,"mat-toolbar",13)(26,"button",14),I(27,"img",15),d(),I(28,"span",16),c(29,"div",17)(30,"button",18),g(31),c(32,"i",8),g(33,"arrow_drop_down"),d()(),x(34,zQ,4,2,"button",19),d(),c(35,"div",20)(36,"button",21)(37,"i",8),g(38,"menu"),d()()()()}if(n&2){let a=we(4),s=we(19);sa("action",o.api.config.urls.change_language,Ie),h(),sa("name",o.api.csrfField),sa("value",o.api.csrfToken),h(),sa("value",o.lang.id),h(3),p("ngForOf",o.langs),h(15),p("ngIf",o.api.user.isLogged),h(),p("matMenuTriggerFor",a),h(3),$e(o.lang.name),h(3),p("src",o.api.staticURL("admin/img/udsicon.png"),Ie),h(3),p("matMenuTriggerFor",a),h(),F("",o.lang.name," "),h(3),p("ngIf",o.api.user.isLogged),h(2),p("matMenuTriggerFor",s)}},dependencies:[We,me,bi,zp,Lp,Oo,$O,ke,Qi,ka,ys,Xf,le],styles:['.mat-ripple[_ngcontent-%COMP%]{overflow:hidden;position:relative}.mat-ripple[_ngcontent-%COMP%]:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded[_ngcontent-%COMP%]{overflow:visible}.mat-ripple-element[_ngcontent-%COMP%]{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale3d(0,0,0);background-color:var(--mat-ripple-color, rgba(0, 0, 0, .1))}.cdk-high-contrast-active[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%], .cdk-drag-placeholder[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%]{display:none}.cdk-visually-hidden[_ngcontent-%COMP%]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl][_ngcontent-%COMP%] .cdk-visually-hidden[_ngcontent-%COMP%]{left:auto;right:0}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_ngcontent-%COMP%]{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container[_ngcontent-%COMP%]{position:fixed;z-index:1000}.cdk-overlay-container[_ngcontent-%COMP%]:empty{display:none}.cdk-global-overlay-wrapper[_ngcontent-%COMP%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:1}.cdk-high-contrast-active[_ngcontent-%COMP%] .cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:.6}.cdk-overlay-dark-backdrop[_ngcontent-%COMP%]{background:#00000052}.cdk-overlay-transparent-backdrop[_ngcontent-%COMP%]{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation[_ngcontent-%COMP%]{transition:none}.cdk-overlay-connected-position-bounding-box[_ngcontent-%COMP%]{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock[_ngcontent-%COMP%]{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize[_ngcontent-%COMP%]{resize:none}textarea.cdk-textarea-autosize-measuring[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-start{}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{animation:_ngcontent-%COMP%_cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){animation:_ngcontent-%COMP%_cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border:var(--mat-focus-indicator-border-width, 3px) var(--mat-focus-indicator-border-style, solid) var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-focus-indicator-display: block}.mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-mdc-focus-indicator-display, none);border:var(--mat-mdc-focus-indicator-border-width, 3px) var(--mat-mdc-focus-indicator-border-style, solid) var(--mat-mdc-focus-indicator-border-color, transparent);border-radius:var(--mat-mdc-focus-indicator-border-radius, 4px)}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-mdc-focus-indicator-display: block}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-app-background, transparent));color:var(--mat-app-text-color, var(--mat-app-on-background, inherit))}.mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, none)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, none)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, none)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, none)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, none)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, none)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, none)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, none)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, none)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, none)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, none)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, none)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, none)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, none)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, none)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, none)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, none)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, none)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, none)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, none)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, none)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, none)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, none)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, none)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, none)}.uds-nav[_ngcontent-%COMP%]{position:fixed;top:0;z-index:1000}.fill-remaining-space[_ngcontent-%COMP%]{flex:1 1 auto}.material-icons[_ngcontent-%COMP%]{margin-right:.3rem}.udsicon[_ngcontent-%COMP%]{width:2rem}.mat-mdc-button[_ngcontent-%COMP%]{font-weight:300}.uds-nav[_ngcontent-%COMP%] .expanded[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#000}@media only screen and (max-width: 744px){.expanded[_ngcontent-%COMP%]{display:none;visibility:hidden}.shrinked[_ngcontent-%COMP%]{visibility:visible}}@media only screen and (min-width: 745px){.expanded[_ngcontent-%COMP%]{visibility:visible}.shrinked[_ngcontent-%COMP%]{display:none;visibility:hidden}} .dark-theme .uds-nav .expanded button{color:#fff!important}']});let i=e;return i})();var YO=(()=>{let e=class e{constructor(){}ngOnInit(){}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=E({type:e,selectors:[["uds-footer"]],decls:4,vars:0,consts:[["href","https://www.udsenterprise.com"]],template:function(n,o){n&1&&(c(0,"div"),g(1,"\xA9 2012-2023 "),c(2,"a",0),g(3,"Virtual Cable S.L.U."),d()())},styles:['.mat-ripple[_ngcontent-%COMP%]{overflow:hidden;position:relative}.mat-ripple[_ngcontent-%COMP%]:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded[_ngcontent-%COMP%]{overflow:visible}.mat-ripple-element[_ngcontent-%COMP%]{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale3d(0,0,0);background-color:var(--mat-ripple-color, rgba(0, 0, 0, .1))}.cdk-high-contrast-active[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%], .cdk-drag-placeholder[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%]{display:none}.cdk-visually-hidden[_ngcontent-%COMP%]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl][_ngcontent-%COMP%] .cdk-visually-hidden[_ngcontent-%COMP%]{left:auto;right:0}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_ngcontent-%COMP%]{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container[_ngcontent-%COMP%]{position:fixed;z-index:1000}.cdk-overlay-container[_ngcontent-%COMP%]:empty{display:none}.cdk-global-overlay-wrapper[_ngcontent-%COMP%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:1}.cdk-high-contrast-active[_ngcontent-%COMP%] .cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:.6}.cdk-overlay-dark-backdrop[_ngcontent-%COMP%]{background:#00000052}.cdk-overlay-transparent-backdrop[_ngcontent-%COMP%]{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation[_ngcontent-%COMP%]{transition:none}.cdk-overlay-connected-position-bounding-box[_ngcontent-%COMP%]{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock[_ngcontent-%COMP%]{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize[_ngcontent-%COMP%]{resize:none}textarea.cdk-textarea-autosize-measuring[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-start{}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{animation:_ngcontent-%COMP%_cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){animation:_ngcontent-%COMP%_cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border:var(--mat-focus-indicator-border-width, 3px) var(--mat-focus-indicator-border-style, solid) var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-focus-indicator-display: block}.mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-mdc-focus-indicator-display, none);border:var(--mat-mdc-focus-indicator-border-width, 3px) var(--mat-mdc-focus-indicator-border-style, solid) var(--mat-mdc-focus-indicator-border-color, transparent);border-radius:var(--mat-mdc-focus-indicator-border-radius, 4px)}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-mdc-focus-indicator-display: block}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-app-background, transparent));color:var(--mat-app-text-color, var(--mat-app-on-background, inherit))}.mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, none)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, none)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, none)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, none)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, none)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, none)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, none)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, none)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, none)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, none)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, none)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, none)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, none)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, none)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, none)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, none)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, none)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, none)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, none)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, none)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, none)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, none)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, none)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, none)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, none)}a[_ngcontent-%COMP%]{text-decoration:none}div[_ngcontent-%COMP%], a[_ngcontent-%COMP%]{color:#000} .dark-theme div, .dark-theme a{color:#fff}']});let i=e;return i})();function $Q(i,e){if(i&1&&(c(0,"a",27),I(1,"img",2),c(2,"uds-translate"),g(3,"Groups"),d()()),i&2){let r=_();h(),p("src",r.icon("groups"),Ie)}}function WQ(i,e){if(i&1){let r=A();c(0,"a",3),b("click",function(){y(r);let n=_();return w(n.toggleConfig())}),I(1,"img",2),c(2,"span")(3,"uds-translate"),g(4,"Tools"),d(),c(5,"i",4),g(6,"arrow_drop_down"),d()()()}if(i&2){let r=_();h(),p("src",r.icon("tools"),Ie)}}var QO=(()=>{let e=class e{constructor(t,n){this.api=t,this.rest=n,this.connectivityShown=!1,this.poolsShown=!1,this.configShown=!1,this.tokensShown=!1,this.authsShown=!1,this.servicesShown=!1}ngOnInit(){}icon(t){return this.api.staticURL("admin/img/icons/"+t+".png")}toggle(t){let n=new Map([["connectivity",o=>this.connectivityShown=o?!this.connectivityShown:!1],["pools",o=>this.poolsShown=o?!this.poolsShown:!1],["config",o=>this.configShown=o?!this.configShown:!1],["tokens",o=>this.tokensShown=o?!this.tokensShown:!1],["auths",o=>this.authsShown=o?!this.authsShown:!1],["services",o=>this.servicesShown=o?!this.servicesShown:!1]]);for(let o of n)o[1](o[0]===t)}toggleConnectivity(){this.toggle("connectivity")}togglePools(){this.toggle("pools")}toggleConfig(){this.toggle("config")}toggleTokens(){this.toggle("tokens")}toggleAuths(){this.toggle("auths")}toggleServices(){this.toggle("services")}flushCache(){this.rest.system.flushCache().then(()=>{this.api.gui.snackbar.open(django.gettext("Cache flushed"),django.gettext("dismiss"),{duration:2e3})})}};e.\u0275fac=function(n){return new(n||e)(m(B),m(X))},e.\u0275cmp=E({type:e,selectors:[["uds-sidebar"]],decls:124,vars:33,consts:[[1,"sidebar","mat-toolbar","mat-primary"],["mat-button","","routerLink","/summary",1,"sidebar-link"],[1,"icon",3,"src"],["mat-button","",1,"sidebar-link",3,"click"],[1,"material-icons"],[1,"submenu",3,"hidden"],["mat-button","","routerLink","/services/providers",1,"sidebar-link"],["mat-button","","routerLink","/services/servers",1,"sidebar-link"],["mat-button","","routerLink","/authenticators",1,"sidebar-link"],["mat-button","","routerLink","/mfas",1,"sidebar-link"],["mat-button","","routerLink","/osmanagers",1,"sidebar-link"],["mat-button","","routerLink","/connectivity/transports",1,"sidebar-link"],["mat-button","","routerLink","/connectivity/networks",1,"sidebar-link"],["mat-button","","routerLink","/connectivity/tunnels",1,"sidebar-link"],["mat-button","","routerLink","/pools/service-pools",1,"sidebar-link"],["mat-button","","routerLink","/pools/meta-pools",1,"sidebar-link"],["mat-button","","routerLink","/pools/pool-groups","class","sidebar-link",4,"ngIf"],["mat-button","","routerLink","/pools/calendars",1,"sidebar-link"],["mat-button","","routerLink","/pools/accounts",1,"sidebar-link"],["mat-button","","class","sidebar-link",3,"click",4,"ngIf"],["mat-button","","routerLink","/tools/gallery",1,"sidebar-link"],["mat-button","","routerLink","/tools/reports",1,"sidebar-link"],["mat-button","","routerLink","/tools/notifiers",1,"sidebar-link"],[1,"submenu2",3,"hidden"],["mat-button","","routerLink","/tools/tokens/actor",1,"sidebar-link"],["mat-button","","routerLink","/tools/tokens/server",1,"sidebar-link"],["mat-button","","routerLink","/tools/configuration",1,"sidebar-link"],["mat-button","","routerLink","/pools/pool-groups",1,"sidebar-link"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"a",1),I(2,"img",2),c(3,"uds-translate"),g(4,"Summary"),d()(),c(5,"a",3),b("click",function(){return o.toggleServices()}),I(6,"img",2),c(7,"span")(8,"uds-translate"),g(9,"Services"),d(),c(10,"i",4),g(11,"arrow_drop_down"),d()()(),c(12,"div",5)(13,"a",6),I(14,"img",2),c(15,"uds-translate"),g(16,"Providers"),d()(),c(17,"a",7),I(18,"img",2),c(19,"uds-translate"),g(20,"Servers"),d()()(),c(21,"a",3),b("click",function(){return o.toggleAuths()}),I(22,"img",2),c(23,"span")(24,"uds-translate"),g(25,"Authentication"),d(),c(26,"i",4),g(27,"arrow_drop_down"),d()()(),c(28,"div",5)(29,"a",8),I(30,"img",2),c(31,"uds-translate"),g(32,"Authenticators"),d()(),c(33,"a",9),I(34,"img",2),c(35,"uds-translate"),g(36,"Multi Factor"),d()()(),c(37,"a",10),I(38,"img",2),c(39,"uds-translate"),g(40,"Os Managers"),d()(),c(41,"a",3),b("click",function(){return o.toggleConnectivity()}),I(42,"img",2),c(43,"span")(44,"uds-translate"),g(45,"Connectivity"),d(),c(46,"i",4),g(47,"arrow_drop_down"),d()()(),c(48,"div",5)(49,"a",11),I(50,"img",2),c(51,"uds-translate"),g(52,"Transports"),d()(),c(53,"a",12),I(54,"img",2),c(55,"uds-translate"),g(56,"Networks"),d()(),c(57,"a",13),I(58,"img",2),c(59,"uds-translate"),g(60,"Tunnels"),d()()(),c(61,"a",3),b("click",function(){return o.togglePools()}),I(62,"img",2),c(63,"span")(64,"uds-translate"),g(65,"Pools"),d(),c(66,"i",4),g(67,"arrow_drop_down"),d()()(),c(68,"div",5)(69,"a",14),I(70,"img",2),c(71,"uds-translate"),g(72,"Service pools"),d()(),c(73,"a",15),I(74,"img",2),c(75,"uds-translate"),g(76,"Meta pools"),d()(),x(77,$Q,4,1,"a",16),c(78,"a",17),I(79,"img",2),c(80,"uds-translate"),g(81,"Calendars"),d()(),c(82,"a",18),I(83,"img",2),c(84,"uds-translate"),g(85,"Accounting"),d()()(),x(86,WQ,7,1,"a",19),c(87,"div",5)(88,"a",20),I(89,"img",2),c(90,"uds-translate"),g(91,"Gallery"),d()(),c(92,"a",21),I(93,"img",2),c(94,"uds-translate"),g(95,"Reports"),d()(),c(96,"a",22),I(97,"img",2),c(98,"uds-translate"),g(99,"Notifiers"),d()(),c(100,"a",3),b("click",function(){return o.tokensShown=!o.tokensShown}),I(101,"img",2),c(102,"span")(103,"uds-translate"),g(104,"Tokens"),d(),c(105,"i",4),g(106,"arrow_drop_down"),d()()(),c(107,"div",23)(108,"a",24),I(109,"img",2),c(110,"uds-translate"),g(111,"Actor"),d()(),c(112,"a",25),I(113,"img",2),c(114,"uds-translate"),g(115,"Servers"),d()()(),c(116,"a",26),I(117,"img",2),c(118,"uds-translate"),g(119,"Configuration"),d()(),c(120,"a",3),b("click",function(){return o.flushCache()}),I(121,"img",2),c(122,"uds-translate"),g(123,"Flush Cache"),d()()()()),n&2&&(h(2),p("src",o.icon("dashboard-monitor"),Ie),h(4),p("src",o.icon("providers"),Ie),h(6),p("hidden",!o.servicesShown),h(2),p("src",o.icon("providers"),Ie),h(4),p("src",o.icon("servers"),Ie),h(4),p("src",o.icon("authentication"),Ie),h(6),p("hidden",!o.authsShown),h(2),p("src",o.icon("authenticators"),Ie),h(4),p("src",o.icon("mfas"),Ie),h(4),p("src",o.icon("osmanagers"),Ie),h(4),p("src",o.icon("connectivity"),Ie),h(6),p("hidden",!o.connectivityShown),h(2),p("src",o.icon("transports"),Ie),h(4),p("src",o.icon("networks"),Ie),h(4),p("src",o.icon("tunnels"),Ie),h(4),p("src",o.icon("poolsmenu"),Ie),h(6),p("hidden",!o.poolsShown),h(2),p("src",o.icon("pools"),Ie),h(4),p("src",o.icon("metas"),Ie),h(3),p("ngIf",o.api.user.isAdmin),h(2),p("src",o.icon("calendars"),Ie),h(4),p("src",o.icon("accounts"),Ie),h(3),p("ngIf",o.api.user.isAdmin),h(),p("hidden",!o.configShown),h(2),p("src",o.icon("gallery"),Ie),h(4),p("src",o.icon("reports"),Ie),h(4),p("src",o.icon("notifiers"),Ie),h(4),p("src",o.icon("tokens"),Ie),h(6),p("hidden",!o.tokensShown),h(2),p("src",o.icon("actors"),Ie),h(4),p("src",o.icon("servers"),Ie),h(4),p("src",o.icon("configuration"),Ie),h(4),p("src",o.icon("flush-cache"),Ie))},dependencies:[me,bi,xa,le],styles:['.mat-ripple[_ngcontent-%COMP%]{overflow:hidden;position:relative}.mat-ripple[_ngcontent-%COMP%]:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded[_ngcontent-%COMP%]{overflow:visible}.mat-ripple-element[_ngcontent-%COMP%]{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale3d(0,0,0);background-color:var(--mat-ripple-color, rgba(0, 0, 0, .1))}.cdk-high-contrast-active[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%], .cdk-drag-placeholder[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%]{display:none}.cdk-visually-hidden[_ngcontent-%COMP%]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl][_ngcontent-%COMP%] .cdk-visually-hidden[_ngcontent-%COMP%]{left:auto;right:0}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_ngcontent-%COMP%]{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container[_ngcontent-%COMP%]{position:fixed;z-index:1000}.cdk-overlay-container[_ngcontent-%COMP%]:empty{display:none}.cdk-global-overlay-wrapper[_ngcontent-%COMP%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:1}.cdk-high-contrast-active[_ngcontent-%COMP%] .cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:.6}.cdk-overlay-dark-backdrop[_ngcontent-%COMP%]{background:#00000052}.cdk-overlay-transparent-backdrop[_ngcontent-%COMP%]{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation[_ngcontent-%COMP%]{transition:none}.cdk-overlay-connected-position-bounding-box[_ngcontent-%COMP%]{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock[_ngcontent-%COMP%]{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize[_ngcontent-%COMP%]{resize:none}textarea.cdk-textarea-autosize-measuring[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-start{}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{animation:_ngcontent-%COMP%_cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){animation:_ngcontent-%COMP%_cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border:var(--mat-focus-indicator-border-width, 3px) var(--mat-focus-indicator-border-style, solid) var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-focus-indicator-display: block}.mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-mdc-focus-indicator-display, none);border:var(--mat-mdc-focus-indicator-border-width, 3px) var(--mat-mdc-focus-indicator-border-style, solid) var(--mat-mdc-focus-indicator-border-color, transparent);border-radius:var(--mat-mdc-focus-indicator-border-radius, 4px)}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-mdc-focus-indicator-display: block}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-app-background, transparent));color:var(--mat-app-text-color, var(--mat-app-on-background, inherit))}.mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, none)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, none)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, none)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, none)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, none)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, none)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, none)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, none)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, none)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, none)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, none)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, none)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, none)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, none)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, none)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, none)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, none)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, none)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, none)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, none)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, none)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, none)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, none)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, none)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, none)}.sidebar[_ngcontent-%COMP%]{position:fixed;top:4rem;padding-top:12px;bottom:0;display:flex;flex-direction:column;overflow-y:auto;width:3.7rem;-moz-transition:all .5s cubic-bezier(.86,0,.07,1);transition:all .3s cubic-bezier(.86,0,.07,1);box-shadow:0 16px 38px -12px #fafafa8f,0 4px 25px #fafafa1f,0 8px 10px -5px #fafafa33;overflow-x:hidden;z-index:25}.sidebar-link[_ngcontent-%COMP%]{display:flex;width:15rem;color:transparent;-moz-transition:color .5s cubic-bezier(.86,0,.07,1);transition:color .3s cubic-bezier(.86,0,.07,1);font-weight:300;font-size:1rem;justify-content:left;justify-items:center;padding-left:1rem;text-decoration:none}.sidebar[_ngcontent-%COMP%]:hover{width:15rem;-moz-transition:all .5s cubic-bezier(.86,0,.07,1);transition:all .3s cubic-bezier(.86,0,.07,1)}.sidebar[_ngcontent-%COMP%]:hover .sidebar-link[_ngcontent-%COMP%]{color:#000}.submenu[_ngcontent-%COMP%] > .mat-mdc-button[_ngcontent-%COMP%]{padding-left:1.5rem}.submenu2[_ngcontent-%COMP%] > .mat-mdc-button[_ngcontent-%COMP%]{padding-left:1.8rem}.icon[_ngcontent-%COMP%]{width:24px;margin:0 1em -.5rem 0} .dark-theme .sidebar{box-shadow:0 16px 38px -12px #3030308f,0 4px 25px #3030301f,0 8px 10px -5px #30303033} .dark-theme .sidebar:hover .sidebar-link{color:#fff!important}']});let i=e;return i})();function qQ(i,e){if(i&1&&I(0,"div",1),i&2){let r=_();p("innerHTML",r.messages,qt)}}var KO=(()=>{let e=class e{constructor(t){this.api=t,this.messages="",this.visible=!1}ngOnInit(){let t=n=>n.replace(/ /gm," ").replace(/([A-Z]+[A-Z]+)/gm,"$1").replace(/([0-9]+)/gm,"$1");if(this.api.notices.length>0){let n='
';this.messages='
'+n+this.api.notices.map(t).join("
"+n)+"
",this.api.gui.alert("",this.messages,0,"80%").then(()=>{this.visible=!0})}}};e.\u0275fac=function(n){return new(n||e)(m(B))},e.\u0275cmp=E({type:e,selectors:[["uds-notices"]],decls:1,vars:1,consts:[["class","notice",3,"innerHTML",4,"ngIf"],[1,"notice",3,"innerHTML"]],template:function(n,o){n&1&&x(0,qQ,1,1,"div",0),n&2&&p("ngIf",o.visible)},dependencies:[me],styles:[".notice[_ngcontent-%COMP%]{display:block} .warn-notice-container{background:#4682b4;border-radius:3px;box-shadow:#00000024 0 4px 20px,#465d9c66 0 7px 10px -5px;box-sizing:border-box;color:#fff;margin:1rem 2rem 0rem;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}"]});let i=e;return i})();var ZO=(()=>{let e=class e{constructor(t){this.api=t,this.title="UDS Admin"}get blackTheme(){return this.api.getFromStorage("blackTheme")==="true"}set blackTheme(t){this.api.putOnStorage("blackTheme",t.toString())}handleKeyboardEvent(t){t.altKey&&t.ctrlKey&&t.key==="b"&&(this.blackTheme=!this.blackTheme,this.api.switchTheme(this.blackTheme))}ngOnInit(){this.api.switchTheme(this.blackTheme)}};e.\u0275fac=function(n){return new(n||e)(m(B))},e.\u0275cmp=E({type:e,selectors:[["uds-root"]],hostBindings:function(n,o){n&1&&b("keydown",function(s){return o.handleKeyboardEvent(s)},!1,VS)},decls:8,vars:0,consts:[[1,"page"],[1,"content"],[1,"footer"]],template:function(n,o){n&1&&(I(0,"uds-navbar")(1,"uds-sidebar"),c(2,"div",0)(3,"div",1),I(4,"uds-notices")(5,"router-outlet"),d(),c(6,"div",2),I(7,"uds-footer"),d()())},dependencies:[T0,qO,YO,QO,KO],styles:[".page[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.footer[_ngcontent-%COMP%]{flex-shrink:0;margin:1em;height:1em;display:flex;flex-direction:row;justify-content:flex-end}.content[_ngcontent-%COMP%]{flex:1 0 auto;width:calc(100% - 64px);margin:4rem auto auto 56px;padding-left:8px;overflow-x:hidden}"]});let i=e;return i})();var XO=(()=>{let e=class e extends Ma{constructor(){super(),this.itemsPerPageLabel=django.gettext("Items per page")}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();var JO=(()=>{let e=class e{constructor(){this.field={},this.changed=new T}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=E({type:e,selectors:[["uds-field-text"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:7,consts:[["matInput","","type","text",3,"ngModelChange","change","ngModel","placeholder","required","disabled","maxlength","autocomplete"]],template:function(n,o){n&1&&(c(0,"mat-form-field")(1,"mat-label"),g(2),d(),c(3,"input",0),H("ngModelChange",function(s){return $(o.field.value,s)||(o.field.value=s),s}),b("change",function(){return o.changed.emit(o)}),d()()),n&2&&(h(2),F(" ",o.field.gui.label," "),h(),U("ngModel",o.field.value),p("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0)("maxlength",o.field.gui.length||128)("autocomplete","new-"+o.field.name))},dependencies:[lt,xe,Fi,_s,Se,_e,Ae,ft],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]});let i=e;return i})();function QQ(i,e){if(i&1&&(c(0,"mat-option",3),g(1),d()),i&2){let r=e.$implicit;p("value",r),h(),F(" ",r," ")}}var eR=(()=>{let e=class e{constructor(){this.field={},this.changed=new T,this.values=[]}ngOnInit(){let t=this.field.gui.choices||[];this.field.value=this.field.value||this.field.gui.default||"",this.values=t.map(n=>n.text)}_filter(){let t=this.field.value.toLowerCase();return this.values.filter(n=>n.toLowerCase().includes(t))}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=E({type:e,selectors:[["uds-field-autocomplete"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:9,consts:[["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","text",3,"ngModelChange","change","ngModel","placeholder","required","disabled","maxlength","matAutocomplete","autocomplete"],[3,"value"]],template:function(n,o){if(n&1){let a=A();c(0,"mat-form-field")(1,"mat-label"),g(2),d(),c(3,"mat-autocomplete",null,0),x(5,QQ,2,2,"mat-option",1),d(),c(6,"input",2),H("ngModelChange",function(l){return y(a),$(o.field.value,l)||(o.field.value=l),w(l)}),b("change",function(){return y(a),w(o.changed.emit(o))}),d()()}if(n&2){let a=we(4);h(2),F(" ",o.field.gui.label," "),h(3),p("ngForOf",o._filter()),h(),U("ngModel",o.field.value),p("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0)("maxlength",o.field.gui.length||128)("matAutocomplete",a)("autocomplete","new-"+o.field.name)}},dependencies:[We,lt,xe,Fi,_s,Se,_e,Ae,ft,nt,Kl,Cs],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]});let i=e;return i})();var tR=(()=>{let e=class e{constructor(){this.field={},this.changed=new T}ngOnInit(){!this.field.value&&this.field.value!==0&&(this.field.value=this.field.gui.default||0)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=E({type:e,selectors:[["uds-field-numeric"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:5,consts:[["floatLabel","always"],["matInput","","type","number",3,"ngModelChange","change","ngModel","placeholder","required","disabled"]],template:function(n,o){n&1&&(c(0,"mat-form-field",0)(1,"mat-label"),g(2),d(),c(3,"input",1),H("ngModelChange",function(s){return $(o.field.value,s)||(o.field.value=s),s}),b("change",function(){return o.changed.emit(o)}),d()()),n&2&&(h(2),F(" ",o.field.gui.label," "),h(),U("ngModel",o.field.value),p("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0))},dependencies:[lt,$n,xe,Fi,Se,_e,Ae,ft]});let i=e;return i})();var iR=(()=>{let e=class e{constructor(){this.field={},this.changed=new T,this.passwordType="password"}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=E({type:e,selectors:[["uds-field-password"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:7,consts:[["floatLabel","always"],["matInput","","autocomplete","new-password",3,"ngModelChange","change","ngModel","placeholder","required","disabled","type"],["matSuffix","","mat-icon-button","",3,"click"],[1,"material-icons"]],template:function(n,o){n&1&&(c(0,"mat-form-field",0)(1,"mat-label"),g(2),d(),c(3,"input",1),H("ngModelChange",function(s){return $(o.field.value,s)||(o.field.value=s),s}),b("change",function(){return o.changed.emit(o)}),d(),c(4,"button",2),b("click",function(){return o.passwordType=o.passwordType==="text"?"password":"text"}),c(5,"i",3),g(6),d()()()),n&2&&(h(2),F(" ",o.field.gui.label," "),h(),U("ngModel",o.field.value),p("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0)("type",o.passwordType),h(3),$e(o.passwordType==="text"?"visibility_off":"visibility"))},dependencies:[lt,xe,Fi,Se,Qi,_e,Ae,uo,ft],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]});let i=e;return i})();var nR=(()=>{let e=class e{constructor(){this.field={}}ngOnInit(){(this.field.value===""||this.field.value===void 0)&&(this.field.value=this.field.gui.default||"")}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=E({type:e,selectors:[["uds-field-hidden"]],inputs:{field:"field"},decls:0,vars:0,template:function(n,o){}});let i=e;return i})();var oR=(()=>{let e=class e{constructor(){this.field={}}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=E({type:e,selectors:[["uds-field-textbox"]],inputs:{field:"field",value:"value"},decls:4,vars:7,consts:[["floatLabel","auto"],["matInput","",3,"ngModelChange","ngModel","placeholder","required","readonly","rows","maxlength"]],template:function(n,o){n&1&&(c(0,"mat-form-field",0)(1,"mat-label"),g(2),d(),c(3,"textarea",1),H("ngModelChange",function(s){return $(o.field.value,s)||(o.field.value=s),s}),d()()),n&2&&(h(2),F(" ",o.field.gui.label," "),h(),U("ngModel",o.field.value),p("placeholder",o.field.gui.tooltip)("required",!!o.field.gui.required)("readonly",o.field.gui.readonly===!0)("rows",o.field.gui.lines||3)("maxlength",o.field.gui.length||255))},dependencies:[lt,xe,Fi,_s,Se,_e,Ae,ft]});let i=e;return i})();function KQ(i,e){if(i&1&&(c(0,"mat-option",3),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),h(),F(" ",r.text," ")}}var rR=(()=>{let e=class e{constructor(){this.field={},this.changed=new T,this.placeholderLabel=django.gettext("Search"),this.noEntriesFoundLabel=django.gettext("No entries found"),this.filter=""}setValue(){let t=this.field.gui.choices||[];this.field.value=this.field.value||this.field.gui.default||"",t.length>0&&!t.find(n=>n.id===this.field.value)&&(this.field.value=""),this.field.value===""&&t.length>0&&(this.field.value=t[0].id)}ngOnInit(){this.setValue()}filteredValues(){let t=this.field.gui.choices||[];if(this.setValue(),!this.filter)return t;let n=this.filter.toLocaleLowerCase();return t.filter(o=>o.text.toLocaleLowerCase().includes(n))}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=E({type:e,selectors:[["uds-field-choice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:6,vars:9,consts:[[3,"ngModelChange","valueChange","ngModel","placeholder","required","disabled"],[3,"changed","options","placeholderLabel","noEntriesFoundLabel"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(n,o){n&1&&(c(0,"mat-form-field")(1,"mat-label"),g(2),d(),c(3,"mat-select",0),H("ngModelChange",function(s){return $(o.field.value,s)||(o.field.value=s),s}),b("valueChange",function(){return o.changed.emit(o)}),c(4,"uds-cond-select-search",1),b("changed",function(s){return o.filter=s}),d(),x(5,KQ,2,2,"mat-option",2),d()()),n&2&&(h(2),F(" ",o.field.gui.label," "),h(),U("ngModel",o.field.value),p("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),h(),p("options",o.field.gui.choices)("placeholderLabel",o.placeholderLabel)("noEntriesFoundLabel",o.noEntriesFoundLabel),h(),p("ngForOf",o.filteredValues()))},dependencies:[We,xe,Fi,Se,_e,Ae,bt,nt,hi]});let i=e;return i})();function ZQ(i,e){if(i&1&&(c(0,"mat-option",3),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),h(),F(" ",r.text," ")}}var aR=(()=>{let e=class e{constructor(){this.field={},this.changed=new T,this.filter="",this.placeholderLabel=django.gettext("Search"),this.noEntriesFoundLabel=django.gettext("No entries found")}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||new Array}filteredValues(){let t=this.field.gui.choices||[];if(!this.filter||t.length===0)return t;let n=this.filter.toLocaleLowerCase();return t.filter(o=>o.text.toLocaleLowerCase().includes(n))}selectTriggerString(){let t=this.field.value||[],n="";t.length===0&&(n=this.field.gui.tooltip||django.gettext("Select"));for(let o of t)n!==""&&(n+=", "),n+=this.field.gui.choices?.find(a=>a.id===o)?.text||o;return n}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=E({type:e,selectors:[["uds-field-multichoice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:8,vars:8,consts:[["multiple","",3,"ngModelChange","valueChange","ngModel","placeholder","required","disabled"],[3,"changed","options"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(n,o){n&1&&(c(0,"mat-form-field")(1,"mat-label"),g(2),d(),c(3,"mat-select",0),H("ngModelChange",function(s){return $(o.field.value,s)||(o.field.value=s),s}),b("valueChange",function(){return o.changed.emit(o)}),c(4,"mat-select-trigger"),g(5),d(),c(6,"uds-cond-select-search",1),b("changed",function(s){return o.filter=s}),d(),x(7,ZQ,2,2,"mat-option",2),d()()),n&2&&(h(2),F(" ",o.field.gui.label," "),h(),U("ngModel",o.field.value),p("placeholder",o.selectTriggerString())("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),h(2),F(" ",o.selectTriggerString()," "),h(),p("options",o.field.gui.choices),h(),p("ngForOf",o.filteredValues()))},dependencies:[We,xe,Fi,Se,_e,Ae,bt,vf,nt,hi]});let i=e;return i})();function XQ(i,e){if(i&1){let r=A();c(0,"div",12)(1,"div",13),g(2),d(),c(3,"div",14),g(4," \xA0"),c(5,"a",15),b("click",function(){let n=y(r).index,o=_();return w(o.removeElement(n))}),c(6,"i",16),g(7,"close"),d()()()()}if(i&2){let r=e.$implicit;h(2),F(" ",r," ")}}var sR=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.data=a,this.values=[],this.input="",this.done=new Jt,this.data.values.forEach(s=>this.values.push(s))}static launch(t,n,o){let a=window.innerWidth<800?"50%":"30%";return t.gui.dialog.open(e,{width:a,data:{title:n,values:o},disableClose:!0}).componentInstance.done}addElements(){this.input.split(",").forEach(t=>{this.values.push(t)}),this.input=""}checkKey(t){t.code==="Enter"&&this.addElements()}removeAll(){this.values.length=0}removeElement(t){this.values.splice(t,1)}save(){this.data.values.length=0,this.values.forEach(t=>this.data.values.push(t)),this.dialogRef.close(),this.done.resolve(this.data.values)}cancel(){this.dialogRef.close(),this.done.resolve(null)}ngOnInit(){}};e.\u0275fac=function(n){return new(n||e)(m(B),m(X),m(Ne),m(Ke))},e.\u0275cmp=E({type:e,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,"keyup","ngModelChange","ngModel"],["matSuffix","","mat-icon-button","",3,"click"],["matSuffix","",1,"material-icons"],["mat-raised-button","","color","primary",3,"click"],[1,"elem"],[1,"val"],[1,"remove"],[3,"click"],[1,"material-icons"]],template:function(n,o){n&1&&(c(0,"h4",0),g(1),d(),c(2,"mat-dialog-content")(3,"div",1)(4,"div",2),x(5,XQ,8,1,"div",3),d(),c(6,"div",4)(7,"button",5),b("click",function(){return o.removeAll()}),c(8,"uds-translate"),g(9,"Remove all"),d()()(),c(10,"div",6)(11,"mat-form-field",7)(12,"input",8),b("keyup",function(s){return o.checkKey(s)}),H("ngModelChange",function(s){return $(o.input,s)||(o.input=s),s}),d(),c(13,"button",9),b("click",function(){return o.addElements()}),c(14,"i",10),g(15,"add"),d()()()()()(),c(16,"mat-dialog-actions")(17,"button",5),b("click",function(){return o.cancel()}),c(18,"uds-translate"),g(19,"Cancel"),d()(),c(20,"button",11),b("click",function(){return o.save()}),c(21,"uds-translate"),g(22,"Ok"),d()()()),n&2&&(h(),F(" ",o.data.title,` `),h(4),p("ngForOf",o.values),h(7),U("ngModel",o.input))},dependencies:[We,lt,xe,Se,ke,Qi,Je,tt,et,_e,uo,ft,le],styles:[".content[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;justify-content:space-between;justify-self:center}.list[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:1rem;height:16rem;overflow-y:auto;border-color:#333;border-radius:1px;box-shadow:#00000024 0 1px 4px;padding:.5rem}.buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-right:1rem;margin-bottom: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-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]});let i=e;return i})();var lR=(()=>{let e=class e{constructor(t){this.api=t,this.field={},this.changed=new T}ngOnInit(){}valueEmpty(){return this.field.value===void 0||this.field.value===null||this.field.value.length===0}launch(){return W(this,null,function*(){this.valueEmpty()&&(this.field.value=[]);let t=yield sR.launch(this.api,this.field.gui.label,this.field.value||this.field.gui.default||[]);this.changed.emit({field:this.field})})}getValue(){if(this.valueEmpty())return"";let t=this.field.value.filter((n,o,a)=>o<5).join(", ");return this.field.value.length>5&&(t+=django.gettext(", (%i more items)").replace("%i",""+(this.field.value.length-5))),t}};e.\u0275fac=function(n){return new(n||e)(m(B))},e.\u0275cmp=E({type:e,selectors:[["uds-field-editlist"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:5,consts:[["floatLabel","always",3,"click"],["matInput","","type","text",1,"editlist",3,"readonly","value","placeholder","disabled"]],template:function(n,o){n&1&&(c(0,"mat-form-field",0),b("click",function(){return o.launch()}),c(1,"mat-label"),g(2),d(),I(3,"input",1),d()),n&2&&(h(2),F(" ",o.field.gui.label," "),h(),p("readonly",!0)("value",o.getValue())("placeholder",o.field.gui.tooltip)("disabled",o.field.gui.readonly===!0))},dependencies:[_e,Ae,ft],styles:[".editlist[_ngcontent-%COMP%]{cursor:pointer}"]});let i=e;return i})();var cR=(()=>{let e=class e{constructor(){this.field={},this.changed=new T}ngOnInit(){$1(this.field.value)?this.field.value=Cp(this.field.gui.default):this.field.value=Cp(this.field.value)}getValue(){return Cp(this.field.value)?django.gettext("Yes"):django.gettext("No")}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=E({type:e,selectors:[["uds-field-checkbox"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:3,vars:4,consts:[[1,"toggle"],[3,"ngModelChange","change","ngModel","required","disabled"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"mat-slide-toggle",1),H("ngModelChange",function(s){return $(o.field.value,s)||(o.field.value=s),s}),b("change",function(){return o.changed.emit(o)}),g(2),d()()),n&2&&(h(),U("ngModel",o.field.value),p("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),h(),F(" ",o.field.gui.label," "))},dependencies:[xe,Fi,Se,cr]});let i=e;return i})();function JQ(i,e){if(i&1&&I(0,"div",5),i&2){let r=_().$implicit,t=_();p("innerHTML",t.asIcon(r),qt)}}function eK(i,e){if(i&1&&(c(0,"div"),x(1,JQ,1,1,"div",4),d()),i&2){let r=e.$implicit,t=_();h(),p("ngIf",r.id===t.field.value)}}function tK(i,e){if(i&1&&(c(0,"mat-option",6),I(1,"div",5),d()),i&2){let r=e.$implicit,t=_();p("value",r.id),h(),p("innerHTML",t.asIcon(r),qt)}}var dR=(()=>{let e=class e{constructor(t){this.api=t,this.field={},this.changed=new T,this.filter=""}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||"";let t=this.field.gui.choices||[];this.field.value===""&&t.length>0&&(this.field.value=t[0].id)}asIcon(t){return this.api.safeString(this.api.gui.icon(t.img)+t.text)}filteredValues(){let t=this.field.gui.choices||[];if(!this.filter)return t;let n=this.filter.toLocaleLowerCase();return t.filter(o=>o.text.toLocaleLowerCase().includes(n))}};e.\u0275fac=function(n){return new(n||e)(m(B))},e.\u0275cmp=E({type:e,selectors:[["uds-field-imgchoice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:8,vars:8,consts:[[3,"valueChange","ngModelChange","placeholder","ngModel","required","disabled"],[4,"ngFor","ngForOf"],[3,"changed","options"],[3,"value",4,"ngFor","ngForOf"],[3,"innerHTML",4,"ngIf"],[3,"innerHTML"],[3,"value"]],template:function(n,o){n&1&&(c(0,"mat-form-field")(1,"mat-label"),g(2),d(),c(3,"mat-select",0),b("valueChange",function(){return o.changed.emit(o)}),H("ngModelChange",function(s){return $(o.field.value,s)||(o.field.value=s),s}),c(4,"mat-select-trigger"),x(5,eK,2,1,"div",1),d(),c(6,"uds-cond-select-search",2),b("changed",function(s){return o.filter=s}),d(),x(7,tK,2,2,"mat-option",3),d()()),n&2&&(h(2),F(" ",o.field.gui.label," "),h(),p("placeholder",o.field.gui.tooltip),U("ngModel",o.field.value),p("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),h(2),p("ngForOf",o.field.gui.choices),h(),p("options",o.field.gui.choices),h(),p("ngForOf",o.filteredValues()))},dependencies:[We,me,xe,Fi,Se,_e,Ae,bt,vf,nt,hi]});let i=e;return i})();var uR=(()=>{let e=class e{constructor(){this.field={},this.changed=new T,this.value=new Date}get date(){return this.value}set date(t){this.value!==t&&(this.value=t,this.field.value=Ca("%Y-%m-%d",this.value))}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||"",this.field.value==="2000-01-01"?this.field.value=Ca("%Y-01-01"):this.field.value==="2000-01-01"&&(this.field.value=Ca("%Y-12-31"));let t=this.field.value.split("-");t.length===3&&(this.value=new Date(+t[0],+t[1]-1,+t[2]))}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=E({type:e,selectors:[["uds-field-date"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:6,consts:[["endDatePicker",""],[1,"oneHalf"],["matInput","",3,"ngModelChange","matDatepicker","ngModel","placeholder","disabled"],["matSuffix","",3,"for"]],template:function(n,o){if(n&1){let a=A();c(0,"mat-form-field",1)(1,"mat-label"),g(2),d(),c(3,"input",2),H("ngModelChange",function(l){return y(a),$(o.date,l)||(o.date=l),w(l)}),d(),I(4,"mat-datepicker-toggle",3)(5,"mat-datepicker",null,0),d()}if(n&2){let a=we(6);h(2),F(" ",o.field.gui.label," "),h(),p("matDatepicker",a),U("ngModel",o.date),p("placeholder",o.field.gui.tooltip)("disabled",o.field.gui.readonly===!0),h(),p("for",a)}},dependencies:[lt,xe,Se,_e,Ae,uo,ft,sg,ec,Xd]});let i=e;return i})();function iK(i,e){if(i&1){let r=A();c(0,"mat-chip-row",5),b("removed",function(){let n=y(r).$implicit,o=_();return w(o.remove(n))}),g(1),c(2,"i",6),g(3,"cancel"),d()()}if(i&2){let r=e.$implicit,t=_();p("removable",t.field.gui.readonly!==!0),h(),F(" ",r," ")}}var hR=(()=>{let e=class e{constructor(){this.field={},this.changed=new T,this.separatorKeysCodes=[13,188]}ngOnInit(){this.field.value=this.field.value||new Array,this.field.value.forEach((t,n,o)=>{t.trim()===""&&o.splice(n,1)})}add(t){let n=t.input,o=t.value;(o||"").trim()&&this.field.value&&this.field.value.push(o.trim()),n&&(n.value="")}remove(t){if(!this.field.value){console.warn("Trying to remove tag from field with no values: "+this.field.name);return}let n=this.field.value.indexOf(t);n>=0&&this.field.value.splice(n,1)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=E({type:e,selectors:[["uds-field-tags"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:7,consts:[["chipList",""],["floatLabel","always"],[3,"change","disabled"],[3,"removable","removed",4,"ngFor","ngForOf"],[3,"matChipInputTokenEnd","placeholder","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur"],[3,"removed","removable"],["matChipRemove","",1,"material-icons"]],template:function(n,o){if(n&1){let a=A();c(0,"mat-form-field",1)(1,"mat-label"),g(2),d(),c(3,"mat-chip-grid",2,0),b("change",function(){return y(a),w(o.changed.emit(o))}),x(5,iK,4,2,"mat-chip-row",3),c(6,"input",4),b("matChipInputTokenEnd",function(l){return y(a),w(o.add(l))}),d()()()}if(n&2){let a=we(4);h(2),F(" ",o.field.gui.label," "),h(),p("disabled",o.field.gui.readonly===!0),h(2),p("ngForOf",o.field.value),h(),p("placeholder",o.field.gui.tooltip)("matChipInputFor",a)("matChipInputSeparatorKeyCodes",o.separatorKeysCodes)("matChipInputAddOnBlur",!0)}},dependencies:[We,_e,Ae,jO,BO,VO,vC],styles:["*.mat-chip-trailing-icon[_ngcontent-%COMP%]{position:relative;top:-4px;left:-4px}mat-form-field[_ngcontent-%COMP%]{width:99.5%}"]});let i=e;return i})();var lEe=su(fR());var gR=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=te({type:e,bootstrap:[ZO]}),e.\u0275inj=ee({providers:[B,X,{provide:Ma,useClass:XO},UI(HI())],imports:[Tm,iO,OO,GO,WT.forRoot({echarts:()=>import("./chunk-IRQMDTYH.js")})]});let i=e;return i})();JE($p,function(){return[ul,bm,lr,JO,tR,iR,nR,oR,rR,aR,lR,cR,dR,uR,hR,eR]},[]);qp.production&&void 0;ZI().bootstrapModule(gR).catch(i=>console.log(i)); diff --git a/server/src/uds/static/admin/translations-fakejs.js b/server/src/uds/static/admin/translations-fakejs.js index 7b92ba5b8..3d9ade8df 100644 --- a/server/src/uds/static/admin/translations-fakejs.js +++ b/server/src/uds/static/admin/translations-fakejs.js @@ -141,6 +141,7 @@ gettext("Assigned services"); gettext("Information"); gettext("Information"); gettext("Clean related (mfa,...)"); +gettext("Enable client logging"); gettext("In Maintenance"); gettext("Active"); gettext("Delete user"); @@ -149,6 +150,10 @@ gettext("Clean data"); gettext("Clean related data (mfa, ...)?"); gettext("Related data cleaned"); gettext("dismiss"); +gettext("Client logging"); +gettext("Enable client logging for user?"); +gettext("Client logging enabled"); +gettext("dismiss"); gettext("Match mode"); gettext("Any"); gettext("All"); diff --git a/server/src/uds/templates/uds/admin/index.html b/server/src/uds/templates/uds/admin/index.html index 95a0f6e8a..f7cad4553 100644 --- a/server/src/uds/templates/uds/admin/index.html +++ b/server/src/uds/templates/uds/admin/index.html @@ -102,6 +102,6 @@ - +